Reorganized Doxygen docs of Fl_Spinner::type() functions.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2011-01-30 08:45:34 +00:00
parent 0e55ee68d0
commit ff39941c20

View File

@@ -233,14 +233,16 @@ class FL_EXPORT Fl_Spinner : public Fl_Group {
void textsize(Fl_Fontsize s) {
input_.textsize(s);
}
/** Sets or Gets the numeric representation in the input field.
Valid values are FL_INT_INPUT and FL_FLOAT_INPUT.
The first form also changes the format() template.
Setting a new spinner type via a superclass pointer will not work.
\note type is not a virtual function.
/** Gets the numeric representation in the input field.
\see Fl_Spinner::type(uchar) */
*/
uchar type() const { return (input_.type()); }
/** See uchar Fl_Spinner::type() const */
/** Sets the numeric representation in the input field.
Valid values are FL_INT_INPUT and FL_FLOAT_INPUT.
Also changes the format() template.
Setting a new spinner type via a superclass pointer will not work.
\note type is not a virtual function.
*/
void type(uchar v) {
if (v==FL_FLOAT_INPUT) {
format("%.*f");