X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fchart-provider.h;h=82a93809a521892c223b75d9f12dad6a77366c69;hb=e784ed9c161b6b7aec1402de566e6c09cb2031e0;hp=fbec5d25b0bb610c69cbc55bb18810822b33d214;hpb=e0c37920bb2cc46ee559e3992470572d4b4d27e6;p=pspp diff --git a/src/output/chart-provider.h b/src/output/chart-provider.h index fbec5d25b0..82a93809a5 100644 --- a/src/output/chart-provider.h +++ b/src/output/chart-provider.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2009 Free Software Foundation, Inc. + Copyright (C) 2004, 2009, 2011 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 @@ -17,69 +17,14 @@ #ifndef OUTPUT_CHART_PROVIDER_H #define OUTPUT_CHART_PROVIDER_H 1 -#include -#include -#include - -struct chart_colour - { - uint8_t red; - uint8_t green; - uint8_t blue; - }; - -/* The geometry of a chart. */ -struct chart_geometry - { - int data_top ; - int data_right ; - int data_bottom; - int data_left ; - - int abscissa_top; - - int ordinate_right ; - - int title_bottom ; - - int legend_left ; - int legend_right ; - - /* Default font size for the plot (if zero, then use plotter default) */ - int font_size; - - struct chart_colour fill_colour; - - /* Stuff Particular to Cartesians (and Boxplots ) */ - double ordinate_scale; - double abscissa_scale; - double x_min; - double x_max; - double y_min; - double y_max; - }; +#include "output/chart.h" struct chart_class { - void (*draw) (const struct chart *, plPlotter *, struct chart_geometry *); void (*destroy) (struct chart *); }; -struct chart - { - const struct chart_class *class; - int ref_cnt; - }; - -void chart_init (struct chart *, const struct chart_class *); -bool chart_create_file (const char *type, const char *file_name_tmpl, - int number, plPlotterParams *, - char **file_namep, plPlotter **lpp); - -void chart_geometry_init (plPlotter *, struct chart_geometry *, - double width, double length); -void chart_geometry_free (plPlotter *); - -void chart_draw (const struct chart *, plPlotter *, struct chart_geometry *); +void chart_init (struct chart *, const struct chart_class *, + const char *title); #endif /* output/chart-provider.h */