File: graph.h

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (104 lines) | stat: -rw-r--r-- 3,200 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * command esc character
 * set to have most bits (but not all) set to 1
 */

#define COMMAND_ESC 127

/*
 * BEGIN sync count
 * This is number of zero bytes to be returned by
 * driver in response to a BEGIN request
 */

#define BEGIN_SYNC_COUNT 32

/*
 * command tokens
 * note: none should be zero, or equal to COMMAND_ESC
 */

#define GET_NUM_COLORS              1
#define COLOR                       2
#define COLOR_PRINT                 3
#define CONT_ABS                    4
#define CONT_REL                    5
#define RGB_COLOR                   6
#define ERASE                       7
#define GET_LOCATION_WITH_BOX       8
#define GET_LOCATION_WITH_LINE      9
#define GET_LOCATION_WITH_POINTER   10
#define GRAPH_CLOSE                 11
#define LINEMOD                     12
#define MOVE_ABS                    13
#define MOVE_REL                    14
#define POLYGON_ABS                 15
#define POLYGON_REL                 16
#define POLYLINE_ABS                17
#define POLYLINE_REL                18
#define POLYDOTS_ABS                19
#define POLYDOTS_REL                20
#define RASTER_CHAR                 21
#define RASTER_INT                  22
#define RESET_COLORS                23
#define RESET_COLOR                 24
#define SCREEN_LEFT                 25
#define SCREEN_RITE                 26
#define SCREEN_BOT                  27
#define SCREEN_TOP                  28
#define TEXT                        29
#define TEXT_SIZE                   30
#define _____UNUSED_1               31
#define _____UNUSED_2               32
#define _____UNUSED_3               33
#define _____UNUSED_4               34
#define _____UNUSED_5               35
#define COLOR_TABLE_FIXED           36
#define COLOR_TABLE_FLOAT           37
#define COLOR_OFFSET                38
#define TEXT_ROTATION               39
#define SET_WINDOW                  40
#define _____UNUSED_6               41
#define GET_TEXT_BOX                42
#define ZRASTER                     43
#define FONT                        44
#define RESPOND                     45
#define BEGIN                       46
#define STANDARD_COLOR              47
#define BOX_ABS                     48
#define BOX_REL                     49
#define RGB_RASTER                  50
#define _____UNUSED_7               51
#define RGB_COLORS                  52
#define PANEL_SAVE                  53
#define PANEL_RESTORE               54
#define PANEL_DELETE                55

#define PAD_CREATE                  61
#define PAD_CURRENT                 62
#define PAD_DELETE                  63
#define PAD_INVENT                  64
#define PAD_LIST                    65
#define PAD_SELECT                  66

#define PAD_APPEND_ITEM             71
#define PAD_DELETE_ITEM             72
#define PAD_GET_ITEM                73
#define PAD_LIST_ITEMS              74
#define PAD_SET_ITEM                75

/* freetype */
#define FONT_FREETYPE               76
#define FONT_FREETYPE_RELEASE       77
#define CHARSET                     78

/* return codes for pad routines */

#define OK 0
#define NO_MEMORY 1
#define NO_PAD 2
#define NO_CUR_PAD 3
#define NO_ITEM 4
#define DUPLICATE 5
#define ILLEGAL 6