#[non_exhaustive]#[repr(u32)]pub enum MouseEventType {
Move = 0,
ButtonPress = 1,
ButtonRelease = 2,
Scroll = 3,
RelativeMove = 4,
Still = 5,
}
Expand description
Mouse event type enumeration.
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.
Move = 0
ButtonPress = 1
ButtonRelease = 2
Scroll = 3
RelativeMove = 4
Still = 5
TODO: deprecate as it is no longer supported by the higher level API
Trait Implementations§
Source§impl CheckedBitPattern for MouseEventType
impl CheckedBitPattern for MouseEventType
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for MouseEventType
impl Clone for MouseEventType
Source§fn clone(&self) -> MouseEventType
fn clone(&self) -> MouseEventType
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 moreSource§impl Debug for MouseEventType
impl Debug for MouseEventType
Source§impl From<MouseEventType> for u32
impl From<MouseEventType> for u32
Source§fn from(enum_value: MouseEventType) -> Self
fn from(enum_value: MouseEventType) -> Self
Converts to this type from the input type.
Source§impl Hash for MouseEventType
impl Hash for MouseEventType
Source§impl PartialEq for MouseEventType
impl PartialEq for MouseEventType
Source§impl TryFrom<u32> for MouseEventType
impl TryFrom<u32> for MouseEventType
Source§type Error = TryFromPrimitiveError<MouseEventType>
type Error = TryFromPrimitiveError<MouseEventType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MouseEventType
impl TryFromPrimitive for MouseEventType
impl Copy for MouseEventType
impl Eq for MouseEventType
impl NoUninit for MouseEventType
impl StructuralPartialEq for MouseEventType
Auto Trait Implementations§
impl Freeze for MouseEventType
impl RefUnwindSafe for MouseEventType
impl Send for MouseEventType
impl Sync for MouseEventType
impl Unpin for MouseEventType
impl UnwindSafe for MouseEventType
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