# ICompositionObjectAnimations

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/trait-icompositionobjectanimations/

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

```rust
trait ICompositionObjectAnimations
```

The animation members of `CompositionObject`, written against the class
that embeds one.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_object.rs#L321)

## Members

- [`composition_object`](#function-composition_object)
- [`try_get_animation_controller`](#function-try_get_animation_controller)
- [`stop_animation`](#function-stop_animation)

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

### composition_object

```rust
fn composition_object(self: &Self) -> &CompositionObject
```

The embedded `CompositionObject`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_object.rs#L335)

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

### try_get_animation_controller

```rust
fn try_get_animation_controller(self: &Self, property_name: &str) -> Option<Rc<AnimationController>>
```

The controller of the animation of the named property
(`TryGetAnimationController`): the controller it was started with, or
a new controller that takes the running animation over. `None` when no
animation was started on the property through this object, or it was
stopped.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_object.rs#L381)

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

### stop_animation

```rust
fn stop_animation(self: &Self, property_name: &str)
```

Disconnects an animation from the named property and stops it,
applying its stop behavior. `property_name` may name a sub-channel
(`Offset.X`): the animations of the sub-channels that share a
component with it are stopped.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_object.rs#L400)

## Trait implementations

- [`ICompositionObjectAnimations`](/docs/0.5.0/api/ferroui-base/rendering/composition/trait-icompositionobjectanimations/)

## Availability

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