Expand description
CSS 2.1 Appendix E 7-Layer Stacking Context Compositor & Display List Generator.
Structs§
- Compositor
- Compiles a
LayoutNodetree into aDisplayListfollowing CSS 2.1 Appendix E. - Damage
Tracker - Tracks damaged (dirty) screen regions across frames to minimize redraw overhead.
- Display
List - A serialized sequence of render instructions for a single frame.
- Scrollbar
Overlay - Precomputed scrollbar thumb overlay bound to a specific scroll container
LayoutNodesoCompositoremits it inline inside that container’s stacking context and clip bounds.
Enums§
- Draw
Command - Low-level drawing primitives emitted to GPU command buffers.
Functions§
- draw_
text_ paint_ size - Computes a conservative
(width, height)bounding size for aDrawCommand::DrawTextcommand, accounting for explicit newlines and word-wrapping withinbounds_widthso 64x64 dirty-tile hashing, tile culling, and clip culling never underestimate multiline text. - effective_
draw_ text_ line_ height - Resolves a
DrawTextline_heightfield (multiplier if<= 4.0, pixel distance if> 4.0). - layout_
draw_ text_ lines - Breaks and aligns
DrawCommand::DrawTextslices to fitbounds_widthusingchar_advance, returning(x_offset, line_slice)entries and the startingy_offsetfor vertical centering.