Expand description
Layout and display list creation algorithm, z-index reordering of a CachedDisplayList
Structs§
- Since the display list can take a lot of parameters, we don’t want to continually pass them as parameters of the function and rather use a struct to pass them around. This is purely for ergonomic reasons.
- DisplayRectangle is the main type which the layout parsing step gets operated on.
Enums§
Functions§
- Push a single rectangle into the display list builder
- Returns all node IDs where the children overflow the parent, together with the
(parent_rect, child_rect)
- the child rect is the sum of the children. - Parse a string in the format of “600x100” -> (600, 100)
- Populate the style properties of the
DisplayRectangle
, apply static / dynamic properties - Subtracts the padding from the size, returning the new size