Skip to main content

Module legacy_dispatch

Module legacy_dispatch 

Source
Expand description

Paint dispatcher for the new paint_tree pipeline. Bridges from the taffy-laid-out BoxNode tree back to component-typed Painter impls.

Naming kept as “legacy” for now to avoid churn in callers; this is the sole dispatcher in use since all 51 components implement Painter.

Containers (Card / Flex / Grid / Container / Positioned) are intentionally skipped: paint_pass already paints their box decorations and recurses into children — so calling the container’s own paint_content would do nothing anyway, and we save a no-op call.

Structs§

LegacyPaintDispatcher
Maps NodeIds to ChildComponents and dispatches paint to their Painter::paint_content impls.