Text_Options
structextensionexperimentalsince 0.31.0Source
Options for text: all optional.
ui := headless();
defer free_ui(*ui);
frame(*ui, *ui, (u: *UI_State) {
label("big and quiet", .{ size = 24, muted = true });
});
assert(find_role(*ui, .TEXT).text_style.size == 24);
Fields
- size: float
- points; 0 is the theme's size
- color: Color
- alpha 0 is the theme's text colour
- grow: float
- muted: bool
- use the theme's muted text colour
- padding: float