X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fcartesian.h;fp=src%2Foutput%2Fcharts%2Fcartesian.h;h=3c21db6efc444c87cca867bbe184867dd1e707fe;hb=cb72db62c20ecab427229110820c5b053d0663c4;hp=0874b9cc61d4d8f507188a00f07c44ca614176cf;hpb=c2f0df181038fe9975d642096e65ea48ca491acd;p=pspp diff --git a/src/output/charts/cartesian.h b/src/output/charts/cartesian.h index 0874b9cc61..3c21db6efc 100644 --- a/src/output/charts/cartesian.h +++ b/src/output/charts/cartesian.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,9 @@ #ifndef CARTESIAN_H #define CARTESIAN_H +#include +#include +#include enum CHART_DIM { @@ -26,20 +29,24 @@ enum CHART_DIM CHART_DIM_Y }; +struct chart_geometry; -void chart_vector_start (struct chart *ch, const char *name); -void chart_vector (struct chart *ch, double x, double y); -void chart_vector_end (struct chart *ch); +void chart_vector_start (cairo_t *, struct chart_geometry *, + const char *name); +void chart_vector_end (cairo_t *, struct chart_geometry *); +void chart_vector (cairo_t *, struct chart_geometry *, double x, double y); /* Plot a data point */ -void chart_datum (struct chart *ch, int dataset UNUSED, double x, double y); +void chart_datum(cairo_t *, const struct chart_geometry *, + int dataset UNUSED, double x, double y); /* Draw a line with slope SLOPE and intercept INTERCEPT. between the points limit1 and limit2. If lim_dim is CHART_DIM_Y then the limit{1,2} are on the y axis otherwise the x axis */ -void chart_line (struct chart *ch, double slope, double intercept, +void chart_line(cairo_t *, const struct chart_geometry *, + double slope, double intercept, double limit1, double limit2, enum CHART_DIM lim_dim);