TextureDownloader

class TextureDownloader(pointer: <Error class: unknown class><<Error class: unknown class>>)

The GdkTextureDownloader is used to download the contents of a class@Gdk.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.

GdkTextureDownloader can be used to convert data between different formats. Create a GdkTexture for the existing format and then download it in a different format.

Skipped during bindings generation

  • parameter out_stride: out_stride: Out parameter is not supported

  • parameter data: Array parameter of type guint8 is not supported

Since

4.10

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkTextureDownloaderPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Creates a copy of the downloader.

Link copied to clipboard
fun free()

Frees the given downloader and all its associated resources.

Link copied to clipboard

Gets the color state that the data will be downloaded in.

Link copied to clipboard

Gets the format that the data will be downloaded in.

Link copied to clipboard

Gets the texture that the downloader will download.

Link copied to clipboard
fun setColorState(colorState: ColorState)

Sets the color state the downloader will convert the data to.

Link copied to clipboard
fun setFormat(format: MemoryFormat)

Sets the format the downloader will download.

Link copied to clipboard
fun setTexture(texture: Texture)

Changes the texture the downloader will download.