set_cairo_context


Description:

public void set_cairo_context (Context cr, double dpi_x, double dpi_y)

Sets a new cairo context on a print context.

This function is intended to be used when implementing an internal print preview, it is not needed for printing, since GTK itself creates a suitable cairo context in that case.

Parameters:

this

a `GtkPrintContext`

cr

the cairo context

dpi_x

the horizontal resolution to use with cr

dpi_y

the vertical resolution to use with cr