FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PinchEventArgs

    struct · ferroui-base · v0.5.0

    struct PinchEventArgs
    

    Provides data for the pinch gesture event.

    View source

    Members

    new

    fn new(scale: f64, scale_origin: Point) -> Self
    

    Creates pinch event args with a scale and its origin.

    Source

    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.

    Source

    scale

    fn scale(self: &Self) -> f64
    

    The scale of the pinch relative to its start.

    Source

    scale_origin

    fn scale_origin(self: &Self) -> Point
    

    The origin of the scale.

    Source

    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.

    Source

    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.

    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.