[][src]Enum winconsole::input::InputEvent

pub enum InputEvent {
    None,
    Focused(FocusEvent),
    FocusLost(FocusEvent),
    KeyHeld(KeyEvent),
    KeyDown(KeyEvent),
    KeyUp(KeyEvent),
    MouseDown(MouseEvent),
    MouseMove(MouseMoveEvent),
    MouseUp(MouseEvent),
    MouseWheel(MouseWheelEvent),
    Resize(ResizeEvent),
}

An input event.

Variants

None

An empty input event.

Focused(FocusEvent)

A window focus event.

FocusLost(FocusEvent)

A window focus lost event.

KeyHeld(KeyEvent)

A key hold event.

KeyDown(KeyEvent)

A key press event.

KeyUp(KeyEvent)

A key release event.

MouseDown(MouseEvent)

A mouse press event.

MouseMove(MouseMoveEvent)

A mouse move event.

MouseUp(MouseEvent)

A mouse release event.

MouseWheel(MouseWheelEvent)

A mouse wheel event.

Resize(ResizeEvent)

A buffer resize event.

Trait Implementations

impl PartialEq<InputEvent> for InputEvent[src]

impl Clone for InputEvent[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Into<InputEvent> for FocusEvent[src]

impl Into<InputEvent> for KeyEvent[src]

impl Into<InputEvent> for MouseEvent[src]

impl Into<InputEvent> for MouseMoveEvent[src]

impl Into<InputEvent> for MouseWheelEvent[src]

impl Into<InputEvent> for ResizeEvent[src]

impl Copy for InputEvent[src]

impl Display for InputEvent[src]

impl Debug for InputEvent[src]

impl Serialize for InputEvent[src]

impl<'de> Deserialize<'de> for InputEvent[src]

Auto Trait Implementations

impl Send for InputEvent

impl Sync for InputEvent

Blanket Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]