Method

Gsk.CairoNode.get_draw_context

Declaration [src]

cairo_t*
gsk_cairo_node_get_draw_context (
  GskRenderNode* node
)

Description [src]

Creates a Cairo context for drawing using the surface associated to the render node.

If no surface exists yet, a surface will be created optimized for rendering to renderer.

Return value

Returns: cairo_t*

a Cairo context used for drawing; use cairo_destroy() when done drawing

Ownership of the data is transferred to the caller