MemoryTextureBuilder

open class MemoryTextureBuilder(val gdkMemoryTextureBuilderPointer: <Error class: unknown class><<Error class: unknown class>>)(source)

GdkMemoryTextureBuilder is a builder used to construct class@Gdk.Texture objects from system memory provided via struct@GLib.Bytes.

The operation is quite simple: Create a texture builder, set all the necessary properties - keep in mind that the properties property@Gdk.MemoryTextureBuilder:bytes, property@Gdk.MemoryTextureBuilder:stride, property@Gdk.MemoryTextureBuilder:width, and property@Gdk.MemoryTextureBuilder:height are mandatory - and then call method@Gdk.MemoryTextureBuilder.build to create the new texture.

GdkMemoryTextureBuilder can be used for quick one-shot construction of textures as well as kept around and reused to construct multiple textures.

Skipped during bindings generation

  • method color-state: Property TypeInfo of getter and setter do not match

Since

4.16

Constructors

Link copied to clipboard
constructor()

Creates a new texture builder.

constructor(gdkMemoryTextureBuilderPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var bytes: <Error class: unknown class>?

The bytes holding the data.

Link copied to clipboard

The format of the data.

Link copied to clipboard
val gdkMemoryTextureBuilderPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var height: <Error class: unknown class>

The height of the texture.

Link copied to clipboard
open var stride: <Error class: unknown class>

The rowstride of the texture.

Link copied to clipboard
open var updateRegion: <Error class: unknown class>?

The update region for property@Gdk.MemoryTextureBuilder:update-texture.

Link copied to clipboard

The texture property@Gdk.MemoryTextureBuilder:update-region is an update for.

Link copied to clipboard
open var width: <Error class: unknown class>

The width of the texture.

Functions

Link copied to clipboard
open fun build(): Texture

Builds a new GdkTexture with the values set up in the builder.

Link copied to clipboard

Gets the colorstate previously set via gdk_memory_texture_builder_set_color_state().

Link copied to clipboard
open fun setColorState(colorState: ColorState? = null)

Sets the colorstate describing the data.