pub struct TapGesture<F> { /* private fields */ }Expand description
A gesture recognizing a tap.
Implementations§
Source§impl<F> TapGesture<F>where
F: Fn(),
impl<F> TapGesture<F>where
F: Fn(),
Sourcepub const fn new(count: usize, action: F) -> Self
pub const fn new(count: usize, action: F) -> Self
Creates a tap gesture that executes the given action upon recognizing the given number of taps.
Sourcepub const fn new_single(action: F) -> Self
pub const fn new_single(action: F) -> Self
Creates a tap gesture that executes the given action after recognizing a single tap.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for TapGesture<F>where
F: Freeze,
impl<F> RefUnwindSafe for TapGesture<F>where
F: RefUnwindSafe,
impl<F> Send for TapGesture<F>where
F: Send,
impl<F> Sync for TapGesture<F>where
F: Sync,
impl<F> Unpin for TapGesture<F>where
F: Unpin,
impl<F> UnwindSafe for TapGesture<F>where
F: UnwindSafe,
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