pub enum SceneLayer {
Under,
Over,
}Expand description
Which paint band a lightweight SceneItem sits in, relative to
the heavyweight widget tier.
A SceneView paints in three passes: lightweight Under items
(its paint, a backdrop), then the heavyweight widget children
(the arena child-walk), then lightweight Over items (its
post_paint, a foreground). Within each band, z still orders
items among themselves.
This is a binary band, not a continuous z across the tiers, because
the render walker offers exactly two lightweight paint positions
(before and after the child subtree). The heavyweight tier is one
contiguous block in between — to interleave a lightweight item
between two specific heavyweight nodes you must promote it to a
heavyweight widget. Under is the default (background furniture:
connectors, grids, decorations); Over is for foreground overlays
that must sit above the cards (selection halos, highlighted edges).
Variants§
Under
Painted under the heavyweight widget children (the default).
Over
Painted over the heavyweight widget children.
Trait Implementations§
Source§impl Clone for SceneLayer
impl Clone for SceneLayer
Source§fn clone(&self) -> SceneLayer
fn clone(&self) -> SceneLayer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SceneLayer
Source§impl Debug for SceneLayer
impl Debug for SceneLayer
Source§impl Default for SceneLayer
impl Default for SceneLayer
Source§fn default() -> SceneLayer
fn default() -> SceneLayer
impl Eq for SceneLayer
Source§impl PartialEq for SceneLayer
impl PartialEq for SceneLayer
Source§fn eq(&self, other: &SceneLayer) -> bool
fn eq(&self, other: &SceneLayer) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SceneLayer
Auto Trait Implementations§
impl Freeze for SceneLayer
impl RefUnwindSafe for SceneLayer
impl Send for SceneLayer
impl Sync for SceneLayer
impl Unpin for SceneLayer
impl UnsafeUnpin for SceneLayer
impl UnwindSafe for SceneLayer
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more