gdk.texture_downloader

Module for [TextureDownloader] class

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
TextureDownloader self() nothrowReturns `this`, for use in `with` statements.
gdk.texture_downloader.TextureDownloader copy() nothrowCreates a copy of the downloader.
glib.bytes.Bytes downloadBytes(out size_t outStride) nothrowDownloads the given texture pixels into a [glib.bytes.Bytes]. The rowstride will be stored in the stride value.
gdk.types.MemoryFormat getFormat() nothrowGets the format that the data will be downloaded in. Returns: The format of the download
gdk.texture.Texture getTexture() nothrowGets the texture that the downloader will download. Returns: The texture to download
void setFormat(gdk.types.MemoryFormat format) nothrowSets the format the downloader will download.
void setTexture(gdk.texture.Texture texture) nothrowChanges the texture the downloader will download.
Constructors
this(void * ptr, Flag!"Take" take)
this(gdk.texture.Texture texture)Creates a new texture downloader for texture.