# TransitionBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/struct-transitionbase/

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

```rust
struct TransitionBase
```

Defines how a property should be animated using a transition.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`apply`](#function-apply)
- [`value_type`](#function-value_type)
- [`duration_property`](#function-duration_property)
- [`delay_property`](#function-delay_property)
- [`easing_property`](#function-easing_property)
- [`property_property`](#function-property_property)
- [`construct`](#function-construct)
- [`duration`](#function-duration)
- [`set_duration`](#function-set_duration)
- [`delay`](#function-delay)
- [`set_delay`](#function-set_delay)
- [`easing`](#function-easing)
- [`set_easing`](#function-set_easing)
- [`property`](#function-property)
- [`set_property`](#function-set_property)
- [`debug_display`](#function-debug_display)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<TransitionBase>
```

Returns a strong reference to this object.

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

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

### apply

```rust
fn apply(self: &Self, control: &Animatable, clock: Rc<dyn IClock>, old_value: &BoxedValue, new_value: &BoxedValue) -> Rc<dyn IDisposable>
```

Applies the transition to `control`: animates the transition's
property from `old_value` to `new_value`.

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

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

### value_type

```rust
fn value_type(self: &Self) -> (TypeId, &'static str)
```

The type of the values the transition animates, which the value
type of its property has to match.

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

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

### duration_property

```rust
fn duration_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
```

Defines the `Duration` property.

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

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

### delay_property

```rust
fn delay_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
```

Defines the `Delay` property.

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

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

### easing_property

```rust
fn easing_property() -> &'static DirectProperty<TransitionBase, Easing>
```

Defines the `Easing` property.

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

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

### property_property

```rust
fn property_property() -> &'static DirectProperty<TransitionBase, Option<&'static FerroProperty>>
```

Defines the `Property` property.

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

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `FerroObject::construct`.

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

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

### duration

```rust
fn duration(self: &Self) -> SignedDuration
```

The duration of the transition.

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

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

### set_duration

```rust
fn set_duration(self: &Self, value: SignedDuration)
```



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

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

### delay

```rust
fn delay(self: &Self) -> SignedDuration
```

The delay before the transition starts.

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

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

### set_delay

```rust
fn set_delay(self: &Self, value: SignedDuration)
```



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

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

### easing

```rust
fn easing(self: &Self) -> Easing
```

The easing class to be used.

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

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

### set_easing

```rust
fn set_easing(self: &Self, value: impl Into<Easing>)
```



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

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

### property

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

The property to be animated.

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

<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/transition_base.rs#L165)

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

### debug_display

```rust
fn debug_display(self: &Self) -> String
```

A description of the transition for diagnostics.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TransitionBaseImplExt`](/docs/0.5.0/api/ferroui-base/animation/trait-transitionbaseimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TransitionBase>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`TransitionBaseImpl`](/docs/0.5.0/api/ferroui-base/animation/trait-transitionbaseimpl/)

## Availability

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