From 87da282b140cf3a9012cef6c8500b16e39492343 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Tue, 15 Mar 2011 17:35:13 +0100 Subject: reference: pygtk-gtkoffscreenwindow.xml: add purpose, interfaces, properties and signals + update methods --- docs/reference/pygtk-gtkoffscreenwindow.xml | 87 +++++++++++++++++++++++++---- 1 file changed, 77 insertions(+), 10 deletions(-) diff --git a/docs/reference/pygtk-gtkoffscreenwindow.xml b/docs/reference/pygtk-gtkoffscreenwindow.xml index e8ec025f..850141fd 100644 --- a/docs/reference/pygtk-gtkoffscreenwindow.xml +++ b/docs/reference/pygtk-gtkoffscreenwindow.xml @@ -5,7 +5,7 @@ gtk.OffscreenWindow - + a toplevel container widget used to manage offscreen rendering of child widgets (new in PyGTK 2.22) @@ -44,6 +44,76 @@ + + Implemented Interfaces + + gtk.OffscreenWindow + implements + gtk.Buildable + atk.ImplementorIFace + + + + + gtk.OffscreenWindow Properties + + gtk.Object Properties + gtk.Widget Properties + gtk.Container Properties + gtk.Window Properties + + + + + gtk.OffscreenWindow Style Properties + + gtk.Widget Style Properties + + + + + gtk.OffscreenWindow Signal Prototypes + + gobject.GObject Signal Prototypes + gtk.Object Signal Prototypes + gtk.Widget Signal Prototypes + gtk.Container Signal Prototypes + gtk.Window Signal Prototypes + + + + + Description + + + This widget is available in PyGTK 2.22 and above. + + + gtk.OffscreenWindow is strictly + intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy. + It differs from gtk.Widget.get_snapshot() + in that the widget you want to get a snapshot of need not be displayed on the user's screen as a part + of a widget hierarchy. However, since gtk.OffscreenWindow + is a toplevel widget you cannot obtain snapshots of a full window with it since you cannot pack a + toplevel widget in another toplevel. + + The idea is to take a widget and manually set the state of it, add it to a + gtk.OffscreenWindow and then retrieve + the snapshot as a gtk.gdk.Pixmap or + gtk.gdk.Pixbuf. + + gtk.OffscreenWindow derives + from gtk.Window only as an implementation + detail. Applications should not use any API specific to gtk.Window + to operate on this object. It should be treated as a gtk.Bin + that has no parent widget. + + When contained offscreen widgets are redrawn, + gtk.OffscreenWindow will emit a + "damage-event" signal. + + + Constructor @@ -86,16 +156,15 @@ hierarchy, gtk.Widget Returns : - A GdkPixmap pointer to the offscreen pixmap, or NULL. + A gtk.gdk.Pixmap, or None. This method is available in PyGTK 2.22 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. + Retrieves a snapshot of the contained widget in the form of a + gtk.gdk.Pixmap. @@ -110,17 +179,15 @@ resizes then you should add a reference to it. Returns : - A GdkPixbuf pointer, or NULL. + A gtk.gdk.Pixbuf, or None. This method is available in PyGTK 2.22 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. + Retrieves a snapshot of the contained widget in the form of a + gtk.gdk.Pixbuf. -- cgit v1.2.1