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

Per-instance state for one toolbar dock. More...

#include <gui_controls/controls_toolbar_dock.h>

Public Attributes

ID groupIDs [kToolbarSideCount] {}
ID ghostWindowID = ID::Invalid()
ID dockContainerID = ID::Invalid()
 Outer dock container; its rect gives empty (invisible) sides a drop rect.
IntRect cachedSideRects [kToolbarSideCount] {}
 Last frame's side rects (screen space), written by SyncToolbarDockRects at the end of the frame; drag visualization reads them during construction, before layout.
IntRect cachedDockRect {}
 last frame's dock container rect (screen space)
bool dropAnimHasTarget = false
IntRect dropAnimCurrent {}
IntRect dropAnimTarget {}
std::chrono::steady_clock::time_point dropAnimLastTime {}

Detailed Description

Per-instance state for one toolbar dock.

The caller owns this object (one per dock area). Allocate IDs once via InitializeToolbarDockState and release via ReleaseToolbarDockState.

Member Data Documentation

◆ groupIDs

ID tachyon::ToolbarDockState::groupIDs[kToolbarSideCount] {}

◆ ghostWindowID

ID tachyon::ToolbarDockState::ghostWindowID = ID::Invalid()

◆ dockContainerID

ID tachyon::ToolbarDockState::dockContainerID = ID::Invalid()

Outer dock container; its rect gives empty (invisible) sides a drop rect.

◆ cachedSideRects

IntRect tachyon::ToolbarDockState::cachedSideRects[kToolbarSideCount] {}

Last frame's side rects (screen space), written by SyncToolbarDockRects at the end of the frame; drag visualization reads them during construction, before layout.

◆ cachedDockRect

IntRect tachyon::ToolbarDockState::cachedDockRect {}

last frame's dock container rect (screen space)

◆ dropAnimHasTarget

bool tachyon::ToolbarDockState::dropAnimHasTarget = false

◆ dropAnimCurrent

IntRect tachyon::ToolbarDockState::dropAnimCurrent {}

◆ dropAnimTarget

IntRect tachyon::ToolbarDockState::dropAnimTarget {}

◆ dropAnimLastTime

std::chrono::steady_clock::time_point tachyon::ToolbarDockState::dropAnimLastTime {}

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