pub struct BuiltInAnimationPart {
pub type_: AnimationPartType,
pub function: EasingFunction,
pub c1: Option<f32>,
pub c2: Option<f32>,
pub c3: Option<f32>,
pub c4: Option<f32>,
pub c5: Option<f32>,
pub n1: Option<f32>,
pub d1: Option<f32>,
pub scale: Option<f32>,
}Expand description
A single built-in animation (one phase of an easing sequence).
Fields§
§type_: AnimationPartTypeThe visual effect for this animation phase.
function: EasingFunctionThe easing function that controls timing.
c1: Option<f32>§c2: Option<f32>§c3: Option<f32>§c4: Option<f32>§c5: Option<f32>§n1: Option<f32>§d1: Option<f32>§scale: Option<f32>The scale at the collapsed end of a grow or shrink animation.
grow interpolates from this value up to 1, while shrink
interpolates from 1 down to this value. Omitting it means the window
scales all the way to nothing. A value close to 1 (e.g. 0.9) produces
a subtle “pop” instead of a full zoom.
Trait Implementations§
Source§impl Clone for BuiltInAnimationPart
impl Clone for BuiltInAnimationPart
Source§fn clone(&self) -> BuiltInAnimationPart
fn clone(&self) -> BuiltInAnimationPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuiltInAnimationPart
impl Debug for BuiltInAnimationPart
Source§impl Default for BuiltInAnimationPart
impl Default for BuiltInAnimationPart
Source§fn default() -> BuiltInAnimationPart
fn default() -> BuiltInAnimationPart
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuiltInAnimationPart
impl RefUnwindSafe for BuiltInAnimationPart
impl Send for BuiltInAnimationPart
impl Sync for BuiltInAnimationPart
impl Unpin for BuiltInAnimationPart
impl UnsafeUnpin for BuiltInAnimationPart
impl UnwindSafe for BuiltInAnimationPart
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