NetSurf
printer.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/**
20 * \file
21 * Printer interface.
22 *
23 * Printer interface to generic plotters, initialization, handling
24 * pages and cleaning up.
25 */
26
27#ifndef NETSURF_DESKTOP_PRINTER_H
28#define NETSURF_DESKTOP_PRINTER_H
29
30struct plotter_table;
31struct print_settings;
32
33/** Printer interface */
34struct printer{
35 const struct plotter_table *plotter;
36
37 bool (*print_begin) (struct print_settings*);
38
39 bool (*print_next_page)(void);
40
41 void (*print_end)(void);
42};
43
44#endif
Plotter operations table.
Definition: plotters.h:102
Settings for a print - filled in by print_make_settings or 'manually' by the caller.
Definition: print.h:50
Printer interface.
Definition: printer.h:34
const struct plotter_table * plotter
Definition: printer.h:35
void(* print_end)(void)
Definition: printer.h:41
bool(* print_begin)(struct print_settings *)
Definition: printer.h:37
bool(* print_next_page)(void)
Definition: printer.h:39