Enum PointerButton
#[repr(i32)]pub enum PointerButton {
Undefined = 0,
Left = 1,
Right = 2,
Mid = 4,
Extended1 = 8,
Extended2 = 16,
}Expand description
Pointer device button identifiers.
Variants§
Undefined = 0
The pointer button is undefined.
Left = 1
Identifies the left mouse button.
Right = 2
Identifies the right mouse button.
Mid = 4
Identifies the middle mouse button.
Extended1 = 8
Identifies mouse Button 4.
Extended2 = 16
Identifies mouse Button 5.
Implementations§
§impl PointerButton
impl PointerButton
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PointerButton
Trait Implementations§
§impl Clone for PointerButton
impl Clone for PointerButton
§fn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
Returns a duplicate 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 more§impl Debug for PointerButton
impl Debug for PointerButton
§impl Display for PointerButton
impl Display for PointerButton
§impl PartialEq for PointerButton
impl PartialEq for PointerButton
§impl VariantConstraint for PointerButton
impl VariantConstraint for PointerButton
§type DataArg<'a> = PointerButton
type DataArg<'a> = PointerButton
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = PointerButton
type RetArg = PointerButton
§fn as_arg(&self) -> <PointerButton as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <PointerButton as VariantConstraint>::DataArg<'_>
impl Copy for PointerButton
impl Eq for PointerButton
impl PropertyTypeConstraint 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