TextRequest struct
#include <GGUI/Public/Layout.h>
Text to measure: what it says and how it is set.
Public static variables
- static float Unlimited constexpr
- MaxWidth: no wrapping.
Public variables
- std::string_view Text
- UTF-8.
- uint64_t ClassID
- style class (HashString of its name); selects font and size. 0 = none
- float MaxWidth
- wrap width in UI units; Unlimited = single line
- float Scale
- physical pixels per UI unit; hinted text measures differently per scale
- uint64_t Font
- font override (hash of its name); 0 = from the class, else the default
- float FontSize
- size override in UI units; 0 = from the class, else the default
- float SizeScale
- the size, however it was chosen, times this (a label shrunk to fit)
- std::span<const TextSpan> Spans
- rich text: its styled parts and inline boxes, in order, not overlapping