From b6115887c86b6f3fa9591becb23a77af19fc2b95 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 10 Mar 1999 08:17:43 +0000 Subject: 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 --- documentation/Fl_Dial.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'documentation') 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. @@ -32,14 +34,22 @@ h, const char *label = 0) and label string. The default type is FL_NORMAL_DIAL.

virtual Fl_Dial::~Fl_Dial()

Destroys the valuator. -

void Fl_Dial::angles(short a, short b)

- 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()). + +

+ +short Fl_Dial::angle1() const;
+void Fl_Dial::angle1(short);
+short Fl_Dial::angle2() const;
+void Fl_Dial::angle2(short);
+void Fl_Dial::angles(short a, short b); +
+

+ +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. +

type(uchar)

Sets the type of the dial to: