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

Callbacks through which RenderToolbarDock changes the caller's data; the dock never touches that data itself. More...

#include <gui_controls/controls_toolbar_dock.h>

Public Attributes

std::function< void(ToolbarSide side, int from, int to)> onReorder
 An item moved within side from index from to to.
std::function< void(ToolbarSide srcSide, int srcIdx, ToolbarSide tgtSide)> onCrossSideDrop
 Item srcIdx of srcSide was dropped on tgtSide: the caller appends it to tgtSide and erases it from srcSide.
std::function< void(ToolbarSide srcSide, int srcIdx, int2 mousePos)> onTearOff
 Released outside every side: the caller moves the item to its floating list (new static windowID, spawnPosition = mousePos) and erases it from srcSide.

Detailed Description

Callbacks through which RenderToolbarDock changes the caller's data; the dock never touches that data itself.

Member Data Documentation

◆ onReorder

std::function<void(ToolbarSide side, int from, int to)> tachyon::ToolbarDockCallbacks::onReorder

An item moved within side from index from to to.

◆ onCrossSideDrop

std::function<void(ToolbarSide srcSide, int srcIdx, ToolbarSide tgtSide)> tachyon::ToolbarDockCallbacks::onCrossSideDrop

Item srcIdx of srcSide was dropped on tgtSide: the caller appends it to tgtSide and erases it from srcSide.

◆ onTearOff

std::function<void(ToolbarSide srcSide, int srcIdx, int2 mousePos)> tachyon::ToolbarDockCallbacks::onTearOff

Released outside every side: the caller moves the item to its floating list (new static windowID, spawnPosition = mousePos) and erases it from srcSide.


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