Enum input::Event
[−]
[src]
pub enum Event<I = Input> { Render(RenderArgs), AfterRender(AfterRenderArgs), Update(UpdateArgs), Idle(IdleArgs), Input(I), }
Adds render and update events to input events
Variants
Render(RenderArgs)
Render graphics.
AfterRender(AfterRenderArgs)
After rendering and swapping buffers.
Update(UpdateArgs)
Update the state of the application.
Idle(IdleArgs)
Do background tasks that can be done incrementally.
Input(I)
Input event.
Trait Implementations
impl<I: GenericEvent> GenericEvent for Event<I>
[src]
fn event_id(&self) -> EventId
The id of this event.
fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U
Calls closure with arguments
fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>
Converts from arguments to Self
impl<I: Debug> Debug for Event<I>
[src]
impl<I: PartialEq> PartialEq for Event<I>
[src]
fn eq(&self, __arg_0: &Event<I>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event<I>) -> bool
This method tests for !=
.
impl<I: Clone> Clone for Event<I>
[src]
fn clone(&self) -> Event<I>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more