# GravityConnectedAnimationConfiguration

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/animation/struct-gravityconnectedanimationconfiguration/

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

```rust
struct GravityConnectedAnimationConfiguration
```

Produces a gravity-physics effect suitable for forward navigation: the
element arcs slightly as it travels and casts an animated shadow. This is
the default configuration when none is specified.

Use [`DirectConnectedAnimationConfiguration`](/docs/0.5.0/api/ferroui-controls/animation/struct-directconnectedanimationconfiguration/) for back navigation and
[`BasicConnectedAnimationConfiguration`](/docs/0.5.0/api/ferroui-controls/animation/struct-basicconnectedanimationconfiguration/) for a plain transition.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/animation/connected_animation_configuration.rs#L27)

## Members

- [`new`](#function-new)
- [`is_shadow_enabled`](#function-is_shadow_enabled)
- [`set_is_shadow_enabled`](#function-set_is_shadow_enabled)
- [`with_is_shadow_enabled`](#function-with_is_shadow_enabled)

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

### new

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

Creates the configuration.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/animation/connected_animation_configuration.rs#L33)

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

### is_shadow_enabled

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

Gets whether a drop shadow is rendered beneath the element during the
gravity arc. Defaults to `true`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/animation/connected_animation_configuration.rs#L39)

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

### set_is_shadow_enabled

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

Sets whether a drop shadow is rendered beneath the element during the
gravity arc.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/animation/connected_animation_configuration.rs#L45)

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

### with_is_shadow_enabled

```rust
fn with_is_shadow_enabled(self: Rc<Self>, value: bool) -> Rc<Self>
```

Sets `is_shadow_enabled` and returns the
configuration.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/animation/connected_animation_configuration.rs#L51)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`ConnectedAnimationConfiguration`](/docs/0.5.0/api/ferroui-controls/animation/trait-connectedanimationconfiguration/)

## Availability

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