Expand description
Layout calculation for Row / Column containers.
Provides flex-grow–style weighted splitting, justify (main-axis), and
align (cross-axis) helpers that work on ratatui::layout::Rect.
Functions§
- apply_
align - Position a single item on the cross axis according to an
Alignrule. - apply_
justify - Position items along the main axis according to a
Justifyrule. - flex_
layout - Flexbox-style layout along the main axis.
- padded_
content - Content rect inside the standard 1-cell margin, but guaranteed never to collapse
to zero — so a leaf nested in a tight area (e.g. a
Textlabel inside aButton’s 1-row content area) still renders instead of vanishing. - weighted_
split - Split a
Rectintonsegments based on optional weights.