since: 3.22

Declaration [src]

gdk_drawing_context_get_cairo_context (
  GdkDrawingContext* context

Description [src]

Retrieves a Cairo context to be used to draw on the GdkWindow that created the GdkDrawingContext.

The returned context is guaranteed to be valid as long as the GdkDrawingContext is valid, that is between a call to gdk_window_begin_draw_frame() and gdk_window_end_draw_frame().

Available since: 3.22

Return value

Type: cairo_t

A Cairo context to be used to draw the contents of the GdkWindow. The context is owned by the GdkDrawingContext and should not be destroyed.

The returned data is owned by the instance.