# ScrollGestureEventArgs

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

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

```rust
struct ScrollGestureEventArgs
```

Provides data for the scroll gesture event.

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

## Members

- [`new`](#function-new)
- [`get_next_free_id`](#function-get_next_free_id)
- [`id`](#function-id)
- [`delta`](#function-delta)
- [`should_end_scroll_gesture`](#function-should_end_scroll_gesture)
- [`set_should_end_scroll_gesture`](#function-set_should_end_scroll_gesture)

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

### new

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

Creates scroll gesture event args.

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

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

### get_next_free_id

```rust
fn get_next_free_id() -> i32
```

Returns a new gesture identifier.

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

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

### id

```rust
fn id(self: &Self) -> i32
```

The identifier of the gesture.

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

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

### delta

```rust
fn delta(self: &Self) -> Vector
```

The distance scrolled since the previous event.

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

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

### should_end_scroll_gesture

```rust
fn should_end_scroll_gesture(self: &Self) -> bool
```

When set, the scroll gesture recognizer should stop its current
active scroll gesture.

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

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

### set_should_end_scroll_gesture

```rust
fn set_should_end_scroll_gesture(self: &Self, value: bool)
```



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

## 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/).
