UI module

Draw_Kind

enumextensionexperimentalsince 0.31.0Source

What a display list entry draws.

Example↗
ui := headless();
defer free_ui(*ui);
draw_rect(*ui, .{ 0, 0, 10, 10 }, rgb(255, 0, 0));
assert(ui.draw.cmds[0].kind == .RECT);

Members

RECT
a filled, optionally rounded and bordered rectangle
GLYPH
a quad sampling the glyph atlas, tinted with color
CLIP
sets the clip rectangle for what follows

See also