HPGS - HPGl Script
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
hpgsdevices.h
Go to the documentation of this file.
1 /***********************************************************************
2  * *
3  * $Id: hpgsdevices.h 489 2009-02-11 14:10:30Z softadm $
4  * *
5  * hpgs - HPGl Script, a hpgl/2 interpreter, which uses a Postscript *
6  * API for rendering a scene and thus renders to a variety of *
7  * devices and fileformats. *
8  * *
9  * (C) 2004-2009 ev-i Informationstechnologie GmbH http://www.ev-i.at *
10  * *
11  * Author: Wolfgang Glas *
12  * *
13  * hpgs is free software; you can redistribute it and/or *
14  * modify it under the terms of the GNU Lesser General Public *
15  * License as published by the Free Software Foundation; either *
16  * version 2.1 of the License, or (at your option) any later version. *
17  * *
18  * hpgs is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
21  * Lesser General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU Lesser General Public *
24  * License along with this library; if not, write to the *
25  * Free Software Foundation, Inc., 59 Temple Place, Suite 330, *
26  * Boston, MA 02111-1307 USA *
27  * *
28  ***********************************************************************
29  * *
30  * The private interfaces for the basic devices *
31  * *
32  ***********************************************************************/
33 
34 #ifndef __HPGS_DEVICES_H
35 #define __HPGS_DEVICES_H
36 
37 #include<hpgs.h>
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
55 #define HPGS_PLOTSIZE_MAX_CLIP_DEPTH 16
56 
64 
65  hpgs_bool ignore_ps;
66  int clip_depth;
67 
70 
71  hpgs_bool do_linewidth;
72  double linewidth;
73 
74  hpgs_bbox clip_bbs[HPGS_PLOTSIZE_MAX_CLIP_DEPTH];
80 
85  int page_bbs_alloc_size;
87 };
88 
90 
96 {
97  int width;
98  int height;
99 
100  const char *name;
101  size_t usage;
102 
103  size_t hash;
104 };
105 
113 
114  hpgs_bbox doc_bb;
120  int n_pages;
123  char *filename;
124 
126  hpgs_bool page_setup;
127 
134  int media_sizes_alloc_size;
137  hpgs_xrop3_func_t rop3;
139 
141 };
142 
143 HPGS_INTERNAL_API void hpgs_cleanup_plugin_devices();
144  /* end of group device */
146 
147 #ifdef __cplusplus
148 } // end of extern "C"
149 #endif
150 
151 #endif /* ! __HPGS_DEVICES_H */