Enum clutter::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]
fn clone(&self) -> AnimationMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AnimationMode
[src]
impl Debug for AnimationMode
[src]
impl Display for AnimationMode
[src]
impl Eq for AnimationMode
[src]
impl<'a> FromValue<'a> for AnimationMode
[src]
unsafe fn from_value(value: &Value) -> Self
[src]
impl<'a> FromValueOptional<'a> for AnimationMode
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
impl Hash for AnimationMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for AnimationMode
[src]
fn cmp(&self, other: &AnimationMode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<AnimationMode> for AnimationMode
[src]
fn eq(&self, other: &AnimationMode) -> bool
[src]
fn ne(&self, other: &AnimationMode) -> bool
[src]
impl PartialOrd<AnimationMode> for AnimationMode
[src]
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 StaticType for AnimationMode
[src]
fn static_type() -> Type
[src]
impl StructuralEq for AnimationMode
[src]
impl StructuralPartialEq for AnimationMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for AnimationMode
impl Send for AnimationMode
impl Sync for AnimationMode
impl Unpin for AnimationMode
impl UnwindSafe for AnimationMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
T: SetValue + Send + ToValue + ?Sized,
pub fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,