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.

34 lines
834B

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