pub struct GestureConfig {
pub pan_threshold: f32,
pub tap_timeout_ms: u64,
pub tap_slop: f32,
pub long_press_ms: u64,
pub double_tap_ms: u64,
pub pinch_threshold: f32,
pub rotate_threshold: f32,
}Expand description
Configuration for gesture recognition.
Fields§
§pan_threshold: f32Minimum distance to start a pan gesture (in pixels).
tap_timeout_ms: u64Maximum time for a tap (in milliseconds).
tap_slop: f32Maximum movement for a tap to still be valid.
long_press_ms: u64Time required for a long press (in milliseconds).
double_tap_ms: u64Maximum time between taps for a double tap.
pinch_threshold: f32Minimum scale change to start pinch.
rotate_threshold: f32Minimum rotation to start rotate gesture (radians).
Trait Implementations§
Source§impl Clone for GestureConfig
impl Clone for GestureConfig
Source§fn clone(&self) -> GestureConfig
fn clone(&self) -> GestureConfig
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 GestureConfig
impl Debug for GestureConfig
Auto Trait Implementations§
impl Freeze for GestureConfig
impl RefUnwindSafe for GestureConfig
impl Send for GestureConfig
impl Sync for GestureConfig
impl Unpin for GestureConfig
impl UnwindSafe for GestureConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().