# TransitionCompletedEventArgs

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

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

```rust
struct TransitionCompletedEventArgs
```

Represents the event arguments for the `TransitionCompleted` event of the
[`TransitioningContentControl`](/docs/0.5.0/api/ferroui-controls/struct-transitioningcontentcontrol/).

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

## Members

- [`new`](#function-new)
- [`from`](#function-from)
- [`to`](#function-to)
- [`has_run_to_completion`](#function-has_run_to_completion)

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

### new

```rust
fn new(from: Option<BoxedValue>, to: Option<BoxedValue>, has_run_to_completion: bool) -> Self
```

Creates the args: `from` is the content that was transitioned from,
`to` the content that was transitioned to, and `has_run_to_completion`
tells whether the transition ran to completion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/transition_completed_event_args.rs#L21)

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

### from

```rust
fn from(self: &Self) -> Option<&BoxedValue>
```

The content that was transitioned from.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/transition_completed_event_args.rs#L32)

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

### to

```rust
fn to(self: &Self) -> Option<&BoxedValue>
```

The content that was transitioned to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/transition_completed_event_args.rs#L38)

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

### has_run_to_completion

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

Whether the transition ran to completion. If false, the transition
may have completed instantly or been cancelled.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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