[]Trait piston_window::generic_event::GenericEvent

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

Implemented by all events

Required methods

fn event_id(&self) -> EventId

The id of this event.

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

Calls closure with arguments

Loading content...

Implementors

impl GenericEvent for Event

Loading content...