Enum ark_api::applet::TouchEventType
source · [−]#[repr(u32)]
pub enum TouchEventType {
Started,
Move,
RelativeMove,
Ended,
Still,
}
Expand description
Touch event type.
Variants
Started
Every time a user touches the screen a new Started
event is generated
Move
After a Started
event has been emitted, there may be zero or more Move
events when the finger is moved.
RelativeMove
Relative move for touch is deprecated - relative events mainly make sense for mouse (since they can still happen when the mouse hits the screen edge - no such thing for touch).
Ended
When the finger is lifted, an Ended
event is generated
Still
TODO: deprecate as it is no longer supported by the higher level API
Trait Implementations
sourceimpl CheckedBitPattern for TouchEventType
impl CheckedBitPattern for TouchEventType
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: &<TouchEventType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern(
bits: &<TouchEventType as CheckedBitPattern>::Bits
) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for TouchEventType
impl Clone for TouchEventType
sourcefn clone(&self) -> TouchEventType
fn clone(&self) -> TouchEventType
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 TouchEventType
impl Debug for TouchEventType
sourceimpl PartialEq<TouchEventType> for TouchEventType
impl PartialEq<TouchEventType> for TouchEventType
sourcefn eq(&self, other: &TouchEventType) -> bool
fn eq(&self, other: &TouchEventType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for TouchEventType
impl TryFrom<u32> for TouchEventType
type Error = TryFromPrimitiveError<TouchEventType>
type Error = TryFromPrimitiveError<TouchEventType>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u32
) -> Result<TouchEventType, TryFromPrimitiveError<TouchEventType>>
fn try_from(
number: u32
) -> Result<TouchEventType, TryFromPrimitiveError<TouchEventType>>
Performs the conversion.
sourceimpl TryFromPrimitive for TouchEventType
impl TryFromPrimitive for TouchEventType
type Primitive = u32
const NAME: &'static str = "TouchEventType"
fn try_from_primitive(
number: <TouchEventType as TryFromPrimitive>::Primitive
) -> Result<TouchEventType, TryFromPrimitiveError<TouchEventType>>
impl Copy for TouchEventType
impl Eq for TouchEventType
impl NoUninit for TouchEventType
impl StructuralEq for TouchEventType
impl StructuralPartialEq for TouchEventType
Auto Trait Implementations
impl RefUnwindSafe for TouchEventType
impl Send for TouchEventType
impl Sync for TouchEventType
impl Unpin for TouchEventType
impl UnwindSafe for TouchEventType
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