pub struct AnimationDefinition {
pub event: AnimationEvent,
pub type_: AnimationKind,
pub duration: Option<f32>,
pub parts: Vec<BuiltInAnimationPart>,
}Expand description
An animation definition for one animatable event.
Fields§
§event: AnimationEventThe compositor event to animate.
type_: AnimationKindWhether to use a built-in animation effect or a plugin callback.
duration: Option<f32>Duration in seconds.
parts: Vec<BuiltInAnimationPart>The list of animation phases (required when type_ is BuiltIn).
Trait Implementations§
Source§impl Clone for AnimationDefinition
impl Clone for AnimationDefinition
Source§fn clone(&self) -> AnimationDefinition
fn clone(&self) -> AnimationDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationDefinition
impl Debug for AnimationDefinition
Source§impl Default for AnimationDefinition
impl Default for AnimationDefinition
Source§fn default() -> AnimationDefinition
fn default() -> AnimationDefinition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnimationDefinition
impl RefUnwindSafe for AnimationDefinition
impl Send for AnimationDefinition
impl Sync for AnimationDefinition
impl Unpin for AnimationDefinition
impl UnwindSafe for AnimationDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more