GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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 */
lib
raster
rem_get.c
Generated on Thu Sep 26 2013 09:48:06 for GRASS Programmer's Manual by
1.8.4