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.

``Easing modes provided by 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)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

impl Clone for AnimationMode[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]

impl<'a> FromValueOptional<'a> for AnimationMode[src]

impl Hash for AnimationMode[src]

impl Ord for AnimationMode[src]

impl PartialEq<AnimationMode> for AnimationMode[src]

impl PartialOrd<AnimationMode> for AnimationMode[src]

impl SetValue for AnimationMode[src]

impl StaticType for AnimationMode[src]

impl StructuralEq for AnimationMode[src]

impl StructuralPartialEq for AnimationMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.