Texture
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_texture_get_type ()" ) ]
public abstract class Texture : Object, Paintable, Icon, LoadableIcon
public abstract class Texture : Object, Paintable, Icon, LoadableIcon
`GdkTexture` is the basic element used to refer to pixel data.
It is primarily meant for pixel data that will not change over multiple frames, and will be used for a long time.
There are various ways to create `GdkTexture` objects from a [class@GdkPixbuf.Pixbuf], or from bytes stored in memory, a file, or a [ struct@Gio.Resource].
The ownership of the pixel data is transferred to the `GdkTexture` instance; you can only make a copy of it, via [method@Gdk.Texture.download].
`GdkTexture` is an immutable object: That means you cannot change anything about it other than increasing the reference count via [ method@GObject.Object.ref], and consequently, it is a thread-safe object.
All known sub-classes:
Namespace: Gdk
Package: gtk4
Content:
Properties:
Static methods:
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gdk.Paintable
All known members inherited from interface GLib.Icon
All known members inherited from interface GLib.LoadableIcon