forked from pwiecz/go-fltk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.cxx
88 lines (65 loc) · 1.86 KB
/
chart.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include "chart.h"
#include <FL/Fl_Chart.H>
#include "event_handler.h"
class GChart : public EventHandler<Fl_Chart> {
public:
GChart(int x, int y, int w, int h, const char *label)
: EventHandler<Fl_Chart>(x, y, w, h, label) {}
};
GChart* go_fltk_new_Chart(int x, int y, int w, int h, const char *label) {
return new GChart(x, y, w, h, label);
}
void go_fltk_Chart_clear(Fl_Chart* c) {
c->clear();
}
void go_fltk_Chart_add(Fl_Chart* c, double val, const char *str = 0, unsigned col = 0) {
c->add(val, str, col);
}
void go_fltk_Chart_insert(Fl_Chart* c, int ind, double val, const char *str = 0, unsigned col = 0) {
c->insert(ind, val, str, col);
}
void go_fltk_Chart_replace(Fl_Chart* c, int ind, double val, const char *str = 0, unsigned col = 0){
c->replace(ind, val, str, col);
}
void go_fltk_Chart_bounds(Fl_Chart* c, double *a,double *b) {
c->bounds(a,b);
}
void go_fltk_Chart_set_bounds(Fl_Chart* c, double a,double b){
c->bounds(a,b);
}
int go_fltk_Chart_size(Fl_Chart* c) {
return c->size();
}
void go_fltk_Chart_set_size(Fl_Chart* c, int W, int H) {
c->size(W, H);
}
int go_fltk_Chart_maxsize(Fl_Chart* c){
return c->maxsize();
}
void go_fltk_Chart_set_maxsize(Fl_Chart* c, int m){
c->maxsize(m);
}
int go_fltk_Chart_textfont(Fl_Chart* c) {
return c->textfont();
}
void go_fltk_Chart_set_textfont(Fl_Chart* c, int font_s){
c->textfont(font_s);
}
int go_fltk_Chart_textsize(Fl_Chart* c){
return c->textsize();
}
void go_fltk_Chart_set_textsize(Fl_Chart* c, int s){
c->textsize(s);
}
unsigned int go_fltk_Chart_textcolor(Fl_Chart* c){
return c->textcolor();
}
void go_fltk_Chart_set_textcolor(Fl_Chart* c, unsigned int color_n){
c->textcolor(color_n);
}
uchar go_fltk_Chart_autosize(Fl_Chart* c){
return c->autosize();
}
void go_fltk_Chart_set_autosize(Fl_Chart* c, uchar n){
c->autosize(n);
}