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/>. */
20
/* $Id: pdflistout.h 3046 2009-09-13 18:39:58Z hhenkel $ */
25
/* a few small helpers */
26
# define pos_right(A) pdf->posstruct->pos.h = pdf->posstruct->pos.h + (A)
27
# define pos_left(A) pdf->posstruct->pos.h = pdf->posstruct->pos.h - (A)
28
# define pos_up(A) pdf->posstruct->pos.v = pdf->posstruct->pos.v + (A)
29
# define pos_down(A) pdf->posstruct->pos.v = pdf->posstruct->pos.v - (A)
31
typedef void (*backend_function) ();
34
char *name; /* name of the backend */
35
backend_function *node_fu; /* array of node output functions */
36
backend_function *whatsit_fu; /* array of whatsit output functions */
39
extern pos_info_structure pos_info;
41
extern backend_function *backend_out;
42
extern backend_function *backend_out_whatsit;
44
extern void init_backend_functionpointers(output_mode o_mode);
46
extern void hlist_out(PDF pdf, halfword this_box);
47
extern void vlist_out(PDF pdf, halfword this_box);
48
extern void out_what(PDF pdf, halfword p);