cairo_t* gdk_cairo_create ( GdkWindow* window )
Creates a Cairo context for drawing to
Note that calling
cairo_reset_clip() on the resulting #cairo_t will
produce undefined results, so avoid it at all costs.
Typically, this function is used to draw on a
GdkWindow out of the paint
cycle of the toolkit; this should be avoided, as it breaks various assumptions
If you are drawing on a native
GdkWindow in response to a
you should use
instead. GTK will automatically do this for you when drawing a widget.
|The data is owned by the caller of the function.|
A newly created Cairo context. Free with
|The caller of the function takes ownership of the data, and is responsible for freeing it.|