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
PixbufAnimation self()Returns `this`, for use in `with` statements.PixbufAnimationGidBuilder builder()Get builder for [gdkpixbuf.pixbuf_animation.PixbufAnimation] Returns: New builder objectgdkpixbuf.pixbuf_animation.PixbufAnimation newFromFile(string filename)Creates a new animation by loading it from a file.gdkpixbuf.pixbuf_animation.PixbufAnimation newFromResource(string resourcePath)Creates 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)Creates a new animation by loading it from an input stream.gdkpixbuf.pixbuf_animation.PixbufAnimation newFromStreamFinish(gio.async_result.AsyncResult asyncResult)Finishes 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)Creates a new animation by asynchronously loading an image from an input stream.int getHeight()Queries 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)Get an iterator for displaying an animation.gdkpixbuf.pixbuf.Pixbuf getStaticImage()Retrieves a static image for the animation.int getWidth()Queries the width of the bounding box of a pixbuf animation. Returns: Width of the bounding box of the animation.bool isStaticImage()Checks whether the animation is a static image.Fluent builder for [gdkpixbuf.pixbuf_animation.PixbufAnimation]
Methods