# PullGestureRecognizer

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

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

```rust
struct PullGestureRecognizer
```

Recognizes the pull gesture: a drag from an edge of the target, as used
by pull-to-refresh.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`pull_direction_property`](#function-pull_direction_property)
- [`new`](#function-new)
- [`with_direction`](#function-with_direction)
- [`pull_direction`](#function-pull_direction)
- [`set_pull_direction`](#function-set_pull_direction)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<PullGestureRecognizer>
```

Returns a strong reference to this object.

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

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

### pull_direction_property

```rust
fn pull_direction_property() -> &'static StyledProperty<PullDirection>
```

Defines the `PullDirection` property.

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

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

### new

```rust
fn new() -> Ref<Self>
```

Creates a recognizer for pulls from the top.

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

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

### with_direction

```rust
fn with_direction(pull_direction: PullDirection) -> Ref<Self>
```

Creates a recognizer for pulls in the given direction.

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

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

### pull_direction

```rust
fn pull_direction(self: &Self) -> PullDirection
```

The direction the target is pulled in.

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

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

### set_pull_direction

```rust
fn set_pull_direction(self: &Self, value: PullDirection)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`GestureRecognizerImplExt`](/docs/0.5.0/api/ferroui-base/input/gesture_recognizers/trait-gesturerecognizerimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<PullGestureRecognizer>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`GestureRecognizerImpl`](/docs/0.5.0/api/ferroui-base/input/gesture_recognizers/trait-gesturerecognizerimpl/)

## Availability

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