Expand description
Layout and display list creation algorithm, z-index reordering of a CachedDisplayList
Structs§
- Cached
Display List - Content
Group - Display
List - Display
List Frame - Display
List Parameters Ref - 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.
- Display
List Scroll Frame - Display
Rectangle - DisplayRectangle is the main type which the layout parsing step gets operated on.
- GlTexture
Cache - Glyph
Instance - Override
Warning - Solved
Layout - Solved
Layout Cache - Style
Border Colors - Style
Border Radius - Style
Border Styles - Style
Border Widths - Style
BoxShadow
Enums§
Functions§
- apply_
style_ property - contains_
rect_ rounded - determine_
rendering_ order - displaylist_
handle_ rect - Push a single rectangle into the display list builder
- fill_
content_ group_ children - get_
nodes_ that_ need_ scroll_ clip - 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. - get_
text - node_
needs_ to_ clip_ children - parse_
display_ list_ size - Parse a string in the format of “600x100” -> (600, 100)
- populate_
css_ properties - Populate the style properties of the
DisplayRectangle
, apply static / dynamic properties - push_
rectangles_ into_ displaylist - sort_
children_ by_ position - subtract_
padding - Subtracts the padding from the size, returning the new size