FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TappedEventArgs

    struct · ferroui-base · v0.5.0

    struct TappedEventArgs
    

    Provides data for the tapped, double-tapped and right-tapped events.

    View source

    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.

    Source

    pointer

    fn pointer(self: &Self) -> &Rc<dyn IPointer>
    

    The pointer that performed the gesture.

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    The key modifiers held down when the gesture completed.

    Source

    timestamp

    fn timestamp(self: &Self) -> u64
    

    The platform time stamp of the pointer event that completed the gesture.

    Source

    get_position

    fn get_position(self: &Self, relative_to: Option<&Visual>) -> Point
    

    Gets the pointer position relative to a control.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.