Enum libbismuth::Easing
source · #[non_exhaustive]pub enum Easing {
Show 31 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,
}
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 BIS_EASE_IN_QUAD
.
EaseInOutQuad
Quadratic tweening, combining BIS_EASE_IN_QUAD
and
BIS_EASE_OUT_QUAD
.
EaseInCubic
Cubic tweening.
EaseOutCubic
Cubic tweening, inverse of BIS_EASE_IN_CUBIC
.
EaseInOutCubic
Cubic tweening, combining BIS_EASE_IN_CUBIC
and
BIS_EASE_OUT_CUBIC
.
EaseInQuart
Quartic tweening.
EaseOutQuart
Quartic tweening, inverse of BIS_EASE_IN_QUART
.
EaseInOutQuart
Quartic tweening, combining BIS_EASE_IN_QUART
and
BIS_EASE_OUT_QUART
.
EaseInQuint
Quintic tweening.
EaseOutQuint
Quintic tweening, inverse of BIS_EASE_IN_QUINT
.
EaseInOutQuint
Quintic tweening, combining BIS_EASE_IN_QUINT
and
BIS_EASE_OUT_QUINT
.
EaseInSine
Sine wave tweening.
EaseOutSine
Sine wave tweening, inverse of BIS_EASE_IN_SINE
.
EaseInOutSine
Sine wave tweening, combining BIS_EASE_IN_SINE
and
BIS_EASE_OUT_SINE
.
EaseInExpo
Exponential tweening.
EaseOutExpo
Exponential tweening, inverse of BIS_EASE_IN_EXPO
.
EaseInOutExpo
Exponential tweening, combining BIS_EASE_IN_EXPO
and
BIS_EASE_OUT_EXPO
.
EaseInCirc
Circular tweening.
EaseOutCirc
Circular tweening, inverse of BIS_EASE_IN_CIRC
.
EaseInOutCirc
Circular tweening, combining BIS_EASE_IN_CIRC
and
BIS_EASE_OUT_CIRC
.
EaseInElastic
Elastic tweening, with offshoot on start.
EaseOutElastic
Elastic tweening, with offshoot on end, inverse of
BIS_EASE_IN_ELASTIC
.
EaseInOutElastic
Elastic tweening, with offshoot on both ends,
combining BIS_EASE_IN_ELASTIC
and BIS_EASE_OUT_ELASTIC
.
EaseInBack
Overshooting cubic tweening, with backtracking on start.
EaseOutBack
Overshooting cubic tweening, with backtracking on end,
inverse of BIS_EASE_IN_BACK
.
EaseInOutBack
Overshooting cubic tweening, with backtracking on both
ends, combining BIS_EASE_IN_BACK
and BIS_EASE_OUT_BACK
.
EaseInBounce
Exponentially decaying parabolic (bounce) tweening, on start.
EaseOutBounce
Exponentially decaying parabolic (bounce) tweening,
with bounce on end, inverse of BIS_EASE_IN_BOUNCE
.
EaseInOutBounce
Exponentially decaying parabolic (bounce) tweening,
with bounce on both ends, combining BIS_EASE_IN_BOUNCE
and
BIS_EASE_OUT_BOUNCE
.
Implementations§
Trait Implementations§
source§impl Ord for Easing
impl Ord for Easing
source§impl PartialEq for Easing
impl PartialEq for Easing
source§impl PartialOrd for Easing
impl PartialOrd for Easing
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.