GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rem_get.c
Go to the documentation of this file.
1 #include <grass/config.h>
2 
3 #ifdef HAVE_SOCKET
4 
5 #include <grass/gis.h>
6 #include <grass/raster.h>
7 #include <grass/graphics.h>
8 
9 #include "transport.h"
10 
26 void REM_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
27 {
28  _send_ident(GET_LOCATION_WITH_BOX);
29  _send_int(&cx);
30  _send_int(&cy);
31  _send_int(wx);
32  _send_int(wy);
33  _get_int(wx);
34  _get_int(wy);
35  _get_int(button);
36 }
37 
56 void REM_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
57 {
58  _send_ident(GET_LOCATION_WITH_LINE);
59  _send_int(&cx);
60  _send_int(&cy);
61  _send_int(wx);
62  _send_int(wy);
63  _get_int(wx);
64  _get_int(wy);
65  _get_int(button);
66 }
67 
85 void REM_get_location_with_pointer(int *wx, int *wy, int *button)
86 {
87  *button = 0; /* ?, how button = -1 is used (see driver) */
88 
89  _send_ident(GET_LOCATION_WITH_POINTER);
90  _send_int(wx);
91  _send_int(wy);
92  _send_int(button);
93  _get_int(wx);
94  _get_int(wy);
95  _get_int(button);
96 }
97 
98 #endif /* HAVE_SOCKET */
void REM_get_location_with_pointer(int *wx, int *wy, int *button)
void REM_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
void REM_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)