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
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_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
Properties
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
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.