Drag-and-drop state, owned by GUIStateManager.
More...
#include <gui_core/state/gui_drag_drop_state.h>
Drag-and-drop state, owned by GUIStateManager.
Begin arms a pending source on mouse-down; it becomes the active drag once the pointer passes the start distance. Per-frame events (enter / over / out / drop) are cleared at the top of the next EndFrame.
◆ IsDragging()
| bool tachyon::DragDropState::IsDragging |
( |
| ) |
const |
|
inline |
◆ GetDraggedID()
| ID tachyon::DragDropState::GetDraggedID |
( |
| ) |
const |
|
inline |
◆ GetDragOverID()
| ID tachyon::DragDropState::GetDragOverID |
( |
| ) |
const |
|
inline |
◆ GetPayloadValue()
| uintptr_t tachyon::DragDropState::GetPayloadValue |
( |
| ) |
const |
|
inline |
◆ IsDropTargetFor()
| bool tachyon::DragDropState::IsDropTargetFor |
( |
ID | id, |
|
|
uint32_t | acceptedPayloadType = 0 ) const |
True when an active drag is over id and its payload type is acceptedPayloadType (0 accepts any type).
◆ GetEnterTargetID()
| ID tachyon::DragDropState::GetEnterTargetID |
( |
| ) |
const |
|
inline |
◆ GetOverTargetID()
| ID tachyon::DragDropState::GetOverTargetID |
( |
| ) |
const |
|
inline |
◆ GetOutTargetID()
| ID tachyon::DragDropState::GetOutTargetID |
( |
| ) |
const |
|
inline |
◆ GetDropTargetID()
| ID tachyon::DragDropState::GetDropTargetID |
( |
| ) |
const |
|
inline |
◆ GetValidatedTargetID()
| ID tachyon::DragDropState::GetValidatedTargetID |
( |
| ) |
const |
|
inline |
◆ GetEventSourceID()
| ID tachyon::DragDropState::GetEventSourceID |
( |
| ) |
const |
|
inline |
◆ GetEventPayloadType()
| uint32_t tachyon::DragDropState::GetEventPayloadType |
( |
| ) |
const |
|
inline |
◆ GetEventPayloadValue()
| uintptr_t tachyon::DragDropState::GetEventPayloadValue |
( |
| ) |
const |
|
inline |
◆ GetPayload()
| const std::any & tachyon::DragDropState::GetPayload |
( |
| ) |
const |
|
inline |
◆ Begin()
| void tachyon::DragDropState::Begin |
( |
ID | sourceID, |
|
|
uint32_t | payloadType, |
|
|
uintptr_t | payloadValue, |
|
|
int2 | startScreenPos, |
|
|
std::any | payload = {}, |
|
|
DragVisualizer | sourceVisualizer = {} ) |
Arms a pending drag from sourceID; ignored for an Invalid source or payload type 0.
payload defaults to payloadValue.
◆ SetSourceVisualizer()
| void tachyon::DragDropState::SetSourceVisualizer |
( |
DragVisualizer | sourceVisualizer | ) |
|
◆ UpdateFromInput()
| void tachyon::DragDropState::UpdateFromInput |
( |
const InputState & | in | ) |
|
◆ SetStartDistance()
| void tachyon::DragDropState::SetStartDistance |
( |
int32_t | pixels | ) |
|
|
inline |
Pointer travel in pixels before a pending drag starts.
◆ Cancel()
| void tachyon::DragDropState::Cancel |
( |
| ) |
|
◆ SetValidatedTargetID()
| void tachyon::DragDropState::SetValidatedTargetID |
( |
ID | id | ) |
|
|
inline |
◆ SetFrameVisualizerOverride()
| void tachyon::DragDropState::SetFrameVisualizerOverride |
( |
DragVisualizer | visualizer | ) |
|
|
inline |
◆ ClearFrameVisualizerOverride()
| void tachyon::DragDropState::ClearFrameVisualizerOverride |
( |
| ) |
|
◆ InvokeActiveVisualizer()
| bool tachyon::DragDropState::InvokeActiveVisualizer |
( |
const DragVisualContext & | context | ) |
const |
◆ ClearEvents()
| void tachyon::DragDropState::ClearEvents |
( |
| ) |
|
◆ BeginFrame()
| void tachyon::DragDropState::BeginFrame |
( |
| ) |
|
◆ EndFrameUpdate()
| void tachyon::DragDropState::EndFrameUpdate |
( |
ID | hoveredForDrop, |
|
|
bool | leftButtonDown ) |
The documentation for this class was generated from the following file: