| 1 |
/* pdflistout.h |
| 2 |
|
| 3 |
Copyright 2009 Taco Hoekwater <[email protected]> |
| 4 |
|
| 5 |
This file is part of LuaTeX. |
| 6 |
|
| 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. |
| 11 |
|
| 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. |
| 16 |
|
| 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/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef PDFLISTOUT_H |
| 22 |
# define PDFLISTOUT_H |
| 23 |
|
| 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) |
| 28 |
|
| 29 |
extern void hlist_out(PDF pdf, halfword this_box, int rule_callback_id); |
| 30 |
extern void vlist_out(PDF pdf, halfword this_box, int rule_callback_id); |
| 31 |
|
| 32 |
extern halfword calculate_width_to_endlink(halfword p, halfword this_box, halfword *leftskip, halfword *rightskip); |
| 33 |
|
| 34 |
#endif |