FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FluidMoveAnimation

    struct · ferroui-xaml-behaviors-animations · v0.5.0

    struct FluidMoveAnimation
    

    Creates and runs the translation animation used for fluid layout movement.

    View source

    Members

    create

    fn create(offset_x: f64, offset_y: f64, duration: SignedDuration) -> Ref<Animation>
    

    Creates an animation from a previous layout offset (offset_x, offset_y) back to the current position, over duration.

    Panics

    When duration is negative (the ArgumentOutOfRangeException of the reference).

    Source

    run

    fn run(target: &Control, offset_x: f64, offset_y: f64, duration: SignedDuration)
    

    Creates and starts a fluid movement animation on a control: target is the target control, offset_x and offset_y the previous offsets, duration the animation duration.

    Source

    try_run

    fn try_run(target: Option<&Control>, offset_x: f64, offset_y: f64, duration: SignedDuration) -> bool
    

    Prepares a control's translation transform and starts a fluid movement animation. Returns true when the target was prepared and the animation was started; otherwise, false.

    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.