1999-01-13 22:28:54 +03:00
|
|
|
<HTML><BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<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>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Dial</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Dial.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
The <TT>Fl_Dial</TT> widget provides a circular dial to control a
|
|
|
|
single floating point value.
|
2001-10-01 00:25:36 +04:00
|
|
|
<P ALIGN=CENTER><IMG src="dial.gif" ALT="Fl_Dial widget."></P>
|
1999-01-13 22:28:54 +03:00
|
|
|
<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>
|
1999-03-10 11:17:43 +03:00
|
|
|
<LI><A href=#Fl_Dial.angles>angle1</A></LI>
|
|
|
|
<LI><A href=#Fl_Dial.angles>angle2</A></LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
<LI><A href=#Fl_Dial.angles>angles</A></LI>
|
|
|
|
<LI><A href=#Fl_Dial.type>type</A></LI>
|
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Dial.Fl_Dial>Fl_Dial::Fl_Dial(int x, int y, int w, int
|
1999-01-13 22:28:54 +03:00
|
|
|
h, const char *label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
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>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Dial.~Fl_Dial>virtual Fl_Dial::~Fl_Dial()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Destroys the valuator.
|
1999-03-10 11:17:43 +03:00
|
|
|
|
|
|
|
<H4>
|
|
|
|
<A name=Fl_Dial.angles>
|
|
|
|
short Fl_Dial::angle1() const;<br>
|
|
|
|
void Fl_Dial::angle1(short);<br>
|
|
|
|
short Fl_Dial::angle2() const;<br>
|
|
|
|
void Fl_Dial::angle2(short);<br>
|
|
|
|
void Fl_Dial::angles(short a, short b);
|
|
|
|
</A>
|
|
|
|
</H4>
|
|
|
|
|
|
|
|
Sets the angles used for the minimum and maximum values. The default
|
|
|
|
values are 45 and 315 (0 degrees is straight down and the angles
|
|
|
|
progress clockwise). Normally angle1 is less than angle2, but if you
|
|
|
|
reverse them the dial moves counter-clockwise.
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Dial.type>type(uchar)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Sets the type of the dial to:
|
1999-01-13 22:28:54 +03:00
|
|
|
<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>
|
2001-10-01 00:25:36 +04:00
|
|
|
</BODY></HTML>
|