Trait conrod::backend::piston::event::UpdateEvent
[−]
[src]
pub trait UpdateEvent { fn from_update_args(args: &UpdateArgs, old_event: &Self) -> Option<Self>; fn update<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(&UpdateArgs) -> U; fn from_dt(dt: f64, old_event: &Self) -> Option<Self> { ... } fn update_args(&self) -> Option<UpdateArgs> { ... } }
When the application state should be updated
Required Methods
fn from_update_args(args: &UpdateArgs, old_event: &Self) -> Option<Self>
Creates an update event.
fn update<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&UpdateArgs) -> U,
F: FnMut(&UpdateArgs) -> U,
Calls closure if this is an update event.
Provided Methods
fn from_dt(dt: f64, old_event: &Self) -> Option<Self>
Creates an update event with delta time.
fn update_args(&self) -> Option<UpdateArgs>
Returns update arguments.
Implementations on Foreign Types
impl<I> UpdateEvent for Event<I> where
I: GenericEvent,
[src]
I: GenericEvent,
fn from_update_args(
args: &UpdateArgs,
_old_event: &Event<I>
) -> Option<Event<I>>
[src]
args: &UpdateArgs,
_old_event: &Event<I>
) -> Option<Event<I>>
fn update<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&UpdateArgs) -> U,
[src]
F: FnMut(&UpdateArgs) -> U,
fn from_dt(dt: f64, old_event: &Self) -> Option<Self>
[src]
fn update_args(&self) -> Option<UpdateArgs>
[src]
Implementors
impl UpdateEvent for Input