#[non_exhaustive]pub struct Animation {
pub animation_type: Option<AnimationType>,
/* private fields */
}Expand description
Animation types.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.animation_type: Option<AnimationType>Animations can be static or fade, or they can end the previous animation.
Implementations§
Source§impl Animation
impl Animation
pub fn new() -> Self
Sourcepub fn set_animation_type<T: Into<Option<AnimationType>>>(self, v: T) -> Self
pub fn set_animation_type<T: Into<Option<AnimationType>>>(self, v: T) -> Self
Sets the value of animation_type.
Note that all the setters affecting animation_type are mutually
exclusive.
Sourcepub fn animation_static(&self) -> Option<&Box<AnimationStatic>>
pub fn animation_static(&self) -> Option<&Box<AnimationStatic>>
The value of animation_type
if it holds a AnimationStatic, None if the field is not set or
holds a different branch.
Sourcepub fn set_animation_static<T: Into<Box<AnimationStatic>>>(self, v: T) -> Self
pub fn set_animation_static<T: Into<Box<AnimationStatic>>>(self, v: T) -> Self
Sets the value of animation_type
to hold a AnimationStatic.
Note that all the setters affecting animation_type are
mutually exclusive.
Sourcepub fn animation_fade(&self) -> Option<&Box<AnimationFade>>
pub fn animation_fade(&self) -> Option<&Box<AnimationFade>>
The value of animation_type
if it holds a AnimationFade, None if the field is not set or
holds a different branch.
Sourcepub fn set_animation_fade<T: Into<Box<AnimationFade>>>(self, v: T) -> Self
pub fn set_animation_fade<T: Into<Box<AnimationFade>>>(self, v: T) -> Self
Sets the value of animation_type
to hold a AnimationFade.
Note that all the setters affecting animation_type are
mutually exclusive.
Sourcepub fn animation_end(&self) -> Option<&Box<AnimationEnd>>
pub fn animation_end(&self) -> Option<&Box<AnimationEnd>>
The value of animation_type
if it holds a AnimationEnd, None if the field is not set or
holds a different branch.
Sourcepub fn set_animation_end<T: Into<Box<AnimationEnd>>>(self, v: T) -> Self
pub fn set_animation_end<T: Into<Box<AnimationEnd>>>(self, v: T) -> Self
Sets the value of animation_type
to hold a AnimationEnd.
Note that all the setters affecting animation_type are
mutually exclusive.