PixbufAnimation

open class PixbufAnimation(pointer: <Error class: unknown class><<Error class: unknown class>>)

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 what should be displayed at a given point in time.

Inheritors

Constructors

Link copied to clipboard
constructor(filename: String)

Creates a new animation by loading it from a file.

constructor(stream: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null)

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

constructor(asyncResult: <Error class: unknown class>)

Finishes an asynchronous pixbuf animation creation operation started with func@GdkPixbuf.PixbufAnimation.new_from_stream_async.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkpixbufPixbufAnimationPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getHeight(): <Error class: unknown class>

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

Link copied to clipboard
open fun getIter(startTime: <Error class: unknown class>? = null): PixbufAnimationIter

Get an iterator for displaying an animation.

Link copied to clipboard

Retrieves a static image for the animation.

Link copied to clipboard
open fun getWidth(): <Error class: unknown class>

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

Link copied to clipboard

Checks whether the animation is a static image.

Link copied to clipboard
open fun ref(): PixbufAnimation

Adds a reference to an animation.

Link copied to clipboard
open fun unref()

Removes a reference from an animation.