GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
cairodriver/box.c
Go to the documentation of this file.
1/*!
2 \file lib/cairodriver/box.c
3
4 \brief GRASS cairo display driver - draw box
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 "cairodriver.h"
15
16/*!
17 \brief Draw a (filled) rectangle
18
19 \param x1,y1,x2,y2 rectangle coordinates
20 */
21void Cairo_Box(double x1, double y1, double x2, double y2)
22{
23 G_debug(3, "Cairo_Box %f %f %f %f\n", x1, y1, x2, y2);
24
25 cairo_rectangle(cairo, x1, y1, x2 - x1, y2 - y1);
27 ca.modified = 1;
28
29 return;
30}
void Cairo_Box(double x1, double y1, double x2, double y2)
Draw a (filled) rectangle.
GRASS cairo display driver - header file.
struct cairo_state ca
cairo_t * cairo
int G_debug(int, const char *,...) __attribute__((format(printf