Texture


Object Hierarchy:

Gdk.Texture Gdk.Texture Gdk.Texture GLib.Object GLib.Object GLib.Object->Gdk.Texture Gdk.Paintable Gdk.Paintable Gdk.Paintable->Gdk.Texture GLib.Icon GLib.Icon GLib.Icon->Gdk.Texture GLib.LoadableIcon GLib.LoadableIcon GLib.LoadableIcon->Gdk.Texture

Description:

[ CCode ( type_id = "gdk_texture_get_type ()" ) ]
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 [[email protected]], 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 [ [email protected]].

`GdkTexture` is an immutable object: That means you cannot change anything about it other than increasing the reference count via [ [email protected]], 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 GLib.Icon
All known members inherited from interface GLib.LoadableIcon



2022 vala-language.org