Skip to main content

Module flex

Module flex 

Source
Expand description

1-D flex solve for the view! macro (moved from the old framework module::layout).

Pure: a parent Rect plus child specs, nothing else. Free space on the main axis (after padding and gaps) is given to children in proportion to their flex weights. A negative free space does not shrink basis (children may overflow; that is the caller’s layout).

Structs§

FlexChild
One child of a flex solve.

Enums§

FlexDir
Main axis of a flex solve.

Functions§

flex_solve
Solve a 1-D flex layout. One Rect per child, declaration order.