pub struct InstanceFlags {
pub invisible_to_slot: bool,
pub invisible_to_raycasting: bool,
pub layer: Layer,
pub is_component: bool,
pub is_slot: bool,
}Expand description
Static traversal/rendering flags for a concrete instance node.
Fields§
§invisible_to_slot: boolUsed for exotic tree traversals for Slot, e.g. for Stacker > Repeat > Rectangle
where the repeated Rectangles need to be be considered direct children of Stacker.
Repeat and Conditional set this true so their active children can be
considered direct projected children by slot-driven containers.
invisible_to_raycasting: boolCertain elements, such as Groups and Components, are invisible to ray-casting. Since these container elements are on top of the elements they contain, this is needed otherwise the containers would intercept rays that should hit their contents.
layer: LayerThe layer type (Layer::Native, Layer::NativeNonOccluding, or Layer::Canvas)
for this RenderNode.
Default is Layer::Canvas, and must be overwritten for InstanceNodes that manage native
content.
is_component: boolOnly true for ComponentInstance
is_slot: boolIs this node a Slot?
Trait Implementations§
Source§impl Clone for InstanceFlags
impl Clone for InstanceFlags
Source§fn clone(&self) -> InstanceFlags
fn clone(&self) -> InstanceFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more