beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / pdf / pdflistout.h
blob76c1d552f1ac7729823ed61cebae1f1a0ae80f1c
1 /* pdflistout.h
3 Copyright 2009 Taco Hoekwater <taco@luatex.org>
5 This file is part of LuaTeX.
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef PDFLISTOUT_H
22 # define PDFLISTOUT_H
24 # define pos_right(A) pdf->posstruct->pos.h = pdf->posstruct->pos.h + (A)
25 # define pos_left(A) pdf->posstruct->pos.h = pdf->posstruct->pos.h - (A)
26 # define pos_up(A) pdf->posstruct->pos.v = pdf->posstruct->pos.v + (A)
27 # define pos_down(A) pdf->posstruct->pos.v = pdf->posstruct->pos.v - (A)
29 typedef void (*backend_function) (); /* variadic arguments */
31 typedef struct {
32 char *name; /* name of the backend */
33 backend_function *node_fu; /* array of node output functions */
34 backend_function *whatsit_fu; /* array of whatsit output functions */
35 } backend_struct;
37 extern pos_info_structure pos_info;
39 extern backend_function *backend_out;
40 extern backend_function *backend_out_whatsit;
42 extern void init_backend_functionpointers(output_mode o_mode);
44 extern void hlist_out(PDF pdf, halfword this_box, int rule_callback_id);
45 extern void vlist_out(PDF pdf, halfword this_box, int rule_callback_id);
46 extern void out_what(PDF pdf, halfword p);
48 #endif