GdkPixbuf.PixbufAnimationIter
Description: Reference for GdkPixbuf.PixbufAnimationIter

### Class

# GdkPixbufPixbufAnimationIter

since: 2.0

#### Description [src]

    class GdkPixbuf.PixbufAnimationIter : GObject.Object
    {
      /* No available fields */
    }

An opaque object representing an iterator which points to a certain position in an animation.

Available since: 2.0

#### Ancestors

- GObject

#### Descendants

- GdkPixbufSimpleAnimIter

#### Instance methods

###### gdk_pixbuf_animation_iter_advance

Possibly advances an animation to a new frame.

since: 2.0

###### gdk_pixbuf_animation_iter_get_delay_time

Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf should be displayed forever.

since: 2.0

###### gdk_pixbuf_animation_iter_get_pixbuf

Gets the current pixbuf which should be displayed.

since: 2.0

###### gdk_pixbuf_animation_iter_on_currently_loading_frame

Used to determine how to respond to the area_updated signal on `GdkPixbufLoader` when loading an animation.

since: 2.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct GdkPixbufPixbufAnimationIterClass {
      GObjectClass parent_class;
      int (* get_delay_time) (
        GdkPixbufAnimationIter* iter
      );
      GdkPixbuf* (* get_pixbuf) (
        GdkPixbufAnimationIter* iter
      );
      gboolean (* on_currently_loading_frame) (
        GdkPixbufAnimationIter* iter
      );
      gboolean (* advance) (
        GdkPixbufAnimationIter* iter,
        const GTimeVal* current_time
      );

    }

Modules supporting animations must derive a type from `GdkPixbufAnimationIter`, providing suitable implementations of the virtual functions.

###### Class members

`parent_class: GObjectClass`

  The parent class.

`get_delay_time: int (* get_delay_time) ( GdkPixbufAnimationIter* iter )`

  Returns the time in milliseconds that the current frame should be shown.

`get_pixbuf: GdkPixbuf* (* get_pixbuf) ( GdkPixbufAnimationIter* iter )`

  Returns the current frame.

`on_currently_loading_frame: gboolean (* on_currently_loading_frame) ( GdkPixbufAnimationIter* iter )`

  Returns whether the current frame of `iter` is being loaded.

`advance: gboolean (* advance) ( GdkPixbufAnimationIter* iter, const GTimeVal* current_time )`

  Advances the iterator to `current_time`, possibly changing the current frame.

#### Virtual methods

###### GdkPixbuf.PixbufAnimationIterClass.advance

Possibly advances an animation to a new frame.

since: 2.0

###### GdkPixbuf.PixbufAnimationIterClass.get_delay_time

Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf should be displayed forever.

since: 2.0

###### GdkPixbuf.PixbufAnimationIterClass.get_pixbuf

Gets the current pixbuf which should be displayed.

since: 2.0

###### GdkPixbuf.PixbufAnimationIterClass.on_currently_loading_frame

Used to determine how to respond to the area_updated signal on `GdkPixbufLoader` when loading an animation.

since: 2.0