AnimationRunner
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct AnimationRunner
Builds and runs animations independently of behaviors, actions, and triggers.
The Task of the reference is the AnimationTask of the run.
Members
run_async
fn run_async(animation: &Animation, target: &Animatable) -> AnimationTask
Runs an animation on an animatable target. Returns a task that completes when the animation finishes.
try_run
fn try_run(animation: Option<&Animation>, target: Option<&Animatable>) -> bool
Starts an animation when both the animation and target are available. Returns true when
the animation was started; otherwise, false.
try_run_async
fn try_run_async(animation: Option<&Animation>, target: Option<&Animatable>) -> Option<AnimationTask>
Starts an animation when both the animation and target are available and returns its
completion task, or None when the animation could not be started.
try_build_and_run
fn try_build_and_run(control: Option<&Control>, animation: Option<&Animation>, animation_builder: Option<&dyn IAnimationBuilder>) -> bool
Selects an explicit animation or builds one and starts it on a control: animation is
the preferred animation, animation_builder the fallback animation builder. Returns
true when an animation was started; otherwise, false.
try_build_and_run_async
fn try_build_and_run_async(control: Option<&Control>, animation: Option<&Animation>, animation_builder: Option<&dyn IAnimationBuilder>) -> Option<AnimationTask>
Selects an explicit animation or builds one, starts it on a control, and returns its
completion task, or None when no animation could be started.
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.