Creates a Cairo context for drawing to window.
This is the main way to draw GL content in GTK+. It takes a render buffer ID (source_type == GL_RENDERBUFFER) or a texture id (source_type == GL_TEXTURE) and draws it onto cr with an OVER operation, respecting the current clip. The top left corner of the rectangle specified by x, y, width and height will be drawn at the current (0,0) position of the cairo_t.
This is a convenience function around cairo_clip_extents(). It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.
Retrieves the gdk.DrawingContext that created the Cairo context cr.
Adds the given rectangle to the current path of cr.
Adds the given region to the current path of cr.
Creates region that describes covers the area where the given surface is more than 50% opaque.
Sets the specified gdk.Color as the source color of cr.
Sets the given pixbuf as the source pattern for cr.
Sets the specified gdk.RGBA as the source color of cr.
Sets the given window as the source pattern for cr.
Creates an image surface with the same contents as the pixbuf.
Undocumented in source.