Enum glfw::MouseButton [−][src]
#[repr(i32)] pub enum MouseButton { Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, }
Mouse buttons. The MouseButtonLeft
, MouseButtonRight
, and
MouseButtonMiddle
aliases are supplied for convenience.
Variants
The left mouse button. A MouseButtonLeft
alias is provided to improve clarity.
The right mouse button. A MouseButtonRight
alias is provided to improve clarity.
The middle mouse button. A MouseButtonMiddle
alias is provided to improve clarity.
Implementations
Trait Implementations
impl Clone for MouseButton
[src]
impl Clone for MouseButton
[src]fn clone(&self) -> MouseButton
[src][−]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
impl Hash for MouseButton
[src]
impl Hash for MouseButton
[src]impl Ord for MouseButton
[src]
impl Ord for MouseButton
[src]impl PartialEq<MouseButton> for MouseButton
[src]
impl PartialEq<MouseButton> for MouseButton
[src]impl PartialOrd<MouseButton> for MouseButton
[src]
impl PartialOrd<MouseButton> for MouseButton
[src]fn partial_cmp(&self, other: &MouseButton) -> Option<Ordering>
[src][−]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool