Package: gdk

Accessor gdk:dmabuf-texture-builder-update-region

Lambda List

gdk:dmabuf-texture-builder-update-region (object)

Syntax

(gdk:dmabuf-texture-builder-update-region object) => region
(setf (gdk:dmabuf-texture-builder-update-region object) region)

Arguments

object -- a gdk:dmabuf-texture-builder object
region -- a cairo:region-t instance

Details

Accessor of the update-region slot of the gdk:dmabuf-texture-builder class. The gdk:dmabuf-texture-builder-update-region function gets the region previously set or nil if none was set. The (setf gdk:dmabuf-texture-builder-update-region) function sets the region to be updated by this texture. Together with the update-texture property this describes an update of a previous texture.

When rendering animations of large textures, it is possible that consecutive textures are only updating contents in parts of the texture. It is then possible to describe this update via these two properties, so that GTK can avoid rerendering parts that did not change. An example would be a screen recording where only the mouse pointer moves.

Since 4.14
 

See also

2024-7-11