Trait piston::AfterRenderEvent [−][src]
pub trait AfterRenderEvent { pub fn from_after_render_args(
args: &AfterRenderArgs,
old_event: &Self
) -> Option<Self>; pub fn after_render<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(&AfterRenderArgs) -> U; pub fn after_render_args(&self) -> Option<AfterRenderArgs> { ... } }
After rendering and buffers are swapped.
Required methods
pub fn from_after_render_args(
args: &AfterRenderArgs,
old_event: &Self
) -> Option<Self>
[src]
args: &AfterRenderArgs,
old_event: &Self
) -> Option<Self>
Creates an after render event.
pub fn after_render<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&AfterRenderArgs) -> U,
[src]
F: FnMut(&AfterRenderArgs) -> U,
Calls closure if this is an after render event.
Provided methods
pub fn after_render_args(&self) -> Option<AfterRenderArgs>
[src]
Returns after render arguments.
Implementors
impl AfterRenderEvent for Event
[src]
pub fn from_after_render_args(
args: &AfterRenderArgs,
_old_event: &Event
) -> Option<Event>
[src]
args: &AfterRenderArgs,
_old_event: &Event
) -> Option<Event>
pub fn after_render<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&AfterRenderArgs) -> U,
[src]
F: FnMut(&AfterRenderArgs) -> U,