#[non_exhaustive]#[repr(u32)]pub enum PointerEventButton {
Other = 0,
Left = 1,
Right = 2,
Middle = 3,
Back = 4,
Forward = 5,
}
Expand description
This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other = 0
A button that is none of left, right, middle, back or forward. For example, this is used for the task button on a mouse with many buttons.
Left = 1
The left button.
Right = 2
The right button.
Middle = 3
The center button.
Back = 4
The back button.
Forward = 5
The forward button.
Trait Implementations§
Source§impl Clone for PointerEventButton
impl Clone for PointerEventButton
Source§fn clone(&self) -> PointerEventButton
fn clone(&self) -> PointerEventButton
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 PointerEventButton
impl Debug for PointerEventButton
Source§impl Default for PointerEventButton
impl Default for PointerEventButton
Source§impl Display for PointerEventButton
impl Display for PointerEventButton
Source§impl FromStr for PointerEventButton
impl FromStr for PointerEventButton
Source§impl Hash for PointerEventButton
impl Hash for PointerEventButton
Source§impl PartialEq for PointerEventButton
impl PartialEq for PointerEventButton
Source§impl TryFrom<&str> for PointerEventButton
impl TryFrom<&str> for PointerEventButton
impl Copy for PointerEventButton
impl Eq for PointerEventButton
impl StructuralPartialEq for PointerEventButton
Auto Trait Implementations§
impl Freeze for PointerEventButton
impl RefUnwindSafe for PointerEventButton
impl Send for PointerEventButton
impl Sync for PointerEventButton
impl Unpin for PointerEventButton
impl UnwindSafe for PointerEventButton
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,
Converts the given value to a
SharedString
.