Enum oxygengine_user_interface::raui::core::animator::Animation[][src]

pub enum Animation {
    Value(AnimatedValue),
    Sequence(Vec<Animation, Global>),
    Parallel(Vec<Animation, Global>),
    Looped(Box<Animation, Global>),
    TimeShift(f32),
    Message(String),
}
Expand description

Defines a widget animation

Animation’s can be added to widget component’s AnimatorStates to animate values.

Creating an Animation doesn’t actually animate a specific value, but instead gives you a way to track the progress of an animated value using the value_progress function. This allows you to use the progress to calculate how to interpolate the real values when you build your widget.

Variants

Value(AnimatedValue)

Tuple Fields

A single animated value with a name and a duration

Sequence(Vec<Animation, Global>)

Tuple Fields

A sequence of animations that will be run in a row

Parallel(Vec<Animation, Global>)

Tuple Fields

A set of animations that will be run at the same time

Looped(Box<Animation, Global>)

Tuple Fields

An animation that will play in a loop

TimeShift(f32)

Tuple Fields

0: f32

TODO: Document TimeShift

Message(String)

Tuple Fields

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.