pub enum GestureEventKind {
Tap,
DoubleTap,
LongPress,
SwipeLeft,
SwipeRight,
SwipeUp,
SwipeDown,
Pan,
Pinch,
}Expand description
Cross-platform high-level pointer/touch gesture classification emitted by App.
Variants§
Tap
Clean single tap or click within tap slop.
DoubleTap
Two consecutive clean taps within the double-tap time and distance window.
LongPress
Stationary press held past the long-press threshold (>= 450ms).
SwipeLeft
Fast directional horizontal swipe to the left.
SwipeRight
Fast directional horizontal swipe to the right.
SwipeUp
Fast directional vertical swipe upward.
SwipeDown
Fast directional vertical swipe downward.
Pan
Continuous single-finger pan or drag gesture.
Pinch
Two-finger pinch-to-zoom gesture carrying relative scale.
Trait Implementations§
Source§impl Clone for GestureEventKind
impl Clone for GestureEventKind
impl Copy for GestureEventKind
Source§impl Debug for GestureEventKind
impl Debug for GestureEventKind
Source§impl Default for GestureEventKind
impl Default for GestureEventKind
impl Eq for GestureEventKind
Source§impl Hash for GestureEventKind
impl Hash for GestureEventKind
Source§impl Ord for GestureEventKind
impl Ord for GestureEventKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GestureEventKind
impl PartialEq for GestureEventKind
Source§impl PartialOrd for GestureEventKind
impl PartialOrd for GestureEventKind
impl StructuralPartialEq for GestureEventKind
Auto Trait Implementations§
impl Forget for GestureEventKind
impl Freeze for GestureEventKind
impl Move for GestureEventKind
impl RefUnwindSafe for GestureEventKind
impl Send for GestureEventKind
impl Sync for GestureEventKind
impl Unpin for GestureEventKind
impl UnsafeUnpin for GestureEventKind
impl UnwindSafe for GestureEventKind
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