TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::DragVisualContext Struct Reference

What a DragVisualizer draws from: the pointer, the source and target, and the payload. More...

#include <gui_core/state/gui_drag_drop_state.h>

Public Attributes

tachyon::int2 screenPos { 0, 0 }
ID sourceID = ID::Invalid()
ID targetID = ID::Invalid()
bool isDropValid = false
bool leftMouseDown = false
uint32_t payloadType = 0
uintptr_t payloadValue = 0
const std::any * payload = nullptr

Detailed Description

What a DragVisualizer draws from: the pointer, the source and target, and the payload.

Member Data Documentation

◆ screenPos

tachyon::int2 tachyon::DragVisualContext::screenPos { 0, 0 }

◆ sourceID

ID tachyon::DragVisualContext::sourceID = ID::Invalid()

◆ targetID

ID tachyon::DragVisualContext::targetID = ID::Invalid()

◆ isDropValid

bool tachyon::DragVisualContext::isDropValid = false

◆ leftMouseDown

bool tachyon::DragVisualContext::leftMouseDown = false

◆ payloadType

uint32_t tachyon::DragVisualContext::payloadType = 0

◆ payloadValue

uintptr_t tachyon::DragVisualContext::payloadValue = 0

◆ payload

const std::any* tachyon::DragVisualContext::payload = nullptr

The documentation for this struct was generated from the following file: