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

One text decoration line (underline, overline, ...). More...

#include <gui_core/style/gui_style_text.h>

Public Member Functions

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

Public Attributes

uint16_t thickness = 0
 line thickness in CSS px; 0 = no line
uint16_t offset = 0
 CSS px from the default position; grows down for under / bottom lines, up otherwise.
DecorationStyle style = DecorationStyle::Solid
 line style

Detailed Description

One text decoration line (underline, overline, ...).

Drawn only when thickness > 0. CSS: text-<under|over|through|bottom>line-<thickness|offset|style>; its color is StyleState::decorationColors.

Member Function Documentation

◆ GetHashCode()

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

◆ operator==()

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

Member Data Documentation

◆ thickness

uint16_t tachyon::TextDecoration::thickness = 0

line thickness in CSS px; 0 = no line

◆ offset

uint16_t tachyon::TextDecoration::offset = 0

CSS px from the default position; grows down for under / bottom lines, up otherwise.

◆ style

DecorationStyle tachyon::TextDecoration::style = DecorationStyle::Solid

line style


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