[][src]Enum pixel_widgets::event::Event

pub enum Event {
    Press(Key),
    Release(Key),
    Modifiers(Modifiers),
    Resize(f32f32),
    Motion(f32f32),
    Cursor(f32f32),
    Scroll(f32f32),
    Text(char),
    Focus(bool),
    Exit,
}

A user input event.

Variants

Press(Key)

A button on some input device was pressed.

Release(Key)

A button on some input device was released.

Modifiers(Modifiers)

Modifiers were changed.

Resize(f32f32)

The window was resized to the given dimensions.

Motion(f32f32)

Some motion input was received (e.g. moving mouse or joystick axis).

Cursor(f32f32)

The mouse cursor was moved to a location.

Scroll(f32f32)

The mouse wheel or touchpad scroll gesture sent us some scroll event.

Text(char)

Text input was received, usually via the keyboard.

Focus(bool)

The window was focused or lost focus.

Exit

The application exited it's main event loop

Trait Implementations

impl Clone for Event[src]

impl Copy for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DragDropId for T where
    T: 'static + Send + Copy
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.