StructsΒ§
- Desired
Flex πFraction AndGrow OrShrink Factor - 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. See
InitialFlexLineLayout::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 πBoxInline Content Sizes Info - Flex
Item πLayout Result - Return type of
FlexItem::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.
- Initial
Flex πLine Layout - 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Β§
- allocate_
free_ πcross_ space_ for_ flex_ line - Align all flex lines per
align-contentaccording 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. - cross_
axis_ πis_ item_ block_ axis - do_
initial_ πflex_ line_ layout - βCollect flex items into flex linesβ https://drafts.csswg.org/css-flexbox/#algo-line-break
- item_
with_ πauto_ cross_ size_ stretches_ to_ line_ size - Whether an item with a computed preferred cross size of
autowill stretch to fill the cross size of its flex line. https://drafts.csswg.org/css-flexbox/#stretched