Gdk.Surface.create_cairo_context

### Method

# Gdk Surfacecreate_cairo_context

deprecated: 4.18

#### Declaration [src]

    GdkCairoContext*
    gdk_surface_create_cairo_context (
      GdkSurface* surface
    )

#### Description [src]

Creates a new `GdkCairoContext` for rendering on `surface`.

Deprecated since: 4.18

Drawing content with Cairo should be done via Cairo rendernodes, not by using the Cairo renderer.

#### Return value

Type: `GdkCairoContext`

The newly created `GdkCairoContext`.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.