gtk.gdk.Pixmap — An offscreen gtk.gdk.Drawable
| class gtk.gdk.Pixmap(gtk.gdk.Drawable): | 
Functionsdef gtk.gdk.bitmap_create_from_data(drawable,data,width,height)def gtk.gdk.pixmap_create_from_data(drawable,data,width,height,depth,fg,bg)def gtk.gdk.pixmap_create_from_xpm(window,transparent_color,filename)def gtk.gdk.pixmap_colormap_create_from_xpm(window,colormap,transparent_color,filename)def gtk.gdk.pixmap_create_from_xpm_d(window,transparent_color,data)def gtk.gdk.pixmap_colormap_create_from_xpm_d(window,colormap,transparent_color,data)def gtk.gdk.pixmap_foreign_new(anid)def gtk.gdk.pixmap_lookup(anid)def gtk.gdk.pixmap_foreign_new_for_display(display,anid)def gtk.gdk.pixmap_lookup_for_display(display,anid)
A gtk.gdk.Pixmap is an
offscreen gtk.gdk.Drawable.
It can be drawn upon with the standard gtk.gdk.Drawable
drawing primitives, then copied to another gtk.gdk.Drawable
(such as a gtk.gdk.Window) with
the draw_drawable() 
method. The depth of a pixmap is the number of bits per pixels. A bitmaps
are simply a gtk.gdk.Pixmap with
a depth of 1. (That is, they are monochrome pixmaps - each pixel can be
either on or off).
    gtk.gdk.Pixmap(drawable, width, height, depth=-1)| 
 | a gtk.gdk.Drawableused
to determine default values for the new pixmap orNoneifdepthis specified. | 
| 
 | the width of the new pixmap in pixels. | 
| 
 | the height of the new pixmap in pixels. | 
| 
 | the depth (number of bits per pixel) of the new
pixmap or -1 to use the depth of drawable. | 
| Returns : | a new gtk.gdk.Pixmapobject | 
Creates a new gtk.gdk.Pixmap with
the size specified by width and
height and the number of bits per pixel specified by
depth.
    def gtk.gdk.bitmap_create_from_data(drawable, data, width, height)| 
 | a gtk.gdk.Drawableused
to determine default values for the new pixmap orNoneto use the root window. | 
| 
 | a string containing the XBM data | 
| 
 | the width of the new bitmap in pixels. | 
| 
 | the height of the new bitmap in pixels. | 
| Returns : | a new bitmap ( gtk.gdk.Pixmap)
object | 
The gtk.gdk.bitmap_create_from_data()
function returns a new bitmap of the size specified by
width and height from the
XBM format string specified by
data.
    def gtk.gdk.pixmap_create_from_data(drawable, data, width, height, depth, fg, bg)| 
 | a gtk.gdk.Drawableused
to determine default values for the new pixmap orNoneifdepthis specified. | 
| 
 | the string containing the pixmap data. | 
| 
 | the width of the new pixmap in pixels. | 
| 
 | the height of the new pixmap in pixels. | 
| 
 | the depth (number of bits per pixel) of the new
pixmap or -1 to use the depth of drawable. | 
| 
 | the foreground color. | 
| 
 | he background color. | 
| Returns : | a new gtk.gdk.Pixmapobject | 
The gtk.gdk.pixmap_create_from_data()
function creates a two-color gtk.gdk.Pixmap of
the size specified by width and
height from the XBM format string
specified by data. The foreground and background
colors of the pixmap are specified by fg and
bg respectively. If depth is
-1 drawable is used to determine the bits per pixels
otherwise the value of depth is used.
    def gtk.gdk.pixmap_create_from_xpm(window, transparent_color, filename)| 
 | a gtk.gdk.Drawable,
	  used to determine default values for the newgtk.gdk.Pixmap. | 
| 
 | the color to be used for the pixels that are
transparent in the input file or Noneto use a default
color. | 
| 
 | the name of a file containing XPMdata. | 
| Returns : | a tuple containing a new gtk.gdk.Pixmapobject and a bitmap that is the transparency mask. | 
The gtk.gdk.pixmap_create_from_xpm()
function returns a tuple containing a gtk.gdk.Pixmap and a
bitmap transparency mask created from the XPM data in the
file specified by filename.
transparent_color (if not None)
specifies the gtk.gdk.Color to by
used for the transparent pixels.
    def gtk.gdk.pixmap_colormap_create_from_xpm(window, colormap, transparent_color, filename)| 
 | a gtk.gdk.Drawable,
used to determine default values for the newgtk.gdk.PixmaporNoneif agtk.gdk.Colormapis specified. | 
| 
 | the gtk.gdk.Colormapthat the newgtk.gdk.Pixmapwill
be use orNoneto use the colormap ofwindow. | 
| 
 | the color to be used for the pixels that are
transparent in the input file or Noneto use a default
color. | 
| 
 | the name of a file containing XPMdata. | 
