Struct pax_runtime::rendering::InstanceFlags
source · pub struct InstanceFlags {
pub invisible_to_slot: bool,
pub invisible_to_raycasting: bool,
pub layer: Layer,
pub is_component: bool,
}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 override is_invisible_to_slot to return true
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 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
Auto Trait Implementations§
impl RefUnwindSafe for InstanceFlags
impl Send for InstanceFlags
impl Sync for InstanceFlags
impl Unpin for InstanceFlags
impl UnwindSafe for InstanceFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.