summaryrefslogtreecommitdiff
path: root/FL/Fl_Counter.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2008-09-16 06:49:08 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2008-09-16 06:49:08 +0000
commite20eeb65413d0cf1a94d682c51d781314beeda6d (patch)
tree8d2c124fb6f409a024a8c9a11785d8fdc5008a64 /FL/Fl_Counter.H
parent5da1c0f71f3fd299c5bf50df911fc4cdb3ac96c0 (diff)
applied Duncan Gibson's documentation patch (WP3).
Docs look good, compiles okay. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Counter.H')
-rw-r--r--FL/Fl_Counter.H25
1 files changed, 23 insertions, 2 deletions
diff --git a/FL/Fl_Counter.H b/FL/Fl_Counter.H
index 6cf1e6fee..6a7a60055 100644
--- a/FL/Fl_Counter.H
+++ b/FL/Fl_Counter.H
@@ -3,7 +3,7 @@
//
// Counter header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2005 by Bill Spitzak and others.
+// Copyright 1998-2008 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
@@ -38,6 +38,19 @@
#define FL_NORMAL_COUNTER 0
#define FL_SIMPLE_COUNTER 1
+/**
+ \class Fl_Counter
+ \brief Fl_Counter widget for Forms compatibility.
+
+ The Fl_Counter widget is provided for forms compatibility.
+ It controls a single floating point value.
+
+ \todo Refactor the doxygen comments for Fl_Counter type() documentation.
+
+ The type of an Fl_Counter object can be set using type(uchar t) to:
+ \li \c FL_NORMAL_COUNTER: Displays a counter with 4 arrow buttons.
+ \li \c FL_SIMPLE_COUNTER: Displays a counter with only 2 arrow buttons.
+ */
class FL_EXPORT Fl_Counter : public Fl_Valuator {
Fl_Font textfont_;
@@ -56,9 +69,17 @@ protected:
public:
int handle(int);
- Fl_Counter(int,int,int,int,const char * = 0);
+
+ Fl_Counter(int X, int Y, int W, int H, const char* L = 0);
~Fl_Counter();
+
+ /**
+ Set the increment for the double-arrow buttons.
+ The default value is 1.0.
+ \param[in] a increment value
+ */
void lstep(double a) {lstep_ = a;}
+
void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
void step(double a) {Fl_Valuator::step(a);}
Fl_Font textfont() const {return textfont_;}