UI module

divider

procedureextensionexperimentalsince 0.31.0Source

Draws and drags the divider between split panes.

Example↗
// split() draws it for you; a custom layout calls it between its own panes
width := 150.0;
for pane: split(.HORIZONTAL, *width) { label("pane"); }

This one is only checked to compile, not run.

divider :: (s: Split, loc := #caller_location)

Draws and drags the divider between split panes.

Parameters

s: Split
the split the divider belongs to.
loc := #caller_location
the call site. It identifies the widget from one frame to the next, so leave the default.
Example↗
// split() draws it for you; a custom layout calls it between its own panes
width := 150.0;
for pane: split(.HORIZONTAL, *width) { label("pane"); }

This one is only checked to compile, not run.

See also