FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FadeAnimation

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

    struct FadeAnimation
    

    Provides fade animation helpers using composition animations.

    View source

    Members

    set_fade_in

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

    Applies a fade-in animation to the element when loaded, over milliseconds.

    Source

    set_fade_out

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

    Applies a fade-out animation to the element when loaded, over milliseconds.

    Source

    set_custom_fade

    fn set_custom_fade(element: &Control, from_opacity: f64, to_opacity: f64, milliseconds: f64)
    

    Applies a custom fade animation to the element when loaded: from from_opacity to to_opacity (0.0 to 1.0), 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.