Enum ux::AnimationMode [−][src]
#[non_exhaustive] pub enum AnimationMode {}Show 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, // some variants omitted
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)
custom progress function
linear tweening
quadratic tweening
quadratic tweening, inverse of
AnimationMode::EaseInQuad
quadratic tweening, combininig
AnimationMode::EaseInQuad
and AnimationMode::EaseOutQuad
cubic tweening
cubic tweening, invers of
AnimationMode::EaseInCubic
cubic tweening, combining
AnimationMode::EaseInCubic
and AnimationMode::EaseOutCubic
quartic tweening
quartic tweening, inverse of
AnimationMode::EaseInQuart
quartic tweening, combining
AnimationMode::EaseInQuart
and AnimationMode::EaseOutQuart
quintic tweening
quintic tweening, inverse of
AnimationMode::EaseInQuint
fifth power tweening, combining
AnimationMode::EaseInQuint
and AnimationMode::EaseOutQuint
sinusoidal tweening
sinusoidal tweening, inverse of
AnimationMode::EaseInSine
sine wave tweening, combining
AnimationMode::EaseInSine
and AnimationMode::EaseOutSine
exponential tweening
exponential tweening, inverse of
AnimationMode::EaseInExpo
exponential tweening, combining
AnimationMode::EaseInExpo
and AnimationMode::EaseOutExpo
circular tweening
circular tweening, inverse of
AnimationMode::EaseInCirc
circular tweening, combining
AnimationMode::EaseInCirc
and AnimationMode::EaseOutCirc
elastic tweening, with offshoot on start
elastic tweening, with offshoot on end
elastic tweening with offshoot on both ends
overshooting cubic tweening, with backtracking on start
overshooting cubic tweening, with backtracking on end
overshooting cubic tweening, with backtracking on both ends
exponentially decaying parabolic (bounce) tweening, with bounce on start
exponentially decaying parabolic (bounce) tweening, with bounce on end
exponentially decaying parabolic (bounce) tweening, with bounce on both ends
parametrized step function; see TimelineExt::set_step_progress
for further details. (Since 1.12)
equivalent to AnimationMode::Steps
with a number of steps
equal to 1, and a step mode of StepMode::Start
. (Since 1.12)
equivalent to AnimationMode::Steps
with a number of steps
equal to 1, and a step mode of StepMode::End
. (Since 1.12)
cubic bezier between (0, 0) and (1, 1) with two
control points; see TimelineExt::set_cubic_bezier_progress
. (Since 1.12)
equivalent to AnimationMode::CubicBezier
with control points
in (0.25, 0.1) and (0.25, 1.0). (Since 1.12)
equivalent to AnimationMode::CubicBezier
with control points
in (0.42, 0) and (1.0, 1.0). (Since 1.12)
equivalent to AnimationMode::CubicBezier
with control points
in (0, 0) and (0.58, 1.0). (Since 1.12)
equivalent to AnimationMode::CubicBezier
with control points
in (0.42, 0) and (0.58, 1.0). (Since 1.12)
last animation mode, used as a guard for registered global alpha functions
Trait Implementations
impl Clone for AnimationMode
[src]
impl Clone for AnimationMode
[src]pub fn clone(&self) -> AnimationMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AnimationMode
[src]
impl Copy for AnimationMode
[src]impl Display for AnimationMode
[src]
impl Display for AnimationMode
[src]impl Eq for AnimationMode
[src]
impl Eq for AnimationMode
[src]impl<'a> FromValue<'a> for AnimationMode
[src]
impl<'a> FromValue<'a> for AnimationMode
[src]pub unsafe fn from_value(value: &Value) -> AnimationMode
[src]
impl<'a> FromValueOptional<'a> for AnimationMode
[src]
impl<'a> FromValueOptional<'a> for AnimationMode
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<AnimationMode>
[src]
impl Hash for AnimationMode
[src]
impl Hash for AnimationMode
[src]impl Ord for AnimationMode
[src]
impl Ord for AnimationMode
[src]impl PartialEq<AnimationMode> for AnimationMode
[src]
impl PartialEq<AnimationMode> for AnimationMode
[src]pub fn eq(&self, other: &AnimationMode) -> bool
[src]
pub fn ne(&self, other: &AnimationMode) -> bool
[src]
impl PartialOrd<AnimationMode> for AnimationMode
[src]
impl PartialOrd<AnimationMode> for AnimationMode
[src]pub fn partial_cmp(&self, other: &AnimationMode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl SetValue for AnimationMode
[src]
impl SetValue for AnimationMode
[src]pub unsafe fn set_value(value: &mut Value, this: &AnimationMode)
[src]
impl StaticType for AnimationMode
[src]
impl StaticType for AnimationMode
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for AnimationMode
[src]
impl StructuralEq for AnimationMode
[src]impl StructuralPartialEq for AnimationMode
[src]
impl StructuralPartialEq for AnimationMode
[src]Auto Trait Implementations
impl RefUnwindSafe for AnimationMode
impl RefUnwindSafe for AnimationMode
impl Send for AnimationMode
impl Send for AnimationMode
impl Sync for AnimationMode
impl Sync for AnimationMode
impl Unpin for AnimationMode
impl Unpin for AnimationMode
impl UnwindSafe for AnimationMode
impl UnwindSafe for AnimationMode
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,