forked from pwiecz/go-fltk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinner.cxx
35 lines (29 loc) · 859 Bytes
/
spinner.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 "spinner.h"
#include <FL/Fl_Spinner.H>
#include "event_handler.h"
class GSpinner : public EventHandler<Fl_Spinner> {
public:
GSpinner(int x, int y, int w, int h, const char* label)
: EventHandler<Fl_Spinner>(x, y, w, h, label) {}
};
GSpinner* go_fltk_new_Spinner(int x, int y, int w, int h, const char* label) {
return new GSpinner(x, y, w, h, label);
}
void go_fltk_Spinner_set_type(Fl_Spinner* s, unsigned char type) {
s->type(type);
}
void go_fltk_Spinner_set_maximum(Fl_Spinner* s, double max) {
s->maximum(max);
}
void go_fltk_Spinner_set_minimum(Fl_Spinner* s, double min) {
s->minimum(min);
}
void go_fltk_Spinner_set_step(Fl_Spinner* s, double step) {
s->step(step);
}
void go_fltk_Spinner_set_value(Fl_Spinner* s, double value) {
s->value(value);
}
double go_fltk_Spinner_value(Fl_Spinner*s) {
return s->value();
}