source: NonGTP/FLTK/include/fltk/FloatInput.h @ 773

Revision 773, 1.6 KB checked in by gumbau, 19 years ago (diff)

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

RevLine 
[773]1//
2// "$Id: FloatInput.h 3195 2004-01-18 18:35:29Z spitzak $"
3//
4// NumericInput modified to only allow floating point to by
5// typed. Currently this is implemented by the base class by checking
6// type() but this may change in the future.
7//
8// Copyright 1998-2003 by Bill Spitzak and others.
9//
10// This library is free software; you can redistribute it and/or
11// modify it under the terms of the GNU Library General Public
12// License as published by the Free Software Foundation; either
13// version 2 of the License, or (at your option) any later version.
14//
15// This library is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18// Library General Public License for more details.
19//
20// You should have received a copy of the GNU Library General Public
21// License along with this library; if not, write to the Free Software
22// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23// USA.
24//
25// Please report all bugs and problems to "fltk-bugs@fltk.org".
26//
27
28#ifndef fltk_FloatInput_h
29#define fltk_FloatInput_h
30
31#include "NumericInput.h"
32
33namespace fltk {
34
35class FL_API FloatInput : public NumericInput {
36  virtual bool replace(int, int, const char*, int);
37public:
38  enum {FLOAT = 0, INT = 1};
39  FloatInput(int x,int y,int w,int h,const char *l = 0)
40    : NumericInput(x,y,w,h,l) {}
41  long lvalue() const;
42  int ivalue() const {return int(lvalue());}
43  double fvalue() const;
44};
45
46}
47#endif
48
49//
50// End of "$Id: FloatInput.h 3195 2004-01-18 18:35:29Z spitzak $".
51//
Note: See TracBrowser for help on using the repository browser.