A horizontal rule in a column (a vertical one in a row).
- loc: the call site. It identifies the widget from one frame to the next, so leave the default.
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.
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);