|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Construction state of the current reorderable group. More...
#include <gui_controls/subsystems/gui_reorderable_subsystem.h>
Public Attributes | |
| tachyon::ID | groupID = tachyon::ID::Invalid() |
| ReorderDirection | direction = ReorderDirection::Vertical |
| bool | isWrapped = false |
| bool | reorderApplied = false |
| the dragged item was moved in storage this frame | |
| std::function< void(int, int)> | onReorder |
| from index, to index | |
| std::function< void(int, tachyon::int2)> | onDragOut |
| Item index and screen cursor when an item is released outside the group. | |
| std::function< void(int, tachyon::int2)> | dragVisualizer |
| Draws a ghost for the dragged item (index, cursor) while it is outside the group. | |
| int | nextItemIndex = 0 |
| tachyon::ElementRef | groupRef = tachyon::ElementRef::Invalid() |
| tachyon::ID | dropAreaID = tachyon::ID::Invalid() |
| Counts as the group while an item is dragged (a tab bar's TabBarOptions::dropArea); Invalid: the group. | |
| std::vector< tachyon::ElementRef > | itemRefs |
| int | keyboardFrom = -1 |
| Alt + an arrow along the group with the focus in item keyboardFrom: moved by keyboardStep in EndReorderableGroup, after the caller's items are built. | |
| int | keyboardStep = 0 |
Construction state of the current reorderable group.
Valid only between BeginReorderableGroup and EndReorderableGroup; handlers must capture what they need.
| tachyon::ID tachyon::ReorderableConstructionState::groupID = tachyon::ID::Invalid() |
| ReorderDirection tachyon::ReorderableConstructionState::direction = ReorderDirection::Vertical |
| bool tachyon::ReorderableConstructionState::isWrapped = false |
| bool tachyon::ReorderableConstructionState::reorderApplied = false |
the dragged item was moved in storage this frame
| std::function<void(int, int)> tachyon::ReorderableConstructionState::onReorder |
from index, to index
| std::function<void(int, tachyon::int2)> tachyon::ReorderableConstructionState::onDragOut |
Item index and screen cursor when an item is released outside the group.
| std::function<void(int, tachyon::int2)> tachyon::ReorderableConstructionState::dragVisualizer |
Draws a ghost for the dragged item (index, cursor) while it is outside the group.
| int tachyon::ReorderableConstructionState::nextItemIndex = 0 |
| tachyon::ElementRef tachyon::ReorderableConstructionState::groupRef = tachyon::ElementRef::Invalid() |
| tachyon::ID tachyon::ReorderableConstructionState::dropAreaID = tachyon::ID::Invalid() |
Counts as the group while an item is dragged (a tab bar's TabBarOptions::dropArea); Invalid: the group.
| std::vector<tachyon::ElementRef> tachyon::ReorderableConstructionState::itemRefs |
| int tachyon::ReorderableConstructionState::keyboardFrom = -1 |
Alt + an arrow along the group with the focus in item keyboardFrom: moved by keyboardStep in EndReorderableGroup, after the caller's items are built.
| int tachyon::ReorderableConstructionState::keyboardStep = 0 |