pub struct TapEvent {
pub location: GesturePoint,
pub count: u32,
}Expand description
Event payload for tap gestures.
Backends place this structure into the environment when a tap is recognised,
allowing gesture handlers to extract the payload using Use<TapEvent>.
Fields§
§location: GesturePointLocation of the tap in the widget’s coordinate space.
count: u32Number of taps that occurred in succession.
Trait Implementations§
impl StructuralPartialEq for TapEvent
Auto Trait Implementations§
impl Freeze for TapEvent
impl RefUnwindSafe for TapEvent
impl Send for TapEvent
impl Sync for TapEvent
impl Unpin for TapEvent
impl UnwindSafe for TapEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)