00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef Fl_Dial_H
00023 #define Fl_Dial_H
00024
00025 #ifndef Fl_Valuator_H
00026 #include "Fl_Valuator.H"
00027 #endif
00028
00029
00030 #define FL_NORMAL_DIAL 0
00031 #define FL_LINE_DIAL 1
00032 #define FL_FILL_DIAL 2
00047 class FL_EXPORT Fl_Dial : public Fl_Valuator {
00048
00049 short a1,a2;
00050
00051 protected:
00052
00053
00054 void draw(int X, int Y, int W, int H);
00055 int handle(int event, int X, int Y, int W, int H);
00056 void draw();
00057
00058 public:
00059
00060 int handle(int);
00065 Fl_Dial(int x,int y,int w,int h, const char *l = 0);
00072 short angle1() const {return a1;}
00074 void angle1(short a) {a1 = a;}
00076 short angle2() const {return a2;}
00078 void angle2(short a) {a2 = a;}
00080 void angles(short a, short b) {a1 = a; a2 = b;}
00081
00082 };
00083
00084 #endif
00085
00086
00087
00088