Enum event::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

Render graphics.

AfterRender

After rendering and swapping buffers.

Update

Update the state of the application.

Idle

Do background tasks that can be done incrementally.

Input

Input event.

Trait Implementations

impl<I: GenericEvent> GenericEvent for Event<I>

fn event_id(&self) -> EventId

fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U

fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>

impl<I> EventMap<I> for Event<I>

fn render(args: RenderArgs) -> Event<I>

fn after_render(args: AfterRenderArgs) -> Event<I>

fn update(args: UpdateArgs) -> Event<I>

fn idle(args: IdleArgs) -> Event<I>

fn input(args: I) -> Event<I>

Derived Implementations

impl<I: Debug> Debug for Event<I> where I: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<I: PartialEq> PartialEq for Event<I> where I: PartialEq

fn eq(&self, __arg_0: &Event<I>) -> bool

fn ne(&self, __arg_0: &Event<I>) -> bool

impl<I: Clone> Clone for Event<I> where I: Clone

fn clone(&self) -> Event<I>

fn clone_from(&mut self, source: &Self)