Trait conrod::backend::piston::event::GenericEvent
[−]
[src]
pub trait GenericEvent: ControllerAxisEvent + MouseCursorEvent + MouseRelativeEvent + MouseScrollEvent + AfterRenderEvent + CursorEvent + FocusEvent + IdleEvent + PressEvent + ReleaseEvent + RenderEvent + ResizeEvent + TextEvent + TouchEvent + UpdateEvent { fn event_id(&self) -> EventId; fn with_args<F, U>(&'a self, f: F) -> U
where
F: FnMut(&(Any + 'static)) -> U; fn from_args(
event_id: EventId,
any: &(Any + 'static),
old_event: &Self
) -> Option<Self>; }
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(&(Any + 'static)) -> U,
F: FnMut(&(Any + 'static)) -> U,
Calls closure with arguments
fn from_args(
event_id: EventId,
any: &(Any + 'static),
old_event: &Self
) -> Option<Self>
event_id: EventId,
any: &(Any + 'static),
old_event: &Self
) -> Option<Self>
Converts from arguments to Self
.
Returns None
if old event is not same kind.
Implementations on Foreign Types
impl<I> GenericEvent for Event<I> where
I: GenericEvent,
[src]
I: GenericEvent,
Implementors
impl GenericEvent for Input