GGUI::TextSpan struct

Part of a paragraph styled apart from the rest, or an inline box: what rich text is made of.

Public variables

uint32_t Start
the first byte of the request's text it covers
uint32_t End
one past its last byte
uint64_t Font
font (hash of its name); 0: the paragraph's
float FontSize
UI units; 0: the paragraph's.
float PadLeft
room before it, UI units: a key cap's
float PadRight
float BoxAspect
More than 0: an inline box (an image) this many times as wide as it is high, as high as a line of its font. Its text is one U+FFFC.

Friends

auto operator==(const TextSpan&, const TextSpan&) -> bool defaulted
every member equal

Variable documentation

float GGUI::TextSpan::PadRight

room after it, UI units