# PinchEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-pincheventargs/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct PinchEventArgs
```

Provides data for the pinch gesture event.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L7)

## Members

- [`new`](#function-new)
- [`with_angle`](#function-with_angle)
- [`scale`](#function-scale)
- [`scale_origin`](#function-scale_origin)
- [`angle`](#function-angle)
- [`angle_delta`](#function-angle_delta)

<a id="function-new"></a>

### new

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

Creates pinch event args with a scale and its origin.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L19)

<a id="function-with_angle"></a>

### with_angle

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L25)

<a id="function-scale"></a>

### scale

```rust
fn scale(self: &Self) -> f64
```

The scale of the pinch relative to its start.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L37)

<a id="function-scale_origin"></a>

### scale_origin

```rust
fn scale_origin(self: &Self) -> Point
```

The origin of the scale.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L43)

<a id="function-angle"></a>

### angle

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L53)

<a id="function-angle_delta"></a>

### angle_delta

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pinch_event_args.rs#L62)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
