Skip to main content

Module dock

Module dock 

Source
Expand description

Docking sides, thickness resolution, and preview rectangles.

Structs§

DockStyle
Docking configuration for a set of children.

Enums§

Dock
Side of a container a child is docked to.

Functions§

dock_layout_order
Returns the order in which docked children should be laid out.
dock_preview_rect
Returns the rectangle a docked side would occupy for the given frac.
dock_thickness
Resolves the thickness of a docked side.
effective_dock
Returns the dock for index, honouring last_child_fill.
resolve_dock
Resolves the dock for a child according to the layout mode.
sanitize_frac
Clamps a split fraction to 0.0..=1.0; non-finite values become 0.5.
sanitize_gap
Clamps a gap to a finite, non-negative value.
sanitize_preview_frac
Clamps a preview fraction to 0.15..=0.85; non-finite values become 0.5.
split_axis_for_dock
Returns the split axis for a dock and whether the docked child comes first.