Gtk.OffscreenWindow.new

function new():Gtk.Widget {
    // Gjs wrapper for gtk_offscreen_window_new()
}

Creates a toplevel container widget that is used to retrieve snapshots of widgets without showing them on the screen.

Since 2.20

Returns

A pointer to a Gtk.Widget