Clutter.Animatable¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Clutter.Animatable¶
- Bases:
- Structure:
Clutter.Animatableis an opaque structure whose members cannot be directly accessedNew in version 1.0.
- animate_property(animation, property_name, initial_value, final_value, progress, value)¶
- Parameters:
animation (
Clutter.Animation) – aClutter.Animationproperty_name (
str) – the name of the animated propertyinitial_value (
GObject.Value) – the initial value of the animation intervalfinal_value (
GObject.Value) – the final value of the animation intervalprogress (
float) – the progress factorvalue (
GObject.Value) – return location for the animation value
- Returns:
Trueif the value has been validated and can be applied to theClutter.Animatable, andFalseotherwise- Return type:
Calls the animate_property() virtual function for self.
The initial_value and final_value
GObject.Values must contain the same type; value must have been initialized to the same type of initial_value and final_value.All implementation of the
Clutter.Animatableinterface must implement this function.New in version 1.0.
Deprecated since version 1.8: Use
Clutter.Animatable.interpolate_value() instead
- find_property(property_name)¶
- Parameters:
property_name (
str) – the name of the animatable property to find- Returns:
The
GObject.ParamSpecfor the given property orNone- Return type:
Finds the
GObject.ParamSpecfor property_nameNew in version 1.4.
- get_initial_state(property_name, value)¶
- Parameters:
property_name (
str) – the name of the animatable property to retrievevalue (
GObject.Value) – aGObject.Valueinitialized to the type of the property to retrieve
Retrieves the current state of property_name and sets value with it
New in version 1.4.
- interpolate_value(property_name, interval, progress)¶
- Parameters:
property_name (
str) – the name of the property to interpolateinterval (
Clutter.Interval) – aClutter.Intervalwith the animation rangeprogress (
float) – the progress to use to interpolate between the initial and final values of the interval
- Returns:
Trueif the interpolation was successful, andFalseotherwise- value:
return location for an initialized
GObject.Valueusing the same type of the interval
- Return type:
(
bool, value:GObject.Value)
Asks a
Clutter.Animatableimplementation to interpolate a a named property between the initial and final values of aClutter.Interval, using progress as the interpolation value, and store the result inside value.This function should be used for every property animation involving
Clutter.Animatables.This function replaces
Clutter.Animatable.animate_property().New in version 1.8.
- set_final_state(property_name, value)¶
- Parameters:
property_name (
str) – the name of the animatable property to setvalue (
GObject.Value) – the value of the animatable property to set
Sets the current state of property_name to value
New in version 1.4.
- do_animate_property(animation, property_name, initial_value, final_value, progress, value) virtual¶
- Parameters:
animation (
Clutter.Animation) – aClutter.Animationproperty_name (
str) – the name of the animated propertyinitial_value (
GObject.Value) – the initial value of the animation intervalfinal_value (
GObject.Value) – the final value of the animation intervalprogress (
float) – the progress factorvalue (
GObject.Value) – return location for the animation value
- Returns:
Trueif the value has been validated and can be applied to theClutter.Animatable, andFalseotherwise- Return type:
Calls the animate_property() virtual function for animatable.
The initial_value and final_value
GObject.Values must contain the same type; value must have been initialized to the same type of initial_value and final_value.All implementation of the
Clutter.Animatableinterface must implement this function.New in version 1.0.
Deprecated since version 1.8: Use
Clutter.Animatable.interpolate_value() instead
- do_find_property(property_name) virtual¶
- Parameters:
property_name (
str) – the name of the animatable property to find- Returns:
The
GObject.ParamSpecfor the given property orNone- Return type:
Finds the
GObject.ParamSpecfor property_nameNew in version 1.4.
- do_get_initial_state(property_name, value) virtual¶
- Parameters:
property_name (
str) – the name of the animatable property to retrievevalue (
GObject.Value) – aGObject.Valueinitialized to the type of the property to retrieve
Retrieves the current state of property_name and sets value with it
New in version 1.4.
- do_interpolate_value(property_name, interval, progress) virtual¶
- Parameters:
property_name (
str) – the name of the property to interpolateinterval (
Clutter.Interval) – aClutter.Intervalwith the animation rangeprogress (
float) – the progress to use to interpolate between the initial and final values of the interval
- Returns:
Trueif the interpolation was successful, andFalseotherwise- value:
return location for an initialized
GObject.Valueusing the same type of the interval
- Return type:
(
bool, value:GObject.Value)
Asks a
Clutter.Animatableimplementation to interpolate a a named property between the initial and final values of aClutter.Interval, using progress as the interpolation value, and store the result inside value.This function should be used for every property animation involving
Clutter.Animatables.This function replaces
Clutter.Animatable.animate_property().New in version 1.8.
- do_set_final_state(property_name, value) virtual¶
- Parameters:
property_name (
str) – the name of the animatable property to setvalue (
GObject.Value) – the value of the animatable property to set
Sets the current state of property_name to value
New in version 1.4.