gtk.OffscreenWindow

gtk.OffscreenWindow

Synopsis

class gtk.OffscreenWindow(gtk.Window):
    gtk.OffscreenWindow()
def get_pixmap()
def get_pixbuf()

Ancestry

+-- GObject
  +-- gtk.Object
    +-- gtk.Widget
      +-- gtk.Container
        +-- gtk.Bin
          +-- gtk.Window
            +-- gtk.OffscreenWindow

Constructor

          gtk.OffscreenWindow()
    

Returns :

A pointer to a gtk.Widget

Note

This constructor is available in PyGTK 2.20 and above.

Creates a toplevel container widget that is used to retrieve snapshots of widgets without showing them on the screen. For widgets that are on the screen and part of a normal widget hierarchy, gtk.Widget.get_snapshot can be used instead.

Methods

gtk.OffscreenWindow.get_pixmap

            def get_pixmap()
      

Returns :

A GdkPixmap pointer to the offscreen pixmap, or NULL.

Note

This method is available in PyGTK 2.20 and above.

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

gtk.OffscreenWindow.get_pixbuf

            def get_pixbuf()
      

Returns :

A GdkPixbuf pointer, or NULL.

Note

This method is available in PyGTK 2.20 and above.

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