pub enum TouchPhase {
Started,
Moved,
Ended,
Cancelled,
}Expand description
Describes touch-screen input state.
Variants§
Started
Initial touch contact or gesture start, for example when one or more fingers touch the screen or touchpad.
Moved
The touch contact point changed, for example without lifting the finger.
Ended
All touch contact points have been lifted from the touchscreen or touchpad.
This event is important as it should clear any state or event in flight that was
generated by the preceding Started and Moved events.
Cancelled
The event was cancelled and should cancel any event in flight and clear state.
Trait Implementations§
Source§impl Clone for TouchPhase
impl Clone for TouchPhase
impl Copy for TouchPhase
Source§impl Debug for TouchPhase
impl Debug for TouchPhase
impl Eq for TouchPhase
Source§impl Hash for TouchPhase
impl Hash for TouchPhase
Source§impl PartialEq for TouchPhase
impl PartialEq for TouchPhase
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