Virtual Method

ClutterAnimatableinterpolate_value

Declaration [src]

gboolean
interpolate_value (
  ClutterAnimatable* animatable,
  const gchar* property_name,
  ClutterInterval* interval,
  gdouble progress,
  GValue* value
)

Description [src]

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.

This function should be used for every property animation involving ClutterAnimatables.

This function replaces clutter_animatable_animate_property().

Available since:1.8

Parameters

property_name const gchar*
 

The name of the property to interpolate.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
interval ClutterInterval
 

A ClutterInterval with the animation range.

 The data is owned by the caller of the function.
progress gdouble
 

The progress to use to interpolate between the initial and final values of the interval.

value GValue
 

Return location for an initialized GValue using the same type of the interval.

 The argument will be set by the function.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE if the interpolation was successful, and FALSE otherwise.