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

#include <gui_core/text/gui_text_system.h>

Public Member Functions

constexpr int2 MinSize () const
constexpr int2 MaxSize () const
constexpr bool IsEmpty () const

Public Attributes

int32_t minWidth = 0
 min-content width: widest unbreakable run; maxWidth when it can't wrap
int32_t maxWidth = 0
 max-content width: the widest line without wrapping
int32_t minHeight = 0
 height of the text laid out at maxWidth
int32_t maxHeight = 0
 same as minHeight

Static Public Attributes

static constexpr int32_t kUnbounded = std::numeric_limits<int32_t>::max()

Member Function Documentation

◆ MinSize()

int2 tachyon::TextMeasurement::MinSize ( ) const
inlineconstexpr

◆ MaxSize()

int2 tachyon::TextMeasurement::MaxSize ( ) const
inlineconstexpr

◆ IsEmpty()

bool tachyon::TextMeasurement::IsEmpty ( ) const
inlineconstexpr

Member Data Documentation

◆ kUnbounded

int32_t tachyon::TextMeasurement::kUnbounded = std::numeric_limits<int32_t>::max()
staticconstexpr

◆ minWidth

int32_t tachyon::TextMeasurement::minWidth = 0

min-content width: widest unbreakable run; maxWidth when it can't wrap

◆ maxWidth

int32_t tachyon::TextMeasurement::maxWidth = 0

max-content width: the widest line without wrapping

◆ minHeight

int32_t tachyon::TextMeasurement::minHeight = 0

height of the text laid out at maxWidth

◆ maxHeight

int32_t tachyon::TextMeasurement::maxHeight = 0

same as minHeight


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