Enum raui_core::animator::Animation [−][src]
pub enum Animation {
Value(AnimatedValue),
Sequence(Vec<Animation>),
Parallel(Vec<Animation>),
Looped(Box<Animation>),
TimeShift(Scalar),
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(Scalar)TODO: Document TimeShift
Message(String)Send an AnimationMessage
Trait Implementations
impl<'de> Deserialize<'de> for Animation[src]
impl<'de> Deserialize<'de> for Animation[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,