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)
GType _gType() @property
TextureDownloader self()Returns `this`, for use in `with` statements.
gdk.texture_downloader.TextureDownloader copy()Creates a copy of the downloader.
glib.bytes.Bytes downloadBytes(out size_t outStride)Downloads the given texture pixels into a [glib.bytes.Bytes]. The rowstride will be stored in the stride value.
gdk.types.MemoryFormat getFormat()Gets the format that the data will be downloaded in. Returns: The format of the download
gdk.texture.Texture getTexture()Gets the texture that the downloader will download. Returns: The texture to download
void setFormat(gdk.types.MemoryFormat format)Sets the format the downloader will download.
void setTexture(gdk.texture.Texture texture)Changes 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.