ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::ActiveDrag Struct Reference

Per-context state tracking a pending or active drag operation. More...

#include <UIContext.hpp>

Public Attributes

std::weak_ptr< Layout > source
std::weak_ptr< Layout > ghost
DragPayload payload
Vec2 startPos {0.0f, 0.0f}
Vec2 currentPos {0.0f, 0.0f}
Vec2 grabOffset {0.0f, 0.0f}
Layout * hoverTarget {nullptr}
bool pending {false}
bool active {false}

Detailed Description

Per-context state tracking a pending or active drag operation.


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