pub enum GestureKind {
Tap,
LongPress,
Drag,
Hover,
Pinch,
Pan,
}Expand description
A gesture a node wants delivered. Backends attach the matching native recognizer when day-core
calls Toolkit::enable_gesture; the default is no gesture (recognizers cost, so opt-in).
Variants§
Tap
LongPress
Drag
Hover
The pointer moving over the node without pressing (docs/canvas.md “Interaction”), and leaving it. Delivered only where a pointer exists: every desktop, an iPad with a trackpad or pencil, an Android device with a mouse or stylus. A touch-only device reports none, which is the right answer, not a gap, so anything reachable by hover must also be reachable by a tap.
Pinch
Pinch/magnify (docs/shapes.md): trackpad magnification, two-finger touch pinch.
Pan
Viewport pan (docs/shapes.md): trackpad two-finger scroll, two-finger touch pan.
Distinct from GestureKind::Drag, the primary pointer’s press-drag.
Trait Implementations§
Source§impl Clone for GestureKind
impl Clone for GestureKind
Source§fn clone(&self) -> GestureKind
fn clone(&self) -> GestureKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GestureKind
Source§impl Debug for GestureKind
impl Debug for GestureKind
impl Eq for GestureKind
Source§impl Hash for GestureKind
impl Hash for GestureKind
Source§impl PartialEq for GestureKind
impl PartialEq for GestureKind
impl StructuralPartialEq for GestureKind
Auto Trait Implementations§
impl Freeze for GestureKind
impl RefUnwindSafe for GestureKind
impl Send for GestureKind
impl Sync for GestureKind
impl Unpin for GestureKind
impl UnsafeUnpin for GestureKind
impl UnwindSafe for GestureKind
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more