GRASS Programmer's Manual  6.4.2(2012)
cairodriver/Box.c
Go to the documentation of this file.
00001 #include "cairodriver.h"
00002 
00003 /* Box_abs: Draw a (filled) rectangle */
00004 
00005 void Cairo_Box_abs(int x1, int y1, int x2, int y2)
00006 {
00007     G_debug(3, "Cairo_Box_abs %d %d %d %d\n", x1, y1, x2, y2);
00008 
00009     cairo_rectangle(cairo, (double)x1, (double)y1, (double)x2 - x1,
00010                     (double)y2 - y1);
00011     cairo_fill(cairo);
00012     modified = 1;
00013 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines