gdkpixbuf.pixbuf_animation

Module for [PixbufAnimation] class

Types 3

An opaque object representing an animation.

The GdkPixBuf library provides a simple mechanism to load and represent animations. An animation is conceptually a series of frames to be displayed over time.

The animation may not be represented as a series of frames internally; for example, it may be stored as a sprite and instructions for moving the sprite around a background.

To display an animation you don't need to understand its representation, however; you just ask gdkpixbuf.pixbuf.Pixbuf what should be displayed at a given point in time.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
PixbufAnimation self() nothrowReturns `this`, for use in `with` statements.
PixbufAnimationGidBuilder builder() static nothrowGet builder for [gdkpixbuf.pixbuf_animation.PixbufAnimation] Returns: New builder object
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromFile(string filename) staticCreates a new animation by loading it from a file.
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromResource(string resourcePath) staticCreates a new pixbuf animation by loading an image from an resource.
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromStream(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable = null) staticCreates a new animation by loading it from an input stream.
gdkpixbuf.pixbuf_animation.PixbufAnimation newFromStreamFinish(gio.async_result.AsyncResult asyncResult) staticFinishes an asynchronous pixbuf animation creation operation started with [gdkpixbuf.pixbuf_animation.PixbufAnimation.newFromStreamAsync].
void newFromStreamAsync(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) static nothrowCreates a new animation by asynchronously loading an image from an input stream.
int getHeight() nothrowQueries the height of the bounding box of a pixbuf animation. Returns: Height of the bounding box of the animation.
gdkpixbuf.pixbuf_animation_iter.PixbufAnimationIter getIter(glib.time_val.TimeVal startTime) nothrowGet an iterator for displaying an animation.
gdkpixbuf.pixbuf.Pixbuf getStaticImage() nothrowRetrieves a static image for the animation.
int getWidth() nothrowQueries the width of the bounding box of a pixbuf animation. Returns: Width of the bounding box of the animation.
bool isStaticImage() nothrowChecks whether the animation is a static image.
Constructors
this(void * ptr, Flag!"Take" take)