CairoContext.cairoCreate

Retrieves a Cairo context to be used to draw on the GdkSurface of @context.

A call to [method@Gdk.DrawContext.begin_frame] with this @context must have been done or this function will return %NULL.

The returned context is guaranteed to be valid until [method@Gdk.DrawContext.end_frame] is called.

class CairoContext
cairoCreate
()

Return Value

Type: Context

a Cairo context to be used to draw the contents of the GdkSurface. %NULL is returned when @context is not drawing.

Meta