Skip to main content

NodeInternalsController

Struct NodeInternalsController 

Source
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>

Source

pub fn invalidate( &mut self, invalidation: NodeInternalsInvalidation, ) -> NodeMeasurementOutcome

Marks one or more node internals dirty until the adapter reports fresh geometry.

Source

pub fn invalidate_one( &mut self, node: NodeId, reason: NodeInternalsInvalidationReason, ) -> NodeMeasurementOutcome

Marks a single node dirty until the adapter reports fresh geometry.

Source

pub fn report( &mut self, measurement: NodeMeasurement, ) -> Result<NodeMeasurementOutcome, NodeMeasurementError>

Reports freshly measured node internals from adapter widget/layout geometry.

Source

pub fn status(&self, node: NodeId) -> NodeMeasurementStatus

Returns whether the latest geometry facts are fresh, dirty, or missing.

Source

pub fn resolve_handle( &self, handle: ConnectionHandleRef, ) -> NodeHandleMeasurementResolution

Resolves local handle geometry from the latest fresh measurement facts.

Source

pub fn layout_facts(&self, viewport_size: CanvasSize) -> LayoutFactsQueryResult

Reads the adapter-facing layout facts after dirty/fresh state has been applied.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.