Update ChangeLog
[gss-tcad.git] / src / include / wgraph.h
blob4fd97093e552a2c744f34021c0066d726ef33698
1 /*-----------------------------------------------------------------------------
3 FILE: WGRAPH.H
5 PROJECT:
7 REVISION HISTORY
8 DATE INITIALS DESCRIPTION
9 -------- -------- --------------------------------------------------------
10 04/15/97 KMK initial implementation
12 DESCRIPTION:
14 This module contains the graphics functions.
16 -----------------------------------------------------------------------------*/
17 #ifdef HAVE_WIN32
19 #ifndef __wgraph_h
20 #define __wgraph_h
22 // definition of command line argument structure
23 #define RES_640x480 1 /* 640 x 480 resolution */
24 #define RES_800x600 2 /* 800 x 600 resolution */
25 #define RES_1024x768 3 /* 1024 x 768 resolution */
27 #define GR_BLACK 0
28 #define GR_BLUE 1
29 #define GR_GREEN 2
30 #define GR_CYAN 3
31 #define GR_RED 4
32 #define GR_MAGENTA 5
33 #define GR_BROWN 6
34 #define GR_LIGHTGRAY 7
35 #define GR_DARKGRAY 8
36 #define GR_LIGHTBLUE 9
37 #define GR_LIGHTGREEN 10
38 #define GR_LIGHTCYAN 11
39 #define GR_LIGHTRED 12
40 #define GR_LIGHTMAGENTA 13
41 #define GR_YELLOW 14
42 #define GR_WHITE 15
44 #define Rainbow_Color_NUM 20
45 #define Rainbow_0 16
46 #define Rainbow_1 17
47 #define Rainbow_2 18
48 #define Rainbow_3 19
49 #define Rainbow_4 20
50 #define Rainbow_5 21
51 #define Rainbow_6 22
52 #define Rainbow_7 23
53 #define Rainbow_8 24
54 #define Rainbow_9 25
55 #define Rainbow_10 26
56 #define Rainbow_11 27
57 #define Rainbow_12 28
58 #define Rainbow_13 29
59 #define Rainbow_14 30
60 #define Rainbow_15 31
61 #define Rainbow_16 32
62 #define Rainbow_17 33
63 #define Rainbow_18 34
64 #define Rainbow_19 35
67 typedef void (*PFREDRAW) (); /* pfredraw */
69 int GRPrintOpen (const char *, int);
70 void GRPrintClose (void);
71 void GRInitGraphics (int = 7, int = 14);
72 void GRFreeGraphics (void);
73 void GROpenGraphWin (char *, char *, int, int, int, int, PFREDRAW);
74 void GRSetColor (int);
75 void GRSetFillColor (int, int=0);
76 void GRPutPixel (int, int, int);
77 void GRLine (int, int, int, int);
78 void GRCircle (int, int, int);
79 void GRDrawPoly (int, int *);
80 void GRFillPoly (int, int *);
81 void GRText (int, int, char *);
82 int GRSetLUT (int);
84 #endif
86 #endif