Trait event::RenderEvent
[−]
[src]
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.
Provided Methods
fn render_args(&self) -> Option<RenderArgs>
Returns render arguments.
Implementors
impl<T: GenericEvent> RenderEvent for T