GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
cairodriver/set_window.c
Go to the documentation of this file.
1
/*!
2
\file lib/cairodriver/set_window.c
3
4
\brief GRASS cairo display driver - set window
5
6
(C) 2007-2008 by Lars Ahlzen and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Lars Ahlzen <lars ahlzen.com> (original contributor)
12
\author Glynn Clements
13
*/
14
15
#include "
cairodriver.h
"
16
17
/*!
18
\brief Set window
19
20
\param t,b,l,r top, bottom, left, right
21
*/
22
void
Cairo_Set_window
(
double
t
,
double
b
,
double
l
,
double
r
)
23
{
24
G_debug
(1,
"Cairo_Set_window: %f %f %f %f"
,
t
,
b
,
l
,
r
);
25
26
cairo_reset_clip(
cairo
);
27
cairo_rectangle(
cairo
,
l
,
t
,
r
-
l
,
b
-
t
);
28
cairo_clip(
cairo
);
29
30
return
;
31
}
Cairo_Set_window
void Cairo_Set_window(double t, double b, double l, double r)
Set window.
Definition:
cairodriver/set_window.c:22
cairodriver.h
GRASS cairo display driver - header file.
cairo
cairo_t * cairo
Definition:
cairodriver/graph.c:46
G_debug
int G_debug(int, const char *,...) __attribute__((format(printf
b
double b
Definition:
r_raster.c:39
l
double l
Definition:
r_raster.c:39
t
double t
Definition:
r_raster.c:39
r
double r
Definition:
r_raster.c:39
lib
cairodriver
set_window.c
Generated on Thu Mar 20 2025 07:33:30 for GRASS GIS 8 Programmer's Manual by
1.9.1