GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairodriver/Box.c
Go to the documentation of this file.
1 #include "cairodriver.h"
2 
3 /* Box_abs: Draw a (filled) rectangle */
4 
5 void Cairo_Box_abs(int x1, int y1, int x2, int y2)
6 {
7  G_debug(3, "Cairo_Box_abs %d %d %d %d\n", x1, y1, x2, y2);
8 
9  cairo_rectangle(cairo, (double)x1, (double)y1, (double)x2 - x1,
10  (double)y2 - y1);
11  cairo_fill(cairo);
12  modified = 1;
13 }
int modified
cairo_t * cairo
void Cairo_Box_abs(int x1, int y1, int x2, int y2)
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition: gis/debug.c:51