GRASS GIS 7 Programmer's Manual  7.0.5(2016)-r00000
gis/set_window.c
Go to the documentation of this file.
1 
14 #include <grass/gis.h>
15 #include <grass/glocale.h>
16 
17 #include "G.h"
18 
19 #include "local_proto.h"
20 
35 void G_get_set_window(struct Cell_head *window)
36 {
38  *window = G__.window;
39 }
40 
53 void G_set_window(struct Cell_head *window)
54 {
55  /* adjust window, check for valid window */
56  G_adjust_Cell_head(window, 0, 0);
57 
58  /* copy the window to the current window */
59  G__.window = *window;
60  G__.window_set = 1;
61 }
void G_adjust_Cell_head(struct Cell_head *cellhd, int row_flag, int col_flag)
Adjust cell header.
Definition: adj_cellhd.c:38
void G_set_window(struct Cell_head *window)
Establishes window as the current working window (region).
struct Cell_head window
Definition: G.h:6
Definition: G.h:4
void G__init_window(void)
Initialize window (region).
Definition: window_map.c:70
int window_set
Definition: G.h:7
void G_get_set_window(struct Cell_head *window)
Get the current working window (region)