source: NonGTP/include/fltk/ValueInput.h @ 769

Revision 769, 1.5 KB checked in by gumbau, 18 years ago (diff)

FLTK imported to SVN repository to be linked agains the GeoTool? application

Line 
1//
2// "$Id: ValueInput.h 4318 2005-05-08 03:10:40Z spitzak $"
3//
4// Text field for inputing a floating-point number
5//
6// Copyright 1998-2003 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#ifndef fltk_ValueInput_h
27#define fltk_ValueInput_h
28
29#include "Valuator.h"
30#include "FloatInput.h"
31
32namespace fltk {
33
34class FL_API ValueInput : public Valuator {
35public:
36  FloatInput input;
37
38  int handle(int);
39  void draw();
40  ValueInput(int x,int y,int w,int h,const char *l=0);
41  ~ValueInput();
42
43protected:
44  void layout();
45  virtual void value_damage(); // cause damage() due to value() changing
46
47private:
48  static void input_cb(Widget*,void*);
49  void increment_cb();
50  static void repeat_callback(void* v);
51};
52
53}
54#endif
55
56//
57// End of "$Id: ValueInput.h 4318 2005-05-08 03:10:40Z spitzak $".
58//
Note: See TracBrowser for help on using the repository browser.