Surface.createCairoContext

gdk.cairo_context.CairoContext createCairoContext()

Creates a new [gdk.cairo_context.CairoContext] for rendering on surface.

Returns

the newly created [gdk.cairo_context.CairoContext]