Module layout_2020::flexbox::layout
source · Structs§
- FinalFlexLineLayout πOnce the final cross size of a line is known, the line can go through their final layout and this the return value. See
InitialFlexLineLayout::finish_with_final_cross_size
. - FlexContext πLayout parameters and intermediate results about a flex container, grouped to avoid passing around many parameters
- FlexItem πA flex item with some intermediate results
- FlexItemLayoutResult πReturn type of
FlexItem::layout
- FlexLineItem π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§
- FlexContent π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