#[non_exhaustive]pub enum Easing {
Show 35 variants
Linear,
EaseInQuad,
EaseOutQuad,
EaseInOutQuad,
EaseInCubic,
EaseOutCubic,
EaseInOutCubic,
EaseInQuart,
EaseOutQuart,
EaseInOutQuart,
EaseInQuint,
EaseOutQuint,
EaseInOutQuint,
EaseInSine,
EaseOutSine,
EaseInOutSine,
EaseInExpo,
EaseOutExpo,
EaseInOutExpo,
EaseInCirc,
EaseOutCirc,
EaseInOutCirc,
EaseInElastic,
EaseOutElastic,
EaseInOutElastic,
EaseInBack,
EaseOutBack,
EaseInOutBack,
EaseInBounce,
EaseOutBounce,
EaseInOutBounce,
Ease,
EaseIn,
EaseOut,
EaseInOut,
}
Expand description
Describes the available easing functions for use with
TimedAnimation
.
New values may be added to this enumeration over time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Linear
Linear tweening.
EaseInQuad
Quadratic tweening.
EaseOutQuad
Quadratic tweening, inverse of ADW_EASE_IN_QUAD
.
EaseInOutQuad
Quadratic tweening, combining ADW_EASE_IN_QUAD
and
ADW_EASE_OUT_QUAD
.
EaseInCubic
Cubic tweening.
EaseOutCubic
Cubic tweening, inverse of ADW_EASE_IN_CUBIC
.
EaseInOutCubic
Cubic tweening, combining ADW_EASE_IN_CUBIC
and
ADW_EASE_OUT_CUBIC
.
EaseInQuart
Quartic tweening.
EaseOutQuart
Quartic tweening, inverse of ADW_EASE_IN_QUART
.
EaseInOutQuart
Quartic tweening, combining ADW_EASE_IN_QUART
and
ADW_EASE_OUT_QUART
.
EaseInQuint
Quintic tweening.
EaseOutQuint
Quintic tweening, inverse of ADW_EASE_IN_QUINT
.
EaseInOutQuint
Quintic tweening, combining ADW_EASE_IN_QUINT
and
ADW_EASE_OUT_QUINT
.
EaseInSine
Sine wave tweening.
EaseOutSine
Sine wave tweening, inverse of ADW_EASE_IN_SINE
.
EaseInOutSine
Sine wave tweening, combining ADW_EASE_IN_SINE
and
ADW_EASE_OUT_SINE
.
EaseInExpo
Exponential tweening.
EaseOutExpo
Exponential tweening, inverse of ADW_EASE_IN_EXPO
.
EaseInOutExpo
Exponential tweening, combining ADW_EASE_IN_EXPO
and
ADW_EASE_OUT_EXPO
.
EaseInCirc
Circular tweening.
EaseOutCirc
Circular tweening, inverse of ADW_EASE_IN_CIRC
.
EaseInOutCirc
Circular tweening, combining ADW_EASE_IN_CIRC
and
ADW_EASE_OUT_CIRC
.
EaseInElastic
Elastic tweening, with offshoot on start.
EaseOutElastic
Elastic tweening, with offshoot on end, inverse of
ADW_EASE_IN_ELASTIC
.
EaseInOutElastic
Elastic tweening, with offshoot on both ends,
combining ADW_EASE_IN_ELASTIC
and ADW_EASE_OUT_ELASTIC
.
EaseInBack
Overshooting cubic tweening, with backtracking on start.
EaseOutBack
Overshooting cubic tweening, with backtracking on end,
inverse of ADW_EASE_IN_BACK
.
EaseInOutBack
Overshooting cubic tweening, with backtracking on both
ends, combining ADW_EASE_IN_BACK
and ADW_EASE_OUT_BACK
.
EaseInBounce
Exponentially decaying parabolic (bounce) tweening, on start.
EaseOutBounce
Exponentially decaying parabolic (bounce) tweening,
with bounce on end, inverse of ADW_EASE_IN_BOUNCE
.
EaseInOutBounce
Exponentially decaying parabolic (bounce) tweening,
with bounce on both ends, combining ADW_EASE_IN_BOUNCE
and
ADW_EASE_OUT_BOUNCE
.
Ease
v1_7
only.Cubic bezier tweening, with control points in (0.25, 0.1) and (0.25, 1.0).
Increases in velocity towards the middle of the animation, slowing back down at the end.
EaseIn
v1_7
only.Cubic bezier tweening, with control points in (0.42, 0.0) and (1.0, 1.0).
Starts off slowly, with the speed of the animation increasing until complete.
EaseOut
v1_7
only.Cubic bezier tweening, with control points in (0.0, 0.0) and (0.58, 1.0).
Starts quickly, slowing down the animation until complete.
EaseInOut
v1_7
only.Cubic bezier tweening, with control points in (0.42, 0.0) and (0.58, 1.0).
Starts off slowly, speeds up in the middle, and then slows down again.
Implementations§
Trait Implementations§
source§impl<'a> FromValue<'a> for Easing
impl<'a> FromValue<'a> for Easing
source§type Checker = GenericValueTypeChecker<Easing>
type Checker = GenericValueTypeChecker<Easing>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for Easing
impl HasParamSpec for Easing
source§impl Ord for Easing
impl Ord for Easing
source§impl PartialOrd for Easing
impl PartialOrd for Easing
source§impl StaticType for Easing
impl StaticType for Easing
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for Easing
impl Eq for Easing
impl StructuralPartialEq for Easing
Auto Trait Implementations§
impl Freeze for Easing
impl RefUnwindSafe for Easing
impl Send for Easing
impl Sync for Easing
impl Unpin for Easing
impl UnwindSafe for Easing
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.