[773] | 1 | // |
---|
| 2 | // "$Id: ThumbWheel.h 3418 2004-05-15 20:52:47Z spitzak $" |
---|
| 3 | // |
---|
| 4 | // Inventor-style thumbwheel control for a single floating point value. |
---|
| 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_ThumbWheel_h |
---|
| 27 | #define fltk_ThumbWheel_h |
---|
| 28 | |
---|
| 29 | #ifndef fltk_Valuator_h |
---|
| 30 | #include "Valuator.h" |
---|
| 31 | #endif |
---|
| 32 | |
---|
| 33 | namespace fltk { |
---|
| 34 | |
---|
| 35 | class FL_API ThumbWheel : public Valuator { |
---|
| 36 | public: |
---|
| 37 | #ifdef FLTK_1_SLIDER |
---|
| 38 | // for back-compatability only |
---|
| 39 | enum {HORIZONTAL = 1}; |
---|
| 40 | #endif |
---|
| 41 | int handle(int); |
---|
| 42 | ThumbWheel(int X,int Y,int W,int H,const char* L=0); |
---|
| 43 | |
---|
| 44 | protected: |
---|
| 45 | void draw(); |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | #endif |
---|
| 51 | |
---|
| 52 | // |
---|
| 53 | // End of "$Id: ThumbWheel.h 3418 2004-05-15 20:52:47Z spitzak $". |
---|
| 54 | // |
---|