Trait input::RenderEvent [] [src]

pub trait RenderEvent: Sized {
    fn from_render_args(args: &RenderArgs, old_event: &Self) -> Option<Self>;
fn render<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(&RenderArgs) -> U
; fn render_args(&self) -> Option<RenderArgs> { ... } }

When the next frame should be rendered

Required Methods

Creates a render event.

Calls closure if this is a render event.

Provided Methods

Returns render arguments.

Implementors