[][src]Enum crossterm::MouseEvent

pub enum MouseEvent {
    Press(MouseButtonu16u16),
    Release(u16u16),
    Hold(u16u16),
    Unknown,
}

Enum to specify which mouse event has occurred.

Variants

Press(MouseButtonu16u16)

A mouse press has occurred, this contains the pressed button and the position of the press.

Release(u16u16)

A mouse button was released.

Hold(u16u16)

A mouse button was hold.

Unknown

An unknown mouse event has occurred.

Trait Implementations

impl PartialOrd<MouseEvent> for MouseEvent[src]

impl Debug for MouseEvent[src]

impl PartialEq<MouseEvent> for MouseEvent[src]

Auto Trait Implementations

impl Send for MouseEvent

impl Sync for MouseEvent

Blanket Implementations

impl<T> From<T> for T[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> 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]