| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
GDK
GDK.Image

# Method GDK.Image()->grab()

Method grab

  `GDK.Image grab(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 -&gt;xsize() and -&gt;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 -&gt;xoffset() and -&gt;yoffset().