Update the changelog
[opencv] / otherlibs / _fltk / include / FL / Fl_Counter.H
1 //
2 // "$Id: Fl_Counter.H,v 1.2 2002/12/01 15:38:37 neurosurg Exp $"
3 //
4 // Counter header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2002 by Bill Spitzak and others.
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // Library General Public License for more details.
17 //
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 // USA.
22 //
23 // Please report all bugs and problems to "fltk-bugs@fltk.org".
24 //
25
26 // A numerical value with up/down step buttons.  From Forms.
27
28 #ifndef Fl_Counter_H
29 #define Fl_Counter_H
30
31 #ifndef Fl_Valuator_H
32 #include "Fl_Valuator.H"
33 #endif
34
35 // values for type():
36 #define FL_NORMAL_COUNTER       0
37 #define FL_SIMPLE_COUNTER       1
38
39 class FL_EXPORT Fl_Counter : public Fl_Valuator {
40
41   uchar textfont_, textsize_;
42   unsigned textcolor_;
43   double lstep_;
44   uchar mouseobj;
45   static void repeat_callback(void *);
46   int calc_mouseobj();
47   void increment_cb();
48
49 protected:
50
51   void draw();
52
53 public:
54
55   int handle(int);
56   Fl_Counter(int,int,int,int,const char * = 0);
57   ~Fl_Counter();
58   void lstep(double a) {lstep_ = a;}
59   void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
60   void step(double a) {Fl_Valuator::step(a);}
61   Fl_Font textfont() const {return (Fl_Font)textfont_;}
62   void textfont(uchar s) {textfont_ = s;}
63   uchar textsize() const {return textsize_;}
64   void textsize(uchar s) {textsize_ = s;}
65   Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
66   void textcolor(unsigned s) {textcolor_ = s;}
67
68 };
69
70 #endif
71
72 //
73 // End of "$Id: Fl_Counter.H,v 1.2 2002/12/01 15:38:37 neurosurg Exp $".
74 //