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

Construction state of the current tab bar; internal. More...

#include <gui_controls/gui_docking_types.h>

Classes

struct  HiddenTab

Public Attributes

tachyon::ID barID = tachyon::ID::Invalid()
int * selectedIndex = nullptr
int nextTabIndex = 0
std::function< void(int)> onClose
 tab index, when its close button is clicked
std::function< void(int, tachyon::int2)> onDragOut
 tab index and mouse release pos
TabBarLayout * layout = nullptr
 the bar's layout, which its context menu sets
TabBarOptions options
std::vector< bool > shown
 by tab index; empty: every tab is shown
std::vector< HiddenTab > hidden
 the tabs left out, listed by the overflow button

Detailed Description

Construction state of the current tab bar; internal.

Member Data Documentation

◆ barID

tachyon::ID tachyon::TabBarState::barID = tachyon::ID::Invalid()

◆ selectedIndex

int* tachyon::TabBarState::selectedIndex = nullptr

◆ nextTabIndex

int tachyon::TabBarState::nextTabIndex = 0

◆ onClose

std::function<void(int)> tachyon::TabBarState::onClose

tab index, when its close button is clicked

◆ onDragOut

std::function<void(int, tachyon::int2)> tachyon::TabBarState::onDragOut

tab index and mouse release pos

◆ layout

TabBarLayout* tachyon::TabBarState::layout = nullptr

the bar's layout, which its context menu sets

◆ options

TabBarOptions tachyon::TabBarState::options

◆ shown

std::vector<bool> tachyon::TabBarState::shown

by tab index; empty: every tab is shown

◆ hidden

std::vector<HiddenTab> tachyon::TabBarState::hidden

the tabs left out, listed by the overflow button


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