TappedEventArgs
struct · ferroui-base · v0.5.0
struct TappedEventArgs
Provides data for the tapped, double-tapped and right-tapped events.
Members
new
fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, last_pointer_event_args: &PointerEventArgs) -> Self
Creates tapped event args from the pointer event that completed the gesture.
pointer
fn pointer(self: &Self) -> &Rc<dyn IPointer>
The pointer that performed the gesture.
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
The key modifiers held down when the gesture completed.
timestamp
fn timestamp(self: &Self) -> u64
The platform time stamp of the pointer event that completed the gesture.
get_position
fn get_position(self: &Self, relative_to: Option<&Visual>) -> Point
Gets the pointer position relative to a control.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDerefIRoutedEventArgsIKeyModifiersEventArgsMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.