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
sourceimpl Scene for SceneList
impl Scene for SceneList
sourcefn 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
.sourcefn register(&mut self)
fn register(&mut self)
Register everything. The scene equivalent of
Drawable::register
Read moresourcefn load(&mut self)
fn load(&mut self)
Load everything. The scene equivalent of
Drawable::load
Read moreAuto Trait Implementations
impl !RefUnwindSafe for SceneList
impl Send for SceneList
impl !Sync for SceneList
impl Unpin for SceneList
impl !UnwindSafe for SceneList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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