[][src]Trait piston_window::UpdateEvent

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

Creates an update event.

Calls closure if this is an update event.

Provided Methods

Creates an update event with delta time.

Returns update arguments.

Implementors

impl UpdateEvent for Event
[src]