[][src]Enum crossterm_winapi::InputEventType

pub enum InputEventType {
    KeyEvent,
    MouseEvent,
    WindowBufferSizeEvent,
    FocusEvent,
    MenuEvent,
}

A handle to the type of input event and the event record stored in the Event member.

Ms Docs

Variants

KeyEvent

The Event member contains a KEY_EVENT_RECORD structure with information about a keyboard event.

MouseEvent

The Event member contains a MOUSE_EVENT_RECORD structure with information about a mouse movement or button press event.

WindowBufferSizeEvent

The Event member contains a WINDOW_BUFFER_SIZE_RECORD structure with information about the new size of the console screen buffer.

FocusEvent

The Event member contains a FOCUS_EVENT_RECORD structure. These events are used internally and should be ignored.

MenuEvent

The Event member contains a MENU_EVENT_RECORD structure. These events are used internally and should be ignored.

Trait Implementations

impl From<u16> for InputEventType[src]

impl Clone for InputEventType[src]

impl Copy for InputEventType[src]

impl PartialEq<InputEventType> for InputEventType[src]

impl PartialOrd<InputEventType> for InputEventType[src]

impl Debug for InputEventType[src]

impl StructuralPartialEq for InputEventType[src]

Auto Trait Implementations

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]