summaryrefslogtreecommitdiff
path: root/src/Fl_Valuator.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-08 13:51:01 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-08 13:51:01 +0000
commitbcb756da38ff65e028ca054f0bfae7cd122a7349 (patch)
treec534d4afe2f90b14d11f0b75516fbd65873e277a /src/Fl_Valuator.cxx
parentad230031f5e3f1a2777645f45cbf01aa5e2c97db (diff)
Improve documentation of Fl_Valuator class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Valuator.cxx')
-rw-r--r--src/Fl_Valuator.cxx34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/Fl_Valuator.cxx b/src/Fl_Valuator.cxx
index dcc3bf1b6..3be6a29ed 100644
--- a/src/Fl_Valuator.cxx
+++ b/src/Fl_Valuator.cxx
@@ -3,7 +3,7 @@
//
// Valuator widget for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -65,16 +65,18 @@ void Fl_Valuator::precision(int digits) {
A = 1.0;
for (B = 1; digits--;) B *= 10;
}
-/** Asks for partial redraw */
+
+/** Asks for partial redraw */
void Fl_Valuator::value_damage() {damage(FL_DAMAGE_EXPOSE);} // by default do partial-redraw
/**
- Sets the current value. The new value is <I>not</I>
+ Sets the current value. The new value is \e not
clamped or otherwise changed before storing it. Use
clamp() or round() to modify the value before
calling value(). The widget is redrawn if the new value
is different than the current one. The initial value is zero.
- <P>changed() will return true if the user has moved the slider,
+
+ changed() will return true if the user has moved the slider,
but it will be turned off by value(x) and just before doing a callback
(the callback can turn it back on if desired).
*/
@@ -147,23 +149,23 @@ double Fl_Valuator::increment(double v, int n) {
/**
Uses internal rules to format the fields numerical value into
- the character array pointed to by the passed parameter.</P>
+ the character array pointed to by the passed parameter.
- <P>The actual format used depends on the current step value. If
- the step value has been set to zero then a %g format is used.
- If the step value is non-zero, then a %.*f format is used,
+ The actual format used depends on the current step value. If
+ the step value has been set to zero then a \%g format is used.
+ If the step value is non-zero, then a \%.*f format is used,
where the precision is calculated to show sufficient digits
for the current step value. An integer step value, such as 1
or 1.0, gives a precision of 0, so the formatted value will
- appear as an integer.</P>
-
- <P>This method is used by the Fl_Value_... group of widgets to
- format the current value into a text string.
+ appear as an integer.
+
+ This method is used by the Fl_Valuator_... group of widgets to
+ format the current value into a text string.
The return value is the length of the formatted text.
- The formatted value is written into in <i>buffer</i>.
- <i>buffer</i> should have space for at least 128 bytes.</P>
-
- <P>You may override this function to create your own text formatting.
+ The formatted value is written into \p buffer.
+ \p buffer should have space for at least 128 bytes.
+
+ You may override this function to create your own text formatting.
*/
int Fl_Valuator::format(char* buffer) {
double v = value();