#[repr(u8)]pub enum TouchPhase {
Started = 0,
Moved = 1,
Ended = 2,
Cancelled = 3,
}Expand description
Phase of a touch, gesture event or wheel event. A touchpad is recognized as wheel event and therefore we need to find out when the touch event starts and ends
Variants§
Started = 0
The gesture began (e.g., first finger touched or platform gesture started).
Moved = 1
The gesture is ongoing (e.g., fingers moved or platform gesture updated).
Ended = 2
The gesture completed normally.
Cancelled = 3
The gesture was cancelled (e.g., interrupted by the system) or the mouse wheel was used
Trait Implementations§
Source§impl Clone for TouchPhase
impl Clone for TouchPhase
Source§fn clone(&self) -> TouchPhase
fn clone(&self) -> TouchPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TouchPhase
Source§impl Debug for TouchPhase
impl Debug for TouchPhase
Source§impl PartialEq for TouchPhase
impl PartialEq for TouchPhase
Source§fn eq(&self, other: &TouchPhase) -> bool
fn eq(&self, other: &TouchPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TouchPhase
Auto Trait Implementations§
impl Freeze for TouchPhase
impl RefUnwindSafe for TouchPhase
impl Send for TouchPhase
impl Sync for TouchPhase
impl Unpin for TouchPhase
impl UnsafeUnpin for TouchPhase
impl UnwindSafe for TouchPhase
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