|
| static int2 | ClampScrollOffsetToContent (int2 childOffset, const ElementRect &parent) |
| static int2 | CalculateLeafSize (ITextSystem &textSystem, const Element &element, const ElementRect &elementRect, int32_t &minContentWidth) |
| | A leaf's MARGIN BOX at its natural (max-content) size.
|
| static int32_t | RecalculateContentHeight (ITextSystem &textSystem, const Element &element, const ElementRect &elementRect) |
| static void | ApplyHorizontalStyleSize (ElementRect &elementRect, const int32_t contentWidth) |
| static void | ApplyVerticalStyleSize (ElementRect &elementRect, const int32_t contentHeight) |
| static void | ApplyHorizontalStyleOffset (ElementRect &elementRect) |
| static void | ApplyVerticalStyleOffset (ElementRect &elementRect) |
| static void | ApplyHorizontalPositionConstraints (OSWindowManager &osWindowManager, ElementStorage &storage, ElementRect &elementRect, const ElementRef &elementRef) |
| static void | ApplyVerticalPositionConstraints (OSWindowManager &osWindowManager, ElementStorage &storage, ElementRect &elementRect, const ElementRef &elementRef) |
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | CalcLayoutAdd (std::span< const ElementRect > childRects, int32_t &count) |
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | FlexMinSize (const ElementRect &c) |
| | The smallest margin-box size an item may be flexed to on axis: its CSS min (border box) plus its margin, and never below its own chrome (margin + border + padding, which would give a negative border box) or, horizontally, its minContentWidth.
|
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | FlexMaxSize (const ElementRect &c) |
| | The largest margin-box size an item may be flexed to on axis: its CSS max plus its margin (kUnbounded when unset), never below FlexMinSize.
|
template<int axis>
requires (axis == 0 || axis == 1) |
| static void | ApplyFlexBasis (std::span< ElementRect > items) |
| | Sets each in-flow item's size on axis to its flex-basis, the starting main size before free space is shared out.
|
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | ResolveFlexibleLengths (std::span< ElementRect > items, int32_t freeSpace) |
| | Resolves flexible lengths on axis (CSS "resolve flexible lengths"): positive freeSpace grows the in-flow items by flex-grow, negative shrinks them by flex-shrink x size.
|
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | CalcLayoutMax (std::span< const ElementRect > childRects) |
template<int axis>
requires (axis == 0 || axis == 1) |
| static void | Place (std::span< ElementRect > childRects, int32_t start, int32_t spacing) |
template<int axis>
requires (axis == 0 || axis == 1) |
| static int32_t | FixedContentSize (const ElementRect &rect) |
| | Content size along axis of an element with a fixed size on that axis.
|
template<int axis>
requires (axis == 0 || axis == 1) |
| static void | ReversePlace (std::span< ElementRect > childRects, int32_t start, int32_t spacing) |
template<int axis, bool reverse>
requires (axis == 0 || axis == 1) |
| static void | JustifyChildren (std::span< ElementRect > childRects, JustifyContent justify, int16_t gap, const IntRect &parentContentRect, int totalContentSize, int totalChildrenInFlow) |
| | Positions the children on the main axis per justify.
|
| static JustifySpacing | Justify (JustifyContent justify, int32_t freeSpace, int16_t gap, int count) |
template<int axis>
requires (axis == 0 || axis == 1) |
| static void | Align (AlignItems align, const IntRect &parentContentRect, ElementRect &childRect) |