pub struct CubicBezierEasingFunction { /* private fields */ }Expand description
A cubic Bezier curve from (0, 0) to (1, 1) with two control points
(WinUI CubicBezierEasingFunction); the curve of
SplineEasing.
Implementations§
Source§impl CubicBezierEasingFunction
impl CubicBezierEasingFunction
Sourcepub fn new(
control_point1: Vector2,
control_point2: Vector2,
) -> CubicBezierEasingFunction
pub 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).
Sourcepub fn control_point1(&self) -> Vector2
pub fn control_point1(&self) -> Vector2
The first control point.
Sourcepub fn control_point2(&self) -> Vector2
pub fn control_point2(&self) -> Vector2
The second control point.
Trait Implementations§
Source§impl From<CubicBezierEasingFunction> for Easing
impl From<CubicBezierEasingFunction> for Easing
Source§fn from(value: CubicBezierEasingFunction) -> Easing
fn from(value: CubicBezierEasingFunction) -> Easing
Converts to this type from the input type.
Source§impl IEasing for CubicBezierEasingFunction
impl IEasing for CubicBezierEasingFunction
The easing as the render thread evaluates it: a key frame animation of
the compositor runs there. An easing without parameters returns
itself; one with parameters returns a copy with the parameters it has
now.
Source§fn derives_from_easing(&self) -> bool
fn derives_from_easing(&self) -> bool
Whether the object is an easing class: upstream, a class deriving from
the
Easing base class, which code tests for with a cast. True for
every easing of this module and by default, because implementing this
trait is how an easing class is written here; an object that stands
for a bare implementation of the contract (not an easing class)
answers false.Auto Trait Implementations§
impl !Freeze for CubicBezierEasingFunction
impl RefUnwindSafe for CubicBezierEasingFunction
impl Send for CubicBezierEasingFunction
impl Sync for CubicBezierEasingFunction
impl Unpin for CubicBezierEasingFunction
impl UnsafeUnpin for CubicBezierEasingFunction
impl UnwindSafe for CubicBezierEasingFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more