summaryrefslogtreecommitdiff
path: root/documentation/Fl_Spinner.html
blob: ab6383c77510a9a4b398cc7920262da89fc6b1c4 (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<body>

<!-- NEW PAGE -->

<h2><a name=Fl_Spinner>class Fl_Spinner</a></h2>

<hr>

<h3>Class Hierarchy</h3>

<ul><pre>
<a href=Fl_Group.html#Fl_Group>Fl_Group</a>
   |
   +----<b>Fl_Spinner</b>
           |
           +----<a href=Fl_Input.html#Fl_Input>Fl_Input</a>
                <a href=Fl_Repeat_Button.html#Fl_Repeat_Button>Fl_Repeat_Button</a>
</pre></ul>

<h3>Include Files</h3>

<ul><pre>
#include &lt;FL/Fl_Spinner.H&gt;
</pre></ul>

<h3>Description</h3>

<p>The <tt>Fl_Spinner</tt> widget is a combination of the input
widget and repeat buttons. The user can either type into the
input area or use the buttons to change the value.

<h3>Methods</h3>

<ul>

	<li><a href='#Fl_Spinner.Fl_Spinner'>Fl_Spinner</a></li>
	<li><a href='#Fl_Spinner.~Fl_Spinner'>~Fl_Spinner</a></li>
	<li><a href='#Fl_Spinner.format'>format</a></li>
	<li><a href='#Fl_Spinner.maximum'>maximum</a></li>
	<li><a href='#Fl_Spinner.minimum'>minimum</a></li>
	<li><a href='#Fl_Spinner.range'>range</a></li>
	<li><a href='#Fl_Spinner.step'>step</a></li>
	<li><a href='#Fl_Spinner.textcolor'>textcolor</a></li>
	<li><a href='#Fl_Spinner.textfont'>textfont</a></li>
	<li><a href='#Fl_Spinner.textsize'>textsize</a></li>
	<li><a href='#Fl_Spinner.value'>value</a></li>

</ul>

<h4><a name="Fl_Spinner.Fl_Spinner">Fl_Spinner::Fl_Spinner(int x, int y, int w,
int h, const char *label = 0)</a></h4>

<p>Creates a new <TT>Fl_Spinner</TT> widget using the given position, size,
and label string.

<h4><a name="Fl_Spinner.~Fl_Spinner">virtual Fl_Spinner::~Fl_Spinner()</a></h4>

<p>Destroys the widget and any value associated with it.

<h4><a name='Fl_Spinner.format'>void format(const char *f)<br />
const char *format()</a></h4>

<p>Sets or returns the format string for the value.</p>

<h4><a name='Fl_Spinner.maximum'>void maximum(double m)<br />
double maximum() const</a></h4>

<p>Sets or returns the maximum value of the widget.</p>

<h4><a name='Fl_Spinner.minimum'>void minimum(double m)<br />
double minimum() const</a></h4>

<p>Sets or returns the minimum value of the widget.</p>

<h4><a name='Fl_Spinner.range'>void range(double minval, double maxval)</a></h4>

<p>Sets the minimum and maximum values for the widget.</p>

<h4><a name='Fl_Spinner.step'>void step(double s)<br />
double step() const</a></h4>

<p>Sets or returns the amount to change the value when the user
clicks a button.</p>

<h4><a name='Fl_Spinner.textcolor'>void textcolor(Fl_Color c)<br />
Fl_Color textcolor() const</a></h4>

<p>Sets or returns the color of the text in the input field.</p>

<h4><a name='Fl_Spinner.textfont'>void textfont(uchar f)<br />
uchar textfont() const</a></h4>

<p>Sets or returns the font of the text in the input field.</p>

<h4><a name='Fl_Spinner.textsize'>void textsize(uchar s)<br />
uchar textsize() const</a></h4>

<p>Sets or returns the size of the text in the input field.</p>

<h4><a name="Fl_Spinner.value">void Fl_Spinner::value(double v)<br />
double Fl_Spinner::value() const</a></h4>

<p>Sets or returns the current value of the widget.</p>

</body>
</html>