FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RotateAnimation

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

    struct RotateAnimation
    

    Provides rotation animation helpers using composition animations.

    View source

    Members

    set_rotate_clockwise

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

    Applies a clockwise rotation animation to the element when loaded (0 to 360 degrees), over milliseconds.

    Source

    set_rotate_counter_clockwise

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

    Applies a counter-clockwise rotation animation to the element when loaded (0 to -360 degrees), over milliseconds.

    Source

    set_rotate_in

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

    Applies a rotate-in animation to the element when loaded (from -180 to 0 degrees), over milliseconds.

    Source

    set_rotate_out

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

    Applies a rotate-out animation to the element when loaded (from 0 to 180 degrees), over milliseconds.

    Source

    set_flip

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

    Applies a flip animation to the element when loaded (180 degree rotation), over milliseconds.

    Source

    set_swing

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

    Applies a swing animation to the element when loaded (back and forth rotation), over milliseconds.

    Source

    set_custom_rotate

    fn set_custom_rotate(element: &Control, from_angle: f64, to_angle: f64, milliseconds: f64)
    

    Applies a custom rotation animation to the element when loaded: from from_angle to to_angle degrees, 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.