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

The ownership of the pixel data is transferred to the gdk:texture instance; you can only make a copy of it, via 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 via the g:object-ref function.
 

Returned by

Inherited Slot Access Functions

See also

2024-10-13