30#define FL_HORBAR_CHART 1
31#define FL_LINE_CHART 2
32#define FL_FILL_CHART 3
33#define FL_SPIKE_CHART 4
35#define FL_SPECIALPIE_CHART 6
37#define FL_FILLED_CHART FL_FILL_CHART
39#define FL_CHART_MAX 128
40#define FL_CHART_LABEL_MAX 18
88 static void draw_barchart(
int x,
int y,
int w,
int h,
int numb,
FL_CHART_ENTRY entries[],
89 double min,
double max,
int autosize,
int maxnumb,
Fl_Color textcolor);
91 static void draw_horbarchart(
int x,
int y,
int w,
int h,
int numb,
FL_CHART_ENTRY entries[],
92 double min,
double max,
int autosize,
int maxnumb,
95 static void draw_linechart(
int type,
int x,
int y,
int w,
int h,
int numb,
99 static void draw_piechart(
int x,
int y,
int w,
int h,
int numb,
FL_CHART_ENTRY entries[],
103 Fl_Chart(
int X,
int Y,
int W,
int H,
const char *L = 0);
109 void add(
double val,
const char *str = 0,
unsigned col = 0);
111 void insert(
int ind,
double val,
const char *str = 0,
unsigned col = 0);
113 void replace(
int ind,
double val,
const char *str = 0,
unsigned col = 0);
119 void bounds(
double *a,
double *b)
const {
124 void bounds(
double a,
double b);
129 int size()
const {
return numb; }
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:1069
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:1126
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1098
#define FL_CHART_LABEL_MAX
max label length for entry
Definition: Fl_Chart.H:40
Fl_Chart displays simple charts.
Definition: Fl_Chart.H:71
Fl_Color textcolor() const
Gets the chart's text color.
Definition: Fl_Chart.H:160
int size() const
Returns the number of data values in the chart.
Definition: Fl_Chart.H:129
void textfont(Fl_Font s)
Sets the chart's text font to s.
Definition: Fl_Chart.H:151
void autosize(uchar n)
Sets whether the chart will automatically adjust the bounds of the chart.
Definition: Fl_Chart.H:175
void size(int W, int H)
Sets the widget size (width, height).
Definition: Fl_Chart.H:138
void bounds(double *a, double *b) const
Gets the lower and upper bounds of the chart values.
Definition: Fl_Chart.H:119
void textsize(Fl_Fontsize s)
Sets the chart's text size to s.
Definition: Fl_Chart.H:157
Fl_Font textfont() const
Gets the chart's text font.
Definition: Fl_Chart.H:148
uchar autosize() const
Gets whether the chart will automatically adjust the bounds of the chart.
Definition: Fl_Chart.H:169
int maxsize() const
Gets the maximum number of data values for a chart.
Definition: Fl_Chart.H:143
void textcolor(Fl_Color n)
Sets the chart's text color to n.
Definition: Fl_Chart.H:163
Fl_Fontsize textsize() const
Gets the chart's text size.
Definition: Fl_Chart.H:154
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition: fl_attr.h:38
unsigned char uchar
unsigned char
Definition: fl_types.h:30
For internal use only.
Definition: Fl_Chart.H:43
float val
For internal use only.
Definition: Fl_Chart.H:44
char str[FL_CHART_LABEL_MAX+1]
For internal use only.
Definition: Fl_Chart.H:46
unsigned col
For internal use only.
Definition: Fl_Chart.H:45