PinchEventArgs
struct · ferroui-base · v0.5.0
struct PinchEventArgs
Provides data for the pinch gesture event.
Members
new
fn new(scale: f64, scale_origin: Point) -> Self
Creates pinch event args with a scale and its origin.
with_angle
fn with_angle(scale: f64, scale_origin: Point, angle: f64, angle_delta: f64) -> Self
Creates pinch event args with a scale, its origin and the angle of the gesture.
scale
fn scale(self: &Self) -> f64
The scale of the pinch relative to its start.
scale_origin
fn scale_origin(self: &Self) -> Point
The origin of the scale.
angle
fn angle(self: &Self) -> f64
The angle of the pinch gesture, in degrees.
A pinch gesture is the movement of two pressed points closer together. This property is the measured angle of the line between those two points. Remember zero degrees is a line pointing up.
angle_delta
fn angle_delta(self: &Self) -> f64
The difference from the previous and current pinch angle.
The value includes the sign of rotation: positive for clockwise, negative counterclockwise.
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.