setCairoContext

open fun setCairoContext(cr: <Error class: unknown class>, dpiX: <Error class: unknown class>, dpiY: <Error class: unknown class>)(source)

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

cr

the cairo context

dpiX

the horizontal resolution to use with @cr

dpiY

the vertical resolution to use with @cr