PixbufSimpleAnim

An opaque struct representing a simple animation.

Constructors

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

Creates a new, empty animation.

Members

Functions

addFrame
void addFrame(gdkpixbuf.pixbuf.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.

setLoop
void setLoop(bool loop)

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

Inherited Members

From PixbufAnimation

newFromFile
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromFile(string filename)

Creates a new animation by loading it from a file.

newFromResource
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromResource(string resourcePath)

Creates a new pixbuf animation by loading an image from an resource.

newFromStream
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromStream(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable)

Creates a new animation by loading it from an input stream.

newFromStreamFinish
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromStreamFinish(gio.async_result.AsyncResult asyncResult)

Finishes an asynchronous pixbuf animation creation operation started with gdkpixbuf.pixbuf_animation.PixbufAnimation.newFromStreamAsync.

newFromStreamAsync
void newFromStreamAsync(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

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
gdkpixbuf.pixbuf_animation_iter.PixbufAnimationIter getIter(glib.time_val.TimeVal startTime)

Get an iterator for displaying an animation.

getStaticImage
gdkpixbuf.pixbuf.Pixbuf getStaticImage()

Retrieves a static image for the animation.

getWidth
int getWidth()

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

isStaticImage
bool isStaticImage()

Checks whether the animation is a static image.