FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ISolidColorBrushAnimator

    struct · ferroui-base · v0.5.0

    struct ISolidColorBrushAnimator
    

    Animator that handles brush properties whose key frames are all solid color brushes: interpolates the color and the opacity.

    The values are brush handles, as the animated property holds them; a value that is not a solid color brush is not interpolated.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    interpolate_core

    fn interpolate_core(progress: f64, old_value: &Option<Rc<dyn IBrush>>, new_value: &Option<Rc<dyn IBrush>>) -> Option<Rc<dyn IBrush>>
    

    Interpolates between two brushes using the specified progress.

    Source

    Trait implementations

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

    Availability

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