FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.