[][src]Enum druid::MouseButton

#[repr(u8)]pub enum MouseButton {
    None,
    Left,
    Right,
    Middle,
    X1,
    X2,
}

An indicator of which mouse button was pressed.

Variants

None

No mouse button.

Left

Left mouse button.

Right

Right mouse button.

Middle

Middle mouse button.

X1

First X button.

X2

Second X button.

Implementations

impl MouseButton[src]

pub fn is_left(self) -> bool[src]

Returns true if this is MouseButton::Left.

pub fn is_right(self) -> bool[src]

Returns true if this is MouseButton::Right.

pub fn is_middle(self) -> bool[src]

Returns true if this is MouseButton::Middle.

pub fn is_x1(self) -> bool[src]

Returns true if this is MouseButton::X1.

pub fn is_x2(self) -> bool[src]

Returns true if this is MouseButton::X2.

Trait Implementations

impl Clone for MouseButton[src]

impl Copy for MouseButton[src]

impl Debug for MouseButton[src]

impl Eq for MouseButton[src]

impl PartialEq<MouseButton> for MouseButton[src]

impl StructuralEq for MouseButton[src]

impl StructuralPartialEq for MouseButton[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AnyEq for T where
    T: PartialEq<T> + Any
[src]

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

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

impl<T> From<T> for T[src]

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

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.