draw


Description:

public void draw (Context cr)

Draws the contents of a render node on a cairo context.

Typically, you'll use this function to implement fallback rendering of render nodes on an intermediate Cairo context, instead of using the drawing context associated to a [class@Gdk.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:

this

a render node

cr

cairo context to draw to