GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
transport.h
Go to the documentation of this file.
1 
2 #ifndef _TRANSPORT_H
3 #define _TRANSPORT_H
4 
5 extern void LOC_get_location_with_box(int cx, int cy, int *wx, int *wy,
6  int *button);
7 extern void LOC_get_location_with_line(int cx, int cy, int *wx, int *wy,
8  int *button);
9 extern void LOC_get_location_with_pointer(int *wx, int *wy, int *button);
10 extern int LOC_open_driver(void);
11 extern int LOC__open_quiet(void);
12 extern void LOC_stabilize(void);
13 extern void LOC_kill_driver(void);
14 extern void LOC_close_driver(void);
15 extern void LOC_release_driver(void);
16 extern int LOC_pad_create(const char *pad);
17 extern int LOC_pad_current(char *name);
18 extern int LOC_pad_delete(void);
19 extern int LOC_pad_invent(char *pad);
20 extern int LOC_pad_list(char ***list, int *count);
21 extern int LOC_pad_select(const char *pad);
22 extern int LOC_pad_append_item(const char *item, const char *value,
23  int replace);
24 extern int LOC_pad_delete_item(const char *name);
25 extern int LOC_pad_get_item(const char *name, char ***list, int *count);
26 extern int LOC_pad_list_items(char ***list, int *count);
27 extern int LOC_pad_set_item(const char *name, const char *value);
28 extern int LOC_screen_left(void);
29 extern int LOC_screen_rite(void);
30 extern int LOC_screen_bot(void);
31 extern int LOC_screen_top(void);
32 extern void LOC_get_num_colors(int *n);
33 extern void LOC_standard_color(int index);
34 extern void LOC_RGB_color(unsigned char red, unsigned char grn,
35  unsigned char blu);
36 extern void LOC_line_width(int width);
37 extern void LOC_erase(void);
38 extern void LOC_move_abs(int x, int y);
39 extern void LOC_move_rel(int x, int y);
40 extern void LOC_cont_abs(int x, int y);
41 extern void LOC_cont_rel(int x, int y);
42 extern void LOC_polydots_abs(const int *xarray, const int *yarray,
43  int number);
44 extern void LOC_polydots_rel(const int *xarray, const int *yarray,
45  int number);
46 extern void LOC_polyline_abs(const int *xarray, const int *yarray,
47  int number);
48 extern void LOC_polyline_rel(const int *xarray, const int *yarray,
49  int number);
50 extern void LOC_polygon_abs(const int *xarray, const int *yarray, int number);
51 extern void LOC_polygon_rel(const int *xarray, const int *yarray, int number);
52 extern void LOC_box_abs(int x1, int y1, int x2, int y2);
53 extern void LOC_box_rel(int x, int y);
54 extern void LOC_text_size(int width, int height);
55 extern void LOC_text_rotation(float rotation);
56 extern void LOC_set_window(int t, int b, int l, int r);
57 extern void LOC_text(const char *text);
58 extern void LOC_get_text_box(const char *text, int *t, int *b, int *l,
59  int *r);
60 extern void LOC_font(const char *name);
61 extern void LOC_charset(const char *name);
62 extern void LOC_font_list(char ***list, int *count);
63 extern void LOC_font_info(char ***list, int *count);
64 extern void LOC_panel_save(const char *name, int t, int b, int l, int r);
65 extern void LOC_panel_restore(const char *name);
66 extern void LOC_panel_delete(const char *name);
67 extern void LOC_begin_scaled_raster(int mask, int src[2][2], int dst[2][2]);
68 extern int LOC_scaled_raster(int n, int row, const unsigned char *red,
69  const unsigned char *grn,
70  const unsigned char *blu,
71  const unsigned char *nul);
72 extern void LOC_end_scaled_raster(void);
73 extern void LOC_bitmap(int ncols, int nrows, int threshold,
74  const unsigned char *buf);
75 
76 extern void REM_get_location_with_box(int cx, int cy, int *wx, int *wy,
77  int *button);
78 extern void REM_get_location_with_line(int cx, int cy, int *wx, int *wy,
79  int *button);
80 extern void REM_get_location_with_pointer(int *wx, int *wy, int *button);
81 extern int REM_open_driver(void);
82 extern int REM__open_quiet(void);
83 extern void REM_stabilize(void);
84 extern void REM_kill_driver(void);
85 extern void REM_close_driver(void);
86 extern void REM_release_driver(void);
87 extern int REM_pad_create(const char *pad);
88 extern int REM_pad_current(char *name);
89 extern int REM_pad_delete(void);
90 extern int REM_pad_invent(char *pad);
91 extern int REM_pad_list(char ***list, int *count);
92 extern int REM_pad_select(const char *pad);
93 extern int REM_pad_append_item(const char *item, const char *value,
94  int replace);
95 extern int REM_pad_delete_item(const char *name);
96 extern int REM_pad_get_item(const char *name, char ***list, int *count);
97 extern int REM_pad_list_items(char ***list, int *count);
98 extern int REM_pad_set_item(const char *name, const char *value);
99 extern int REM_screen_left(void);
100 extern int REM_screen_rite(void);
101 extern int REM_screen_bot(void);
102 extern int REM_screen_top(void);
103 extern void REM_get_num_colors(int *n);
104 extern void REM_standard_color(int index);
105 extern void REM_RGB_color(unsigned char red, unsigned char grn,
106  unsigned char blu);
107 extern void REM_line_width(int width);
108 extern void REM_erase(void);
109 extern void REM_move_abs(int x, int y);
110 extern void REM_move_rel(int x, int y);
111 extern void REM_cont_abs(int x, int y);
112 extern void REM_cont_rel(int x, int y);
113 extern void REM_polydots_abs(const int *xarray, const int *yarray,
114  int number);
115 extern void REM_polydots_rel(const int *xarray, const int *yarray,
116  int number);
117 extern void REM_polyline_abs(const int *xarray, const int *yarray,
118  int number);
119 extern void REM_polyline_rel(const int *xarray, const int *yarray,
120  int number);
121 extern void REM_polygon_abs(const int *xarray, const int *yarray, int number);
122 extern void REM_polygon_rel(const int *xarray, const int *yarray, int number);
123 extern void REM_box_abs(int x1, int y1, int x2, int y2);
124 extern void REM_box_rel(int x, int y);
125 extern void REM_text_size(int width, int height);
126 extern void REM_text_rotation(float rotation);
127 extern void REM_set_window(int t, int b, int l, int r);
128 extern void REM_text(const char *text);
129 extern void REM_get_text_box(const char *text, int *t, int *b, int *l,
130  int *r);
131 extern void REM_font(const char *name);
132 extern void REM_charset(const char *name);
133 extern void REM_font_list(char ***list, int *count);
134 extern void REM_font_info(char ***list, int *count);
135 extern void REM_panel_save(const char *name, int t, int b, int l, int r);
136 extern void REM_panel_restore(const char *name);
137 extern void REM_panel_delete(const char *name);
138 extern void REM_begin_scaled_raster(int mask, int src[2][2], int dst[2][2]);
139 extern int REM_scaled_raster(int n, int row, const unsigned char *red,
140  const unsigned char *grn,
141  const unsigned char *blu,
142  const unsigned char *nul);
143 extern void REM_end_scaled_raster(void);
144 extern void REM_bitmap(int ncols, int nrows, int threshold,
145  const unsigned char *buf);
146 
147 struct transport
148 {
149  int (*open_driver) (void);
150  int (*open_quiet) (void);
151  void (*stabilize) (void);
152  void (*kill_driver) (void);
153  void (*close_driver) (void);
154  void (*release_driver) (void);
155 
156  int (*screen_left) (void);
157  int (*screen_rite) (void);
158  int (*screen_bot) (void);
159  int (*screen_top) (void);
160  void (*get_num_colors) (int *);
161  void (*standard_color) (int);
162  void (*RGB_color) (unsigned char, unsigned char, unsigned char);
163  void (*line_width) (int);
164  void (*erase) (void);
165  void (*move_abs) (int, int);
166  void (*move_rel) (int, int);
167  void (*cont_abs) (int, int);
168  void (*cont_rel) (int, int);
169  void (*polydots_abs) (const int *, const int *, int);
170  void (*polydots_rel) (const int *, const int *, int);
171  void (*polyline_abs) (const int *, const int *, int);
172  void (*polyline_rel) (const int *, const int *, int);
173  void (*polygon_abs) (const int *, const int *, int);
174  void (*polygon_rel) (const int *, const int *, int);
175  void (*box_abs) (int, int, int, int);
176  void (*box_rel) (int, int);
177  void (*text_size) (int, int);
178  void (*text_rotation) (float);
179  void (*set_window) (int, int, int, int);
180  void (*text) (const char *);
181  void (*get_text_box) (const char *, int *, int *, int *, int *);
182  void (*font) (const char *);
183  void (*charset) (const char *);
184  void (*font_list) (char ***, int *);
185  void (*font_info) (char ***, int *);
186  void (*panel_save) (const char *, int, int, int, int);
187  void (*panel_restore) (const char *);
188  void (*panel_delete) (const char *);
189  void (*begin_scaled_raster) (int, int[2][2], int[2][2]);
190  int (*scaled_raster) (int, int, const unsigned char *,
191  const unsigned char *, const unsigned char *,
192  const unsigned char *);
193  void (*end_scaled_raster) (void);
194  void (*bitmap) (int, int, int, const unsigned char *);
195 
196  void (*get_location_with_box) (int, int, int *, int *, int *);
197  void (*get_location_with_line) (int, int, int *, int *, int *);
198  void (*get_location_with_pointer) (int *, int *, int *);
199 
200  int (*pad_create) (const char *);
201  int (*pad_current) (char *);
202  int (*pad_delete) (void);
203  int (*pad_invent) (char *);
204  int (*pad_list) (char ***, int *);
205  int (*pad_select) (const char *);
206  int (*pad_append_item) (const char *, const char *, int);
207  int (*pad_delete_item) (const char *);
208  int (*pad_get_item) (const char *, char ***, int *);
209  int (*pad_list_items) (char ***, int *);
210  int (*pad_set_item) (const char *, const char *);
211 };
212 
213 extern const struct transport *trans;
214 
215 #endif /* _TRANSPORT_H */
int LOC_open_driver(void)
Definition: loc_io.c:54
void REM_standard_color(int index)
void LOC_stabilize(void)
Definition: loc_io.c:75
void REM_set_window(int t, int b, int l, int r)
void REM_polygon_abs(const int *xarray, const int *yarray, int number)
void(* move_abs)(int, int)
Definition: transport.h:165
int LOC_screen_rite(void)
screen right edge
Definition: loc_proto.c:43
int REM_screen_left(void)
int l
Definition: dataquad.c:292
float b
Definition: named_colr.c:8
void LOC_polygon_abs(const int *xarray, const int *yarray, int number)
draw a closed polygon
Definition: loc_proto.c:327
void LOC_panel_delete(const char *name)
Definition: loc_proto.c:530
void(* standard_color)(int)
Definition: transport.h:161
int REM__open_quiet(void)
void LOC_panel_save(const char *name, int t, int b, int l, int r)
Definition: loc_proto.c:516
void REM_polyline_rel(const int *xarray, const int *yarray, int number)
void(* polyline_abs)(const int *, const int *, int)
Definition: transport.h:171
void(* font)(const char *)
Definition: transport.h:182
int REM_screen_top(void)
void LOC_cont_abs(int x, int y)
draw line
Definition: loc_proto.c:206
void LOC_charset(const char *name)
Definition: loc_proto.c:501
int LOC_pad_current(char *name)
Definition: loc_pad.c:35
int(* screen_rite)(void)
Definition: transport.h:157
int REM_screen_bot(void)
int(* pad_create)(const char *)
Definition: transport.h:200
string name
Definition: render.py:1314
void REM_get_location_with_pointer(int *wx, int *wy, int *button)
void(* panel_delete)(const char *)
Definition: transport.h:188
void LOC_move_rel(int x, int y)
move current location
Definition: loc_proto.c:189
void LOC_font_info(char ***list, int *count)
Definition: loc_proto.c:511
float r
Definition: named_colr.c:8
void REM_get_num_colors(int *n)
void(* bitmap)(int, int, int, const unsigned char *)
Definition: transport.h:194
void REM_line_width(int width)
struct transport * trans
Definition: com_io.c:143
int(* pad_invent)(char *)
Definition: transport.h:203
int LOC_pad_delete(void)
Definition: loc_pad.c:47
tuple width
void REM_font(const char *name)
void LOC_release_driver(void)
Definition: loc_io.c:92
void REM_text(const char *text)
int count
void REM_cont_rel(int x, int y)
int REM_pad_delete_item(const char *name)
void REM_panel_restore(const char *name)
void LOC_polydots_rel(const int *xarray, const int *yarray, int number)
draw a series of dots
Definition: loc_proto.c:266
void REM_move_rel(int x, int y)
void LOC_polyline_rel(const int *xarray, const int *yarray, int number)
draw an open polygon
Definition: loc_proto.c:309
void(* polydots_rel)(const int *, const int *, int)
Definition: transport.h:170
void REM_font_info(char ***list, int *count)
void(* polydots_abs)(const int *, const int *, int)
Definition: transport.h:169
void REM_font_list(char ***list, int *count)
void(* line_width)(int)
Definition: transport.h:163
int REM_pad_set_item(const char *name, const char *value)
int y
Definition: plot.c:34
int(* pad_set_item)(const char *, const char *)
Definition: transport.h:210
void LOC_box_rel(int x, int y)
fill a box
Definition: loc_proto.c:384
void(* erase)(void)
Definition: transport.h:164
void REM_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
void LOC_standard_color(int index)
select standard color
Definition: loc_proto.c:106
void LOC_line_width(int width)
change the width of line
Definition: loc_proto.c:139
int(* screen_left)(void)
Definition: transport.h:156
void(* polygon_abs)(const int *, const int *, int)
Definition: transport.h:173
void REM_polyline_abs(const int *xarray, const int *yarray, int number)
void REM_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
int REM_pad_select(const char *pad)
void(* close_driver)(void)
Definition: transport.h:153
void REM_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
int LOC_pad_delete_item(const char *name)
Definition: loc_pad.c:108
void(* release_driver)(void)
Definition: transport.h:154
void(* font_info)(char ***, int *)
Definition: transport.h:185
void LOC_get_location_with_pointer(int *wx, int *wy, int *button)
Definition: loc_get.c:16
void REM_cont_abs(int x, int y)
void REM_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
int LOC_screen_left(void)
screen left edge
Definition: loc_proto.c:25
int(* pad_list_items)(char ***, int *)
Definition: transport.h:209
void REM_panel_delete(const char *name)
void(* polygon_rel)(const int *, const int *, int)
Definition: transport.h:174
int LOC_screen_bot(void)
bottom of screen
Definition: loc_proto.c:61
void(* polyline_rel)(const int *, const int *, int)
Definition: transport.h:172
void REM_text_size(int width, int height)
void LOC_get_text_box(const char *text, int *t, int *b, int *l, int *r)
get text extents
Definition: loc_proto.c:459
void LOC_end_scaled_raster(void)
Definition: loc_proto.c:550
void LOC_polydots_abs(const int *xarray, const int *yarray, int number)
draw a series of dots
Definition: loc_proto.c:246
void(* text)(const char *)
Definition: transport.h:180
int(* pad_list)(char ***, int *)
Definition: transport.h:204
void(* get_location_with_pointer)(int *, int *, int *)
Definition: transport.h:198
void LOC_panel_restore(const char *name)
Definition: loc_proto.c:524
void LOC_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
Definition: loc_proto.c:538
int(* pad_append_item)(const char *, const char *, int)
Definition: transport.h:206
int LOC_pad_set_item(const char *name, const char *value)
Definition: loc_pad.c:167
void LOC_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
Definition: loc_get.c:12
void REM_move_abs(int x, int y)
void(* cont_abs)(int, int)
Definition: transport.h:167
void REM_close_driver(void)
int(* pad_select)(const char *)
Definition: transport.h:205
void(* end_scaled_raster)(void)
Definition: transport.h:193
void LOC_move_abs(int x, int y)
move current location
Definition: loc_proto.c:169
void REM_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
int REM_pad_get_item(const char *name, char ***list, int *count)
void LOC_polygon_rel(const int *xarray, const int *yarray, int number)
draw a closed polygon
Definition: loc_proto.c:347
int(* screen_top)(void)
Definition: transport.h:159
int
Definition: g3dcolor.c:48
void REM_box_rel(int x, int y)
char * value
Definition: env.c:30
int REM_screen_rite(void)
int LOC_pad_select(const char *pad)
Definition: loc_pad.c:87
void(* panel_restore)(const char *)
Definition: transport.h:187
int(* open_driver)(void)
Definition: transport.h:149
void(* move_rel)(int, int)
Definition: transport.h:166
void(* get_location_with_line)(int, int, int *, int *, int *)
Definition: transport.h:197
void LOC_get_num_colors(int *n)
Definition: loc_proto.c:89
int LOC_pad_list_items(char ***list, int *count)
Definition: loc_pad.c:145
int LOC_pad_get_item(const char *name, char ***list, int *count)
Definition: loc_pad.c:117
void(* begin_scaled_raster)(int, int[2][2], int[2][2])
Definition: transport.h:189
int LOC_pad_list(char ***list, int *count)
Definition: loc_pad.c:67
void REM_box_abs(int x1, int y1, int x2, int y2)
int REM_open_driver(void)
void LOC_font(const char *name)
choose font
Definition: loc_proto.c:496
void LOC_set_window(int t, int b, int l, int r)
set text clipping frame
Definition: loc_proto.c:422
void(* get_text_box)(const char *, int *, int *, int *, int *)
Definition: transport.h:181
void LOC_cont_rel(int x, int y)
draw line
Definition: loc_proto.c:228
int REM_pad_invent(char *pad)
int(* open_quiet)(void)
Definition: transport.h:150
int LOC_pad_append_item(const char *item, const char *value, int replace)
Definition: loc_pad.c:97
void REM_polydots_abs(const int *xarray, const int *yarray, int number)
void LOC_text_size(int width, int height)
set text size
Definition: loc_proto.c:399
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
Definition: g3drange.c:62
void(* box_abs)(int, int, int, int)
Definition: transport.h:175
int(* pad_delete_item)(const char *)
Definition: transport.h:207
void(* box_rel)(int, int)
Definition: transport.h:176
void REM_charset(const char *name)
void(* text_rotation)(float)
Definition: transport.h:178
int LOC_screen_top(void)
top of screen
Definition: loc_proto.c:80
int REM_pad_delete(void)
int REM_pad_list_items(char ***list, int *count)
void LOC_erase(void)
erase screen
Definition: loc_proto.c:153
int LOC_pad_invent(char *pad)
Definition: loc_pad.c:60
void(* charset)(const char *)
Definition: transport.h:183
void(* kill_driver)(void)
Definition: transport.h:152
void LOC_font_list(char ***list, int *count)
Definition: loc_proto.c:506
int REM_pad_current(char *name)
void(* get_num_colors)(int *)
Definition: transport.h:160
void REM_polygon_rel(const int *xarray, const int *yarray, int number)
void(* text_size)(int, int)
Definition: transport.h:177
void REM_kill_driver(void)
int(* scaled_raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: transport.h:190
void(* stabilize)(void)
Definition: transport.h:151
void REM_end_scaled_raster(void)
void REM_text_rotation(float rotation)
void LOC_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
Definition: loc_proto.c:555
void(* cont_rel)(int, int)
Definition: transport.h:168
int(* pad_delete)(void)
Definition: transport.h:202
void LOC_kill_driver(void)
Definition: loc_io.c:80
void REM_polydots_rel(const int *xarray, const int *yarray, int number)
int LOC_scaled_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
Definition: loc_proto.c:543
void LOC_text(const char *text)
write text
Definition: loc_proto.c:437
void LOC_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
Definition: loc_get.c:8
int REM_pad_list(char ***list, int *count)
void LOC_text_rotation(float rotation)
Definition: loc_proto.c:404
int REM_scaled_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
int height
void REM_stabilize(void)
int REM_pad_create(const char *pad)
int LOC_pad_create(const char *pad)
Definition: loc_pad.c:23
void(* panel_save)(const char *, int, int, int, int)
Definition: transport.h:186
int n
Definition: dataquad.c:291
int LOC__open_quiet(void)
Definition: loc_io.c:70
int(* pad_get_item)(const char *, char ***, int *)
Definition: transport.h:208
void REM_get_text_box(const char *text, int *t, int *b, int *l, int *r)
int REM_pad_append_item(const char *item, const char *value, int replace)
void LOC_polyline_abs(const int *xarray, const int *yarray, int number)
draw an open polygon
Definition: loc_proto.c:287
void REM_release_driver(void)
void(* font_list)(char ***, int *)
Definition: transport.h:184
void LOC_close_driver(void)
Definition: loc_io.c:85
void(* RGB_color)(unsigned char, unsigned char, unsigned char)
Definition: transport.h:162
void(* get_location_with_box)(int, int, int *, int *, int *)
Definition: transport.h:196
void REM_erase(void)
void REM_panel_save(const char *name, int t, int b, int l, int r)
int(* pad_current)(char *)
Definition: transport.h:201
void LOC_box_abs(int x1, int y1, int x2, int y2)
fill a box
Definition: loc_proto.c:366
void(* set_window)(int, int, int, int)
Definition: transport.h:179
void LOC_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
select color
Definition: loc_proto.c:125
int(* screen_bot)(void)
Definition: transport.h:158