Next: , Previous: ClutterAlignConstraint, Up: Top


7 ClutterAnimatable

Interface for animatable classes

7.1 Overview

<clutter-animatable> is an interface that allows a <gobject> class to control how a <clutter-animation> will animate a property.

Each <clutter-animatable> should implement the animate-property 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.

If a <clutter-animatable> is animated by a <clutter-animation> instance, the <clutter-animation> will call clutter-animatable-animate-property passing the name of the currently animated property; the initial and final values of the animation interval; the progress factor. The <clutter-animatable> implementation should return the computed value for the animated property.

<clutter-animatable> is available since Clutter 1.0

7.2 Usage

— Function: clutter-animatable-find-property (self <clutter-animatable>) (property_name mchars) ⇒  (ret <gparam>)
— Method: find-property

Finds the <gparam> for property-name

animatable
a <clutter-animatable>
property-name
the name of the animatable property to find
ret
The <gparam> for the given property or ‘#f’.

Since 1.4

— Function: clutter-animatable-set-final-state (self <clutter-animatable>) (property_name mchars) (value <gvalue>)
— Method: set-final-state

Sets the current state of property-name to value

animatable
a <clutter-animatable>
property-name
the name of the animatable property to set
value
the value of the animatable property to set

Since 1.4