pub struct LongPressConfig {
pub long_press_ticks: u32,
pub repeat_ticks: u32,
}Expand description
Configuration for a LongPressRecognizer instance.
All durations are in Tick counts (LPAR-04 §9.1 — no wall-clock APIs). Convert milliseconds to ticks at your loop edge if needed.
Fields§
§long_press_ticks: u32Number of ticks a contact must be held before LongPress is emitted.
Defaults to LONG_PRESS_TICKS (≈ 400 ms at 30 Hz).
repeat_ticks: u32Number of ticks between successive LongPressRepeat emissions after the
initial LongPress. Defaults to LONG_PRESS_REPEAT_TICKS (≈ 100 ms
at 30 Hz).
Trait Implementations§
Source§impl Clone for LongPressConfig
impl Clone for LongPressConfig
Source§fn clone(&self) -> LongPressConfig
fn clone(&self) -> LongPressConfig
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 moreimpl Copy for LongPressConfig
Source§impl Debug for LongPressConfig
impl Debug for LongPressConfig
Source§impl Default for LongPressConfig
impl Default for LongPressConfig
impl Eq for LongPressConfig
Source§impl PartialEq for LongPressConfig
impl PartialEq for LongPressConfig
impl StructuralPartialEq for LongPressConfig
Auto Trait Implementations§
impl Freeze for LongPressConfig
impl RefUnwindSafe for LongPressConfig
impl Send for LongPressConfig
impl Sync for LongPressConfig
impl Unpin for LongPressConfig
impl UnsafeUnpin for LongPressConfig
impl UnwindSafe for LongPressConfig
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