Texture


Object Hierarchy:

Object hierarchy for Texture

Description:

[ CCode ( type_id = "gdk_texture_get_type ()" ) ]
public abstract class Texture : Object, Paintable

`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 `GdkPixbuf`, or a Cairo surface, or other pixel data.

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 @ref.

All known sub-classes:

Namespace: Gdk
Package: gtk4

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members: