Class

GdkMemoryTextureBuilder

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.

since: 4.16

Instance methods

gdk_memory_texture_builder_build

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

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.

since: 4.16

gdk_memory_texture_builder_get_color_state

Gets the colorstate previously set via gdk_memory_texture_builder_set_color_state().

since: 4.16

gdk_memory_texture_builder_get_format

Gets the format previously set via gdk_memory_texture_builder_set_format().

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.

since: 4.16

gdk_memory_texture_builder_get_stride

Gets the stride previously set via gdk_memory_texture_builder_set_stride().

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.

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.

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.

since: 4.16

gdk_memory_texture_builder_set_bytes

Sets the data to be shown but the texture.

since: 4.16

gdk_memory_texture_builder_set_color_state

Sets the colorstate describing the data.

since: 4.16

gdk_memory_texture_builder_set_format

Sets the format of the bytes.

since: 4.16

gdk_memory_texture_builder_set_height

Sets the height of the texture.

since: 4.16

gdk_memory_texture_builder_set_stride

Sets the rowstride of the bytes used.

since: 4.16

gdk_memory_texture_builder_set_update_region

Sets the region to be updated by this texture.

since: 4.16

gdk_memory_texture_builder_set_update_texture

Sets the texture to be updated by this texture.

since: 4.16

gdk_memory_texture_builder_set_width

Sets the width of the texture.

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.

since: 4.16

Gdk.MemoryTextureBuilder:color-state

The colorstate describing the data.

since: 4.16

Gdk.MemoryTextureBuilder:format

The format of the data.

since: 4.16

Gdk.MemoryTextureBuilder:height

The height of the texture.

since: 4.16

Gdk.MemoryTextureBuilder:stride

The rowstride of the texture.

since: 4.16

Gdk.MemoryTextureBuilder:update-region

The update region for GdkMemoryTextureBuilder:update-texture.

since: 4.16

Gdk.MemoryTextureBuilder:update-texture

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

since: 4.16

Gdk.MemoryTextureBuilder:width

The width of the texture.

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.