FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CubicBezierEasingFunction

    struct · ferroui-base · v0.5.0

    struct CubicBezierEasingFunction
    

    A cubic Bezier curve from (0, 0) to (1, 1) with two control points (WinUI CubicBezierEasingFunction); the curve of SplineEasing.

    View source

    Members

    new

    fn new(control_point1: Vector2, control_point2: Vector2) -> CubicBezierEasingFunction
    

    Creates the curve. Panics when the X coordinate of a control point is outside [0, 1] (WinUI throws).

    Source

    control_point1

    fn control_point1(self: &Self) -> Vector2
    

    The first control point.

    Source

    control_point2

    fn control_point2(self: &Self) -> Vector2
    

    The second control point.

    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
    • IEasing
    • From<CubicBezierEasingFunction>

    Availability

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