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

The text part of one state of a registered Style, in pixels. More...

#include <gui_core/style/gui_style.h>

Public Member Functions

uint64_t GetHashCode () const noexcept
bool operator== (const VisualTextStyle &other) const noexcept

Public Attributes

TextStyle textStyle {}
 in pixels
VisualColorStyleIndex textColorIndex = VisualColorStyleIndex::Invalid
 registered text color
VisualColorStyleIndex iconColorIndex = VisualColorStyleIndex::Invalid
 the text color unless set
VisualColorStyleIndex decorationColorIndex [4]
 Per DecorationLine; the text color unless set.
uint16_t iconTextGap = 0
 space between icon and text, pixels
uint16_t iconSize = 0
 icon size in pixels; 0 = its natural size
int16_t iconOffsetY = 0
 vertical nudge of the icon in pixels; positive = up
IconSide iconSide = IconSide::Left
 see Style::iconSide
VisualShadow textShadows [kMaxTextShadows] {}
 see StyleState::textShadow

Detailed Description

The text part of one state of a registered Style, in pixels.

How the text block sits in its box is LayoutStyle::textLayoutStyle.

Member Function Documentation

◆ GetHashCode()

uint64_t tachyon::VisualTextStyle::GetHashCode ( ) const
inlinenoexcept

◆ operator==()

bool tachyon::VisualTextStyle::operator== ( const VisualTextStyle & other) const
inlinenoexcept

Member Data Documentation

◆ textStyle

TextStyle tachyon::VisualTextStyle::textStyle {}

in pixels

◆ textColorIndex

VisualColorStyleIndex tachyon::VisualTextStyle::textColorIndex = VisualColorStyleIndex::Invalid

registered text color

◆ iconColorIndex

VisualColorStyleIndex tachyon::VisualTextStyle::iconColorIndex = VisualColorStyleIndex::Invalid

the text color unless set

◆ decorationColorIndex

VisualColorStyleIndex tachyon::VisualTextStyle::decorationColorIndex[4]

◆ iconTextGap

uint16_t tachyon::VisualTextStyle::iconTextGap = 0

space between icon and text, pixels

◆ iconSize

uint16_t tachyon::VisualTextStyle::iconSize = 0

icon size in pixels; 0 = its natural size

◆ iconOffsetY

int16_t tachyon::VisualTextStyle::iconOffsetY = 0

vertical nudge of the icon in pixels; positive = up

◆ iconSide

IconSide tachyon::VisualTextStyle::iconSide = IconSide::Left

◆ textShadows

VisualShadow tachyon::VisualTextStyle::textShadows[kMaxTextShadows] {}

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