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
fn from_render_args(args: &RenderArgs, old_event: &Self) -> Option<Self>
[src]
Creates a render event.
fn render<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&RenderArgs) -> U,
[src]
F: FnMut(&RenderArgs) -> U,
Calls closure if this is a render event.
Provided methods
fn render_args(&self) -> Option<RenderArgs>
[src]
Returns render arguments.
Implementors
impl RenderEvent for Event
[src]
fn from_render_args(args: &RenderArgs, _old_event: &Self) -> Option<Self>
[src]
fn render<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&RenderArgs) -> U,
[src]
F: FnMut(&RenderArgs) -> U,