GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairodriver/Set_window.c
Go to the documentation of this file.
1 #include "cairodriver.h"
2 
3 void Cairo_Set_window(int t, int b, int l, int r)
4 {
5  G_debug(1, "Cairo_Set_window: %d %d %d %d", t, b, l, r);
6 
7  cairo_reset_clip(cairo);
8  cairo_rectangle(cairo, (double)l, (double)t, (double)r - l,
9  (double)b - t);
10  cairo_clip(cairo);
11 }