Learn R Programming

RGtk2 (version 2.20.31)

gtkPrintContextSetCairoContext: gtkPrintContextSetCairoContext

Description

Sets a new cairo context on a print context.

Usage

gtkPrintContextSetCairoContext(object, cr, dpi.x, dpi.y)

Arguments

cr
the cairo context
dpi.x
the horizontal resolution to use with cr
dpi.y
the vertical resolution to use with cr

Details

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. Since 2.10