1 | <html> |
---|
2 | <HEAD> |
---|
3 | <TITLE>Fl_Spinner</TITLE> |
---|
4 | </HEAD> |
---|
5 | <body> |
---|
6 | |
---|
7 | <!-- NEW PAGE --> |
---|
8 | |
---|
9 | <h2><a name=Fl_Spinner>class Fl_Spinner</a></h2> |
---|
10 | |
---|
11 | <hr> |
---|
12 | |
---|
13 | <h3>Class Hierarchy</h3> |
---|
14 | |
---|
15 | <ul><pre> |
---|
16 | <a href=Fl_Group.html#Fl_Group>Fl_Group</a> |
---|
17 | | |
---|
18 | +----<b>Fl_Spinner</b> |
---|
19 | </pre></ul> |
---|
20 | |
---|
21 | <h3>Include Files</h3> |
---|
22 | |
---|
23 | <ul><pre> |
---|
24 | #include <FL/Fl_Spinner.H> |
---|
25 | </pre></ul> |
---|
26 | |
---|
27 | <h3>Description</h3> |
---|
28 | |
---|
29 | <p>The <tt>Fl_Spinner</tt> widget is a combination of the input |
---|
30 | widget and repeat buttons. The user can either type into the |
---|
31 | input area or use the buttons to change the value. |
---|
32 | |
---|
33 | <h3>Methods</h3> |
---|
34 | |
---|
35 | <ul> |
---|
36 | |
---|
37 | <li><a href='#Fl_Spinner.Fl_Spinner'>Fl_Spinner</a></li> |
---|
38 | <li><a href='#Fl_Spinner.~Fl_Spinner'>~Fl_Spinner</a></li> |
---|
39 | <li><a href='#Fl_Spinner.format'>format</a></li> |
---|
40 | <li><a href='#Fl_Spinner.maximum'>maximum</a></li> |
---|
41 | <li><a href='#Fl_Spinner.minimum'>minimum</a></li> |
---|
42 | <li><a href='#Fl_Spinner.range'>range</a></li> |
---|
43 | <li><a href='#Fl_Spinner.step'>step</a></li> |
---|
44 | <li><a href='#Fl_Spinner.textcolor'>textcolor</a></li> |
---|
45 | <li><a href='#Fl_Spinner.textfont'>textfont</a></li> |
---|
46 | <li><a href='#Fl_Spinner.textsize'>textsize</a></li> |
---|
47 | <li><a href='#Fl_Spinner.type'>type</a></li> |
---|
48 | <li><a href='#Fl_Spinner.value'>value</a></li> |
---|
49 | |
---|
50 | </ul> |
---|
51 | |
---|
52 | <h4><a name="Fl_Spinner.Fl_Spinner">Fl_Spinner::Fl_Spinner(int x, int y, int w, |
---|
53 | int h, const char *label = 0)</a></h4> |
---|
54 | |
---|
55 | <p>Creates a new <TT>Fl_Spinner</TT> widget using the given position, size, |
---|
56 | and label string. |
---|
57 | |
---|
58 | <h4><a name="Fl_Spinner.~Fl_Spinner">virtual Fl_Spinner::~Fl_Spinner()</a></h4> |
---|
59 | |
---|
60 | <p>Destroys the widget and any value associated with it. |
---|
61 | |
---|
62 | <h4><a name='Fl_Spinner.format'>void format(const char *f)<br /> |
---|
63 | const char *format()</a></h4> |
---|
64 | |
---|
65 | <p>Sets or returns the format string for the value.</p> |
---|
66 | |
---|
67 | <h4><a name='Fl_Spinner.maximum'>void maximum(double m)<br /> |
---|
68 | double maximum() const</a></h4> |
---|
69 | |
---|
70 | <p>Sets or returns the maximum value of the widget.</p> |
---|
71 | |
---|
72 | <h4><a name='Fl_Spinner.minimum'>void minimum(double m)<br /> |
---|
73 | double minimum() const</a></h4> |
---|
74 | |
---|
75 | <p>Sets or returns the minimum value of the widget.</p> |
---|
76 | |
---|
77 | <h4><a name='Fl_Spinner.range'>void range(double minval, double maxval)</a></h4> |
---|
78 | |
---|
79 | <p>Sets the minimum and maximum values for the widget.</p> |
---|
80 | |
---|
81 | <h4><a name='Fl_Spinner.step'>void step(double s)<br /> |
---|
82 | double step() const</a></h4> |
---|
83 | |
---|
84 | <p>Sets or returns the amount to change the value when the user |
---|
85 | clicks a button. |
---|
86 | Before setting <tt>step</tt> to a non-integer value, the spinner |
---|
87 | <a href='#Fl_Spinner.type'><tt>type()</tt></a> should be changed |
---|
88 | to floating point.</p> |
---|
89 | |
---|
90 | <h4><a name='Fl_Spinner.textcolor'>void textcolor(Fl_Color c)<br /> |
---|
91 | Fl_Color textcolor() const</a></h4> |
---|
92 | |
---|
93 | <p>Sets or returns the color of the text in the input field.</p> |
---|
94 | |
---|
95 | <h4><a name='Fl_Spinner.textfont'>void textfont(uchar f)<br /> |
---|
96 | uchar textfont() const</a></h4> |
---|
97 | |
---|
98 | <p>Sets or returns the font of the text in the input field.</p> |
---|
99 | |
---|
100 | <h4><a name='Fl_Spinner.textsize'>void textsize(uchar s)<br /> |
---|
101 | uchar textsize() const</a></h4> |
---|
102 | |
---|
103 | <p>Sets or returns the size of the text in the input field.</p> |
---|
104 | |
---|
105 | <h4><a name='Fl_Spinner.type'>void type(uchar s)<br /> |
---|
106 | uchar type() const</a></h4> |
---|
107 | |
---|
108 | <p>Sets or returns the numeric representation in the input field. |
---|
109 | Valid values are <tt>FL_INT_INPUT</tt> and <tt>FL_FLOAT_INPUT</tt>. |
---|
110 | The first form also changes the <tt>format()</tt> template. |
---|
111 | Please note that <tt>type</tt> is not a virtual function. |
---|
112 | Setting a new spinner type via a superclass pointer will not work.</p> |
---|
113 | |
---|
114 | <h4><a name="Fl_Spinner.value">void Fl_Spinner::value(double v)<br /> |
---|
115 | double Fl_Spinner::value() const</a></h4> |
---|
116 | |
---|
117 | <p>Sets or returns the current value of the widget. |
---|
118 | Before setting <tt>value</tt> to a non-integer value, the spinner |
---|
119 | <a href='#Fl_Spinner.type'><tt>type()</tt></a> should be changed |
---|
120 | to floating point.</p> |
---|
121 | |
---|
122 | </body> |
---|
123 | </html> |
---|