summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-10 08:17:43 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-10 08:17:43 +0000
commitb6115887c86b6f3fa9591becb23a77af19fc2b95 (patch)
tree6d7d47819b1dfa77f7641d70fc7b7d27b37d0eae /documentation
parent170c31cada99660d123aa81993da0b995778be83 (diff)
Changes to dial so that counter-clockwise motion is supported if you
set angle2 < angle1. Deleted the unimplemented direction() control. Fixed the documentation, this new code allows any 2 values for the angles as long as abs(a-b)<=360. git-svn-id: file:///fltk/svn/fltk/trunk@399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Fl_Dial.html26
1 files changed, 18 insertions, 8 deletions
diff --git a/documentation/Fl_Dial.html b/documentation/Fl_Dial.html
index db0659f8e..395f4ce9e 100644
--- a/documentation/Fl_Dial.html
+++ b/documentation/Fl_Dial.html
@@ -23,6 +23,8 @@ single floating point value.
<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>angle1</A></LI>
+<LI><A href=#Fl_Dial.angles>angle2</A></LI>
<LI><A href=#Fl_Dial.angles>angles</A></LI>
<LI><A href=#Fl_Dial.type>type</A></LI>
</UL>
@@ -32,14 +34,22 @@ h, const char *label = 0)</A></H4>
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 0 and 360, respectively. (0 degrees is straight down and the
-angles progress clockwise.) The angles specified should be greater than
-or equal to 0 and less than or equal to 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.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.
+
<H4><A name=Fl_Dial.type>type(uchar)</A></H4>
Sets the type of the dial to:
<UL>