FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScaleAnimation

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

    struct ScaleAnimation
    

    Provides scale animation helpers using composition animations.

    View source

    Members

    set_scale_in

    fn set_scale_in(element: &Control, milliseconds: f64)
    

    Applies a scale-in animation to the element when loaded (from 0 to 1), over milliseconds.

    Source

    set_scale_out

    fn set_scale_out(element: &Control, milliseconds: f64)
    

    Applies a scale-out animation to the element when loaded (from 1 to 0), over milliseconds.

    Source

    set_zoom_in

    fn set_zoom_in(element: &Control, milliseconds: f64)
    

    Applies a zoom-in animation to the element when loaded (from 1.5 to 1), over milliseconds.

    Source

    set_zoom_out

    fn set_zoom_out(element: &Control, milliseconds: f64)
    

    Applies a zoom-out animation to the element when loaded (from 1 to 1.5), over milliseconds.

    Source

    set_bounce

    fn set_bounce(element: &Control, milliseconds: f64)
    

    Applies a bounce animation to the element when loaded, over milliseconds.

    Source

    set_custom_scale

    fn set_custom_scale(element: &Control, from_scale_x: f64, from_scale_y: f64, to_scale_x: f64, to_scale_y: f64, milliseconds: f64)
    

    Applies a custom scale animation to the element when loaded: from (from_scale_x, from_scale_y) to (to_scale_x, to_scale_y), over milliseconds.

    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
    • MarkupTyped

    Availability

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