AnimationFactory
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct AnimationFactory
Creates commonly used key-frame animations.
Members
create_fade_in
fn create_fade_in(initial_delay: SignedDuration, duration: SignedDuration) -> Ref<Animation>
Creates an opacity animation that holds at zero during the initial delay and then fades to one.
initial_delay is the delay before the fade begins, duration the duration of the fade.
Panics
When initial_delay or duration is negative (the ArgumentOutOfRangeException of the
reference).
create_fade_in_timeline
fn create_fade_in_timeline(initial_delay: SignedDuration, fade_completion_time: SignedDuration, total_duration: SignedDuration) -> Ref<Animation>
Creates an opacity animation with explicit hold, completion, and total times.
initial_delay is the key time through which opacity remains zero, fade_completion_time
the key time at which opacity becomes one and total_duration the total animation
duration.
Panics
When any supplied time is negative or the key times are not chronological (the
ArgumentOutOfRangeException of the reference).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.