class Fl_Counter : public Fl_Object

This object is provided for forms compatibility. It controls a single floating point value.

There is a single subclass, Fl_Simple_Counter.

//values for type():
#define FL_NORMAL_COUNTER	0
#define FL_SIMPLE_COUNTER	1

    Fl_Counter(int,int,int,int,const char *);
    ~Fl_Counter();
    float value() const {return value_;}
    int value(float);
    void bounds(float *a,float *b) const {*a = min; *b = max;}
    void bounds(float a,float b) {min = a; max = b;}
    float step() const {return step_;}
    float lstep() const {return lstep_;}
    void step(float a) {step_ = a; lstep_ = 10*a;}
    void step(float a,float b) {step_ = a; lstep_ = b;}
    uchar precision() const {return precision_;}
    void precision(uchar v) {precision_ = v;}
    uchar when() const {return when_;}
    void when(uchar a) {when_ = a;}