Top | ![]() |
![]() |
![]() |
![]() |
void | dzl_animation_start () |
void | dzl_animation_stop () |
void | dzl_animation_add_property () |
DzlAnimation * | dzl_object_animatev () |
DzlAnimation * | dzl_object_animate () |
DzlAnimation * | dzl_object_animate_full () |
guint | dzl_animation_calculate_duration () |
guint | duration | Write / Construct Only |
GdkFrameClock * | frame-clock | Write / Construct Only |
DzlAnimationMode | mode | Write / Construct Only |
GObject * | target | Write / Construct Only |
void
dzl_animation_start (DzlAnimation *animation
);
Start the animation. When the animation stops, the internal reference will be dropped and the animation may be finalized.
Side effects: None.
void
dzl_animation_stop (DzlAnimation *animation
);
Stops a running animation. The internal reference to the animation is dropped and therefore may cause the object to finalize.
As a convenience, this function accepts NULL
for animation
but
does nothing if that should occur.
void dzl_animation_add_property (DzlAnimation *animation
,GParamSpec *pspec
,const GValue *value
);
Adds a new property to the set of properties to be animated during the lifetime of the animation.
Side effects: None.
animation |
A DzlAnimation. |
[in] |
pspec |
A ParamSpec of |
[in] |
value |
The new value for the property at the end of the animation. |
[in] |
DzlAnimation * dzl_object_animatev (gpointer object
,DzlAnimationMode mode
,guint duration_msec
,GdkFrameClock *frame_clock
,const gchar *first_property
,va_list args
);
DzlAnimation * dzl_object_animate (gpointer object
,DzlAnimationMode mode
,guint duration_msec
,GdkFrameClock *frame_clock
,const gchar *first_property
,...
);
Animates the properties of object
. The can be set in a similar manner to g_object_set()
. They
will be animated from their current value to the target value over the time period.
DzlAnimation * dzl_object_animate_full (gpointer object
,DzlAnimationMode mode
,guint duration_msec
,GdkFrameClock *frame_clock
,GDestroyNotify notify
,gpointer notify_data
,const gchar *first_property
,...
);
“duration”
property “duration” guint
The "duration" property is the total number of milliseconds that the animation should run before being completed.
Owner: DzlAnimation
Flags: Write / Construct Only
Default value: 250
“frame-clock”
property “frame-clock” GdkFrameClock *
An optional frame-clock to synchronize with.
Owner: DzlAnimation
Flags: Write / Construct Only
“mode”
property “mode” DzlAnimationMode
The "mode" property is the Alpha function that should be used to determine the offset within the animation based on the current offset in the animations duration.
Owner: DzlAnimation
Flags: Write / Construct Only
Default value: DZL_ANIMATION_LINEAR
“tick”
signalvoid user_function (DzlAnimation *dzlanimation, gpointer user_data)
The "tick" signal is emitted on each frame in the animation.
Flags: Run First