-
Notifications
You must be signed in to change notification settings - Fork 25
/
progress.cxx
36 lines (29 loc) · 924 Bytes
/
progress.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
#include "progress.h"
#include <FL/Fl_Progress.H>
#include "event_handler.h"
class GProgress : public EventHandler<Fl_Progress> {
public:
GProgress(int x, int y, int w, int h, const char *label)
: EventHandler<Fl_Progress>(x, y, w, h, label) {}
};
GProgress* go_fltk_new_Progress(int x, int y, int w, int h, const char *label) {
return new GProgress(x, y, w, h, label);
}
void go_fltk_Progress_set_maximum(Fl_Progress* p, double maximum) {
p->maximum((float)maximum);
}
double go_fltk_Progress_maximum(Fl_Progress* p) {
return (double)p->maximum();
}
void go_fltk_Progress_set_minimum(Fl_Progress* p, double minimum) {
p->minimum((float)minimum);
}
double go_fltk_Progress_minimum(Fl_Progress* p) {
return (double)p->minimum();
}
void go_fltk_Progress_set_value(Fl_Progress* p, double value) {
p->value((float)value);
}
double go_fltk_Progress_value(Fl_Progress* p) {
return (double)p->value();
}