Enum ark_api::applet::MouseEventType
source · [−]#[repr(u32)]
#[non_exhaustive]
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
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for MouseEventType
impl Clone for MouseEventType
sourcefn clone(&self) -> MouseEventType
fn clone(&self) -> MouseEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MouseEventType
impl Debug for MouseEventType
sourceimpl Hash for MouseEventType
impl Hash for MouseEventType
sourceimpl PartialEq<MouseEventType> for MouseEventType
impl PartialEq<MouseEventType> for MouseEventType
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u32
) -> Result<MouseEventType, TryFromPrimitiveError<MouseEventType>>
fn try_from(
number: u32
) -> Result<MouseEventType, TryFromPrimitiveError<MouseEventType>>
Performs the conversion.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more