#[non_exhaustive]pub enum AnimationMode {
Show 41 variants
CustomMode,
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,
Steps,
StepStart,
StepEnd,
CubicBezier,
Ease,
EaseIn,
EaseOut,
EaseInOut,
AnimationLast,
}
Expand description
The animation modes used by Alpha
and Animation
. This
enumeration can be expanded in later versions of Clutter.
Every global alpha function registered using Alpha::register_func
or Alpha::register_closure
will have a logical id greater than
AnimationMode::AnimationLast
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CustomMode
custom progress function
Linear
linear tweening
EaseInQuad
quadratic tweening
EaseOutQuad
quadratic tweening, inverse of
AnimationMode::EaseInQuad
EaseInOutQuad
quadratic tweening, combininig
AnimationMode::EaseInQuad
and AnimationMode::EaseOutQuad
EaseInCubic
cubic tweening
EaseOutCubic
cubic tweening, invers of
AnimationMode::EaseInCubic
EaseInOutCubic
cubic tweening, combining
AnimationMode::EaseInCubic
and AnimationMode::EaseOutCubic
EaseInQuart
quartic tweening
EaseOutQuart
quartic tweening, inverse of
AnimationMode::EaseInQuart
EaseInOutQuart
quartic tweening, combining
AnimationMode::EaseInQuart
and AnimationMode::EaseOutQuart
EaseInQuint
quintic tweening
EaseOutQuint
quintic tweening, inverse of
AnimationMode::EaseInQuint
EaseInOutQuint
fifth power tweening, combining
AnimationMode::EaseInQuint
and AnimationMode::EaseOutQuint
EaseInSine
sinusoidal tweening
EaseOutSine
sinusoidal tweening, inverse of
AnimationMode::EaseInSine
EaseInOutSine
sine wave tweening, combining
AnimationMode::EaseInSine
and AnimationMode::EaseOutSine
EaseInExpo
exponential tweening
EaseOutExpo
exponential tweening, inverse of
AnimationMode::EaseInExpo
EaseInOutExpo
exponential tweening, combining
AnimationMode::EaseInExpo
and AnimationMode::EaseOutExpo
EaseInCirc
circular tweening
EaseOutCirc
circular tweening, inverse of
AnimationMode::EaseInCirc
EaseInOutCirc
circular tweening, combining
AnimationMode::EaseInCirc
and AnimationMode::EaseOutCirc
EaseInElastic
elastic tweening, with offshoot on start
EaseOutElastic
elastic tweening, with offshoot on end
EaseInOutElastic
elastic tweening with offshoot on both ends
EaseInBack
overshooting cubic tweening, with backtracking on start
EaseOutBack
overshooting cubic tweening, with backtracking on end
EaseInOutBack
overshooting cubic tweening, with backtracking on both ends
EaseInBounce
exponentially decaying parabolic (bounce) tweening, with bounce on start
EaseOutBounce
exponentially decaying parabolic (bounce) tweening, with bounce on end
EaseInOutBounce
exponentially decaying parabolic (bounce) tweening, with bounce on both ends
Steps
parametrized step function; see TimelineExt::set_step_progress
for further details. (Since 1.12)
StepStart
equivalent to AnimationMode::Steps
with a number of steps
equal to 1, and a step mode of StepMode::Start
. (Since 1.12)
StepEnd
equivalent to AnimationMode::Steps
with a number of steps
equal to 1, and a step mode of StepMode::End
. (Since 1.12)
CubicBezier
cubic bezier between (0, 0) and (1, 1) with two
control points; see TimelineExt::set_cubic_bezier_progress
. (Since 1.12)
Ease
equivalent to AnimationMode::CubicBezier
with control points
in (0.25, 0.1) and (0.25, 1.0). (Since 1.12)
EaseIn
equivalent to AnimationMode::CubicBezier
with control points
in (0.42, 0) and (1.0, 1.0). (Since 1.12)
EaseOut
equivalent to AnimationMode::CubicBezier
with control points
in (0, 0) and (0.58, 1.0). (Since 1.12)
EaseInOut
equivalent to AnimationMode::CubicBezier
with control points
in (0.42, 0) and (0.58, 1.0). (Since 1.12)
AnimationLast
last animation mode, used as a guard for registered global alpha functions
Trait Implementations§
Source§impl Clone for AnimationMode
impl Clone for AnimationMode
Source§fn clone(&self) -> AnimationMode
fn clone(&self) -> AnimationMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AnimationMode
impl Debug for AnimationMode
Source§impl Display for AnimationMode
impl Display for AnimationMode
Source§impl<'a> FromValue<'a> for AnimationMode
impl<'a> FromValue<'a> for AnimationMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for AnimationMode
impl<'a> FromValueOptional<'a> for AnimationMode
Source§impl Hash for AnimationMode
impl Hash for AnimationMode
Source§impl Ord for AnimationMode
impl Ord for AnimationMode
Source§fn cmp(&self, other: &AnimationMode) -> Ordering
fn cmp(&self, other: &AnimationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AnimationMode
impl PartialEq for AnimationMode
Source§impl PartialOrd for AnimationMode
impl PartialOrd for AnimationMode
Source§impl SetValue for AnimationMode
impl SetValue for AnimationMode
Source§impl StaticType for AnimationMode
impl StaticType for AnimationMode
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for AnimationMode
impl Eq for AnimationMode
impl StructuralPartialEq for AnimationMode
Auto Trait Implementations§
impl Freeze for AnimationMode
impl RefUnwindSafe for AnimationMode
impl Send for AnimationMode
impl Sync for AnimationMode
impl Unpin for AnimationMode
impl UnwindSafe for AnimationMode
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§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
.