CompositionEasingFunction
struct · ferroui-base · v0.5.0
struct CompositionEasingFunction
The factories of the easing functions (the statics of WinUI
CompositionEasingFunction, Windows App SDK 1.4+). Each returns the
Easing handle key frames take; create the typed function
(BackEasingFunction::new) to read its members.
Members
create_cubic_bezier_easing_functioncreate_linear_easing_functioncreate_step_easing_functioncreate_step_easing_function_with_step_countcreate_back_easing_functioncreate_bounce_easing_functioncreate_circle_easing_functioncreate_elastic_easing_functioncreate_exponential_easing_functioncreate_power_easing_functioncreate_sine_easing_function
create_cubic_bezier_easing_function
fn create_cubic_bezier_easing_function(_owner: &Compositor, control_point1: Vector2, control_point2: Vector2) -> Easing
A cubic Bezier curve with the given control points.
create_linear_easing_function
fn create_linear_easing_function(_owner: &Compositor) -> Easing
The linear curve.
create_step_easing_function
fn create_step_easing_function(_owner: &Compositor) -> Easing
A step function with one step.
create_step_easing_function_with_step_count
fn create_step_easing_function_with_step_count(_owner: &Compositor, step_count: i32) -> Easing
A step function with step_count steps.
create_back_easing_function
fn create_back_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, amplitude: f32) -> Easing
A back curve.
create_bounce_easing_function
fn create_bounce_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, bounces: i32, bounciness: f32) -> Easing
A bounce curve.
create_circle_easing_function
fn create_circle_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode) -> Easing
A circle curve.
create_elastic_easing_function
fn create_elastic_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, oscillations: i32, springiness: f32) -> Easing
An elastic curve.
create_exponential_easing_function
fn create_exponential_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, exponent: f32) -> Easing
An exponential curve.
create_power_easing_function
fn create_power_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, power: f32) -> Easing
A power curve.
create_sine_easing_function
fn create_sine_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode) -> Easing
A sine curve.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.