Skip to main content

ModifierNodeContext

Trait ModifierNodeContext 

Source
pub trait ModifierNodeContext {
    // Provided methods
    fn invalidate(&mut self, _kind: InvalidationKind) { ... }
    fn request_update(&mut self) { ... }
    fn node_id(&self) -> Option<NodeId> { ... }
    fn push_active_capabilities(&mut self, _capabilities: NodeCapabilities) { ... }
    fn pop_active_capabilities(&mut self) { ... }
}
Expand description

Runtime services exposed to modifier nodes while attached to a tree.

Provided Methods§

Source

fn invalidate(&mut self, _kind: InvalidationKind)

Requests that a particular pipeline stage be invalidated.

Source

fn request_update(&mut self)

Requests that the node’s update method run again outside of a regular composition pass.

Source

fn node_id(&self) -> Option<NodeId>

Returns the ID of the layout node this modifier is attached to, if known. This is used by modifiers that need to register callbacks for invalidation (e.g. Scroll).

Source

fn push_active_capabilities(&mut self, _capabilities: NodeCapabilities)

Signals that a node with capabilities is about to interact with this context.

Source

fn pop_active_capabilities(&mut self)

Signals that the most recent node interaction has completed.

Implementors§