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)
A single animated value with a name and a duration
A sequence of animations that will be run in a row
A set of animations that will be run at the same time
An animation that will play in a loop
TimeShift(f32)
TODO: Document TimeShift
Message(String)
Send an AnimationMessage
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Animation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Animation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Animation
impl UnwindSafe for Animation
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.