Struct ggez_goodies::scene::SceneStack [] [src]

pub struct SceneStack<C, Ev> {
    pub world: C,
    // some fields omitted
}

A stack of Scene's, together with a context object.

Fields

Methods

impl<C, Ev> SceneStack<C, Ev>
[src]

[src]

[src]

Add a new scene to the top of the stack.

[src]

Remove the top scene from the stack and returns it; panics if there is none.

[src]

Returns the current scene; panics if there is none.

[src]

Executes the given SceneSwitch command; if it is a pop or replace it returns Some(old_scene), otherwise None

[src]

[src]

Draw the current scene.

[src]

Feeds the given input event to the current scene.

Trait Implementations

Auto Trait Implementations

impl<C, Ev> !Send for SceneStack<C, Ev>

impl<C, Ev> !Sync for SceneStack<C, Ev>