GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cairodriver/Line_width.c
Go to the documentation of this file.
1
#include "
cairodriver.h
"
2
3
#define MIN_WIDTH 1
4
5
#ifndef MAX
6
#define MAX(a,b) ((a)>(b)?(a):(b))
7
#endif
8
9
static
int
previous_width = -1;
10
11
void
Cairo_Line_width
(
int
width
)
12
{
13
G_debug
(1,
"Cairo_Line_width: %d"
, width);
14
15
width =
MAX
(
MIN_WIDTH
, width);
16
if
(width != previous_width)
17
cairo_set_line_width(
cairo
, (
double
)width);
18
}
dialogs.width
tuple width
Definition:
psmap/dialogs.py:2959
cairo
cairo_t * cairo
Definition:
cairodriver/Graph.c:60
cairodriver.h
G_debug
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition:
gis/debug.c:51
MAX
#define MAX(a, b)
Definition:
cairodriver/Line_width.c:6
Cairo_Line_width
void Cairo_Line_width(int)
Definition:
cairodriver/Line_width.c:11
MIN_WIDTH
#define MIN_WIDTH
Definition:
cairodriver/Line_width.c:3
lib
cairodriver
Line_width.c
Generated on Sat Jan 2 2016 01:46:48 for GRASS Programmer's Manual by
1.8.5