Function
PhoshAnimationnew
Declaration [src]
PhoshAnimation*
phosh_animation_new (
GtkWidget* widget,
double from,
double to,
gint64 duration,
PhoshAnimationType type,
PhoshAnimationValueCallback value_cb,
PhoshAnimationDoneCallback done_cb,
gpointer user_data
)
Description [src]
Get a new animation object for widget.
Note that the scope of the value_cb and done_cb callbacks is
actually as long as the animation exists.
Parameters
widget-
Type:
GtkWidgetA widget.
The data is owned by the caller of the function. from-
Type:
doubleThe animation’s start value.
to-
Type:
doubleThe animation’s end value.
duration-
Type:
gint64No description available.
type-
Type:
PhoshAnimationTypeThe type of animation.
value_cb-
Type:
PhoshAnimationValueCallbackThe callback applying
value. done_cb-
Type:
PhoshAnimationDoneCallbackThe callback invoked when the animation is done.
user_data-
Type:
gpointerUser_data passed to
value_cbanddone_cb.The argument can be NULL.The data is owned by the caller of the function.
Return value
Type: PhoshAnimation
The animation.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |