summaryrefslogtreecommitdiff
path: root/documentation/Fl_Counter.html
blob: 42551fefabd9a73d0be9c3cc96183e2224d0150c (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
<html>
<body>

<hr break>

<h2><a name="Fl_Counter">class Fl_Counter</a></h2>

<hr>

<h3>Class Hierarchy</h3>

<ul><pre>
<a href="#Fl_Valuator">Fl_Valuator</a>
   |
   +----<b>Fl_Counter</b>
</pre></ul>

<h3>Include Files</h3>

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

<h3>Description</h3>

The <tt>Fl_Counter</tt> widget is provided for forms compatibility.  It
controls a single floating point value.

<h3>Methods</h3>

<ul>
	<li><a href="#Fl_Counter.Fl_Counter">Fl_Counter</a>
	<li><a href="#Fl_Counter.~Fl_Counter">~Fl_Counter</a>
	<li><a href="#Fl_Counter.lstep">lstep</a>
	<li><a href="#Fl_Counter.type">type</a>
</ul>

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

Creates a new <tt>Fl_Counter</tt> widget using the given position, size, and
label string. The default type is <tt>FL_NORMAL_COUNTER</tt>.

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

Destroys the valuator.

<h4><a name="Fl_Counter.lstep">double Fl_Counter::lstep() const<br>
void Fl_Counter::lstep(double)</a></h4>

Get or set the increment for the double-arrow buttons.  The default
value is 1.0.

<h4><a name="Fl_Counter.type">type(uchar)</a></h4>

Sets the type of counter:

<ul>
	<li><tt>FL_NORMAL_COUNTER</tt> - Displays a counter with 4 arrow
	buttons.

	<li><tt>FL_SIMPLE_COUNTER</tt> - Displays a counter with only 2
	arrow buttons.
</ul>

</body>
</html>