1 /* Copyright (C) 2001-2019 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied,
8    modified or distributed except as expressly authorized under the terms
9    of the license contained in the file LICENSE in this distribution.
10 
11    Refer to licensing information at http://www.artifex.com or contact
12    Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
13    CA 94945, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /* RasterOp / transparency procedure interface */
18 
19 #ifndef gsrop_INCLUDED
20 #  define gsrop_INCLUDED
21 
22 #include "gsropt.h"
23 #include "gsgstate.h"
24 
25 /* Procedural interface */
26 
27 int gs_setrasterop(gs_gstate *, gs_rop3_t);
28 gs_rop3_t gs_currentrasterop(const gs_gstate *);
29 int gs_setsourcetransparent(gs_gstate *, bool);
30 bool gs_currentsourcetransparent(const gs_gstate *);
31 int gs_settexturetransparent(gs_gstate *, bool);
32 bool gs_currenttexturetransparent(const gs_gstate *);
33 
34 /* Save/restore the combined logical operation. */
35 gs_logical_operation_t gs_current_logical_op(const gs_gstate *);
36 int gs_set_logical_op(gs_gstate *, gs_logical_operation_t);
37 
38 #endif /* gsrop_INCLUDED */
39