# IAnimationSetter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/trait-ianimationsetter/

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

```rust
trait IAnimationSetter: 'static
```

A setter that can be used in the key frames of an animation.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L5)

## Members

- [`property`](#function-property)
- [`set_property`](#function-set_property)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`as_any`](#function-as_any)

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

### property

```rust
fn property(self: &Self) -> Option<&'static FerroProperty>
```

The property the setter targets.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L7)

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

### set_property

```rust
fn set_property(self: &Self, value: Option<&'static FerroProperty>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L9)

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

### value

```rust
fn value(self: &Self) -> Option<SetterValue>
```

The value of the setter: a plain value holding exactly the value type
of the property, or a source of such values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L13)

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

### set_value

```rust
fn set_value(self: &Self, value: Option<SetterValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L15)

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

### as_any

```rust
fn as_any(self: &Self) -> Option<&dyn std::any::Any>
```

The implementing value, for casting to its concrete type
(`as_any()?.downcast_ref::<T>()`): the equivalent of `is`/`as` on the
contract. `None` for an implementation that does not expose itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_animation_setter.rs#L20)

## Trait implementations

- [`IAnimationSetter`](/docs/0.5.0/api/ferroui-base/animation/trait-ianimationsetter/)

## Availability

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