NetSurf
|
GTK printing (interface). More...
#include <gtk/gtk.h>
Go to the source code of this file.
Functions | |
void | gtk_print_signal_begin_print (GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data) |
Handle the begin_print signal from the GtkPrintOperation. More... | |
void | gtk_print_signal_draw_page (GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, gpointer user_data) |
Handle the draw_page signal from the GtkPrintOperation. More... | |
void | gtk_print_signal_end_print (GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data) |
Handle the end_print signal from the GtkPrintOperation. More... | |
Variables | |
cairo_t * | gtk_print_current_cr |
struct hlcache_handle * | content_to_print |
GTK printing (interface).
Definition in file print.h.
void gtk_print_signal_begin_print | ( | GtkPrintOperation * | operation, |
GtkPrintContext * | context, | ||
gpointer | user_data | ||
) |
Handle the begin_print signal from the GtkPrintOperation.
operation | the operation which emited the signal |
context | the print context used to set up the pages |
user_data | nothing in here |
Definition at line 695 of file print.c.
References content_to_print, print_settings::font_func, gtk_printer, MARGINBOTTOM, MARGINLEFT, MARGINRIGHT, print_settings::margins, MARGINTOP, nsgtk_layout_table, NSLOG, print_settings::page_height, print_settings::page_width, print_set_up(), print_settings::scale, and settings.
Referenced by print_button_clicked_cb().
void gtk_print_signal_draw_page | ( | GtkPrintOperation * | operation, |
GtkPrintContext * | context, | ||
gint | page_nr, | ||
gpointer | user_data | ||
) |
Handle the draw_page signal from the GtkPrintOperation.
This function changes only the cairo context to print on.
Definition at line 745 of file print.c.
References gtk_print_current_cr, gtk_printer, NSLOG, print_draw_next_page(), and settings.
Referenced by print_button_clicked_cb().
void gtk_print_signal_end_print | ( | GtkPrintOperation * | operation, |
GtkPrintContext * | context, | ||
gpointer | user_data | ||
) |
Handle the end_print signal from the GtkPrintOperation.
This functions calls only the print_cleanup function from the print interface
Definition at line 757 of file print.c.
References content_to_print, gtk_printer, NSLOG, and print_cleanup().
Referenced by print_button_clicked_cb().
|
extern |
Definition at line 51 of file print.c.
Referenced by gtk_print_signal_begin_print(), gtk_print_signal_end_print(), and print_button_clicked_cb().
|
extern |
Definition at line 49 of file print.c.
Referenced by gtk_print_font_paint(), gtk_print_signal_draw_page(), nsgtk_print_plot_arc(), nsgtk_print_plot_clip(), nsgtk_print_plot_disc(), nsgtk_print_plot_line(), nsgtk_print_plot_pixbuf(), nsgtk_print_plot_polygon(), nsgtk_print_plot_rectangle(), nsgtk_print_set_colour(), nsgtk_print_set_dashed(), nsgtk_print_set_dotted(), nsgtk_print_set_solid(), and nsgtk_set_line_width().