[][src]Enum quicksilver::prelude::Event

pub enum Event {
    Closed,
    Focused,
    Unfocused,
    Key(KeyButtonState),
    Typed(char),
    MouseMoved(Vector),
    MouseEntered,
    MouseExited,
    MouseWheel(Vector),
    MouseButton(MouseButtonButtonState),
    GamepadAxis(i32GamepadAxisf32),
    GamepadButton(i32GamepadButtonButtonState),
    GamepadConnected(i32),
    GamepadDisconnected(i32),
}

An input event

Variants

Closed

The application has been closed

Focused

The application has gained focus

Unfocused

The application has lost focus

A key has changed its button state

Typed(char)

An alphanumeric character has been entered from the keyboard

MouseMoved(Vector)

The mouse has been moved to a position

MouseEntered

The mouse has entered the window

MouseExited

The mouse has exited the window

MouseWheel(Vector)

The mouse wheel has been scrolled by a vector

MouseButton(MouseButtonButtonState)

A mouse button has changed its button state

GamepadAxis(i32GamepadAxisf32)

A gamepad axis has changed its state

GamepadButton(i32GamepadButtonButtonState)

A gamepad button has changed its state

GamepadConnected(i32)

A gamepad has been connected

GamepadDisconnected(i32)

A gamepad has been disconnected

Trait Implementations

impl Clone for Event[src]

impl Copy for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

impl RefUnwindSafe for Event

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Downcast for T where
    T: Any

impl<T> Slottable for T where
    T: Copy
[src]