You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
968B

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0100
  2. #ifndef Fl_Knob_H
  3. #define Fl_Knob_H
  4. #include <FL/Fl.H>
  5. #include <FL/Fl_Valuator.H>
  6. class Fl_Knob : public Fl_Valuator {
  7. public:
  8. enum Fl_Knobtype {DOTLIN=0,DOTLOG_1,DOTLOG_2,DOTLOG_3,LINELIN,LINELOG_1,LINELOG_2,LINELOG_3};
  9. private:
  10. int _type;
  11. float _percent;
  12. float _capsize;
  13. int _capr,_capg,_capb;
  14. int _scaleticks;
  15. short a1,a2;
  16. public:
  17. Fl_Knob(int xx,int yy,int ww,int hh,const char *l=0);
  18. ~Fl_Knob();
  19. private:
  20. void draw();
  21. int handle(int event);
  22. void shadow(const int offs,const uchar r,uchar g,uchar b);
  23. void draw_scale(const int ox,const int oy,const int side);
  24. void draw_cursor(const int ox,const int oy,const int side);
  25. public:
  26. void type(int ty);
  27. void cursor(const int pc);
  28. void scaleticks(const int tck);
  29. void capsize(const float percent);
  30. void capcolor(const Fl_Color col);
  31. void capcolor(const uchar cr,const uchar cg,const uchar cb);
  32. };
  33. #endif