2 #include <grass/raster.h>
15 fprintf(stderr,
"\nButtons:\n");
16 fprintf(stderr,
"Left: Establish a corner\n");
17 fprintf(stderr,
"Right: Accept window\n");
30 }
while (button != 3);
43 *bottom = 100. - 100. * (b - st) / (sb - st);
44 *top = 100. - 100. * (t - st) / (sb - st);
45 *left = 100. * (l - sl) / (sr - sl);
46 *right = 100. * (r - sl) / (sr - sl);
int R_screen_bot(void)
bottom of screen
int R_screen_rite(void)
screen right edge
int R_screen_left(void)
screen left edge
int R_screen_top(void)
top of screen
int get_win_w_mouse(float *top, float *bottom, float *left, float *right)
void R_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)