FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    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.

    Source

    create_linear_easing_function

    fn create_linear_easing_function(_owner: &Compositor) -> Easing
    

    The linear curve.

    Source

    create_step_easing_function

    fn create_step_easing_function(_owner: &Compositor) -> Easing
    

    A step function with one step.

    Source

    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.

    Source

    create_back_easing_function

    fn create_back_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, amplitude: f32) -> Easing
    

    A back curve.

    Source

    create_bounce_easing_function

    fn create_bounce_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, bounces: i32, bounciness: f32) -> Easing
    

    A bounce curve.

    Source

    create_circle_easing_function

    fn create_circle_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode) -> Easing
    

    A circle curve.

    Source

    create_elastic_easing_function

    fn create_elastic_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, oscillations: i32, springiness: f32) -> Easing
    

    An elastic curve.

    Source

    create_exponential_easing_function

    fn create_exponential_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, exponent: f32) -> Easing
    

    An exponential curve.

    Source

    create_power_easing_function

    fn create_power_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode, power: f32) -> Easing
    

    A power curve.

    Source

    create_sine_easing_function

    fn create_sine_easing_function(_owner: &Compositor, mode: CompositionEasingFunctionMode) -> Easing
    

    A sine curve.

    Source

    Trait implementations

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

    Availability

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