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

What a tab bar keeps across frames (element data store, by bar ID): its keyboard navigation, and the sizes it measured, in pixels, that decide which tabs fit. More...

#include <gui_controls/gui_docking_types.h>

Public Attributes

int tabCount = 0
 last frame's
int focusIndex = -1
 the tab that takes focus as it's built, after an arrow key
TabBarLayout layout = TabBarLayout::OneRow
 for a bar whose caller doesn't keep one
std::vector< int32_t > widths
 by tab index; a hidden tab keeps its last width
int32_t barWidth = 0
 the bar's inner width
int32_t overflowWidth = 0
 the overflow button's width
int32_t trailingWidth = 0
 what the caller adds after the tabs, always shown

Detailed Description

What a tab bar keeps across frames (element data store, by bar ID): its keyboard navigation, and the sizes it measured, in pixels, that decide which tabs fit.

Member Data Documentation

◆ tabCount

int tachyon::TabBarMemory::tabCount = 0

last frame's

◆ focusIndex

int tachyon::TabBarMemory::focusIndex = -1

the tab that takes focus as it's built, after an arrow key

◆ layout

TabBarLayout tachyon::TabBarMemory::layout = TabBarLayout::OneRow

for a bar whose caller doesn't keep one

◆ widths

std::vector<int32_t> tachyon::TabBarMemory::widths

by tab index; a hidden tab keeps its last width

◆ barWidth

int32_t tachyon::TabBarMemory::barWidth = 0

the bar's inner width

◆ overflowWidth

int32_t tachyon::TabBarMemory::overflowWidth = 0

the overflow button's width

◆ trailingWidth

int32_t tachyon::TabBarMemory::trailingWidth = 0

what the caller adds after the tabs, always shown


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