Method

Gtk.PrintContext.set_cairo_context

Declaration [src]

void
gtk_print_context_set_cairo_context (
  GtkPrintContext* context,
  cairo_t* cr,
  double dpi_x,
  double dpi_y
)

Description [src]

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 cairo_t*
 

the cairo context

 Ownership is not transferred to the callee
dpi_x double
 

the horizontal resolution to use with cr

dpi_y double
 

the vertical resolution to use with cr