GRASS 8 Programmer's Manual 8.6.0dev(2026)-b43c9b8403
Loading...
Searching...
No Matches
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 SPDX-FileCopyrightText: 2007-2008 Lars Ahlzen
7 SPDX-FileCopyrightText: GRASS Development Team
8 SPDX-License-Identifier: GPL-2.0-or-later
9
10 \author Lars Ahlzen <lars ahlzen.com> (original contributor)
11 \author Glynn Clements
12 */
13
14#include <grass/gis.h>
15#include "cairodriver.h"
16
17#define MIN_WIDTH 1
18
19static double previous_width = -1;
20
21/*!
22 \brief Set line width
23
24 \param width line width (double precision)
25 */
26void Cairo_Line_width(double width)
27{
28 G_debug(1, "Cairo_Line_width: %f", width);
29
30 width = MAX(MIN_WIDTH, width);
31 if (width != previous_width)
33
34 return;
35}
#define MIN_WIDTH
void Cairo_Line_width(double width)
Set line width.
GRASS cairo display driver - header file.
cairo_t * cairo
int G_debug(int, const char *,...) __attribute__((format(printf
#define MAX(a, b)
Definition gis.h:145