Top | ![]() |
![]() |
![]() |
![]() |
VisuAnimation * | visu_animation_new () |
gboolean | visu_animation_start () |
gboolean | visu_animation_animate () |
gboolean | visu_animation_isRunning () |
void | visu_animation_getFrom () |
void | visu_animation_getTo () |
void | visu_animation_abort () |
Use this object to animate smoothly a change between to values ofg a given object property.
VisuAnimation * visu_animation_new (GObject *obj
,const gchar *property
);
Create an animation for property
of obj
.
Since: 3.8
gboolean visu_animation_start (VisuAnimation *anim
,const GValue *to
,gulong tick
,gulong duration
,gboolean loop
,VisuAnimationType type
);
Starts anim
, to go to the value to
from its current value
following type
evolution. tick
is the current clock time and the
animation is scheduled to last for duration
. If loop
is true,
when the animation reaches to
it restarts again from the initial
value. Use visu_animation_abort()
to stop it.
anim |
a VisuAnimation object. |
|
to |
a final value. |
|
tick |
the current clock time. |
|
duration |
a duration in micro-seconds. |
|
loop |
a boolean. |
|
type |
a type. |
Since: 3.8
gboolean visu_animation_animate (VisuAnimation *anim
,gulong tick
);
Update the property animated by anim
to the value it should take
at tick
.
Since: 3.8
gboolean
visu_animation_isRunning (const VisuAnimation *anim
);
Inquires if anim
is currently running.
Since: 3.8
void visu_animation_getFrom (const VisuAnimation *anim
,GValue *from
);
Retrieves the initial value of anim
. The animation should be
running for this value to be defined.
anim |
a VisuAnimation object. |
|
from |
a location to store the initial
value of |
[out caller-allocates] |
Since: 3.8
void visu_animation_getTo (const VisuAnimation *anim
,GValue *to
);
Retrieves the final value of anim
. The animation should be
running for this value to be defined.
anim |
a VisuAnimation object. |
|
to |
a location to store the final
value of |
[out caller-allocates] |
Since: 3.8
void
visu_animation_abort (VisuAnimation *anim
);
Stop the current animation.
Since: 3.8
struct VisuAnimationClass { VisuObjectClass parent; };
Common name to refer to a _VisuAnimationClass.