1 /*
2    gc.h
3 
4    Mike Hufnagel and Bill Kendrick
5    Last modified: 11/18/95 (clean up)
6 
7    Graphic Context Routines.
8 */
9 
10 #ifndef GC_H
11 #define GC_H
12 
13 #include <X11/Xlib.h>
14 
15 GC CreateGC(Display *display, Drawable drawable, unsigned long forecolor,
16             unsigned long backcolor);
17 /*
18    creates a graphics context with the given foreground and background
19    pixel values.
20 
21    Returns a GC
22 */
23 
24 GC CreateClearGC(Display *display, Drawable drawable);
25 /*
26    creates a graphics context with a clear function.
27 
28    Returns a GC
29 */
30 
31 GC CreateXorGC(Display *display, Drawable drawable, unsigned long forecolor,
32 	       unsigned long backcolor);
33 /*
34    Creates an XOR graphics context.
35 
36    Returns a GC
37 */
38 
39 GC CreateAndGC(Display *display, Drawable drawable, unsigned long forecolor,
40 	       unsigned long backcolor);
41 /*
42    Creates an AND graphics context.
43 
44    Returns a GC
45 */
46 
47 GC CreateAndInvertedGC(Display *display, Drawable drawable,
48 		       unsigned long forecolor, unsigned long backcolor);
49 /*
50    Creates an AND_Inverted graphics context.
51 
52    Returns a GC
53 */
54 
55 GC CreateOrGC(Display *display, Drawable drawable, unsigned long forecolor,
56 	      unsigned long backcolor);
57 /*
58    Creates an Or graphics context.
59 
60    Returns a GC
61 */
62 
63 #endif /* GC_H */
64 
65