Expand description
Flexbox layout engine — single-line and multi-line (wrapping).
Computes child rectangles along a main axis with flex-grow distribution,
justify-content main-axis alignment, align-items cross-axis alignment,
and optional multi-line wrapping with align-content cross-axis distribution.
Structs§
- Flex
Item - A flex item: its base (preferred) size plus grow factor.
- Flex
Layout - A flexbox container (single-line or multi-line).
Enums§
- Align
Content - Distribution of multiple lines along the cross axis (analogous to
justify-contentbut for lines, not items). Only applies whenwrap != NoWrapand there is more than one line. - Align
Items - Cross-axis alignment of items within the container.
- Flex
Direction - The direction children are laid out along the main axis.
- Flex
Wrap - Whether and how the flex container wraps its items.
- Justify
Content - Main-axis distribution of free space.