1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <TITLE>Fl_Counter</TITLE> |
---|
4 | </HEAD> |
---|
5 | <BODY> |
---|
6 | <!-- NEW PAGE --> |
---|
7 | <H2><A name=Fl_Counter>class Fl_Counter</A></H2> |
---|
8 | <HR> |
---|
9 | <H3>Class Hierarchy</H3> |
---|
10 | <UL> |
---|
11 | <PRE> |
---|
12 | <A href=Fl_Valuator.html#Fl_Valuator>Fl_Valuator</A> |
---|
13 | | |
---|
14 | +----<B>Fl_Counter</B> |
---|
15 | </PRE> |
---|
16 | </UL> |
---|
17 | <H3>Include Files</H3> |
---|
18 | <UL> |
---|
19 | <PRE> |
---|
20 | #include <FL/Fl_Counter.H> |
---|
21 | </PRE> |
---|
22 | </UL> |
---|
23 | <H3>Description</H3> |
---|
24 | The <TT>Fl_Counter</TT> widget is provided for forms compatibility. |
---|
25 | It controls a single floating point value. |
---|
26 | <P ALIGN=CENTER><IMG src="counter.gif" ALT="Fl_Counter widget."></P> |
---|
27 | <H3>Methods</H3> |
---|
28 | <UL> |
---|
29 | <LI><A href=#Fl_Counter.Fl_Counter>Fl_Counter</A></LI> |
---|
30 | <LI><A href=#Fl_Counter.~Fl_Counter>~Fl_Counter</A></LI> |
---|
31 | <LI><A href=#Fl_Counter.lstep>lstep</A></LI> |
---|
32 | <LI><A href=#Fl_Counter.type>type</A></LI> |
---|
33 | </UL> |
---|
34 | <H4><A name=Fl_Counter.Fl_Counter>Fl_Counter::Fl_Counter(int x, int y, |
---|
35 | int w, int h, const char *label = 0)</A></H4> |
---|
36 | Creates a new <TT>Fl_Counter</TT> widget using the given position, |
---|
37 | size, and label string. The default type is <TT>FL_NORMAL_COUNTER</TT>. |
---|
38 | <H4><A name=Fl_Counter.~Fl_Counter>virtual Fl_Counter::~Fl_Counter()</A></H4> |
---|
39 | Destroys the valuator. |
---|
40 | <H4><A name=Fl_Counter.lstep>double Fl_Counter::lstep() const</A></H4> |
---|
41 | Set the increment for the double-arrow buttons. The default |
---|
42 | value is 1.0. |
---|
43 | <H4><A name=Fl_Counter.type>type(uchar)</A></H4> |
---|
44 | Sets the type of counter: |
---|
45 | <UL> |
---|
46 | <LI><TT>FL_NORMAL_COUNTER</TT> - Displays a counter with 4 arrow |
---|
47 | buttons. </LI> |
---|
48 | <LI><TT>FL_SIMPLE_COUNTER</TT> - Displays a counter with only 2 arrow |
---|
49 | buttons. </LI> |
---|
50 | </UL> |
---|
51 | </BODY></HTML> |
---|