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
*/
21
void
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);
26
cairo_fill
(
cairo
);
27
ca
.modified = 1;
28
29
return
;
30
}
Cairo_Box
void Cairo_Box(double x1, double y1, double x2, double y2)
Draw a (filled) rectangle.
Definition
cairodriver/box.c:21
cairodriver.h
GRASS cairo display driver - header file.
ca
struct cairo_state ca
Definition
cairodriver/graph.c:41
cairo
cairo_t * cairo
Definition
cairodriver/graph.c:45
AMI_STREAM
Definition
ami_stream.h:153
G_debug
int G_debug(int, const char *,...) __attribute__((format(printf
lib
cairodriver
box.c
Generated on Mon Sep 14 2026 06:57:42 for GRASS 8 Programmer's Manual by
1.9.8