1/*
2 * Author:      William Chia-Wei Cheng (bill.cheng@acm.org)
3 *
4 * Copyright (C) 2001-2009, William Chia-Wei Cheng.
5 *
6 * This file may be distributed under the terms of the Q Public License
7 * as defined by Trolltech AS of Norway and appearing in the file
8 * LICENSE.QPL included in the packaging of this file.
9 *
10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING
11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 * PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/raster.e,v 1.12 2011/05/16 16:21:59 william Exp $
19 */
20
21#ifndef _RASTER_E_
22#define _RASTER_E_
23
24extern GC	rasterGC;
25extern GC	patGC;
26
27extern unsigned long	xorOne;
28extern unsigned long	xorZero;
29
30extern GC	drawGC;
31extern GC	drawSBGC;
32extern GC	defaultGC;
33extern GC	revDefaultGC;
34extern GC	revGrayGC;
35
36extern Pixmap	rotateModePixmap[];
37
38extern Pixmap	choicePixmap[];
39extern Pixmap	patPixmap[];
40extern Pixmap	* lineWidthPixmap;
41extern Pixmap	lineTypePixmap[];
42extern Pixmap	lineDashPixmap[];
43extern Pixmap	lineStylePixmap[];
44extern Pixmap	justPixmap[];
45extern Pixmap	alignHoriPixmap[];
46extern Pixmap	alignVertPixmap[];
47extern Pixmap	alignDirectPixmap[];
48extern Pixmap	distrDirectPixmap[];
49extern Pixmap	filePixmap;
50extern Pixmap	landscapePixmap;
51extern Pixmap	specialPixmap;
52extern Pixmap	vspacePixmap;
53extern Pixmap	rcbRadiusPixmap;
54extern Pixmap	moveModePixmap[];
55extern Pixmap	editPixmap;
56extern Pixmap	intrPixmap[];
57extern Pixmap	trekPixmap;
58extern Pixmap	pageLayoutPixmap[];
59extern Pixmap	scrollPixmap[];
60extern Pixmap	scrlBitmap[];
61extern Pixmap	shapePixmap[];
62extern Pixmap	stretchableModePixmap[];
63extern Pixmap	transPatPixmap[];
64
65extern Pixmap	rotatePixmap[];
66extern Pixmap	* whereToPrintPixmap;
67extern Pixmap	* shortLineWidthPixmap;
68extern Pixmap	shortLineStylePixmap[];
69extern Pixmap	shortLineTypePixmap[];
70extern Pixmap	shortDashPixmap[];
71
72extern Pixmap	wireBitmap;
73extern Pixmap	runBitmap;
74extern Pixmap	checkBitmap;
75extern Pixmap	radioBitmap;
76extern Pixmap	submenuBitmap;
77extern Pixmap	graySubmenuBitmap;
78extern Pixmap	userRedrawBitmap;
79extern Pixmap	statusBtnPixmap[];
80extern Pixmap	msgBoxPixmap[];
81
82extern int	maxLineWidths;
83extern int	maxWhereToPrint;
84
85extern int	dashListLength[];
86extern char	*dashList[];
87
88#ifdef _INCLUDE_FROM_RASTER_C_
89#undef extern
90#define extern
91#endif /*_INCLUDE_FROM_RASTER_C_*/
92
93extern void	InitPatFill ARGS_DECL((void));
94extern void	Init2PatFill ARGS_DECL((void));
95extern void	InitPattern ARGS_DECL((void));
96extern void	RedrawChoiceWindow ARGS_DECL((void));
97extern void	CleanUpPatFill ARGS_DECL((void));
98extern void	CleanUpRasters ARGS_DECL((void));
99extern int	UpgradePenFill ARGS_DECL((int));
100
101extern unsigned char	ByteReverse ARGS_DECL((unsigned char));
102extern void	GetPatternCellsize ARGS_DECL((int pat_index, int *pn_cell_w,
103		                              int *pn_cell_h));
104extern unsigned char	*GetPatternBytes ARGS_DECL((int pat_index,
105			                            int *pn_num_bytes,
106			                            int *pn_need_to_free));
107
108#ifdef _INCLUDE_FROM_RASTER_C_
109#undef extern
110#ifndef _NO_RECURSIVE_EXTERN
111#define extern extern
112#endif /* ~_NO_RECURSIVE_EXTERN */
113#endif /*_INCLUDE_FROM_RASTER_C_*/
114
115#endif /*_RASTER_E_*/
116