Skip to main content

Module layout

Module layout 

Source
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§

FlexItem
A flex item: its base (preferred) size plus grow factor.
FlexLayout
A flexbox container (single-line or multi-line).

Enums§

AlignContent
Distribution of multiple lines along the cross axis (analogous to justify-content but for lines, not items). Only applies when wrap != NoWrap and there is more than one line.
AlignItems
Cross-axis alignment of items within the container.
FlexDirection
The direction children are laid out along the main axis.
FlexWrap
Whether and how the flex container wraps its items.
JustifyContent
Main-axis distribution of free space.