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

A torn-off toolbar in its own OS window, owned by the caller. More...

#include <gui_controls/controls_toolbar_dock.h>

Public Attributes

ToolbarItem item
ID windowID = ID::Invalid()
int2 spawnPosition {}
 screen pixels, used on the first frame
bool positioned = false
 once true, the OS manages the position
std::string title {}
ToolbarSide homeSide = ToolbarSide::Top
 where closing the window docks it back

Detailed Description

A torn-off toolbar in its own OS window, owned by the caller.

windowID is a static ID created on tear-off and released when the window closes.

Member Data Documentation

◆ item

ToolbarItem tachyon::FloatingToolbarItem::item

◆ windowID

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

◆ spawnPosition

int2 tachyon::FloatingToolbarItem::spawnPosition {}

screen pixels, used on the first frame

◆ positioned

bool tachyon::FloatingToolbarItem::positioned = false

once true, the OS manages the position

◆ title

std::string tachyon::FloatingToolbarItem::title {}

◆ homeSide

ToolbarSide tachyon::FloatingToolbarItem::homeSide = ToolbarSide::Top

where closing the window docks it back


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