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