SwipeGestureEventArgs
struct · ferroui-base · v0.5.0
struct SwipeGestureEventArgs
Provides data for swipe gesture events.
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.
id
fn id(self: &Self) -> i32
The unique identifier for this gesture sequence.
delta
fn delta(self: &Self) -> Vector
The pixel delta since the last event.
velocity
fn velocity(self: &Self) -> Vector
The current swipe velocity in pixels per second.
swipe_direction
fn swipe_direction(self: &Self) -> SwipeDirection
The direction of the dominant swipe axis.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDerefIRoutedEventArgsMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.