Enum ark_api::applet::TouchEventType
source · 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§
source§impl 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.source§fn 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.source§impl Clone for TouchEventType
impl Clone for TouchEventType
source§fn clone(&self) -> TouchEventType
fn clone(&self) -> TouchEventType
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 TouchEventType
impl Debug for TouchEventType
source§impl PartialEq<TouchEventType> for TouchEventType
impl PartialEq<TouchEventType> for TouchEventType
source§fn 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 ==.source§impl 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.
source§fn try_from(
number: u32
) -> Result<TouchEventType, TryFromPrimitiveError<TouchEventType>>
fn try_from( number: u32 ) -> Result<TouchEventType, TryFromPrimitiveError<TouchEventType>>
Performs the conversion.
source§impl 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§
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