pub struct SceneList {
pub scenes: Vec<Box<dyn Scene>>,
/* private fields */
}
Expand description
A list of scenes that are showed in order. When the current scene’s action is Action::Done
the next scene is loaded.
Fields§
§scenes: Vec<Box<dyn Scene>>
The list of scenes
Implementations§
Trait Implementations§
Source§impl Scene for SceneList
impl Scene for SceneList
Source§fn draw(&self, canvas: &mut Canvas<Window>, settings: DrawSettings)
fn draw(&self, canvas: &mut Canvas<Window>, settings: DrawSettings)
Draw the content of this scene to a
Canvas
.Source§fn register(&mut self)
fn register(&mut self)
Register everything. The scene equivalent of
Drawable::register
Source§fn load(&mut self)
fn load(&mut self)
Load everything. The scene equivalent of
Drawable::load
Auto Trait Implementations§
impl Freeze for SceneList
impl !RefUnwindSafe for SceneList
impl Send for SceneList
impl !Sync for SceneList
impl Unpin for SceneList
impl !UnwindSafe for SceneList
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> 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>
Converts
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>
Converts
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