PixbufSimpleAnimation

An opaque struct representing a simple animation.

Constructors

this
this(GdkPixbufSimpleAnim* gdkPixbufSimpleAnim, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(int width, int height, float rate)

Creates a new, empty animation.

Members

Functions

addFrame
void addFrame(Pixbuf pixbuf)

Adds a new frame to @animation. The @pixbuf must have the dimensions specified when the animation was constructed.

getLoop
bool getLoop()

Gets whether @animation should loop indefinitely when it reaches the end.

getPixbufSimpleAnimationStruct
GdkPixbufSimpleAnim* getPixbufSimpleAnimationStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setLoop
void setLoop(bool loop)

Sets whether @animation should loop indefinitely when it reaches the end.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getType
GType getType()

Variables

gdkPixbufSimpleAnim
GdkPixbufSimpleAnim* gdkPixbufSimpleAnim;

the main Gtk struct

Inherited Members

From PixbufAnimation

gdkPixbufAnimation
GdkPixbufAnimation* gdkPixbufAnimation;

the main Gtk struct

getPixbufAnimationStruct
GdkPixbufAnimation* getPixbufAnimationStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()
newFromStreamAsync
void newFromStreamAsync(InputStream stream, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Creates a new animation by asynchronously loading an image from an input stream.

getHeight
int getHeight()

Queries the height of the bounding box of a pixbuf animation.

getIter
PixbufAnimationIter getIter(TimeVal startTime)

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().

getStaticImage
Pixbuf getStaticImage()

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.

getWidth
int getWidth()

Queries the width of the bounding box of a pixbuf animation.

isStaticImage
bool isStaticImage()

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.

doref
PixbufAnimation doref()

Adds a reference to an animation.

unref
void unref()

Removes a reference from an animation.

Meta