ElasticEasingFunction
struct · ferroui-base · v0.5.0
struct ElasticEasingFunction
An oscillating curve (WinUI ElasticEasingFunction): oscillations
oscillations whose amplitude grows exponentially with springiness.
Members
new
fn new(mode: CompositionEasingFunctionMode, oscillations: i32, springiness: f32) -> ElasticEasingFunction
mode
fn mode(self: &Self) -> CompositionEasingFunctionMode
The mode of the curve.
oscillations
fn oscillations(self: &Self) -> i32
The number of oscillations.
springiness
fn springiness(self: &Self) -> f32
The stiffness of the spring: a larger value damps the oscillations faster.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqIEasingFrom<ElasticEasingFunction>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.