FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SwipeGestureEventArgs

    struct · ferroui-base · v0.5.0

    struct SwipeGestureEventArgs
    

    Provides data for swipe gesture events.

    View source

    Members

    new

    fn new(id: i32, delta: Vector, velocity: Vector) -> Self
    

    Creates swipe gesture event args.

    id is the unique identifier for this gesture, delta the pixel delta since the last event and velocity the current swipe velocity in pixels per second.

    Source

    id

    fn id(self: &Self) -> i32
    

    The unique identifier for this gesture sequence.

    Source

    delta

    fn delta(self: &Self) -> Vector
    

    The pixel delta since the last event.

    Source

    velocity

    fn velocity(self: &Self) -> Vector
    

    The current swipe velocity in pixels per second.

    Source

    swipe_direction

    fn swipe_direction(self: &Self) -> SwipeDirection
    

    The direction of the dominant swipe axis.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref
    • IRoutedEventArgs
    • MarkupTyped

    Availability

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