RenderNode.draw

void draw(cairo.context.Context cr)

Draw the contents of node to the given cairo context.

Typically, you'll use this function to implement fallback rendering of [gsk.render_node.RenderNode]s on an intermediate Cairo context, instead of using the drawing context associated to a [gdk.surface.Surface]'s rendering buffer.

For advanced nodes that cannot be supported using Cairo, in particular for nodes doing 3D operations, this function may fail.

Parameters

crcairo context to draw to