create_cairo_context


Description:

public Context create_cairo_context ()

Creates a cairo context, initialized with the default canvas settings.

Note that this context should not be used for drawing. It should only be used for calculating bounds of items.

Parameters:

this

a Canvas.

Returns:

a new cairo context. It should be freed with cairo_destroy.