pub enum PointerButton {
Primary,
Secondary,
Middle,
Back,
Forward,
}Expand description
Pointer button identifiers.
Forward and Back correspond to the auxiliary mouse buttons (mouse
4 / mouse 5) typically labelled “browser back / forward”. Platforms
that don’t have those buttons simply never emit them.
Variants§
Primary
Left-click (or main-action button on left-handed mice).
Secondary
Right-click.
Middle
Middle / wheel-click.
Back
“Back” auxiliary button (mouse 4 on most 5-button mice). Often bound to “navigate back” in browsers.
Forward
“Forward” auxiliary button (mouse 5). Often bound to “navigate forward”.
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
Source§fn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
impl Eq for PointerButton
Source§impl From<PointerButton> for ButtonMask
impl From<PointerButton> for ButtonMask
Source§fn from(button: PointerButton) -> Self
fn from(button: PointerButton) -> Self
Converts to this type from the input type.
Source§impl Hash for PointerButton
impl Hash for PointerButton
Source§impl PartialEq for PointerButton
impl PartialEq 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 UnsafeUnpin 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