1 #ifndef __CAIRODRIVER_H__
2 #define __CAIRODRIVER_H__
10 #include <grass/config.h>
11 #include <grass/gis.h>
15 #define DEFAULT_FILE_NAME "map.png"
17 #define HEADER_SIZE 64
20 #define COLORSCALE (1.0/255.0)
21 #define CAIROCOLOR(a) (((double)(a))*COLORSCALE)
24 #define FTYPE_UNKNOWN 0
33 extern cairo_surface_t *
surface;
34 extern cairo_t *
cairo;
39 extern unsigned char *
grid;
62 const unsigned char *,
const unsigned char *,
63 const unsigned char *,
const unsigned char *);
void Cairo_Polygon_abs(const int *, const int *, int)
void Cairo_Graph_close(void)
void Cairo_Polyline_abs(const int *, const int *, int)
void Cairo_begin_scaled_raster(int, int[2][2], int[2][2])
void Cairo_Set_window(int, int, int, int)
int Cairo_lookup_color(int, int, int)
void Cairo_Client_Close(void)
void Cairo_draw_point(int, int)
void Cairo_Box_abs(int x1, int y1, int x2, int y2)
int Cairo_scaled_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void Cairo_end_scaled_raster(void)
void Cairo_draw_line(int, int, int, int)
void Cairo_draw_bitmap(int, int, int, const unsigned char *)
Draw bitmap.
struct driver * Cairo_Driver(void)
int Cairo_Graph_set(int, char **)
void Cairo_Line_width(int)