enum gfx_en { GFX_LINE=0,GFX_AREA,GFX_TEXT };
enum gfx_h_align_en { GFX_H_NULL=0, GFX_H_LEFT, GFX_H_RIGHT, GFX_H_CENTER };
enum gfx_v_align_en { GFX_V_NULL=0, GFX_V_TOP, GFX_V_BOTTOM, GFX_V_CENTER };
enum gfx_en { GFX_LINE=0,GFX_AREA,GFX_TEXT };
enum gfx_h_align_en { GFX_H_NULL=0, GFX_H_LEFT, GFX_H_RIGHT, GFX_H_CENTER };
enum gfx_v_align_en { GFX_V_NULL=0, GFX_V_TOP, GFX_V_BOTTOM, GFX_V_CENTER };
double width, gfx_color_t color);
gfx_node_t *gfx_new_dashed_line (gfx_canvas_t *canvas,
double width, gfx_color_t color);
gfx_node_t *gfx_new_dashed_line (gfx_canvas_t *canvas,
double width, gfx_color_t color,
double dash_on, double dash_off);
/* create a new area */
gfx_node_t *gfx_new_area (gfx_canvas_t *canvas,
double width, gfx_color_t color,
double dash_on, double dash_off);
/* create a new area */
gfx_node_t *gfx_new_area (gfx_canvas_t *canvas,
double start, char* font, double size,
double tabwidth, char* text);
double start, char* font, double size,
double tabwidth, char* text);
+/* save image to file */
+int gfx_render (gfx_canvas_t *canvas,
+ art_u32 width, art_u32 height,
+ gfx_color_t background, FILE *fo);
+
+/* free memory used by nodes this will also remove memory required for
+ node chain and associated material */
+int gfx_destroy (gfx_canvas_t *canvas);
int gfx_render_png (gfx_canvas_t *canvas,
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
double gfx_get_text_width_libart ( gfx_canvas_t *canvas,
double start, char* font, double size,
double tabwidth, char* text);
int gfx_render_png (gfx_canvas_t *canvas,
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
double gfx_get_text_width_libart ( gfx_canvas_t *canvas,
double start, char* font, double size,
double tabwidth, char* text);
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
art_u32 width, art_u32 height,
gfx_color_t background, FILE *fo);
+/* PDF support */
+int gfx_render_pdf (gfx_canvas_t *canvas,
+ art_u32 width, art_u32 height,
+ gfx_color_t background, FILE *fo);