pub enum PointerButton {
None,
Primary,
Secondary,
Auxilary,
X1,
X2,
}
Variants§
None
Primary
The primary pointer button, usually the left mouse button.
Secondary
The secondary pointer bytton, usually the right mouse button.
Auxilary
The auxilary pointer button, usually the wheel or middle mouse button.
X1
The fourth button, usually the back button
X2
The fifth button, usually the forward button
Implementations§
Source§impl PointerButton
impl PointerButton
Sourcepub fn is_primary(self) -> bool
pub fn is_primary(self) -> bool
Returns true
if this is PointerButton::Primary
.
Sourcepub fn is_secondary(self) -> bool
pub fn is_secondary(self) -> bool
Returns true
if this is PointerButton::Secondary
.
Sourcepub fn is_auxilary(self) -> bool
pub fn is_auxilary(self) -> bool
Returns true
if this is PointerButton::Auxilary
.
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
Source§fn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PointerButton
impl Debug for PointerButton
Source§impl PartialEq for PointerButton
impl PartialEq for PointerButton
impl Copy for PointerButton
impl Eq for PointerButton
impl StructuralPartialEq for PointerButton
Auto Trait Implementations§
impl Freeze for PointerButton
impl RefUnwindSafe for PointerButton
impl Send for PointerButton
impl Sync for PointerButton
impl Unpin for PointerButton
impl UnwindSafe for PointerButton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more