# RefreshContainer

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/pull_to_refresh/struct-refreshcontainer/

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

```rust
struct RefreshContainer
```

Represents a container control that provides a [`RefreshVisualizer`](/docs/0.5.0/api/ferroui-controls/pull_to_refresh/struct-refreshvisualizer/) and
pull-to-refresh functionality for scrollable content.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L22)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`visualizer_property`](#function-visualizer_property)
- [`pull_direction_property`](#function-pull_direction_property)
- [`is_mouse_enabled_property`](#function-is_mouse_enabled_property)
- [`refresh_requested_event`](#function-refresh_requested_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`is_mouse_enabled`](#function-is_mouse_enabled)
- [`set_is_mouse_enabled`](#function-set_is_mouse_enabled)
- [`visualizer`](#function-visualizer)
- [`set_visualizer`](#function-set_visualizer)
- [`pull_direction`](#function-pull_direction)
- [`set_pull_direction`](#function-set_pull_direction)
- [`refresh_requested`](#function-refresh_requested)
- [`request_refresh`](#function-request_refresh)

<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.Controls/pull_to_refresh/refresh_container.rs#L35)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L35)

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

### visualizer_property

```rust
fn visualizer_property() -> &'static DirectProperty<RefreshContainer, Option<Ref<RefreshVisualizer>>>
```

Defines the `Visualizer` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L156)

<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.Controls/pull_to_refresh/refresh_container.rs#L156)

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

### is_mouse_enabled_property

```rust
fn is_mouse_enabled_property() -> &'static StyledProperty<bool>
```

Defines the `IsMouseEnabled` property.

Allows to enable the pull to refresh gesture for devices using a
mouse. Disabled by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L156)

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

### refresh_requested_event

```rust
fn refresh_requested_event() -> &'static RoutedEvent<RefreshRequestedEventArgs>
```

Defines the `RefreshRequested` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L202)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L210)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L224)

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

### is_mouse_enabled

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

Gets or sets a value that indicates whether the pull-to-refresh
gesture is enabled for desktop devices. Allows to enable the pull to
refresh gesture for devices using a mouse. Disabled by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L240)

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

### set_is_mouse_enabled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L244)

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

### visualizer

```rust
fn visualizer(self: &Self) -> Option<Ref<RefreshVisualizer>>
```

Gets or sets the `RefreshVisualizer` for this container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L249)

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

### set_visualizer

```rust
fn set_visualizer(self: &Self, value: Option<Ref<RefreshVisualizer>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L253)

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

### pull_direction

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

Gets or sets a value that specifies the direction to pull to
initiate a refresh.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L267)

<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.Controls/pull_to_refresh/refresh_container.rs#L271)

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

### refresh_requested

```rust
fn refresh_requested(self: &Self, handler: impl Fn(&Interactive, &RefreshRequestedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Occurs when an update of the content has been initiated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L276)

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

### request_refresh

```rust
fn request_refresh(self: &Self)
```

Initiates an update of the content.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_container.rs#L390)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ContentControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`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/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RefreshContainer>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)

## Availability

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