Expand description
Docking sides, thickness resolution, and preview rectangles.
Structs§
- Dock
Style - 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, honouringlast_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 become0.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 become0.5. - split_
axis_ for_ dock - Returns the split axis for a dock and whether the docked child comes first.