GObject.Object
GdkPixbuf.PixbufAnimation
Import line: | GdkPixbuf = imports.gi.GdkPixbuf; |
GIR File: | GdkPixbuf-2.0.gir |
C documentation: | GdkPixbufAnimation |
Class : | PixbufAnimation |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new GdkPixbuf.PixbufAnimation
()
Create a new GdkPixbuf.PixbufAnimation
Create a new GdkPixbuf.PixbufAnimation
|
||
Create a new GdkPixbuf.PixbufAnimation
Create a new GdkPixbuf.PixbufAnimation
|
||
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_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 |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GdkPixbuf.PixbufLoader
Method |
get_animation
()
:
GdkPixbuf.PixbufAnimation
Queries the GdkPixbufAnimation that a pixbuf loader is currently creating.
|
Gtk.Image
Property |
pixbuf_animation : GdkPixbuf.PixbufAnimation
|
Gtk.Image
Method |
Create a new Gtk.Image
|
Gtk.Image
Method |
get_animation
()
:
GdkPixbuf.PixbufAnimation
Gets the GdkPixbufAnimation being displayed by the GtkImage.
|
Gtk.Image
Method |
set_from_animation
(PixbufAnimation animation)
:
none
Causes the GtkImage to display the given animation (or display
nothing, if you set the animation to NULL). |