GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-060b32d572
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/line_width.c
Go to the documentation of this file.
1
/*!
2
\file lib/cairodriver/line_width.c
3
4
\brief GRASS cairo display driver - set line width
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 <
grass/gis.h
>
16
#include "
cairodriver.h
"
17
18
#define MIN_WIDTH 1
19
20
static
double
previous_width = -1;
21
22
/*!
23
\brief Set line width
24
25
\param width line width (double precision)
26
*/
27
void
Cairo_Line_width
(
double
width)
28
{
29
G_debug
(1,
"Cairo_Line_width: %f"
, width);
30
31
width =
MAX
(
MIN_WIDTH
, width);
32
if
(width != previous_width)
33
cairo_set_line_width(
cairo
, width);
34
35
return
;
36
}
MIN_WIDTH
#define MIN_WIDTH
Definition:
cairodriver/line_width.c:18
Cairo_Line_width
void Cairo_Line_width(double width)
Set line width.
Definition:
cairodriver/line_width.c:27
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
gis.h
MAX
#define MAX(a, b)
Definition:
gis.h:149
lib
cairodriver
line_width.c
Generated on Sat Mar 15 2025 07:35:02 for GRASS GIS 8 Programmer's Manual by
1.9.1