summaryrefslogtreecommitdiff
path: root/documentation/Fl_Dial.html
blob: a320d7df5484098093b6f2aa9dd6873080eb10c2 (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
<HTML><BODY>
<HR break>
<H2><A name=Fl_Dial>class Fl_Dial</A></H2>
<HR>
<H3>Class Hierarchy</H3>
<UL>
<PRE>
<A href=Fl_Valuator.html#Fl_Valuator>Fl_Valuator</A>
   |
   +----<B>Fl_Dial</B>
</PRE>
</UL>
<H3>Include Files</H3>
<UL>
<PRE>
#include &lt;FL/Fl_Dial.H&gt;
</PRE>
</UL>
<H3>Description</H3>
 The <TT>Fl_Dial</TT> widget provides a circular dial to control a 
single floating point value. 
<H3>Methods</H3>
<UL>
<LI><A href=#Fl_Dial.Fl_Dial>Fl_Dial</A></LI>
<LI><A href=#Fl_Dial.~Fl_Dial>~Fl_Dial</A></LI>
<LI><A href=#Fl_Dial.angles>angles</A></LI>
<LI><A href=#Fl_Dial.type>type</A></LI>
</UL>
<H4><A name=Fl_Dial.Fl_Dial>Fl_Dial::Fl_Dial(int x, int y, int w, int 
h, const char *label = 0)</A></H4>
 Creates a new <TT>Fl_Dial</TT> widget using the given position, size, 
and label string. The default type is <TT>FL_NORMAL_DIAL</TT>. 
<H4><A name=Fl_Dial.~Fl_Dial>virtual Fl_Dial::~Fl_Dial()</A></H4>
 Destroys the valuator. 
<H4><A name=Fl_Dial.angles>void Fl_Dial::angles(short a, short b)</A></H4>
 Sets the angles used for the minimum and maximum values.  By default 
these are 225 and 135, respectively.  (0 degrees is straight up and the
angles progress clockwise.)  The angles specified should be greater than
or equal to 0 and less than 360.  The progress of the dial always starts at
the minimum angle and progresses clockwise to the maximum angle.  Currently,
counter-clockwise progression is not supported (but user code can always
use 1/value()).
<H4><A name=Fl_Dial.type>type(uchar)</A></H4>
 Sets the type of the dial to: 
<UL>
<LI><TT>FL_NORMAL_DIAL</TT> - Draws a normal dial with a knob. </LI>
<LI><TT>FL_LINE_DIAL</TT> - Draws a dial with a line. </LI>
<LI><TT>FL_FILL_DIAL</TT> - Draws a dial with a filled arc. </LI>
</UL>
</BODY></HTML>