FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ElasticEasingFunction

    struct · ferroui-base · v0.5.0

    struct ElasticEasingFunction
    

    An oscillating curve (WinUI ElasticEasingFunction): oscillations oscillations whose amplitude grows exponentially with springiness.

    View source

    Members

    new

    fn new(mode: CompositionEasingFunctionMode, oscillations: i32, springiness: f32) -> ElasticEasingFunction
    

    Source

    mode

    fn mode(self: &Self) -> CompositionEasingFunctionMode
    

    The mode of the curve.

    Source

    oscillations

    fn oscillations(self: &Self) -> i32
    

    The number of oscillations.

    Source

    springiness

    fn springiness(self: &Self) -> f32
    

    The stiffness of the spring: a larger value damps the oscillations faster.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • IEasing
    • From<ElasticEasingFunction>

    Availability

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