DrawingContext.getCairoContext

Retrieves a Cairo context to be used to draw on the #GdkWindow that created the #GdkDrawingContext.

The returned context is guaranteed to be valid as long as the #GdkDrawingContext is valid, that is between a call to gdk.window.Window.beginDrawFrame and gdk.window.Window.endDrawFrame.

class DrawingContext
getCairoContext
()

Return Value

Type: cairo.context.Context

a Cairo context to be used to draw the contents of the #GdkWindow. The context is owned by the #GdkDrawingContext and should not be destroyed