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

A floating toolbar window dragged by its thumb; one drag at a time. More...

#include <gui_controls/subsystems/gui_subsystem_state.h>

Public Member Functions

bool Active () const

Public Attributes

PointerDrag drag
 the thumb's press, a drag from the start
ID windowID = ID::Invalid()
int2 currentMousePos {}
 screen pixels
IntRect startRect {}
 the window before the drag; put back by Escape
ToolbarDockState * sourceDockState = nullptr

Detailed Description

A floating toolbar window dragged by its thumb; one drag at a time.

currentMousePos is read by the construction-time drop visualization.

Member Function Documentation

◆ Active()

bool tachyon::ToolbarWindowDragSubsystem::Active ( ) const
inline

Member Data Documentation

◆ drag

PointerDrag tachyon::ToolbarWindowDragSubsystem::drag

the thumb's press, a drag from the start

◆ windowID

ID tachyon::ToolbarWindowDragSubsystem::windowID = ID::Invalid()

◆ currentMousePos

int2 tachyon::ToolbarWindowDragSubsystem::currentMousePos {}

screen pixels

◆ startRect

IntRect tachyon::ToolbarWindowDragSubsystem::startRect {}

the window before the drag; put back by Escape

◆ sourceDockState

ToolbarDockState* tachyon::ToolbarWindowDragSubsystem::sourceDockState = nullptr

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