TextureDownloader

The gdk.texture_downloader.TextureDownloader is used to download the contents of a gdk.texture.Texture.

It is intended to be created as a short-term object for a single download, but can be used for multiple downloads of different textures or with different settings.

gdk.texture_downloader.TextureDownloader can be used to convert data between different formats. Create a gdk.texture.Texture for the existing format and then download it in a different format.

Constructors

this
this(gdk.texture.Texture texture)

Creates a new texture downloader for texture.

Members

Functions

copy
gdk.texture_downloader.TextureDownloader copy()

Creates a copy of the downloader.

downloadBytes
glib.bytes.Bytes downloadBytes(size_t outStride)

Downloads the given texture pixels into a glib.bytes.Bytes. The rowstride will be stored in the stride value.

getFormat
gdk.types.MemoryFormat getFormat()

Gets the format that the data will be downloaded in.

getTexture
gdk.texture.Texture getTexture()

Gets the texture that the downloader will download.

setFormat
void setFormat(gdk.types.MemoryFormat format)

Sets the format the downloader will download.

setTexture
void setTexture(gdk.texture.Texture texture)

Changes the texture the downloader will download.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.