pike.hubbe.net

[Top]
GDK
GDK.Image
previousGDK.Image()->get_pnm() GDK.Image()->set()next

Method GDK.Image()->grab()


Method grab

object(GDK.Image) GDK.Image()->grab(object(GTK.Widget) widget, int xoffset, int yoffset, int width, int height)

Description

Call this function to grab a portion of a widget (argument 1) to the image. Grabbing non-toplevel widgets may produce unexpected results. To get the size of a widget use ->xsize() and ->ysize(). To get the offset of the upper left corner of the widget, relative to it's X-window (this is what you want for the offset arguments), use ->xoffset() and ->yoffset().


Extracted from Pike v7.3 release 11 at 2001-11-03.