pub enum PointerButton {
Primary,
Secondary,
Middle,
}Expand description
Which physical (or synthetic) button a pointer event carries.
Touch and pen contacts report PointerButton::Primary; the secondary /
middle variants exist for mouse input (right/middle click).
Variants§
Primary
The primary button (left mouse, or any touch/pen contact).
Secondary
The secondary button (right mouse).
Middle
The middle button (mouse wheel click).
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
impl Copy for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.