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

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

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

Line 
1//
2// "$Id: ValueSlider.h 4366 2005-05-23 05:11:51Z spitzak $"
3//
4// Copyright 1998-2002 by Bill Spitzak and others.
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Library General Public
8// License as published by the Free Software Foundation; either
9// version 2 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14// Library General Public License for more details.
15//
16// You should have received a copy of the GNU Library General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19// USA.
20//
21// Please report all bugs and problems to "fltk-bugs@fltk.org".
22//
23
24#ifndef fltk_Value_Slider_h
25#define fltk_Value_Slider_h
26
27#include "Slider.h"
28#include "FloatInput.h"
29
30namespace fltk {
31
32class FL_API ValueSlider : public Slider {
33public:
34  FloatInput input;
35  int handle(int);
36  void draw();
37  ValueSlider(int x,int y,int w,int h, const char *l = 0);
38  ~ValueSlider();
39  void layout();
40  virtual void value_damage(); // cause damage() due to value() changing
41
42private:
43  static void input_cb(Widget*,void*);
44  void slider_rect(Rectangle&);
45};
46
47}
48#endif
49
50//
51// End of "$Id: ValueSlider.h 4366 2005-05-23 05:11:51Z spitzak $".
52//
Note: See TracBrowser for help on using the repository browser.