1 | // |
---|
2 | // "$Id: Adjuster.h 2871 2002-12-10 02:01:07Z easysw $" |
---|
3 | // |
---|
4 | // Copyright 1998-2003 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 | // Undocumented valuator provided for back-compatability. |
---|
25 | // This may be removed before the final version. |
---|
26 | // 3-button "slider", made for Nuke |
---|
27 | |
---|
28 | #ifndef fltk_Adjuster_h |
---|
29 | #define fltk_Adjuster_h |
---|
30 | |
---|
31 | #include "Valuator.h" |
---|
32 | |
---|
33 | namespace fltk { |
---|
34 | |
---|
35 | class FL_API Adjuster : public Valuator { |
---|
36 | public: |
---|
37 | Adjuster(int x, int y, int w, int h, const char *l=0); |
---|
38 | static NamedStyle* default_style; |
---|
39 | void soft(int x) {soft_ = x;} |
---|
40 | int soft() const {return soft_;} |
---|
41 | int handle(int); |
---|
42 | |
---|
43 | protected: |
---|
44 | void draw(); |
---|
45 | void value_damage(); |
---|
46 | |
---|
47 | private: |
---|
48 | int drag, highlight, last; |
---|
49 | int ix; |
---|
50 | int soft_; |
---|
51 | }; |
---|
52 | |
---|
53 | } |
---|
54 | #endif |
---|
55 | |
---|
56 | // |
---|
57 | // End of "$Id: Adjuster.h 2871 2002-12-10 02:01:07Z easysw $". |
---|
58 | // |
---|