Trait onyx::Scene
[−]
[src]
pub trait Scene { type Action; fn new(state: &mut State<Self::Action>) -> Self
where
Self: Sized; fn event(&mut self, _event: Event) -> Option<Self::Action> { ... } fn action(
&mut self,
_action: Self::Action,
_state: &mut State<Self::Action>
) -> Transition { ... } fn update(&mut self, _state: &mut State<Self::Action>) -> Transition { ... } }
Associated Types
type Action
Required Methods
Provided Methods
fn event(&mut self, _event: Event) -> Option<Self::Action>
fn action(
&mut self,
_action: Self::Action,
_state: &mut State<Self::Action>
) -> Transition
&mut self,
_action: Self::Action,
_state: &mut State<Self::Action>
) -> Transition