GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72274
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
driver/set_window.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 static struct {
5  double t, b, l, r;
6 } window;
7 
8 void COM_Set_window(double t, double b, double l, double r)
9 {
10  window.t = t;
11  window.b = b;
12  window.l = l;
13  window.r = r;
14 
15  if (driver->Set_window)
16  (*driver->Set_window) (t, b, l, r);
17 }
18 
19 void COM_Get_window(double *t, double *b, double *l, double *r)
20 {
21  *t = window.t;
22  *b = window.b;
23  *l = window.l;
24  *r = window.r;
25 }
void COM_Set_window(double, double, double, double)
double l
Definition: r_raster.c:39
double t
Definition: r_raster.c:39
void COM_Get_window(double *, double *, double *, double *)
double b
Definition: r_raster.c:39
void(* Set_window)(double, double, double, double)
Definition: driver.h:32
Definition: driver.h:22
double r
Definition: r_raster.c:39