#[non_exhaustive]pub enum Fixed {
First(u16),
Second(u16),
}Expand description
An exact size for one child of a Split, overriding
that split’s ratio.
The number is the child’s rendered extent along the split axis (columns
for SplitDir::Vertical, rows for SplitDir::Horizontal) — the size
that comes back from LayoutTree::window_rects, not an allocation the
separator is later taken out of. First(30) and Second(30) both render 30
cells; the extra cell the separator needs is found for you.
This is deliberate: a dock’s width comes from user config, and the caller must never have to add one to compensate for a separator it can’t see.
The request is clamped so the sibling always keeps at least one cell — see
LayoutTree::window_rects for the full geometry contract.
#[non_exhaustive] — additional variants may be added in minor releases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
First(u16)
Render the first (top / left) child at exactly this many cells.
Second(u16)
Render the second (bottom / right) child at exactly this many cells.