Snapshot


Object Hierarchy:

Object hierarchy for Snapshot

Description:

[ CCode ( type_id = "gtk_snapshot_get_type ()" ) ]
public class Snapshot : Snapshot

GtkSnapshot is an auxiliary object that assists in creating RenderNodes in the GdkPaintableInterface.snapshot vfunc.

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 gtk_snapshot_append_… functions operate on. Use the gtk_snapshot_push_… functions and pop to change the current node.

The typical way to obtain a GtkSnapshot object is as an argument to the snapshot vfunc. If you need to create your own GtkSnapshot, use Snapshot.


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Inherited Members: