xref: /plan9/sys/src/cmd/gs/src/gdevdsp2.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 2001-2004, Ghostgum Software Pty Ltd.  All rights reserved.
2 
3    This software is provided AS-IS with no warranty, either express or
4    implied.
5 
6    This software is distributed under license and may not be copied,
7    modified or distributed except as expressly authorized under the terms
8    of the license contained in the file LICENSE in this distribution.
9 
10    For more information about licensing, please refer to
11    http://www.ghostscript.com/licensing/. For information on
12    commercial licensing, go to http://www.artifex.com/licensing/ or
13    contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14    San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15  */
16 
17 /* $Id: gdevdsp2.h,v 1.8 2004/07/07 09:33:19 ghostgum Exp $ */
18 /* gdevdsp2.c */
19 
20 #ifndef gdevdsp2_INCLUDED
21 #  define gdevdsp2_INCLUDED
22 
23 typedef struct gx_device_display_s gx_device_display;
24 
25 #define gx_device_display_common\
26 	gx_device_memory *mdev;\
27 	display_callback *callback;\
28 	void *pHandle;\
29 	int nFormat;\
30 	void *pBitmap;\
31 	unsigned long ulBitmapSize;\
32 	int HWResolution_set;\
33         gs_devn_params devn_params;\
34         equivalent_cmyk_color_params equiv_cmyk_colors
35 
36 /* The device descriptor */
37 struct gx_device_display_s {
38     gx_device_common;
39     gx_device_display_common;
40 };
41 
42 extern_st(st_device_display);
43 #define public_st_device_display()	/* in gdevdsp.c */\
44   gs_public_st_composite_use_final(st_device_display, gx_device_display,\
45     "gx_device_display", display_enum_ptrs, display_reloc_ptrs,\
46     gx_device_finalize)
47 
48 #endif /* gdevdsp2_INCLUDED */
49