GObject.Object
GdkPixbuf.PixbufAnimation
GdkPixbuf.PixbufSimpleAnim
Import line: | GdkPixbuf = imports.gi.GdkPixbuf; |
GIR File: | GdkPixbuf-2.0.gir |
C documentation: | GdkPixbufSimpleAnim |
Class : | PixbufSimpleAnim |
Extends: | GdkPixbuf.PixbufAnimation |
Properties | Defined By | |
---|---|---|
loop : gboolean
Whether the animation should loop when it reaches the end.
Whether the animation should loop when it reaches the end.
|
GdkPixbuf.PixbufSimpleAnim |
Method / Constructor | Defined By | |
---|---|---|
new GdkPixbuf.PixbufSimpleAnim
(Object properties)
Create a new GdkPixbuf.PixbufSimpleAnim
Create a new GdkPixbuf.PixbufSimpleAnim
|
||
new GdkPixbuf.PixbufSimpleAnim.c_new
(gint32 width, gint32 height, gfloat rate)
:
GdkPixbuf.PixbufSimpleAnim
Create a new GdkPixbuf.PixbufSimpleAnim
Create a new GdkPixbuf.PixbufSimpleAnim
|
||
add_frame
(Pixbuf pixbuf)
:
none
Adds a new frame to animation.
Adds a new frame to animation. The pixbuf must
have the dimensions specified when the animation was constructed.
|
GdkPixbuf.PixbufSimpleAnim | |
get_height
()
:
gint32
Queries the height of the bounding box of a pixbuf animation.
Queries the height of the bounding box of a pixbuf animation.
|
GdkPixbuf.PixbufAnimation | |
get_iter
(TimeVal start_time)
:
GdkPixbuf.PixbufAnimationIter
Get an iterator for displaying an animation.
Get an iterator for displaying an animation. The iterator provides
the frames that should be displayed at a given time. It should be freed after use with g_object_unref(). marks the beginning of animation playback. After creating an iterator, you should immediately display the pixbuf returned by gdk_pixbuf_animation_iter_get_pixbuf(). Then, you should install a timeout (with g_timeout_add()) or by some other mechanism ensure that you'll update the image after gdk_pixbuf_animation_iter_get_delay_time() milliseconds. Each time the image is updated, you should reinstall the timeout with the new, possibly-changed delay time. As a shortcut, if start_time is NULL, the result of g_get_current_time() will be used automatically. To update the image (i.e. possibly change the result of gdk_pixbuf_animation_iter_get_pixbuf() to a new frame of the animation), call gdk_pixbuf_animation_iter_advance(). If you're using GdkPixbufLoader, in addition to updating the image after the delay time, you should also update it whenever you receive the area_updated signal and gdk_pixbuf_animation_iter_on_currently_loading_frame() returns TRUE. In this case, the frame currently being fed into the loader has received new data, so needs to be refreshed. The delay time for a frame may also be modified after an area_updated signal, for example if the delay time for a frame is encoded in the data after the frame itself. So your timeout should be reinstalled after any area_updated signal. A delay time of -1 is possible, indicating "infinite."
|
GdkPixbuf.PixbufAnimation | |
get_loop
()
:
gboolean
Gets whether animation should loop indefinitely when it reaches the end.
Gets whether animation should loop indefinitely when it reaches the end.
|
GdkPixbuf.PixbufSimpleAnim | |
get_static_image
()
:
GdkPixbuf.Pixbuf
If an animation is really just a plain image (has only one frame),
this function returns that image.
If an animation is really just a plain image (has only one frame),
this function returns that image. If the animation is an animation, this function returns a reasonable thing to display as a static unanimated image, which might be the first frame, or something more sophisticated. If an animation hasn't loaded any frames yet, this function will return NULL.
|
GdkPixbuf.PixbufAnimation | |
get_width
()
:
gint32
Queries the width of the bounding box of a pixbuf animation.
Queries the width of the bounding box of a pixbuf animation.
|
GdkPixbuf.PixbufAnimation | |
is_static_image
()
:
gboolean
If you load a file with gdk_pixbuf_animation_new_from_file() and it turns
out to be a plain, unanimated image, then this function will return TRUE.
If you load a file with gdk_pixbuf_animation_new_from_file() and it turns
out to be a plain, unanimated image, then this function will return TRUE. Use gdk_pixbuf_animation_get_static_image() to retrieve the image.
|
GdkPixbuf.PixbufAnimation | |
set_loop
(gboolean loop)
:
none
Sets whether animation should loop indefinitely when it reaches the end.
Sets whether animation should loop indefinitely when it reaches the end.
|
GdkPixbuf.PixbufSimpleAnim |
None |