file: snapshot.aus

class: Snapshot

[23:7] extends: object

Assists in creating [class@Gsk.RenderNode]s 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 one that gtk_snapshot_append_…() functions operate on. Use the gtk_snapshot_push_…() functions and [method@Snapshot.pop] to change the current node. The typical way to obtain a GtkSnapshot object is as an argument to the [vfunc@Gtk.Widget.snapshot] vfunc. If you need to create your own GtkSnapshot, use [ctor@Gtk.Snapshot.new]. Note that GtkSnapshot 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.

Members

Methods