Snapshot


Object Hierarchy:

Gtk.Snapshot Gtk.Snapshot Gtk.Snapshot Gdk.Snapshot Gdk.Snapshot Gdk.Snapshot->Gtk.Snapshot GLib.Object GLib.Object GLib.Object->Gdk.Snapshot

Description:

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

`GtkSnapshot` 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 [[email protected]] to change the current node.

The typical way to obtain a `GtkSnapshot` object is as an argument to the [[email protected]] vfunc. If you need to create your own `GtkSnapshot`, use [[email protected]].


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org