|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Owns the per-frame state objects and runs their BeginFrame / EndFrame in order. More...
#include <gui_core/state/gui_state_manager.h>
Public Member Functions | |
| InteractionState & | Interaction () |
| const InteractionState & | Interaction () const |
| DragDropState & | Drag () |
| const DragDropState & | Drag () const |
| ConstructionScopes & | Construction () |
| const ConstructionScopes & | Construction () const |
| TextEditorFocusState & | TextEditorFocus () |
| const TextEditorFocusState & | TextEditorFocus () const |
| LabelBinding & | Labels () |
| const LabelBinding & | Labels () const |
| CursorState & | Cursor () |
| const CursorState & | Cursor () const |
| ScrollManagement & | GetScrollManagement () |
| const ScrollManagement & | GetScrollManagement () const |
| ElementDataStore & | GetElementDataStore () |
| const ElementDataStore & | GetElementDataStore () const |
| ElementState | GetCurrentState (ID id) const |
| The state of id (hovered, focused, disabled, ...) from Interaction, Construction and Labels. | |
| bool | BeginFrame () |
| Resets the per-frame state; call before construction. Always true. | |
| FrameHover | EndFrame (const FrameInput &input, IDManager &idManager) |
| Resolves the active window, the window and element under the pointer and the hovered element from Input, then ends the frame's state. | |
| void | ClearModifiedFlag () |
| Whether transient state changed this frame. | |
| bool | IsModified () const |
| Whether transient state changed this frame. | |
| void | SetModified (bool v) |
| Whether transient state changed this frame. | |
Owns the per-frame state objects and runs their BeginFrame / EndFrame in order.
Callers use the narrow accessors (Interaction(), Drag(), ...) to depend only on what they use:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Whether transient state changed this frame.
|
inline |
Whether transient state changed this frame.
|
inline |
Whether transient state changed this frame.
| ElementState tachyon::GUIStateManager::GetCurrentState | ( | ID | id | ) | const |
The state of id (hovered, focused, disabled, ...) from Interaction, Construction and Labels.
| bool tachyon::GUIStateManager::BeginFrame | ( | ) |
Resets the per-frame state; call before construction. Always true.
| FrameHover tachyon::GUIStateManager::EndFrame | ( | const FrameInput & | input, |
| IDManager & | idManager ) |
Resolves the active window, the window and element under the pointer and the hovered element from Input, then ends the frame's state.