Details
enum GnomeAnimatorStatus
typedef enum
{
GNOME_ANIMATOR_STATUS_STOPPED,
GNOME_ANIMATOR_STATUS_RUNNING
} GnomeAnimatorStatus; |
enum 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; |
struct GnomeAnimatorFrame
struct GnomeAnimatorFrame; |
struct 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 animation once only),
GNOME_ANIMATOR_LOOP_RESTART (play animation over and over again),
and GNOME_ANIMATOR_LOOP_PING_PONG (play animation over and over
again, reversing the playing direction every time.)
gnome_animator_get_loop_type ()
Obtains current animator loop type. Available loop
types are GNOME_ANIMATOR_LOOP_NONE (play animation once only),
GNOME_ANIMATOR_LOOP_RESTART (play animation over and over again),
and GNOME_ANIMATOR_LOOP_PING_PONG (play animation over and over
again, reversing the playing direction every time.)
gnome_animator_set_playback_direction ()
void gnome_animator_set_playback_direction
(GnomeAnimator *animator,
gint playback_direction); |
Sets direction (forwards or backwards) to play the
animation. If playback_direction is a positive number, the
animation is played from the first to the last frame. If
playback_direction is negative, the animation is played from the
last to the first frame.
gnome_animator_get_playback_direction ()
gint gnome_animator_get_playback_direction
(GnomeAnimator *animator); |
Returns the current playing direction (forwards or
backwards) for the animation. If the returned value is a positive
number, the animation is played from the first to the last frame.
If it is negative, the animation is played from the last to the
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 at
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 the 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 at
the end of the current animation. The frame display interval is
interval is divided by the 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 divided by the 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 divided
by the 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 at 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 divided by the 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 divided by the
playbackspeed.
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 divided by the 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 divided by the 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 divided by the 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 playback speed. The delay between every
frame is divided by this value before being used. As a
consequence, higher values give higher playback speeds.
gnome_animator_get_playback_speed ()
gdouble gnome_animator_get_playback_speed
(GnomeAnimator *animator); |
Returns the current playback speed.