| Returns : | a tuple containing a new gtk.gdk.Pixmapobject and a bitmap that is the transparency mask. | 
The
gtk.gdk.pixmap_colormap_create_from_xpm() function
returns a tuple containing a gtk.gdk.Pixmap and a
bitmap transparency mask created from the XPM data in the
file specified by filename.
transparent_color (if not None)
specifies the gtk.gdk.Color to by
used for the transparent pixels. If colormap is not
None it must specify a gtk.gdk.Colormap
that the new gtk.gdk.Pixmap will
use. If colormap is None the new
gtk.gdk.Pixmap
will use the colormap of window.
    def gtk.gdk.pixmap_create_from_xpm_d(window, transparent_color, data)| 
 | a gtk.gdk.Drawable,
used to determine default values for the newgtk.gdk.Pixmap. | 
| 
 | the color to be used for the pixels that are
transparent in the input file or Noneto use a default
color. | 
| 
 | a list of strings containing the XPMdata. | 
| Returns : | a tuple containing a new gtk.gdk.Pixmapobject and a bitmap that is the transparency mask. | 
The gtk.gdk.pixmap_create_from_xpm_d()
function returns a tuple containing a new gtk.gdk.Pixmap and a
bitmap transparency mask created from the XPM data
contained in data.
transparent_color (if not None)
specifies the gtk.gdk.Color to by
used for the transparent pixels.
    def gtk.gdk.pixmap_colormap_create_from_xpm_d(window, colormap, transparent_color, data)| 
 | a gtk.gdk.Drawable,
used to determine default values for the newgtk.gdk.Pixmap. | 
| 
 | the gtk.gdk.Colormapthat the newgtk.gdk.Pixmapwill
be use orNoneto use the colormap ofwindow. | 
| 
 | the color to be used for the pixels that are
transparent in the input file or Noneto use a default
color. | 
| 
 | a list of strings containing the XPMdata. | 
| Returns : | a tuple containing a new gtk.gdk.Pixmapobject and a bitmap that is the transparency mask. | 
The
gtk.gdk.pixmap_colormap_create_from_xpm_d() function
returns a tuple containing a new gtk.gdk.Pixmap and a
bitmap transparency mask created from the XPM data
contained in data.
transparent_color (if not None)
specifies the gtk.gdk.Color to by
used for the transparent pixels. If colormap is not
None it must specify a gtk.gdk.Colormap
that the new gtk.gdk.Pixmap will
use. If colormap is None the new
gtk.gdk.Pixmap
will use the colormap of window.
    def gtk.gdk.pixmap_foreign_new(anid)| 
 | a native window system pixmap handle. | 
| Returns : | the new gtk.gdk.Pixmapwrapper for the native pixmap orNoneif the pixmap has
been destroyed. | 
The gtk.gdk.pixmap_foreign_new() function
returns a gtk.gdk.Pixmap that
wraps the native window specified by anid for the
default display. If the pixmap has been destroyed this function returns
None. In the X backend, anid must
specify an Xlib XID that is a native pixmap handle.
    def gtk.gdk.pixmap_lookup(anid)| 
 | a native window system pixmap handle. | 
| Returns : | the new gtk.gdk.Pixmapwrapper for the native pixmap orNoneif the pixmap has
been destroyed. | 
The gtk.gdk.pixmap_lookup() function
returns looks up and returns the gtk.gdk.Pixmap that
wraps the native pixmap handle specified by anid.
This method returns None if no gtk.gdk.Pixmap wraps
anid. In the X backend, anid
must specify an Xlib XID that is a native pixmap handle.
    def gtk.gdk.pixmap_foreign_new_for_display(display, anid)| 
 | a gtk.gdk.Displayobject | 
| 
 | a native window system pixmap handle. | 
| Returns : | the new gtk.gdk.Pixmapwrapper for the native pixmap orNoneif the pixmap has
been destroyed. | 
This function is available in PyGTK2.2 and above.
The
gtk.gdk.pixmap_foreign_new_for_display() function
returns a gtk.gdk.Pixmap that
wraps the native window specified by anid for the
gtk.gdk.Display
specified by display. If the pixmap has been
destroyed this function returns None. In the X backend,
anid must specify an Xlib XID that is a native pixmap
handle.
    def gtk.gdk.pixmap_lookup_for_display(display, anid)| 
 | a gtk.gdk.Displayobject | 
| 
 | a native window system pixmap handle. | 
| Returns : | the new gtk.gdk.Pixmapwrapper for the native pixmap orNoneif the pixmap has
been destroyed. | 
This function is available in PyGTK2.2 and above.
The gtk.gdk.pixmap_lookup_for_display()
function returns looks up and returns the gtk.gdk.Pixmap that
wraps the native pixmap handle specified by anid for
the gtk.gdk.Display
specified by display.  This method returns
None if no gtk.gdk.Pixmap wraps
anid. In the X backend, anid
must specify an Xlib XID that is a native pixmap handle.