Debian Codegraph @

texk/web2c/luatexdir/dvi/dvigen.h

raw
1 /* dvigen.h
2
3 Copyright 2009-2013 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 DVIGEN_H
22 # define DVIGEN_H
23
24 /* todo: move initialization from mainbody to ensure_open */
25
26 extern int dvi_buf_size;
27 extern eight_bits *dvi_buf; /* 0 is unused */
28
29 /*tex Housekeeping. */
30
31 extern void dvi_open_file(PDF pdf);
32 extern void dvi_write_header(PDF pdf);
33 extern void dvi_finish_file(PDF pdf, int fatal_error);
34 extern void dvi_begin_page(PDF pdf);
35 extern void dvi_end_page(PDF pdf);
36
37 /*tex Specific injections. */
38
39 extern void dvi_place_glyph(PDF pdf, internal_font_number f, int c, int ex);
40 extern void dvi_place_rule(PDF pdf, halfword q, scaledpos size,int callback_id);
41 extern void dvi_special(PDF pdf, halfword p);
42
43 /*tex List handling (and nesting). */
44
45 extern void dvi_push_list(PDF pdf, scaledpos *saved_pos, int *saved_loc);
46 extern void dvi_pop_list(PDF pdf, scaledpos *saved_pos, int *saved_loc);
47 extern void dvi_set_reference_point(PDF pdf, posstructure *refpoint);
48
49 /*tex Status information used in |lstatslib|. Not that useful. */
50
51 extern int dvi_get_status_ptr(PDF pdf);
52 extern int dvi_get_status_gone(PDF pdf);
53
54 #endif