Interface
ClutterAnimatable
Description [src]
interface Clutter.Animatable : GObject.ObjectInterface for animatable classes
ClutterAnimatable is an interface that allows a GObject class
to control how an actor will animate a property.
Each ClutterAnimatable should implement the
Clutter.AnimatableInterface.interpolate_value virtual function of the
interface to compute the animation state between two values of an interval
depending on a progress factor, expressed as a floating point value.
Prerequisite
In order to implement Animatable, your type must inherit fromGObject.
Instance methods
clutter_animatable_get_initial_state
Retrieves the current state of property_name and sets value with it.
clutter_animatable_interpolate_value
Asks a ClutterAnimatable implementation to interpolate a
a named property between the initial and final values of a ClutterInterval, using progress as the interpolation
value, and store the result inside value.
Interface structure
struct ClutterAnimatableInterface {
  GParamSpec* (* find_property) (
    ClutterAnimatable* animatable,
    const gchar* property_name
  );
  void (* get_initial_state) (
    ClutterAnimatable* animatable,
    const gchar* property_name,
    GValue* value
  );
  void (* set_final_state) (
    ClutterAnimatable* animatable,
    const gchar* property_name,
    const GValue* value
  );
  gboolean (* interpolate_value) (
    ClutterAnimatable* animatable,
    const gchar* property_name,
    ClutterInterval* interval,
    gdouble progress,
    GValue* value
  );
  ClutterActor* (* get_actor) (
    ClutterAnimatable* animatable
  );
  
}No description available.
Interface members
| find_property |  | 
| Virtual function for retrieving the  | |
| get_initial_state |  | 
| Virtual function for retrieving the initial state of an animatable property. | |
| set_final_state |  | 
| Virtual function for setting the state of an animatable property. | |
| interpolate_value |  | 
| Virtual function for interpolating the progress of a property. | |
| get_actor |  | 
| Virtual function for getting associated actor. | 
Virtual methods
Clutter.Animatable.get_initial_state
Retrieves the current state of property_name and sets value with it.
Clutter.Animatable.interpolate_value
Asks a ClutterAnimatable implementation to interpolate a
a named property between the initial and final values of a ClutterInterval, using progress as the interpolation
value, and store the result inside value.