pub struct NodeInternalsController<'a> { /* private fields */ }Expand description
Adapter-facing facade for node-internal geometry lifecycle updates.
This is the headless equivalent of toolkits such as React Flow asking users to update node internals after handles or child widgets move. It keeps the runtime contract explicit while avoiding duplicated adapter code for “mark dirty, report real geometry, query status”.
Implementations§
Source§impl<'a> NodeInternalsController<'a>
impl<'a> NodeInternalsController<'a>
Sourcepub fn invalidate(
&mut self,
invalidation: NodeInternalsInvalidation,
) -> NodeMeasurementOutcome
pub fn invalidate( &mut self, invalidation: NodeInternalsInvalidation, ) -> NodeMeasurementOutcome
Marks one or more node internals dirty until the adapter reports fresh geometry.
Sourcepub fn invalidate_one(
&mut self,
node: NodeId,
reason: NodeInternalsInvalidationReason,
) -> NodeMeasurementOutcome
pub fn invalidate_one( &mut self, node: NodeId, reason: NodeInternalsInvalidationReason, ) -> NodeMeasurementOutcome
Marks a single node dirty until the adapter reports fresh geometry.
Sourcepub fn report(
&mut self,
measurement: NodeMeasurement,
) -> Result<NodeMeasurementOutcome, NodeMeasurementError>
pub fn report( &mut self, measurement: NodeMeasurement, ) -> Result<NodeMeasurementOutcome, NodeMeasurementError>
Reports freshly measured node internals from adapter widget/layout geometry.
Sourcepub fn status(&self, node: NodeId) -> NodeMeasurementStatus
pub fn status(&self, node: NodeId) -> NodeMeasurementStatus
Returns whether the latest geometry facts are fresh, dirty, or missing.
Sourcepub fn resolve_handle(
&self,
handle: ConnectionHandleRef,
) -> NodeHandleMeasurementResolution
pub fn resolve_handle( &self, handle: ConnectionHandleRef, ) -> NodeHandleMeasurementResolution
Resolves local handle geometry from the latest fresh measurement facts.
Sourcepub fn layout_facts(&self, viewport_size: CanvasSize) -> LayoutFactsQueryResult
pub fn layout_facts(&self, viewport_size: CanvasSize) -> LayoutFactsQueryResult
Reads the adapter-facing layout facts after dirty/fresh state has been applied.