pub enum PointerButton {
Primary,
Secondary,
Auxiliary,
Fourth,
Fifth,
Eraser,
Unknown,
}Expand description
A pointer button type (such as Primary/Secondary)
Variants§
Primary
Primary button (typically the left button)
May also represent touch contact/pen contact
Secondary
Secondary button (typically the right button)
Auxiliary
Auxiliary button (typically the middle button)
Fourth
Fourth button (typically the “Back” button)
Fifth
Fifth button (typically the “Forward” button)
Eraser
Pen eraser button
Unknown
A button with an unknown code
Trait Implementations§
Source§impl<O: Into<EnumSet<PointerButton>>> BitAnd<O> for PointerButton
impl<O: Into<EnumSet<PointerButton>>> BitAnd<O> for PointerButton
Source§impl<O: Into<EnumSet<PointerButton>>> BitOr<O> for PointerButton
impl<O: Into<EnumSet<PointerButton>>> BitOr<O> for PointerButton
Source§impl<O: Into<EnumSet<PointerButton>>> BitXor<O> for PointerButton
impl<O: Into<EnumSet<PointerButton>>> BitXor<O> for PointerButton
Source§impl Clone for PointerButton
impl Clone for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
Source§impl EnumSetConstHelper for PointerButton
impl EnumSetConstHelper for PointerButton
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
The instance of the
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
The instance of the
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
A helper type used to convert values to EnumSets at compile-time.
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
A helper type used to implement compile-time operations on enums.
Source§impl EnumSetTypePrivate for PointerButton
impl EnumSetTypePrivate for PointerButton
Source§const ALL_BITS: Self::Repr = {transmute(0x7f): <pointer::PointerButton as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x7f): <pointer::PointerButton as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
Source§const VARIANT_COUNT: u32 = 7u32
const VARIANT_COUNT: u32 = 7u32
The number of variants in the bitset.
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
Converts a bit position into an enum value, with an debug_assert.
Source§impl Hash for PointerButton
impl Hash for PointerButton
Source§impl Not for PointerButton
impl Not for PointerButton
Source§impl PartialEq<EnumSet<PointerButton>> for PointerButton
impl PartialEq<EnumSet<PointerButton>> for PointerButton
Source§impl PartialEq for PointerButton
impl PartialEq for PointerButton
Source§impl<O: Into<EnumSet<PointerButton>>> Sub<O> for PointerButton
impl<O: Into<EnumSet<PointerButton>>> Sub<O> for PointerButton
impl Copy for PointerButton
impl EnumSetType for PointerButton
impl Eq 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