Expand description
Box tree — the intermediate representation between a JSON scenario and
the layout/paint passes. Each node carries a resolved CssStyle, a
discriminator pointing to the source component, and an optional intrinsic
measurement callback (text, image, codeblock, chart, …).
Structs§
- BoxNode
- A renderable box.
kindis opaque to the engine; the painter dispatch downcasts the innerArc<dyn Any>to the concrete component type when invoked. - Paint
Window - Half-open visibility window
[start, end);Nonebounds are unbounded.
Enums§
- Available
Space - CSS available-space hint, mirrored from taffy.
- BoxKind
- Discriminates the source component without coupling the engine to its concrete types.
Traits§
- Intrinsic
Measure - Trait implemented by leaves whose intrinsic size depends on their content. Called by taffy during layout.
Type Aliases§
- NodeId
- Stable identifier for a node within a single layout pass.