Skip to main content

Module box_tree

Module box_tree 

Source
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. kind is opaque to the engine; the painter dispatch downcasts the inner Arc<dyn Any> to the concrete component type when invoked.
PaintWindow
Half-open visibility window [start, end); None bounds are unbounded.

Enums§

AvailableSpace
CSS available-space hint, mirrored from taffy.
BoxKind
Discriminates the source component without coupling the engine to its concrete types.

Traits§

IntrinsicMeasure
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.