save


Description:

public void save ()

Makes a copy of the current state of this and saves it on an internal stack.

When [method@Gtk.Snapshot.restore] is called, this will be restored to the saved state.

Multiple calls to [method@Gtk.Snapshot.save] and [method@Gtk.Snapshot.restore] can be nested; each call to `gtk_snapshot_restore()` restores the state from the matching paired `gtk_snapshot_save()`.

It is necessary to clear all saved states with corresponding calls to `gtk_snapshot_restore()`.

Parameters:

this

a `GtkSnapshot`