CairoNode.getDrawContext

cairo.context.Context getDrawContext()

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.

Returns

a Cairo context used for drawing; use

[cairo.global.destroy] when done drawing