# TransitionManager

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/struct-transitionmanager/

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

```rust
struct TransitionManager
```

Derives animation triggers from collection and layout changes during the
current layout cycle and returns removed elements when their transition ends.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L19)

## Members

- [`new`](#function-new)
- [`on_transition_provider_changed`](#function-on_transition_provider_changed)
- [`on_layout_changing`](#function-on_layout_changing)
- [`on_items_source_changed`](#function-on_items_source_changed)
- [`on_element_prepared`](#function-on_element_prepared)
- [`clear_element`](#function-clear_element)
- [`on_element_bounds_changed`](#function-on_element_bounds_changed)
- [`on_element_clearing`](#function-on_element_clearing)
- [`on_owner_arranged`](#function-on_owner_arranged)

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

### new

```rust
fn new(recycle: Rc<dyn Fn(Ref<Control>) -> ()>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L29)

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

### on_transition_provider_changed

```rust
fn on_transition_provider_changed(self: &Rc<Self>, provider: Option<Ref<ItemCollectionTransitionProvider>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L40)

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

### on_layout_changing

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L100)

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

### on_items_source_changed

```rust
fn on_items_source_changed(self: &Self, action: NotifyCollectionChangedAction)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L104)

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

### on_element_prepared

```rust
fn on_element_prepared(self: &Self, element: &Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L116)

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

### clear_element

```rust
fn clear_element(self: &Self, element: &Ref<Control>) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L133)

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

### on_element_bounds_changed

```rust
fn on_element_bounds_changed(self: &Self, element: &Ref<Control>, old_bounds: Rect, new_bounds: Rect)
```



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

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

### on_element_clearing

```rust
fn on_element_clearing(self: &Self, element: &Ref<Control>)
```

Invalidate the removal identity and cancel native animation values before
ElementClearing or the old factory can observe and reuse this control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/transition_manager.rs#L183)

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

### on_owner_arranged

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



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

## 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`

## Availability

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