Skip to main content

Module coordinator

Module coordinator 

Source
Expand description

Node coordinator system mirroring Jetpack Compose’s NodeCoordinator pattern.

Coordinators wrap modifier nodes and form a chain that drives measurement, placement, drawing, and hit testing. Each LayoutModifierNode gets its own coordinator instance that persists across recomposition, enabling proper state and invalidation tracking.

Content Offset Tracking: Each coordinator contributes its placement offset to a shared accumulator during measurement. The final content_offset() is read from this accumulator via the outermost CoordinatorPlaceable.

Structs§

InnerCoordinator
Inner coordinator that wraps the layout node’s intrinsic content (MeasurePolicy).
LayoutModifierCoordinator
Coordinator that wraps a single LayoutModifierNode from the reconciled chain.

Traits§

NodeCoordinator
Core coordinator trait that all coordinators implement.