1 /* File : Fl_Spinner.i */
2 
3 %feature("docstring") ::Fl_Spinner
4 """
5 The Fl_Spinner widget is a combination of the input widget and repeat
6 buttons. The user can either type into the input area or use the buttons
7 to change the value.
8 """ ;
9 
10 %{
11 #include "FL/Fl_Spinner.H"
12 %}
13 
14 %include "macros.i"
15 
16 CHANGE_OWNERSHIP(Fl_Spinner)
17 
18 %ignore Fl_Spinner::minimum;
19 %ignore Fl_Spinner::maximum;
20 
21 %include "FL/Fl_Spinner.H"
22 
23 // hack to account for spelling mistakes in Fl_Spinner.H
24 %extend Fl_Spinner {
25 
26   %rename(minimum) min;
27   %rename(maximum) max;
28 
min(double m)29   void min(double m) {
30     self->minimum(m);
31   }
32 
min()33   double min() {
34     return self->mininum();
35   }
36 
max(double m)37   void max(double m) {
38     self->maximum(m);
39   }
40 
max()41   double max() {
42     return self->maxinum();
43   }
44 }
45 
46 
47