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

A registered style, as StyleManager::Register returns it: indices into the shared style pools, cheap to copy. More...

#include <gui_core/style/gui_style_ref.h>

Public Member Functions

bool operator== (const StyleRef &rhs) const
bool operator!= (const StyleRef &rhs) const

Static Public Member Functions

static constexpr StyleRef Invalid ()
 A reference to no style (all indices Invalid).

Public Attributes

LayoutStyleIndex layoutStyleIndex = LayoutStyleIndex::Invalid
 Index into layout style pool.
VisualBoxStyleIndex visualBoxStyleIndex = VisualBoxStyleIndex::Invalid
 Index into visual box style pool.
VisualTextStyleIndex visualTextStyleIndex = VisualTextStyleIndex::Invalid
 Index into visual text style pool.

Detailed Description

A registered style, as StyleManager::Register returns it: indices into the shared style pools, cheap to copy.

A theme reload (StyleManager::ClearAll) invalidates it.

Member Function Documentation

◆ Invalid()

constexpr StyleRef tachyon::StyleRef::Invalid ( )
inlinestaticconstexpr

A reference to no style (all indices Invalid).

◆ operator==()

bool tachyon::StyleRef::operator== ( const StyleRef & rhs) const
inline

◆ operator!=()

bool tachyon::StyleRef::operator!= ( const StyleRef & rhs) const
inline

Member Data Documentation

◆ layoutStyleIndex

LayoutStyleIndex tachyon::StyleRef::layoutStyleIndex = LayoutStyleIndex::Invalid

Index into layout style pool.

◆ visualBoxStyleIndex

VisualBoxStyleIndex tachyon::StyleRef::visualBoxStyleIndex = VisualBoxStyleIndex::Invalid

Index into visual box style pool.

◆ visualTextStyleIndex

VisualTextStyleIndex tachyon::StyleRef::visualTextStyleIndex = VisualTextStyleIndex::Invalid

Index into visual text style pool.


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