engine::node_interface

Structs

NodeInterface

Runtime inspection handle for an expanded node.

Implementations

children
pub fn children(&self) -> Vec<NodeInterface>

Mounted child nodes.

containing_component
pub fn containing_component(&self) -> Option<NodeInterface>

Containing component for template scoping and slot ownership.

engine_id
pub fn engine_id(&self) -> ExpandedNodeIdentifier

Runtime-expanded id for this concrete node.

flattened_projected_children_count
pub fn flattened_projected_children_count(&self) -> Property<usize>

Reactive count of slot children after repeat/conditional flattening.

global_id
pub fn global_id(&self) -> Option<UniqueTemplateNodeIdentifier>

Compiler-global template id for this node, if it originated from a template node.

has_id
pub fn has_id(&self, id: &str) -> bool

Test the template id common property.

instance_flags
pub fn instance_flags(&self) -> InstanceFlags

Static flags from the node's instance.

is_descendant_of
pub fn is_descendant_of(&self, node: &NodeInterface) -> bool

True if this node is below node in the template-parent chain.

is_of_type
pub fn is_of_type<T: ToFromPaxAny>(&self) -> bool

Check whether the node's property object is of type T.

layout_properties
pub fn layout_properties(&self) -> LayoutProperties

Current layout properties after common-property collection.

measured_size
pub fn measured_size(&self) -> Option<(f64, f64)>

Measured bounds reported by a native or text-backed node.

render_parent
pub fn render_parent(&self) -> Option<NodeInterface>

Parent in render traversal order.

subtree_layout_hull
pub fn subtree_layout_hull(&self) -> Property<LayoutHull>

Node-local subtree hull published by the engine for container measurement.

template_parent
pub fn template_parent(&self) -> Option<NodeInterface>

Parent in template ownership order.

transform_and_bounds
pub fn transform_and_bounds(&self) -> Property<TransformAndBounds<NodeLocal, Window>>

Reactive transform-and-bounds property for this node.

with_properties
pub fn with_properties<V, T: ToFromPaxAny>(&self, f: impl FnOnce(&mut T) -> V) -> Option<V>

Borrow the node's typed property object if it has the requested type.


NodeLocal

Marker coordinate space for a node's local layout space.