Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.GdkPixbufAnimation

Method GTK2.GdkPixbufAnimation()->get_iter()


Method get_iter

GTK2.GdkPixbufAnimationIter get_iter()

Description

Get an iterator for displaying an animation. The iterator provides the frames that should be displayed at a given time.

Returns the beginning of the animation. Afterwards you should probably immediately display the pixbuf return by GDK2.PixbufAnimationIter->get_pixbuf(). Then, you should install a timeout or by some other mechanism ensure that you'll update the image after GDK2.PixbufAnimationIter->get_delay_time() milliseconds. Each time the image is updated, you should reinstall the timeout with the new, possibly changed delay time.

To update the image, call GDK2.PixbufAnimationIter->advance().