GRASS GIS 7 Programmer's Manual  7.0.4(2016)-r00000
cairodriver/box.c
Go to the documentation of this file.
1 
15 #include "cairodriver.h"
16 
22 void Cairo_Box(double x1, double y1, double x2, double y2)
23 {
24  G_debug(3, "Cairo_Box %f %f %f %f\n", x1, y1, x2, y2);
25 
26  cairo_rectangle(cairo, x1, y1, x2 - x1, y2 - y1);
27  cairo_fill(cairo);
28  ca.modified = 1;
29 
30  return;
31 }
struct cairo_state ca
void Cairo_Box(double x1, double y1, double x2, double y2)
Draw a (filled) rectangle.
cairo_t * cairo
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition: debug.c:65
GRASS cairo display driver - header file.