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

Shared by all labels in a group, so the edge highlight is synchronized. More...

#include <gui_controls/gui_default_handlers.h>

Public Attributes

int32_t * sharedWidth
 the group's label width, CSS px
int32_t minWidth
 CSS px.
int32_t maxWidth
 CSS px.
bool * edgeHovered
 a label's resize edge is hovered
bool * edgeDragging
 a label's resize edge is being dragged
std::vector< TextID > * labelTextIDs
 for double-click auto-size
ITextSystem * textSystem
 for measuring label text widths
const StyleManager * styleManager
 for resolving label padding
StyleRef labelStyleRef

Detailed Description

Shared by all labels in a group, so the edge highlight is synchronized.

Member Data Documentation

◆ sharedWidth

int32_t* tachyon::LabelGroupVisualState::sharedWidth

the group's label width, CSS px

◆ minWidth

int32_t tachyon::LabelGroupVisualState::minWidth

CSS px.

◆ maxWidth

int32_t tachyon::LabelGroupVisualState::maxWidth

CSS px.

◆ edgeHovered

bool* tachyon::LabelGroupVisualState::edgeHovered

a label's resize edge is hovered

◆ edgeDragging

bool* tachyon::LabelGroupVisualState::edgeDragging

a label's resize edge is being dragged

◆ labelTextIDs

std::vector<TextID>* tachyon::LabelGroupVisualState::labelTextIDs

for double-click auto-size

◆ textSystem

ITextSystem* tachyon::LabelGroupVisualState::textSystem

for measuring label text widths

◆ styleManager

const StyleManager* tachyon::LabelGroupVisualState::styleManager

for resolving label padding

◆ labelStyleRef

StyleRef tachyon::LabelGroupVisualState::labelStyleRef

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