25 enum class Align : uint8_t { Left, Center, Right, Count };
26 enum class VAlign : uint8_t { Top, Middle, Bottom, Count };
31 std::string
font = DEFAULT_UI_FONT;
33 glm::vec4
color = {1.0f, 1.0f, 1.0f, 1.0f};
Text drawn within its element's rect, on as many lines as it breaks into.
Definition ui_text.h:24
std::string text
UTF-8; what the font does not cover draws nothing.
Definition ui_text.h:29
std::string font
Baked SDF font asset name; nothing draws if unresolved.
Definition ui_text.h:31
float pixelSize
Text height in canvas reference pixels.
Definition ui_text.h:32
Align align
Horizontal alignment within the element rect.
Definition ui_text.h:34
glm::vec4 color
Straight (non-premultiplied) RGBA.
Definition ui_text.h:33
VAlign valign
Vertical alignment within the element rect.
Definition ui_text.h:35
bool wrap
Whether a line too wide for the element rect breaks onto the next.
Definition ui_text.h:40