Clutter.Animatable¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Clutter.Animatable¶
- Bases:
- Structure:
Clutter.Animatable
is 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.Animation
property_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:
True
if the value has been validated and can be applied to theClutter.Animatable
, andFalse
otherwise- Return type:
Calls the animate_property() virtual function for self.
The initial_value and final_value
GObject.Value
s 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.Animatable
interface 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.ParamSpec
for the given property orNone
- Return type:
Finds the
GObject.ParamSpec
for 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.Value
initialized 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.Interval
with the animation rangeprogress (
float
) – the progress to use to interpolate between the initial and final values of the interval
- Returns:
True
if the interpolation was successful, andFalse
otherwise- value:
return location for an initialized
GObject.Value
using the same type of the interval
- Return type:
(
bool
, value:GObject.Value
)
Asks a
Clutter.Animatable
implementation 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.Animatable
s.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.Animation
property_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:
True
if the value has been validated and can be applied to theClutter.Animatable
, andFalse
otherwise- Return type:
Calls the animate_property() virtual function for animatable.
The initial_value and final_value
GObject.Value
s 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.Animatable
interface 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.ParamSpec
for the given property orNone
- Return type:
Finds the
GObject.ParamSpec
for 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.Value
initialized 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.Interval
with the animation rangeprogress (
float
) – the progress to use to interpolate between the initial and final values of the interval
- Returns:
True
if the interpolation was successful, andFalse
otherwise- value:
return location for an initialized
GObject.Value
using the same type of the interval
- Return type:
(
bool
, value:GObject.Value
)
Asks a
Clutter.Animatable
implementation 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.Animatable
s.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.