DrawingContext.getCairoContext

Retrieves a Cairo context to be used to draw on the gdk.Window that created the gdk.DrawingContext

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

class DrawingContext
getCairoContext
()

Return Value

Type: Context

a Cairo context to be used to draw the contents of the gdk.Window The context is owned by the gdk.DrawingContext and should not be destroyed

Meta

Since

3.22