From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001
From: Michael R Sweet There are probably more of these classes in FLTK than any others: In the above diagram each box surrounds an actual subclass. These
+ In the above diagram each box surrounds an actual subclass. These
are further differentiated by setting the
-type() of the widget to the symbolic value labeling the
+type() of the widget to the symbolic value labeling the
widget. The ones labelled "0" are the default versions with a
-type(0). For consistency the symbol FL_VERTICAL is
+type(0). For consistency the symbol FL_VERTICAL is
defined as zero.Description
- The Fl_Valuator class controls a single floating-point value
-and provides a consistent interface to set the value, range, and step,
-and insures that callbacks are done the same for every object.
+ The Fl_Valuator class controls a single floating-point value
+and provides a consistent interface to set the value, range, and step,
+and insures that callbacks are done the same for every object.

Methods
The minimum may be greater than the maximum. This has the effect of -"reversing" the object so the larger values are in the opposite -direction. This also switches which end of the filled sliders is + Sets the minimum and maximum values for the valuator. When the user +manipulates the widget, the value is limited to this range. This +clamping is done after rounding to the step value (this makes a +difference if the range is not a multiple of the step). +
The minimum may be greater than the maximum. This has the effect of +"reversing" the object so the larger values are in the opposite +direction. This also switches which end of the filled sliders is filled.
-Some widgets consider this a "soft" range. This means they will -stop at the range, but if the user releases and grabs the control again +
Some widgets consider this a "soft" range. This means they will +stop at the range, but if the user releases and grabs the control again and tries to move it further, it is allowed.
-The range may affect the display. You must redraw() the +
The range may affect the display. You must redraw() the widget after changing the range.
For precision the step is stored as the ratio of two integers, A/B. - You can set these integers directly. Currently setting a floating +before clamping it to the range. For most objects the default step +is zero. +
For precision the step is stored as the ratio of two integers, A/B. + You can set these integers directly. Currently setting a floating point value sets the nearest A/1 or 1/B value possible.