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 `GdkCairoContext` that is currently drawing

Returns:

a Cairo context to draw on `GdkSurface