NetSurf
print.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Adam Blokus <adamblokus@gmail.com>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /** \file
20 * GTK printing (interface).
21 */
22
23#ifndef NETSURF_GTK_PRINT_PLOTTERS_H
24#define NETSURF_GTK_PRINT_PLOTTERS_H
25
26
27#include <gtk/gtk.h>
28
29struct hlcache_handle;
30
31extern cairo_t *gtk_print_current_cr;
32
33extern struct hlcache_handle *content_to_print;
34
35
36/*handlers for signals from the GTK print operation*/
37void gtk_print_signal_begin_print(GtkPrintOperation *operation,
38 GtkPrintContext *context,
39 gpointer user_data);
40
41void gtk_print_signal_draw_page(GtkPrintOperation *operation,
42 GtkPrintContext *context,
43 gint page_nr,
44 gpointer user_data);
45
46void gtk_print_signal_end_print(GtkPrintOperation *operation,
47 GtkPrintContext *context,
48 gpointer user_data);
49
50#endif
void gtk_print_signal_end_print(GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data)
Handle the end_print signal from the GtkPrintOperation.
Definition: print.c:757
cairo_t * gtk_print_current_cr
Definition: print.c:49
struct hlcache_handle * content_to_print
Definition: print.c:51
void gtk_print_signal_draw_page(GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, gpointer user_data)
Handle the draw_page signal from the GtkPrintOperation.
Definition: print.c:745
void gtk_print_signal_begin_print(GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data)
Handle the begin_print signal from the GtkPrintOperation.
Definition: print.c:695
High-level cache handle.
Definition: hlcache.c:66