Trait input::generic_event::GenericEvent
[−]
[src]
pub trait GenericEvent: Sized + AfterRenderEvent + ControllerAxisEvent + CursorEvent + FocusEvent + IdleEvent + MouseCursorEvent + MouseRelativeEvent + MouseScrollEvent + PressEvent + ReleaseEvent + RenderEvent + ResizeEvent + TextEvent + TouchEvent + UpdateEvent + From<Input> { fn event_id(&self) -> EventId; fn with_args<'a, F, U>(&'a self, f: F) -> U
where
F: FnMut(&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(&Any) -> U,
F: FnMut(&Any) -> U,
Calls closure with arguments
Implementors
impl GenericEvent for Input