Class: Gtk::OffscreenWindow

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#newGtk::Widget

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

Returns:

#pixbufGdkPixbuf::Pixbuf

Retrieves a snapshot of the contained widget in the form of a Gdk::Pixbuf. This is a new pixbuf with a reference count of 1, and the application should unreference it once it is no longer needed.

Returns:

#surfacecairo::Surface

Retrieves a snapshot of the contained widget in the form of a #cairo_surface_t. If you need to keep this around over window resizes then you should add a reference to it.

Returns:

  • (cairo::Surface)

    A #cairo_surface_t pointer to the offscreen surface, or nil.