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

Enables dragging a floating toolbar back onto a dock side; both fields are required, otherwise the drag handle only moves the OS window. More...

#include <gui_controls/controls_toolbar_dock.h>

Public Attributes

ToolbarDockState * dockState = nullptr
 Dock whose cachedSideRects are hit-tested on MouseUp (caller-owned; nullptr disables).
std::function< void(ID windowID, ToolbarSide tgtSide)> onDockBack
 Released over tgtSide, or the window closed (tgtSide = its homeSide): the caller moves the item into that side, releases the windowID and erases the floating entry.

Detailed Description

Enables dragging a floating toolbar back onto a dock side; both fields are required, otherwise the drag handle only moves the OS window.

Member Data Documentation

◆ dockState

ToolbarDockState* tachyon::FloatingToolbarOptions::dockState = nullptr

Dock whose cachedSideRects are hit-tested on MouseUp (caller-owned; nullptr disables).

◆ onDockBack

std::function<void(ID windowID, ToolbarSide tgtSide)> tachyon::FloatingToolbarOptions::onDockBack

Released over tgtSide, or the window closed (tgtSide = its homeSide): the caller moves the item into that side, releases the windowID and erases the floating entry.


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