cairo_create


Description:

public Context? cairo_create ()

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.

Parameters:

this

a CairoContext that is currently drawing

Returns:

a Cairo context to be used to draw the contents of the `GdkSurface`. null is returned when context is not drawing.