[][src]Enum piston_window::Event

pub enum Event {
    Input(Input),
    Loop(Loop),
    Custom(EventIdArc<dyn Any + 'static + Send + Sync>),
}

Models all events.

Variants

Input events.

Events that commonly used by event loops.

Custom event.

When comparing two custom events for equality, they always return false.

Trait Implementations

impl CursorEvent for Event
[src]

Returns cursor arguments.

impl Into<Option<Loop>> for Event
[src]

impl Into<Option<Input>> for Event
[src]

impl UpdateEvent for Event
[src]

Creates an update event with delta time.

Returns update arguments.

impl FocusEvent for Event
[src]

Returns focus arguments.

impl MouseRelativeEvent for Event
[src]

Returns mouse relative arguments.

impl RenderEvent for Event
[src]

Returns render arguments.

impl Clone for Event
[src]

Performs copy-assignment from source. Read more

impl ButtonEvent for Event
[src]

Returns button arguments.

impl TextEvent for Event
[src]

Returns text arguments.

impl IdleEvent for Event
[src]

Creates an update event with delta time.

Returns idle arguments.

impl AfterRenderEvent for Event
[src]

Returns after render arguments.

impl ResizeEvent for Event
[src]

Returns resize arguments.

impl Debug for Event
[src]

impl MouseCursorEvent for Event
[src]

Returns mouse cursor arguments.

impl ControllerAxisEvent for Event
[src]

Returns controller axis arguments.

impl From<Loop> for Event
[src]

impl<T> From<T> for Event where
    Input: From<T>, 
[src]

impl From<AfterRenderArgs> for Event
[src]

impl From<UpdateArgs> for Event
[src]

impl From<IdleArgs> for Event
[src]

impl From<RenderArgs> for Event
[src]

impl PartialEq<Event> for Event
[src]

This method tests for !=.

impl CloseEvent for Event
[src]

Returns close arguments.

impl MouseScrollEvent for Event
[src]

Returns mouse scroll arguments.

impl TouchEvent for Event
[src]

Returns touch arguments.

impl GenericEvent for Event
[src]

Auto Trait Implementations

impl Send for Event

impl Sync for Event

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> ReleaseEvent for T where
    T: ButtonEvent
[src]

Returns release arguments.

impl<T> PressEvent for T where
    T: ButtonEvent
[src]

Returns press arguments.

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<T> Erased for T
[src]