Package: gtk

Class gtk:snapshot

Superclasses

gdk:snapshot, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

The gtk:snapshot object is an auxiliary object that assists in creating gsk:render-node objects for widgets. It functions in a similar way to a Cairo context, and maintains a stack of render nodes and their associated transformations.

The node at the top of the stack is the the one that the gtk:snapshot-append-... functions operate on. Use the gtk:snapshot-push-... functions and the gtk:snapshot-pop function to change the current node.

The typical way to obtain a gtk:snapshot object is as an argument to the gtk:widget-snapshot virtual function. If you need to create your own gtk:snapshot object, use the gtk:snapshot-new function.

Note that the gtk:snapshot implementation applies some optimizations, so the node it produces may not match the API calls 1:1. For example, it will omit clip nodes if the child node is entirely contained within the clip rectangle.
 

Returned by

Inherited Slot Access Functions

See also

2026-05-22