Enum input::mouse::MouseButton [−] [src]

pub enum MouseButton {
    Unknown,
    Left,
    Right,
    Middle,
    X1,
    X2,
    Button6,
    Button7,
    Button8,
}

Represent a mouse button.

Variants

Unknown

Unknown mouse button.

Left

Left mouse button.

Right

Right mouse button.

Middle

Middle mouse button.

X1

Extra mouse button number 1.

X2

Extra mouse button number 2.

Button6

Mouse button number 6.

Button7

Mouse button number 7.

Button8

Mouse button number 8.

Trait Implementations

impl FromPrimitive for MouseButton

fn from_u64(n: u64) -> Option<MouseButton>

fn from_i64(n: i64) -> Option<MouseButton>

fn from_isize(n: isize) -> Option<MouseButton>

fn from_i8(n: i8) -> Option<Self>

fn from_i16(n: i16) -> Option<Self>

fn from_i32(n: i32) -> Option<Self>

fn from_usize(n: usize) -> Option<Self>

fn from_u8(n: u8) -> Option<Self>

fn from_u16(n: u16) -> Option<Self>

fn from_u32(n: u32) -> Option<Self>

fn from_f32(n: f32) -> Option<Self>

fn from_f64(n: f64) -> Option<Self>

impl ToPrimitive for MouseButton

fn to_u64(&self) -> Option<u64>

fn to_i64(&self) -> Option<i64>

fn to_isize(&self) -> Option<isize>

fn to_i8(&self) -> Option<i8>

fn to_i16(&self) -> Option<i16>

fn to_i32(&self) -> Option<i32>

fn to_usize(&self) -> Option<usize>

fn to_u8(&self) -> Option<u8>

fn to_u16(&self) -> Option<u16>

fn to_u32(&self) -> Option<u32>

fn to_f32(&self) -> Option<f32>

fn to_f64(&self) -> Option<f64>

Derived Implementations

impl Debug for MouseButton

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for MouseButton

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd for MouseButton

fn partial_cmp(&self, __arg_0: &MouseButton) -> Option<Ordering>

fn lt(&self, __arg_0: &MouseButton) -> bool

fn le(&self, __arg_0: &MouseButton) -> bool

fn gt(&self, __arg_0: &MouseButton) -> bool

fn ge(&self, __arg_0: &MouseButton) -> bool

impl Ord for MouseButton

fn cmp(&self, __arg_0: &MouseButton) -> Ordering

impl Eq for MouseButton

impl PartialEq for MouseButton

fn eq(&self, __arg_0: &MouseButton) -> bool

fn ne(&self, __arg_0: &MouseButton) -> bool

impl Encodable for MouseButton

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Decodable for MouseButton

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MouseButton, __D>

impl Clone for MouseButton

fn clone(&self) -> MouseButton

fn clone_from(&mut self, source: &Self)

impl Copy for MouseButton