Details
GnomeAnimatorStatus
typedef enum
{
GNOME_ANIMATOR_STATUS_STOPPED,
GNOME_ANIMATOR_STATUS_RUNNING
} GnomeAnimatorStatus; |
GnomeAnimatorLoopType
typedef enum
{
/* No loop: after the last (first) frame is played, the animation
is stopped. */
GNOME_ANIMATOR_LOOP_NONE,
/* After the last (first) frame is played, restart from the first
(last) frame. */
GNOME_ANIMATOR_LOOP_RESTART,
/* After the last (first) frame is played, the playback direction
is reversed. */
GNOME_ANIMATOR_LOOP_PING_PONG
} GnomeAnimatorLoopType; |
GnomeAnimatorFrame
struct GnomeAnimatorFrame; |
GnomeAnimatorPrivate
struct GnomeAnimatorPrivate; |
gnome_animator_new_with_size()
GtkWidget* gnome_animator_new_with_size (guint width,
guint height); |
Creates a new animator widget of the specified size.
gnome_animator_set_loop_type()
Sets desired animation loop type. Available loop types
are GNOME_ANIMATOR_LOOP_NONE (play anim once only),
GNOME_ANIMATOR_LOOP_RESTART (play anim over and over again), and
GNOME_ANIMATOR_LOOP_PING_PONG (plan anim first -> last frame, then
reverse direction and play anim from last -> first frame. repeat.)
gnome_animator_get_loop_type()
Obtains current animator loop type.
Available loop types
are GNOME_ANIMATOR_LOOP_NONE (play anim once only),
GNOME_ANIMATOR_LOOP_RESTART (play anim over and over again), and
GNOME_ANIMATOR_LOOP_PING_PONG (plan anim first -> last frame, then
reverse direction and play anim from last -> first frame. repeat.)
gnome_animator_set_playback_direction()
void gnome_animator_set_playback_direction
(GnomeAnimator *animator,
gint playback_direction); |
Sets direction (forwards or backwards) the animation
is to be played. If playback_direction is a positive number, the
animation is played from the first -> last frame. If
playback_direction is negative, the animation is played from
last -> first frame.
gnome_animator_get_playback_direction()
gint gnome_animator_get_playback_direction
(GnomeAnimator *animator); |
Obtains direction (forwards or backwards) the animation
is to be played. If the return value is a positive number, the
animation is played from the first -> last frame. If
the return value is negative, the animation is played from
last -> first frame.
gnome_animator_append_frame_from_imlib_at_size()
gboolean gnome_animator_append_frame_from_imlib_at_size
(GnomeAnimator *animator,
GdkImlibImage *image,
gint x_offset,
gint y_offset,
guint32 interval,
guint width,
guint height); |
Adds frame contained within a &GdkImlibImage image to
the end of the current animation. If width and height are different
from the actual image size, the image is scaled proportionally.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frame_from_imlib()
gboolean gnome_animator_append_frame_from_imlib
(GnomeAnimator *animator,
GdkImlibImage *image,
gint x_offset,
gint y_offset,
guint32 interval); |
Adds frame contained within a &GdkImlibImage image
to the end of the current animation.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frame_from_file_at_size()
gboolean gnome_animator_append_frame_from_file_at_size
(GnomeAnimator *animator,
const gchar *name,
gint x_offset,
gint y_offset,
guint32 interval,
guint width,
guint height); |
Adds frame from the given file to the end of the
current animation. If width and height are different from the
actual image size, the image is scaled proportionally.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frame_from_file()
gboolean gnome_animator_append_frame_from_file
(GnomeAnimator *animator,
const gchar *name,
gint x_offset,
gint y_offset,
guint32 interval); |
Adds frame from the given file to the end of the
current animation.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frames_from_imlib_at_size()
gboolean gnome_animator_append_frames_from_imlib_at_size
(GnomeAnimator *animator,
GdkImlibImage *image,
gint x_offset,
gint y_offset,
guint32 interval,
gint x_unit,
guint width,
guint height); |
Adds multiple frames contained within a &GdkImlibImage
image to the end of the current animation. Each frame within the image
should be next to one another in a single, horizontal row. If width
and height are different from the actual frame size, the image is
scaled proportionally.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frames_from_imlib()
gboolean gnome_animator_append_frames_from_imlib
(GnomeAnimator *animator,
GdkImlibImage *image,
gint x_offset,
gint y_offset,
guint32 interval,
gint x_unit); |
Adds multiple frames contained within a &GdkImlibImage
image to the end of the current animation. Each frame within the image
should be next to one another in a single, horizontal row.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frames_from_file_at_size()
gboolean gnome_animator_append_frames_from_file_at_size
(GnomeAnimator *animator,
const gchar *name,
gint x_offset,
gint y_offset,
guint32 interval,
gint x_unit,
guint width,
guint height); |
Adds multiple frames contained within a single image file
to the end of the current animation. Each frame within the image
should be next to one another in a single, horizontal row. If width
and height are different from the actual frame size, the image is
scaled proportionally.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frames_from_file()
gboolean gnome_animator_append_frames_from_file
(GnomeAnimator *animator,
const gchar *name,
gint x_offset,
gint y_offset,
guint32 interval,
gint x_unit); |
Adds multiple frames contained within a single image file
to the end of the current animation. Each frame within the image
should be next to one another in a single, horizontal row.
The frame display interval is interval is divided by playback_speed.
gnome_animator_append_frame_from_gnome_pixmap()
gboolean gnome_animator_append_frame_from_gnome_pixmap
(GnomeAnimator *animator,
GnomePixmap *pixmap,
gint x_offset,
gint y_offset,
guint32 interval); |
Adds frame contained within a &GnomePixmap image
to the end of the current animation.
The frame display interval is interval is divided by playback_speed.
gnome_animator_start()
Initiate display of animated frames.
gnome_animator_stop()
Halts display of animated frames. The current frame
in the animation will remain in the animator widget.
gnome_animator_advance()
gboolean gnome_animator_advance (GnomeAnimator *animator,
gint num); |
Advance the animator num frames. If num is
positive, use the specified playback_direction; if it is negative,
go in the opposite direction. After the call, the animator is in
the same state it would be if it had actually executed the specified
number of iterations.
gnome_animator_goto_frame()
void gnome_animator_goto_frame (GnomeAnimator *animator,
guint num_frame); |
Jump to the specified frame_number and display it.
gnome_animator_get_current_frame_number()
guint gnome_animator_get_current_frame_number
(GnomeAnimator *animator); |
Obtains current frame number from animator widget.
gnome_animator_get_status()
Obtains current status from animator widget. Possible
return values include GNOME_ANIMATOR_STATUS_STOPPED and
GNOME_ANIMATOR_STATUS_RUNNING.
gnome_animator_set_playback_speed()
void gnome_animator_set_playback_speed
(GnomeAnimator *animator,
gdouble speed); |
Sets the rate at which the animation proceeds. The
actual delay between each frame is set via the interval arg passed
to the gnome_animator_append_* functions. Playback speed is
determined by the formula "rate = interval / ( speed + 0.5 )".
Higher speed values give higher playback speeds. Default is 1.0.
gnome_animator_get_playback_speed()
gdouble gnome_animator_get_playback_speed
(GnomeAnimator *animator); |
Queries the rate at which the animation proceeds. The
actual delay between each frame is set via the interval arg passed
to the gnome_animator_append_* functions. Playback speed is
determined by the formula "rate = interval / ( speed + 0.5 )". speed
is the value from this formula which
gnome_animator_get_playback_speed returns.
Higher speed values give higher playback speeds. Default is 1.0.