[ Version ( deprecated = true , deprecated_since = "4.18" ) ]
public Context? cairo_create ()
Warning: cairo_create is deprecated since 4.18.
Retrieves a Cairo context to be used to draw on the `GdkSurface` of context.
Drawing content with Cairo should be done via Cairo rendernodes, not by using renderers.
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.
| this |
a `GdkCairoContext` that is currently drawing |
|
a Cairo context to draw on `GdkSurface |