# AnimationPrograms

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/struct-animationprograms/

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

```rust
struct AnimationPrograms
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L237)

## Members

- [`scan`](#function-scan)
- [`create`](#function-create)
- [`remove`](#function-remove)
- [`rename`](#function-rename)
- [`duplicate`](#function-duplicate)
- [`replace_source`](#function-replace_source)
- [`set_selector`](#function-set_selector)

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

### scan

```rust
fn scan(document: &Document) -> Vec<AnimationProgram>
```

Enumerate every Animation, including resource, nested-style and custom payload programs.
Hosts resolve selectors against their live tree and then invoke the codec registry.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L241)

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

### create

```rust
fn create(document: &Document, owner: NodeId, name: &str, selector: &str, timeline: &Timeline) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L334)

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

### remove

```rust
fn remove(document: &Document, id: NodeId) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L353)

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

### rename

```rust
fn rename(document: &Document, id: NodeId, name: &str) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L357)

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

### duplicate

```rust
fn duplicate(document: &Document, id: NodeId, name: &str) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L401)

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

### replace_source

```rust
fn replace_source(document: &Document, id: NodeId, source: &str) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L479)

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

### set_selector

```rust
fn set_selector(document: &Document, id: NodeId, selector: &str) -> Result<Vec<Edit>>
```

Isolate this program in its own sibling style before changing a shared style selector.
MoveNode pins the original Animation identity; existing setters and other animations stay.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/programs.rs#L530)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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