Package: gdk

Class gdk:texture

Superclasses

gdk:paintable, gio:icon, gio:loadable-icon, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

color-state
The color-state property of type gdk:color-state (Read / Write / Construct only)
The color state of the texture. Since 4.16
height
The height property of type :int (Read / Write / Construct only)
The height of the texture, in pixels.
Allowed values: >= 1
Default value: 1
width
The width property of type :int (Read / Write / Construct only)
The width of the texture, in pixels.
Allowed values: >= 1
Default value: 1

Details

The gdk:texture object 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 gdk:texture objects from a gdk-pixbuf:pixbuf object, or from bytes stored in memory, a file, or a g:resource instance.

The ownership of the pixel data is transferred to the gdk:texture instance. You can only make a copy of it, with the gdk:texture-download function.

The gdk:texture object is an immutable object: That means you cannot change anything about it other than increasing the reference count with the g:object-ref function.
 

Returned by

Inherited Slot Access Functions

See also

2025-3-11