[][src]Enum crossterm_winapi::ButtonState

pub enum ButtonState {
    Release,
    FromLeft1stButtonPressed,
    FromLeft2ndButtonPressed,
    FromLeft3rdButtonPressed,
    FromLeft4thButtonPressed,
    RightmostButtonPressed,
    Unknown,
    Negative,
}

The status of the mouse buttons. The least significant bit corresponds to the leftmost mouse button. The next least significant bit corresponds to the rightmost mouse button. The next bit indicates the next-to-leftmost mouse button. The bits then correspond left to right to the mouse buttons. A bit is 1 if the button was pressed.

Ms Docs

Variants

Release
FromLeft1stButtonPressed

The leftmost mouse button.

FromLeft2ndButtonPressed

The second button from the left.

FromLeft3rdButtonPressed

The third button from the left.

FromLeft4thButtonPressed

The fourth button from the left.

RightmostButtonPressed

The rightmost mouse button.

Unknown

This button state is not recognized.

Negative

The wheel was rotated backward, toward the user; this will only be activated for MOUSE_WHEELED from dwEventFlags

Trait Implementations

impl From<u32> for ButtonState[src]

impl Clone for ButtonState[src]

impl Copy for ButtonState[src]

impl PartialEq<ButtonState> for ButtonState[src]

impl PartialOrd<ButtonState> for ButtonState[src]

impl Debug for ButtonState[src]

impl StructuralPartialEq for ButtonState[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]