HPGS - HPGl Script
Main Page
Modules
Data Structures
Files
File List
Globals
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
62
struct
hpgs_plotsize_device_st
{
63
hpgs_device
inherited
;
64
65
hpgs_bool
ignore_ps
;
66
int
clip_depth
;
67
68
hpgs_point
moveto
;
69
int
deferred_moveto
;
70
71
hpgs_bool
do_linewidth
;
72
double
linewidth
;
73
74
hpgs_bbox
clip_bbs[HPGS_PLOTSIZE_MAX_CLIP_DEPTH];
76
hpgs_bbox
path_bb
;
77
hpgs_bbox
page_bb
;
78
hpgs_bbox
global_bb
;
80
83
hpgs_bbox
*
page_bbs
;
84
int
n_page_bbs
;
85
int
page_bbs_alloc_size;
87
};
88
89
typedef
struct
hpgs_ps_media_size_st
hpgs_ps_media_size
;
90
95
struct
hpgs_ps_media_size_st
96
{
97
int
width
;
98
int
height
;
99
100
const
char
*
name
;
101
size_t
usage
;
102
103
size_t
hash
;
104
};
105
111
struct
hpgs_eps_device_st
{
112
hpgs_device
inherited
;
113
114
hpgs_bbox
doc_bb;
117
hpgs_bbox
page_bb
;
120
int
n_pages
;
123
char
*
filename
;
124
125
hpgs_ostream
*
out
;
126
hpgs_bool
page_setup
;
127
132
hpgs_ps_media_size
*
media_sizes
;
133
int
n_media_sizes
;
134
int
media_sizes_alloc_size;
137
hpgs_xrop3_func_t
rop3
;
138
hpgs_palette_color
pattern_color
;
139
140
hpgs_color
color
;
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 */
Generated on Wed May 10 2017 18:57:47 for HPGS - HPGl Script by
1.8.1.2