X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fchart.h;h=ac0bd372d9397733236d06bf4165fc93f81bd617;hb=c40b1abf21793c5923d2c8e8be320eb1c97a9240;hp=93762dbd4fb311df363d56d40cb23b583879806f;hpb=a2a92dd38cf37e50ccfd56bedd4da21bc56dfe0f;p=pspp diff --git a/src/output/chart.h b/src/output/chart.h index 93762dbd4f..ac0bd372d9 100644 --- a/src/output/chart.h +++ b/src/output/chart.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 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,16 +17,29 @@ #ifndef OUTPUT_CHART_H #define OUTPUT_CHART_H 1 -#ifndef NO_CHARTS -#include /* Required by . */ -#include -#endif +/* Charts. -struct chart; + A chart is abstract. Every actual chart is a subclass of chart. */ + +#include + +/* A chart. + + The members of struct chart should not be accessed directly. Use one + of the accessor functions defined below. */ +struct chart + { + int ref_cnt; + const struct chart_class *class; /* Subclass. */ + char *title; /* May be null if there is no title. */ + }; -void chart_draw (const struct chart *, plPlotter *); struct chart *chart_ref (const struct chart *); void chart_unref (struct chart *); +bool chart_is_shared (const struct chart *); + +const char *chart_get_title (const struct chart *); +void chart_set_title (struct chart *, const char *); void chart_submit (struct chart *);