gdk.texture_downloader
Module for [TextureDownloader] class
class TextureDownloader
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
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 downloadgdk.texture.Texture getTexture() nothrowGets the texture that the downloader will download. Returns: The texture to downloadvoid setTexture(gdk.texture.Texture texture) nothrowChanges the texture the downloader will download.Constructors
this(gdk.texture.Texture texture)Creates a new texture downloader for texture.