| Top | 
| cairo_t * | gtk_print_context_get_cairo_context () | 
| void | gtk_print_context_set_cairo_context () | 
| GtkPageSetup * | gtk_print_context_get_page_setup () | 
| gdouble | gtk_print_context_get_width () | 
| gdouble | gtk_print_context_get_height () | 
| gdouble | gtk_print_context_get_dpi_x () | 
| gdouble | gtk_print_context_get_dpi_y () | 
| PangoFontMap * | gtk_print_context_get_pango_fontmap () | 
| PangoContext * | gtk_print_context_create_pango_context () | 
| PangoLayout * | gtk_print_context_create_pango_layout () | 
| gboolean | gtk_print_context_get_hard_margins () | 
cairo_t *
gtk_print_context_get_cairo_context (GtkPrintContext *context);
Obtains the cairo context that is associated with the GtkPrintContext.
Since: 2.10
void gtk_print_context_set_cairo_context (GtkPrintContext *context,cairo_t *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.
context  | 
||
cr  | 
the cairo context  | 
|
dpi_x  | 
the horizontal resolution to use with   | 
|
dpi_y  | 
the vertical resolution to use with   | 
Since: 2.10
GtkPageSetup *
gtk_print_context_get_page_setup (GtkPrintContext *context);
Obtains the GtkPageSetup that determines the page dimensions of the GtkPrintContext.
Since: 2.10
gdouble
gtk_print_context_get_width (GtkPrintContext *context);
Obtains the width of the GtkPrintContext, in pixels.
Since: 2.10
gdouble
gtk_print_context_get_height (GtkPrintContext *context);
Obtains the height of the GtkPrintContext, in pixels.
Since: 2.10
gdouble
gtk_print_context_get_dpi_x (GtkPrintContext *context);
Obtains the horizontal resolution of the GtkPrintContext, in dots per inch.
Since: 2.10
gdouble
gtk_print_context_get_dpi_y (GtkPrintContext *context);
Obtains the vertical resolution of the GtkPrintContext, in dots per inch.
Since: 2.10
PangoFontMap *
gtk_print_context_get_pango_fontmap (GtkPrintContext *context);
Returns a PangoFontMap that is suitable for use with the GtkPrintContext.
Since: 2.10
PangoContext *
gtk_print_context_create_pango_context
                               (GtkPrintContext *context);
Creates a new PangoContext that can be used with the GtkPrintContext.
Since: 2.10
PangoLayout *
gtk_print_context_create_pango_layout (GtkPrintContext *context);
Creates a new PangoLayout that is suitable for use with the GtkPrintContext.
Since: 2.10
gboolean gtk_print_context_get_hard_margins (GtkPrintContext *context,gdouble *top,gdouble *bottom,gdouble *left,gdouble *right);
Obtains the hardware printer margins of the GtkPrintContext, in units.
context  | 
||
top  | 
top hardware printer margin.  | 
[out] | 
bottom  | 
bottom hardware printer margin.  | 
[out] | 
left  | 
left hardware printer margin.  | 
[out] | 
right  | 
right hardware printer margin.  | 
[out] | 
Since: 2.20