NetSurf
Functions | Variables
print.h File Reference

GTK printing (interface). More...

#include <gtk/gtk.h>
Include dependency graph for print.h:
This graph shows which files directly or indirectly include this file:

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_handlecontent_to_print
 

Detailed Description

GTK printing (interface).

Definition in file print.h.

Function Documentation

◆ gtk_print_signal_begin_print()

void gtk_print_signal_begin_print ( GtkPrintOperation *  operation,
GtkPrintContext *  context,
gpointer  user_data 
)

Handle the begin_print signal from the GtkPrintOperation.

Parameters
operationthe operation which emited the signal
contextthe print context used to set up the pages
user_datanothing 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gtk_print_signal_draw_page()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gtk_print_signal_end_print()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ content_to_print

struct hlcache_handle* content_to_print
extern

◆ gtk_print_current_cr

cairo_t* gtk_print_current_cr
extern