pub struct GestureConfig {
pub multi_click_timeout: Duration,
pub long_press_threshold: Duration,
pub drag_threshold: u16,
pub chord_timeout: Duration,
pub swipe_velocity_threshold: f32,
pub click_tolerance: u16,
}Expand description
Thresholds and timeouts for gesture recognition.
Fields§
§multi_click_timeout: DurationTime window for double/triple click detection (default: 300ms).
long_press_threshold: DurationDuration before a stationary mouse-down triggers long press (default: 500ms).
drag_threshold: u16Minimum manhattan distance (cells) before a drag starts (default: 3).
chord_timeout: DurationTime window for chord key sequence completion (default: 1000ms).
swipe_velocity_threshold: f32Minimum velocity (cells/sec) for swipe detection (default: 50.0).
click_tolerance: u16Position tolerance for multi-click detection (manhattan distance, default: 1).
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 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