X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.h;h=7afd1fe660d59c674708533917e9ce5aa13b538e;hb=3b54533821614d17afc61f1cd3b87d3a06fbf4da;hp=4c32ca7ded1261436bf00b051b511f4c14edac99;hpb=b8d97ba13fa4e3c78d3a0bc87803219c88e581ea;p=pspp diff --git a/src/output/cairo.h b/src/output/cairo.h index 4c32ca7ded..7afd1fe660 100644 --- a/src/output/cairo.h +++ b/src/output/cairo.h @@ -42,7 +42,6 @@ struct xr_rendering *xr_rendering_create (struct xr_driver *, cairo_t *); void xr_rendering_destroy (struct xr_rendering *); -void xr_rendering_apply_options (struct xr_rendering *, struct string_map *o); void xr_rendering_measure (const struct xr_rendering *, int *w, int *h); void xr_rendering_draw (struct xr_rendering *r, cairo_t *cr, int x0, int y0, int x1, int y1); @@ -85,17 +84,21 @@ void xr_driver_output_item (struct xr_driver *, const struct output_item *); bool xr_driver_need_new_page (const struct xr_driver *); bool xr_driver_is_page_blank (const struct xr_driver *); -void parse_color (struct output_driver *d, struct string_map *options, - const char *key, const char *default_value, - struct cell_color *); - - /* Render charts with Cairo. */ char *xr_draw_png_chart (const struct chart_item *, const char *file_name_template, int number, const struct cell_color *fg, const struct cell_color *bg); +char *xr_draw_eps_chart (const struct chart_item *item, + const char *file_name_template, int number, + const struct cell_color *fg, + const struct cell_color *bg); + + +/* Render to a svg file */ +bool xr_draw_svg_file (struct xr_rendering *r, + const char *filename); #endif /* HAVE_CAIRO */