UI module

Headless_Options

structextensionexperimentalsince 0.31.0Source

Options for headless.

Example↗
options := Headless_Options.{ width = 1024, height = 768, scale = 2 };
ui := headless(options);
defer free_ui(*ui);
assert(ui.size.x == 1024);

Fields

width: float
height: float
scale: float
system_fonts: bool
load the platform's fonts instead of fixed-width synthetic ones
theme: Theme_Mode

See also