Skip to main content

SpatialNodeContainer

Trait SpatialNodeContainer 

Source
pub trait SpatialNodeContainer {
    // Required method
    fn get_node_info(&self, index: SpatialNodeIndex) -> SpatialNodeInfo<'_>;

    // Provided method
    fn get_snapping_info(
        &self,
        parent_index: Option<SpatialNodeIndex>,
    ) -> Option<ScaleOffset> { ... }
}
Expand description

Allows functions and methods to retrieve common information about a spatial node, whether during scene or frame building

Required Methods§

Source

fn get_node_info(&self, index: SpatialNodeIndex) -> SpatialNodeInfo<'_>

Get the common information for a given spatial node

Provided Methods§

Implementors§