GRASS Programmer's Manual  6.4.2(2012)
rem_get.c
Go to the documentation of this file.
00001 #include <grass/config.h>
00002 
00003 #ifdef HAVE_SOCKET
00004 
00005 #include <grass/gis.h>
00006 #include <grass/raster.h>
00007 #include <grass/graphics.h>
00008 
00009 #include "transport.h"
00010 
00026 void REM_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
00027 {
00028     _send_ident(GET_LOCATION_WITH_BOX);
00029     _send_int(&cx);
00030     _send_int(&cy);
00031     _send_int(wx);
00032     _send_int(wy);
00033     _get_int(wx);
00034     _get_int(wy);
00035     _get_int(button);
00036 }
00037 
00056 void REM_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
00057 {
00058     _send_ident(GET_LOCATION_WITH_LINE);
00059     _send_int(&cx);
00060     _send_int(&cy);
00061     _send_int(wx);
00062     _send_int(wy);
00063     _get_int(wx);
00064     _get_int(wy);
00065     _get_int(button);
00066 }
00067 
00085 void REM_get_location_with_pointer(int *wx, int *wy, int *button)
00086 {
00087     *button = 0;                /* ?, how button = -1 is used (see driver) */
00088 
00089     _send_ident(GET_LOCATION_WITH_POINTER);
00090     _send_int(wx);
00091     _send_int(wy);
00092     _send_int(button);
00093     _get_int(wx);
00094     _get_int(wy);
00095     _get_int(button);
00096 }
00097 
00098 #endif /* HAVE_SOCKET */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines