Class

GdkMemoryTextureBuilder

unstable since: 4.16

Description [src]

final class Gdk.MemoryTextureBuilder : GObject.Object
{
  /* No available fields */
}

GdkMemoryTextureBuilder is a builder used to construct GdkTexture objects from system memory provided via GBytes.

The operation is quite simple: Create a texture builder, set all the necessary properties - keep in mind that the properties GdkMemoryTextureBuilder:bytes, GdkMemoryTextureBuilder:stride, GdkMemoryTextureBuilder:width, and GdkMemoryTextureBuilder:height are mandatory - and then call gdk_memory_texture_builder_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.

Available since: 4.16

Hierarchy

hierarchy this GdkMemoryTextureBuilder ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

gdk_memory_texture_builder_new

Creates a new texture builder.

unstable since: 4.16

Instance methods

gdk_memory_texture_builder_build

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

unstable since: 4.16

gdk_memory_texture_builder_get_bytes

Gets the bytes previously set via gdk_memory_texture_builder_set_bytes() or NULL if none was set.

unstable since: 4.16

gdk_memory_texture_builder_get_color_state

Gets the colorstate previously set via gdk_memory_texture_builder_set_color_state().

unstable since: 4.16

gdk_memory_texture_builder_get_format

Gets the format previously set via gdk_memory_texture_builder_set_format().

unstable since: 4.16

gdk_memory_texture_builder_get_height

Gets the height previously set via gdk_memory_texture_builder_set_height() or 0 if the height wasn’t set.

unstable since: 4.16

gdk_memory_texture_builder_get_stride

Gets the stride previously set via gdk_memory_texture_builder_set_stride().

unstable since: 4.16

gdk_memory_texture_builder_get_update_region

Gets the region previously set via gdk_memory_texture_builder_set_update_region() or NULL if none was set.

unstable since: 4.16

gdk_memory_texture_builder_get_update_texture

Gets the texture previously set via gdk_memory_texture_builder_set_update_texture() or NULL if none was set.

unstable since: 4.16

gdk_memory_texture_builder_get_width

Gets the width previously set via gdk_memory_texture_builder_set_width() or 0 if the width wasn’t set.

unstable since: 4.16

gdk_memory_texture_builder_set_bytes

Sets the data to be shown but the texture.

unstable since: 4.16

gdk_memory_texture_builder_set_color_state

Sets the colorstate describing the data.

unstable since: 4.16

gdk_memory_texture_builder_set_format

Sets the format of the bytes.

unstable since: 4.16

gdk_memory_texture_builder_set_height

Sets the height of the texture.

unstable since: 4.16

gdk_memory_texture_builder_set_stride

Sets the rowstride of the bytes used.

unstable since: 4.16

gdk_memory_texture_builder_set_update_region

Sets the region to be updated by this texture.

unstable since: 4.16

gdk_memory_texture_builder_set_update_texture

Sets the texture to be updated by this texture.

unstable since: 4.16

gdk_memory_texture_builder_set_width

Sets the width of the texture.

unstable since: 4.16

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gdk.MemoryTextureBuilder:bytes

The bytes holding the data.

unstable since: 4.16

Gdk.MemoryTextureBuilder:color-state

The colorstate describing the data.

unstable since: 4.16

Gdk.MemoryTextureBuilder:format

The format of the data.

unstable since: 4.16

Gdk.MemoryTextureBuilder:height

The height of the texture.

unstable since: 4.16

Gdk.MemoryTextureBuilder:stride

The rowstride of the texture.

unstable since: 4.16

Gdk.MemoryTextureBuilder:update-region

The update region for GdkMemoryTextureBuilder:update-texture.

unstable since: 4.16

Gdk.MemoryTextureBuilder:update-texture

The texture GdkMemoryTextureBuilder:update-region is an update for.

unstable since: 4.16

Gdk.MemoryTextureBuilder:width

The width of the texture.

unstable since: 4.16

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GdkMemoryTextureBuilderClass {
  /* no available fields */
}

No description available.