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 #include "Fl_Valuator.h"
00026
00028 class FL_API Fl_Dial : public Fl_Valuator {
00029
00030 public:
00031 static Fl_Named_Style* default_style;
00032
00034 Fl_Dial(int x,int y,int w,int h, const char *l = 0);
00035
00037 Fl_Dial(const char* l = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP,int label_w=100);
00038
00039
00040 enum {
00041 NORMAL = 0,
00042 LINE,
00043 FILL
00044 };
00045
00046 short angle1() const {return a1;}
00047 void angle1(short a) {a1 = a;}
00048 short angle2() const {return a2;}
00049 void angle2(short a) {a2 = a;}
00050 void angles(short a, short b) {a1 = a; a2 = b;}
00051
00052 virtual int handle(int);
00053 virtual void draw();
00054
00055 private:
00056 short a1,a2;
00057 };
00058
00059 #endif