Trait event_loop::EventMap [] [src]

pub trait EventMap<I> {
    fn render(args: RenderArgs) -> Self;
    fn after_render(args: AfterRenderArgs) -> Self;
    fn update(args: UpdateArgs) -> Self;
    fn input(args: I) -> Self;
    fn idle(IdleArgs) -> Self;
}

Methods required to map from consumed event to emitted event.

Required Methods

fn render(args: RenderArgs) -> Self

Creates a render event.

fn after_render(args: AfterRenderArgs) -> Self

Creates an after render event.

fn update(args: UpdateArgs) -> Self

Creates an update event.

fn input(args: I) -> Self

Creates an input event.

fn idle(IdleArgs) -> Self

Creates an idle event.

Implementors