FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExponentialEasingFunction

    struct · ferroui-base · v0.5.0

    struct ExponentialEasingFunction
    

    An exponential curve (WinUI ExponentialEasingFunction): f(t) = (e^(k t) - 1) / (e^k - 1), k the exponent (linear for 0).

    View source

    Members

    new

    fn new(mode: CompositionEasingFunctionMode, exponent: f32) -> ExponentialEasingFunction
    

    Source

    mode

    fn mode(self: &Self) -> CompositionEasingFunctionMode
    

    The mode of the curve.

    Source

    exponent

    fn exponent(self: &Self) -> f32
    

    The exponent of the curve.

    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<ExponentialEasingFunction>

    Availability

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