X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-chart.h;h=bbcc606d31ddb6216c58d3dfef61fc6662bb14e5;hb=92d56ca29ed5db49a208280c45155850a9c7a76b;hp=68f2978283b93edc63c3507ca05b2d970c3de0bc;hpb=8f998d65fb573c1b4c12f917cc3dd0639808cfa3;p=pspp diff --git a/src/output/cairo-chart.h b/src/output/cairo-chart.h index 68f2978283..bbcc606d31 100644 --- a/src/output/cairo-chart.h +++ b/src/output/cairo-chart.h @@ -23,6 +23,7 @@ #include "libpspp/compiler.h" struct chart_item; +struct cell_color; struct xrchart_colour { @@ -177,4 +178,17 @@ void xrchart_draw_spreadlevel (const struct chart_item *, cairo_t *, void xrchart_draw_scatterplot (const struct chart_item *, cairo_t *, struct xrchart_geometry *); +void xr_draw_chart (const struct chart_item *, cairo_t *, + double width, double height); + +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); + #endif /* output/cairo-chart.h */