pub struct Scene2D {
pub inner: Component,
pub shown: Signal0,
pub hidden: Signal0,
pub opaque: bool,
}
Expand description
Optional, extra functionality for scene entities that are added to a Director.
Fields
inner: Component
shown: Signal0
Emitted by the Director when this scene becomes the top scene.
Emitted by the Director when this scene is no longer the top scene.
opaque: bool
When true, hints that scenes below this one don’t need to be rendered. Scenes that don’t fill the entire stage or have a transparent background should set this to false.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Scene2D
impl !Send for Scene2D
impl !Sync for Scene2D
impl Unpin for Scene2D
impl !UnwindSafe for Scene2D
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.