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

How a text block is laid out in its box; shared by all states of a Style. More...

#include <gui_core/style/gui_style_text.h>

Public Member Functions

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

Public Attributes

TextDirection textDirection = TextDirection::Auto
 CSS: direction.
TextWrap textWrapping = TextWrap::NoWrap
 CSS: text-wrap.
TextAlign horizontalAlignment = TextAlign::Start
 CSS: text-align.
TextAlign verticalAlignment = TextAlign::Start
 Vertical position of the text (+ icon) block in its box; only Start / Center / End (and their aliases) apply.
TextBaseline baseline = TextBaseline::Alphabetic
 CSS: -tachyon-text-baseline, dominant-baseline or vertical-align.
TextOverflow textOverflow = TextOverflow::Clip
 CSS: text-overflow.
WordWrap wrapMode = WordWrap::Normal
 not read by the text system; see textWrapping
VerticalTrim verticalTrim = VerticalTrim::Default
 CSS: -tachyon-vertical-trim.

Detailed Description

How a text block is laid out in its box; shared by all states of a Style.

Member Function Documentation

◆ GetHashCode()

uint64_t tachyon::TextLayoutStyle::GetHashCode ( ) const
noexcept

◆ operator==()

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

Member Data Documentation

◆ textDirection

TextDirection tachyon::TextLayoutStyle::textDirection = TextDirection::Auto

CSS: direction.

◆ textWrapping

TextWrap tachyon::TextLayoutStyle::textWrapping = TextWrap::NoWrap

CSS: text-wrap.

◆ horizontalAlignment

TextAlign tachyon::TextLayoutStyle::horizontalAlignment = TextAlign::Start

CSS: text-align.

◆ verticalAlignment

TextAlign tachyon::TextLayoutStyle::verticalAlignment = TextAlign::Start

Vertical position of the text (+ icon) block in its box; only Start / Center / End (and their aliases) apply.

CSS: -tachyon-vertical-text-align.

◆ baseline

TextBaseline tachyon::TextLayoutStyle::baseline = TextBaseline::Alphabetic

CSS: -tachyon-text-baseline, dominant-baseline or vertical-align.

◆ textOverflow

TextOverflow tachyon::TextLayoutStyle::textOverflow = TextOverflow::Clip

CSS: text-overflow.

◆ wrapMode

WordWrap tachyon::TextLayoutStyle::wrapMode = WordWrap::Normal

not read by the text system; see textWrapping

◆ verticalTrim

VerticalTrim tachyon::TextLayoutStyle::verticalTrim = VerticalTrim::Default

CSS: -tachyon-vertical-trim.


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