GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
com_pad.c
Go to the documentation of this file.
1 #include <string.h>
2 #include <stdlib.h>
3 #include <stdio.h>
4 
5 #include <grass/gis.h>
6 #include <grass/raster.h>
7 #include <grass/graphics.h>
8 #include "transport.h"
9 
10 /* PAD FUNCTIONS
11  The monitor has a very simple database management capability
12  which supports the windowing. There are scratch pads
13  to be written on. Each scratch pad can contain items, and
14  each item can have a list of values. These are NOT to be
15  used by the programmer. They are used indirectly through
16  the displaylib library calls.
17  */
18 
19 int R_pad_create(const char *pad)
20 {
21  return trans->pad_create(pad);
22 }
23 
24 int R_pad_current(char *name)
25 {
26  return trans->pad_current(name);
27 }
28 
29 int R_pad_delete(void)
30 {
31  return trans->pad_delete();
32 }
33 
34 int R_pad_invent(char *pad)
35 {
36  return trans->pad_invent(pad);
37 }
38 
39 int R_pad_list(char ***list, int *count)
40 {
41  return trans->pad_list(list, count);
42 }
43 
44 int R_pad_select(const char *pad)
45 {
46  return trans->pad_select(pad);
47 }
48 
49 int R_pad_append_item(const char *item, const char *value, int replace)
50 {
51  return trans->pad_append_item(item, value, replace);
52 }
53 
54 int R_pad_delete_item(const char *name)
55 {
56  return trans->pad_delete_item(name);
57 }
58 
59 int R_pad_get_item(const char *name, char ***list, int *count)
60 {
61  return trans->pad_get_item(name, list, count);
62 }
63 
64 int R_pad_list_items(char ***list, int *count)
65 {
66  return trans->pad_list_items(list, count);
67 }
68 
69 int R_pad_set_item(const char *name, const char *value)
70 {
71  return trans->pad_set_item(name, value);
72 }
int R_pad_delete(void)
Definition: com_pad.c:29
int R_pad_list(char ***list, int *count)
Definition: com_pad.c:39
int(* pad_create)(const char *)
Definition: transport.h:200
string name
Definition: render.py:1314
struct transport * trans
Definition: com_io.c:143
int(* pad_invent)(char *)
Definition: transport.h:203
int count
int R_pad_set_item(const char *name, const char *value)
Definition: com_pad.c:69
int R_pad_list_items(char ***list, int *count)
Definition: com_pad.c:64
int(* pad_set_item)(const char *, const char *)
Definition: transport.h:210
int R_pad_current(char *name)
Definition: com_pad.c:24
int(* pad_list_items)(char ***, int *)
Definition: transport.h:209
int(* pad_list)(char ***, int *)
Definition: transport.h:204
int(* pad_append_item)(const char *, const char *, int)
Definition: transport.h:206
int(* pad_select)(const char *)
Definition: transport.h:205
int R_pad_delete_item(const char *name)
Definition: com_pad.c:54
int R_pad_select(const char *pad)
Definition: com_pad.c:44
char * value
Definition: env.c:30
int(* pad_delete_item)(const char *)
Definition: transport.h:207
int(* pad_delete)(void)
Definition: transport.h:202
int R_pad_invent(char *pad)
Definition: com_pad.c:34
int R_pad_append_item(const char *item, const char *value, int replace)
Definition: com_pad.c:49
int R_pad_create(const char *pad)
Definition: com_pad.c:19
int(* pad_get_item)(const char *, char ***, int *)
Definition: transport.h:208
int R_pad_get_item(const char *name, char ***list, int *count)
Definition: com_pad.c:59
int(* pad_current)(char *)
Definition: transport.h:201