| Top |
VisuAnimatable is implemented by VisuGlView, VisuPlane, VisuPlaneSet and VisuVibration.
VisuAnimation * visu_animatable_getAnimation (const VisuAnimatable *animatable,const gchar *prop);
A method to retrieve the VisuAnimation from animatable
given the
property name prop
.
Since: 3.8
gboolean visu_animatable_animate (VisuAnimatable *animatable,VisuAnimation *anim,const GValue *to,gulong duration,gboolean loop,VisuAnimationType type);
Animates anim
from its current value to to
. The animation is
scheduled to last duration
and will follow the evolution described
by type
. If loop
is true, when the value of anim
reaches to
, it
goes back to its current value and animates again to reach to
. In
that case, use visu_animation_abort() on anim
to stop it.
animatable |
a VisuAnimatable object. |
|
anim |
a VisuAnimation object. |
|
to |
a destination value. |
|
duration |
a duration in milliseconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
gboolean visu_animatable_animateFloat (VisuAnimatable *animatable,VisuAnimation *anim,float to,gulong duration,gboolean loop,VisuAnimationType type);
Like visu_animatable_animate() for a float destination value.
animatable |
a VisuAnimatable object. |
|
anim |
a VisuAnimation object. |
|
to |
a destination value. |
|
duration |
a duration in milliseconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
gboolean visu_animatable_animateFloatByName (VisuAnimatable *animatable,const gchar *prop,float to,gulong duration,gboolean loop,VisuAnimationType type);
Like visu_animatable_animate() for a float destination value.
animatable |
a VisuAnimatable object. |
|
prop |
a property name from |
|
to |
a destination value. |
|
duration |
a duration in milliseconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
gboolean visu_animatable_animateDouble (VisuAnimatable *animatable,VisuAnimation *anim,double to,gulong duration,gboolean loop,VisuAnimationType type);
Like visu_animatable_animate() for a double destination value.
animatable |
a VisuAnimatable object. |
|
anim |
a VisuAnimation object. |
|
to |
a destination value. |
|
duration |
a duration in milliseconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
gboolean visu_animatable_animateDoubleByName (VisuAnimatable *animatable,const gchar *prop,double to,gulong duration,gboolean loop,VisuAnimationType type);
Like visu_animatable_animate() for a double destination value.
animatable |
a VisuAnimatable object. |
|
prop |
a property name from |
|
to |
a destination value. |
|
duration |
a duration in milliseconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
struct VisuAnimatableInterface {
GTypeInterface parent;
VisuAnimation* (*get_animation)(const VisuAnimatable *self, const gchar *prop);
};
The different routines common to objects implementing a VisuAnimatable interface.
GTypeInterface |
its parent. |
|
a method retrieve the VisuAnimation object of the given property. |
Since: 3.8
“animate” signalgboolean user_function (VisuAnimatable *self, VisuAnimation *animation, GValue *value, gulong at, gboolean loop, guint type, gpointer user_data)
This signal is emitted when properties start an animation.
self |
the object emitting the signal. |
|
animation |
the object emitting the signal. |
|
value |
the target value. |
|
at |
the current tick time. |
|
loop |
if animation should loop. |
|
type |
the animation type. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8