/* "@(#)cgi.h	5.1	6/10/86" */
/* cgi.h */

#ifdef FLOATCOORDS	/* if defined, use floating point */
typedef float VDCValue;
#else
typedef int VDCValue;
#endif

typedef unsigned int Colour;

typedef struct {
	VDCValue x;
	VDCValue y;
} Coordinate;

#define ABSOLUTE	0
#define ABSTRACT	0
#define BASEALIGNED	4
#define BOTTOMALIGNED	5
#define BUNDLED		1
#define CAPALIGNED	2
#define CENTERALIGNED	2
#define CHARPRECISION	1
#define CHOICE		4
#define CHORD		1
#define CLEAR		1
#define CLOSEINVISIBLE	2
#define CLOSEVISIBLE	3
#define CONTINUOUSHORIZONTAL	4
#define CONTINUOUSVERTICAL	6
#define DIRECT		1
#define DOWN		3
#define EVENT		2
#define FINAL		0
#define FIXEDPOINT	1
#define FLOATINGPOINT	0
#define HALFALIGNED	3
#define HATCH		3
#define HOLLOW		0
#define INDEXED		0
#define INDIVIDUAL	0
#define INVALID		0
#define INVISIBLE	0
#define LEFT		1
#define LEFTALIGNED	1
#define LOCATOR		1
#define METRIC		1
#define NOOP		0
#define NORMALHORIZONTAL	0
#define NORMALVERTICAL	0
#define NOTFINAL	1
#define OFF		0
#define ON		1
#define PATTERN		2
#define PICK		5
#define PIE		0
#define REQUEST		0
#define RETAIN		2
#define RIGHT		0
#define RIGHTALIGNED	3
#define SAMPLE		1
#define SCALED		1
#define SOLID		1
#define STRING		6
#define STRINGPRECISION	0
#define STROKE		2
#define STROKEPRECISION	2
#define TOCLIPRECTANGLE	1
#define TOPALIGNED	1
#define UP		2
#define VALID		1
#define VALUATOR	3
#define VIEWSURFACE	0
#define VISIBLE		1

#define ATTRLINETYPE		0
#define ATTRLINEWIDTH		1
#define ATTRLINECOLOUR		2
#define ATTRMARKERTYPE		3
#define ATTRMARKERSIZE		4
#define ATTRMARKERCOLOUR	5
#define ATTRINTERIORSTYLE	6
#define ATTRHATCHINDEX		7
#define ATTRPATTERNINDEX	8
#define ATTRFILLCOLOUR		9
#define ATTRPERIMETERTYPE	10
#define ATTRPERIMETERWIDTH	11
#define ATTRPERIMETERCOLOUR	12
#define ATTRTEXTFONTINDEX	13
#define ATTRTEXTPRECISION	14
#define ATTRCHAREXPANSION	15
#define ATTRCHARSPACING		16
#define ATTRTEXTCOLOUR		17

#define COMPCOLOUR	(-1)
