[][src]Enum crossterm::event::MouseEventKind

pub enum MouseEventKind {
    Down(MouseButton),
    Up(MouseButton),
    Drag(MouseButton),
    Moved,
    ScrollDown,
    ScrollUp,
}

A mouse event kind.

Platform-specific Notes

Mouse Buttons

Some platforms/terminals do not report mouse button for the MouseEventKind::Up and MouseEventKind::Drag events. MouseButton::Left is returned if we don't know which button was used.

Variants

Pressed mouse button. Contains the button that was pressed.

Released mouse button. Contains the button that was released.

Moved the mouse cursor while pressing the contained mouse button.

Moved

Moved the mouse cursor while not pressing a mouse button.

ScrollDown

Scrolled mouse wheel downwards (towards the user).

ScrollUp

Scrolled mouse wheel upwards (away from the user).

Trait Implementations

impl Clone for MouseEventKind[src]

impl Copy for MouseEventKind[src]

impl Debug for MouseEventKind[src]

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

impl Eq for MouseEventKind[src]

impl Hash for MouseEventKind[src]

impl PartialEq<MouseEventKind> for MouseEventKind[src]

impl PartialOrd<MouseEventKind> for MouseEventKind[src]

impl Serialize for MouseEventKind[src]

impl StructuralEq for MouseEventKind[src]

impl StructuralPartialEq for MouseEventKind[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.