Animation


Object Hierarchy:

Object hierarchy for Animation

Description:

[ CCode ( type_id = "clutter_animation_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public class Animation : Object, Scriptable

Warning: Animation is deprecated since 1.12.

Animation is an object providing simple, implicit animations for Objects.

Note:

Use the implicit animation on Actor

Animation instances will bind one or more Object properties belonging to a Object to a Interval, and will then use a Alpha to interpolate the property between the initial and final values of the interval.

The duration of the animation is set using set_duration. The easing mode of the animation is set using set_mode.

If you want to control the animation you should retrieve the Timeline using get_timeline and then use Timeline functions like start, pause or stop.

A Animation will emit the completed signal when the Timeline used by the animation is completed; unlike Timeline, though, the completed will not be emitted if loop is set to true - that is, a looping animation never completes.

If your animation depends on user control you can force its completion using completed.

If the Object instance bound to a Animation implements the Animatable interface it is possible for that instance to control the way the initial and final states are interpolated.

Animations are distinguished from Behaviour s because the former can only control Object properties of a single Object instance, while the latter can control multiple properties using accessor functions inside the Behaviour `alpha_notify` virtual function, and can control multiple Actors as well.

For convenience, it is possible to use the animate function call which will take care of setting up and tearing down a Animation instance and animate an actor between its current state and the specified final state.

Animation is available since Clutter 1.0.

Animation has been deprecated in Clutter 1.12. You should use the [implicit animation API][clutter-actor-animation] available inside Actor instead. If you require to define explicit transitions for one or more properties in order to reuse them, see Transition instead.

typeof (unichar2) typeof (unichar2) Defining ClutterAnimationMode inside ClutterScript

When defining a Animation inside a ClutterScript file or string the mode can be defined either using the AnimationMode enumeration values through their "nick" (the short string used inside EnumValue), their numeric id, or using the following strings:

- 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


Namespace: Clutter
Package: clutter-1.0

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from interface Clutter.Scriptable