UI module

separator

procedureextensionexperimentalsince 0.31.0Source

A horizontal rule in a column (a vertical one in a row).

Example↗
ui := headless();
defer free_ui(*ui);
frame(*ui, *ui, (u: *UI_State) {
    for column() { label("above"); separator(); label("below"); }
});
assert(find_role(*ui, .SEPARATOR) != null);
separator :: (loc := #caller_location)

A horizontal rule in a column (a vertical one in a row).

Parameters

loc := #caller_location
the call site. It identifies the widget from one frame to the next, so leave the default.
Example↗
ui := headless();
defer free_ui(*ui);
frame(*ui, *ui, (u: *UI_State) {
    for column() { label("above"); separator(); label("below"); }
});
assert(find_role(*ui, .SEPARATOR) != null);

See also