Skip to main content

Module splitter

Module splitter 

Source
Expand description

A draggable pane separator (the DOM “dragger”): a thin line with a wider grab strip. A press on the strip starts the drag; while the button is held the pane edge follows the pointer (the engine captures the pointer for the drag-sensitive strip); the release ends it. The app owns the sizes, the splitter only reports where the edge should go.

Structs§

Splitter
Per-separator drag state.

Enums§

Axis
The direction the separator moves in.
SplitterEvent
What a frame of the splitter yields.

Functions§

grab_rect
The grab strip of a line at pos across span (grab px wide, centred on the 1 px line, like the 9 px .rz hit of a 1 px border).
register
Register the grab strip (a drag-sensitive Splitter, resize cursor).