beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / pdf / pdfsetmatrix.h
blob59fd1f69cdcf59e5fd1c810a2d1c05de1e609db5
1 /* pdfsetmatrix.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 PDFSETMATRIX_H
22 # define PDFSETMATRIX_H
24 # define set_pdf_setmatrix_data(A,B) pdf_setmatrix_data(A)=B
26 typedef struct {
27 double a;
28 double b;
29 double c;
30 double d;
31 double e;
32 double f;
33 } matrix_entry;
35 extern matrix_entry *matrix_stack;
36 extern int matrix_stack_size;
37 extern int matrix_stack_used;
39 scaled getllx(void);
40 scaled getlly(void);
41 scaled geturx(void);
42 scaled getury(void);
43 void matrixtransformpoint(scaled x, scaled y);
44 void matrixtransformrect(scaled llx, scaled lly, scaled urx, scaled ury);
45 boolean matrixused(void);
46 void matrixrecalculate(scaled urx);
48 extern void pdf_out_setmatrix(PDF pdf, halfword p);
50 #endif