Enum riddle_platform_common::PlatformEvent[][src]

pub enum PlatformEvent {
    WindowClose(WindowId),
    WindowResize(WindowId),
    CursorMove {
        window: WindowId,
        position: LogicalPosition,
    },
    MouseButtonDown {
        window: WindowId,
        button: MouseButton,
    },
    MouseButtonUp {
        window: WindowId,
        button: MouseButton,
    },
    KeyDown {
        window: WindowId,
        platform_scancode: u32,
        scancode: Scancode,
        vkey: Option<VirtualKey>,
    },
    KeyUp {
        window: WindowId,
        platform_scancode: u32,
        scancode: Scancode,
        vkey: Option<VirtualKey>,
    },
    EventQueueEmpty,
    Unknown,
}

Variants

WindowClose(WindowId)
WindowResize(WindowId)
CursorMove

Fields of CursorMove

window: WindowIdposition: LogicalPosition
MouseButtonDown

Fields of MouseButtonDown

window: WindowIdbutton: MouseButton
MouseButtonUp

Fields of MouseButtonUp

window: WindowIdbutton: MouseButton
KeyDown

Fields of KeyDown

window: WindowIdplatform_scancode: u32scancode: Scancodevkey: Option<VirtualKey>
KeyUp

Fields of KeyUp

window: WindowIdplatform_scancode: u32scancode: Scancodevkey: Option<VirtualKey>
EventQueueEmpty
Unknown

Trait Implementations

impl Clone for PlatformEvent[src]

impl Eq for PlatformEvent[src]

impl PartialEq<PlatformEvent> for PlatformEvent[src]

impl StructuralEq for PlatformEvent[src]

impl StructuralPartialEq for PlatformEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for PlatformEvent

impl Send for PlatformEvent

impl Sync for PlatformEvent

impl Unpin for PlatformEvent

impl UnwindSafe for PlatformEvent

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.