Module layout_2020::flexbox::layout
source · Structs§
- Final
Flex πLine Layout Once the final cross size of a line is known, the line can go through their final layout and this the return value. SeeInitialFlexLineLayout::finish_with_final_cross_size
. - Flex
Context πLayout parameters and intermediate results about a flex container, grouped to avoid passing around many parameters - Flex
Item πA flex item with some intermediate results - Flex
Item πLayout Result Return type ofFlexItem::layout
- Flex
Line πItem A data structure to hold all of the information about a flex item that has been placed into a flex line. This happens once the item is laid out and its line has been determined. - The result of splitting the flex items into lines using their intrinsic sizes and doing an initial layout of each item. A final layout still needs to happen after this is produced to handle stretching.
Enums§
- Flex
Content πChild of a FlexContainer. Can either be absolutely positioned, or not. If not, a placeholder is used and flex content is stored outside of this enum.
Functions§
- Align all flex lines per
align-content
according to https://drafts.csswg.org/css-flexbox/#algo-line-align. Returns the space to add to each line or the space to add after each line. - βCollect flex items into flex linesβ https://drafts.csswg.org/css-flexbox/#algo-line-break
- Whether an item with an
auto
preferred cross size will stretched to fill the cross size of its flex line. https://drafts.csswg.org/css-flexbox/#stretched