Enum ark_api::applet::MouseEventType
source · #[non_exhaustive]#[repr(u32)]pub enum MouseEventType {
Move,
ButtonPress,
ButtonRelease,
Scroll,
RelativeMove,
Still,
}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
ButtonPress
ButtonRelease
Scroll
RelativeMove
Still
TODO: deprecate as it is no longer supported by the higher level API
Trait Implementations§
source§impl CheckedBitPattern for MouseEventType
impl CheckedBitPattern for MouseEventType
§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: &<MouseEventType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<MouseEventType as CheckedBitPattern>::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 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 MouseEventType
impl Debug for MouseEventType
source§impl Hash for MouseEventType
impl Hash for MouseEventType
source§impl PartialEq<MouseEventType> for MouseEventType
impl PartialEq<MouseEventType> for MouseEventType
source§fn eq(&self, other: &MouseEventType) -> bool
fn eq(&self, other: &MouseEventType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for MouseEventType
impl TryFrom<u32> for MouseEventType
§type Error = TryFromPrimitiveError<MouseEventType>
type Error = TryFromPrimitiveError<MouseEventType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<MouseEventType, TryFromPrimitiveError<MouseEventType>>
fn try_from( number: u32 ) -> Result<MouseEventType, TryFromPrimitiveError<MouseEventType>>
Performs the conversion.
source§impl TryFromPrimitive for MouseEventType
impl TryFromPrimitive for MouseEventType
type Primitive = u32
const NAME: &'static str = "MouseEventType"
fn try_from_primitive( number: <MouseEventType as TryFromPrimitive>::Primitive ) -> Result<MouseEventType, TryFromPrimitiveError<MouseEventType>>
impl Copy for MouseEventType
impl Eq for MouseEventType
impl NoUninit for MouseEventType
impl StructuralEq for MouseEventType
impl StructuralPartialEq for MouseEventType
Auto Trait Implementations§
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