pub struct InstanceFlags {
pub invisible_to_slot: bool,
pub invisible_to_raycasting: bool,
pub layer: Layer,
pub is_component: bool,
}
Fields§
§invisible_to_slot: bool
Used for exotic tree traversals for Slot
, e.g. for Stacker
> Repeat
> Rectangle
where the repeated Rectangle
s need to be be considered direct children of Stacker
.
Repeat
and Conditional
override is_invisible_to_slot
to return true
invisible_to_raycasting: bool
Certain 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: Layer
The layer type (Layer::Native
or Layer::Canvas
) for this RenderNode.
Default is Layer::Canvas
, and must be overwritten for InstanceNode
s that manage native
content.
is_component: bool
Only true for ComponentInstance
Auto Trait Implementations§
impl Freeze for InstanceFlags
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.