Struct raui_core::animator::AnimatorState[][src]

pub struct AnimatorState { /* fields omitted */ }
Expand description

The state of a single animation in a component

This is most often accessed though AnimatorStates in the WidgetContext.

Implementations

Returns whether or not the animations is in-progress

Returns true if this animation is not in-progress

Get the current progress of the animation of a given value

This will return None if the value is not currently being animated.

Get the current progress factor of the animation of a given value

If the value is currently being animated this will return Some Scalar between 0 and 1 with 0 meaning just started and 1 meaning finished.

If the value is not currently being animated None will be returned

Same as value_progress_factor but returning default instead of None

Same as value_progress_factor but returning 0 instead of None

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)

recently added

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.