1/*
2** xgc
3**
4** constants.h
5**
6** Lots of constants which many files need.
7*/
8
9/* Find the max of two numbers */
10#ifndef max
11#define max(x,y) (((x)>(y))?(x):(y))
12#endif
13
14#ifndef TRUE
15#define TRUE 1
16#endif
17
18#ifndef FALSE
19#define FALSE 0
20#endif
21
22#define MAXCHOICES 16           /* Max # of choices for any option */
23
24#define Black BlackPixel(X.dpy,0)
25#define White WhitePixel(X.dpy,0)
26
27#define CopyArea      0		/* different tests */
28#define CopyPlane     1
29#define PolyPoint     2
30#define PolyLine      3
31#define PolySegment   4
32#define PolyRectangle 5
33#define PolyArc       6
34#define FillPolygon   7
35#define PolyFillRect  8
36#define PolyFillArc   9
37#define PutImage     10
38#define GetImage     11
39#define PolyText8    12
40#define ImageText8   13
41#define PolyText16   14
42#define ImageText16  15
43
44#define CFunction     0		/* different GC things you can choose */
45#define CLinestyle    1
46#define CCapstyle     2
47#define CJoinstyle    3
48#define CFillstyle    4
49#define CFillrule     5
50#define CArcmode      6
51#define NUMCHOICES    7
52#define CTest         7
53
54#define TLineWidth     0	/* different editable text widgets */
55#define TFont          1
56#define TForeground    2
57#define TBackground    3
58#define NUMTEXTWIDGETS 4
59
60#define StartTimer   0		/* flags for timing tests */
61#define EndTimer     1
62#define start_timer()   timer(StartTimer)
63#define end_timer()     timer(EndTimer)
64
65/* the number of toggle widgets in various groups */
66#define NUM_TESTS       16
67#define NUM_FUNCTIONS   16
68#define NUM_LINESTYLES   3
69#define NUM_CAPSTYLES    4
70#define NUM_JOINSTYLES   3
71#define NUM_FILLSTYLES   4
72#define NUM_FILLRULES    2
73#define NUM_ARCMODES     2
74
75/* The number of bits in the dash description */
76#define DASHLENGTH       8
77