xref: /plan9/sys/src/cmd/gs/src/gscsel.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1996 Aladdin Enterprises.  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: gscsel.h,v 1.4 2002/02/21 22:24:52 giles Exp $ */
18 /* Definitions for color operand selection */
19 
20 #ifndef gscsel_INCLUDED
21 #  define gscsel_INCLUDED
22 
23 /*
24  * Define whether we are mapping a "source" or a "texture" color for
25  * RasterOp.  Right the source and texture only have separate halftone
26  * phases in the graphics state, but someday they might have more.
27  */
28 typedef enum {
29     gs_color_select_all = -1,	/* for setting only, not for reading */
30     gs_color_select_texture = 0,	/* 0 is the one is used for currenthtphase */
31     gs_color_select_source = 1
32 } gs_color_select_t;
33 
34 #define gs_color_select_count 2
35 
36 #endif /* gscsel_INCLUDED */
37