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.

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*

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.

getStaticImage
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.

doref
alias doref = ref_
Undocumented in source.
ref_
PixbufAnimation ref_()

Adds a reference to an animation.

unref
void unref()

Removes a reference from an animation.

Meta