[][src]Trait piston_window::RenderEvent

pub trait RenderEvent {
    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

fn from_render_args(args: &RenderArgs, old_event: &Self) -> Option<Self>

Creates a render event.

fn render<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(&RenderArgs) -> U, 

Calls closure if this is a render event.

Loading content...

Provided methods

fn render_args(&self) -> Option<RenderArgs>

Returns render arguments.

Loading content...

Implementors

impl RenderEvent for Event[src]

fn render_args(&self) -> Option<RenderArgs>[src]

Loading content...