#[repr(u32)]pub enum TouchEventType {
Started = 0,
Move = 1,
RelativeMove = 2,
Ended = 3,
Still = 4,
}
Expand description
Touch event type.
Variants§
Started = 0
Every time a user touches the screen a new Started
event is generated
Move = 1
After a Started
event has been emitted, there may be zero or more Move
events when the finger is moved.
RelativeMove = 2
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 = 3
When the finger is lifted, an Ended
event is generated
Still = 4
TODO: deprecate as it is no longer supported by the higher level API
Trait Implementations§
Source§impl CheckedBitPattern for TouchEventType
impl CheckedBitPattern for TouchEventType
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 TouchEventType
impl Clone for TouchEventType
Source§fn clone(&self) -> TouchEventType
fn clone(&self) -> TouchEventType
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 TouchEventType
impl Debug for TouchEventType
Source§impl From<TouchEventType> for u32
impl From<TouchEventType> for u32
Source§fn from(enum_value: TouchEventType) -> Self
fn from(enum_value: TouchEventType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TouchEventType
impl PartialEq for TouchEventType
Source§impl TryFrom<u32> for TouchEventType
impl TryFrom<u32> for TouchEventType
Source§type Error = TryFromPrimitiveError<TouchEventType>
type Error = TryFromPrimitiveError<TouchEventType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TouchEventType
impl TryFromPrimitive for TouchEventType
impl Copy for TouchEventType
impl Eq for TouchEventType
impl NoUninit for TouchEventType
impl StructuralPartialEq for TouchEventType
Auto Trait Implementations§
impl Freeze for TouchEventType
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