[][src]Trait input::generic_event::GenericEvent

pub trait GenericEvent: Sized + AfterRenderEvent + CloseEvent + ControllerAxisEvent + CursorEvent + FocusEvent + IdleEvent + MouseCursorEvent + MouseRelativeEvent + MouseScrollEvent + ButtonEvent + PressEvent + ReleaseEvent + RenderEvent + ResizeEvent + TextEvent + TouchEvent + UpdateEvent + From<Input> + From<Loop> + Into<Option<Input>> + Into<Option<Loop>> {
    fn event_id(&self) -> EventId;
fn with_args<'a, F, U>(&'a self, f: F) -> U
    where
        F: FnMut(&dyn Any) -> U
; }

Implemented by all events

Required methods

fn event_id(&self) -> EventId

The id of this event.

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

Calls closure with arguments

Loading content...

Implementors

impl GenericEvent for Event[src]

Loading content...