# AnimationValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/enum-animationvalue/

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

```rust
enum AnimationValue
```

Typed values preserve the difference between a point and a two-component thickness. Colors
use normalized [0,1] sRGB channels. Interpolation converts RGB to linear light, matching
FerroUI's ColorAnimator; alpha stays linear.

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

## Members

- [`Number`](#variant-number)
- [`Color`](#variant-color)
- [`Point`](#variant-point)
- [`Vector`](#variant-vector)
- [`Size`](#variant-size)
- [`Rect`](#variant-rect)
- [`CornerRadius`](#variant-cornerradius)
- [`RelativePoint`](#variant-relativepoint)
- [`RelativeScalar`](#variant-relativescalar)
- [`Thickness`](#variant-thickness)
- [`Discrete`](#variant-discrete)
- [`kind`](#function-kind)
- [`validate`](#function-validate)
- [`interpolate`](#function-interpolate)
- [`to_xaml`](#function-to_xaml)
- [`parse`](#function-parse)

<a id="variant-number"></a>

### Number

```rust
Number(f64)
```



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

<a id="variant-color"></a>

### Color

```rust
Color { a: f64, r: f64, g: f64, b: f64 }
```



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

<a id="variant-point"></a>

### Point

```rust
Point { x: f64, y: f64 }
```



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

<a id="variant-vector"></a>

### Vector

```rust
Vector { x: f64, y: f64 }
```



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

<a id="variant-size"></a>

### Size

```rust
Size { width: f64, height: f64 }
```



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

<a id="variant-rect"></a>

### Rect

```rust
Rect { x: f64, y: f64, width: f64, height: f64 }
```



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

<a id="variant-cornerradius"></a>

### CornerRadius

```rust
CornerRadius { top_left: f64, top_right: f64, bottom_right: f64, bottom_left: f64 }
```



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

<a id="variant-relativepoint"></a>

### RelativePoint

```rust
RelativePoint { x: f64, y: f64, unit: RelativeUnit }
```



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

<a id="variant-relativescalar"></a>

### RelativeScalar

```rust
RelativeScalar { scalar: f64, unit: RelativeUnit }
```



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

<a id="variant-thickness"></a>

### Thickness

```rust
Thickness { left: f64, top: f64, right: f64, bottom: f64 }
```



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

<a id="variant-discrete"></a>

### Discrete

```rust
Discrete(String)
```



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

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

### kind

```rust
fn kind(self: &Self) -> ValueKind
```



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

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

### validate

```rust
fn validate(self: &Self) -> Result<()>
```



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

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

### interpolate

```rust
fn interpolate(self: &Self, to: &Self, progress: f64) -> Result<Self>
```



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

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

### to_xaml

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



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

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

### parse

```rust
fn parse(source: &str, kind: ValueKind) -> Result<Self>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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