pub struct GestureConfig {
pub tap_max_distance: f32,
pub tap_max_duration: f32,
pub swipe_min_distance: f32,
pub long_press_duration: f32,
pub double_tap_max_interval: f32,
}Expand description
Gesture recognition thresholds.
Fields§
§tap_max_distance: f32Maximum pointer travel for a tap or long press.
tap_max_duration: f32Maximum duration, in seconds, for a tap.
swipe_min_distance: f32Minimum pointer travel for a swipe.
long_press_duration: f32Minimum duration, in seconds, for a long press.
double_tap_max_interval: f32Maximum interval, in seconds, between taps for a double tap.
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 (const: unstable) · 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
Source§impl Default for GestureConfig
impl Default for GestureConfig
Source§impl PartialEq for GestureConfig
impl PartialEq for GestureConfig
Source§fn eq(&self, other: &GestureConfig) -> bool
fn eq(&self, other: &GestureConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GestureConfig
impl StructuralPartialEq 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 UnsafeUnpin 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