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
gtk.snapshot.Snapshot.pop to change the current node.
gtk.snapshot.Snapshot assists in creating gsk.render_node.RenderNodes 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 gtk.snapshot.Snapshot.pop to change the current node.
The typical way to obtain a gtk.snapshot.Snapshot object is as an argument to the vfunc@Gtk.Widget.snapshot vfunc. If you need to create your own gtk.snapshot.Snapshot, use gtk.snapshot.Snapshot.new_.