Audio plugin host https://kx.studio/carla
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
890B

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0107f
  2. #ifndef WIDGETPDIAL_h
  3. #define WIDGETPDIAL_h
  4. #include <FL/Fl_Dial.H>
  5. #include "TipWin.h"
  6. class WidgetPDial:public Fl_Dial
  7. {
  8. public:
  9. WidgetPDial(int x, int y, int w, int h, const char *label = 0);
  10. ~WidgetPDial();
  11. int handle(int event);
  12. void draw();
  13. void pdialcolor(int r, int g, int b);
  14. void tooltip(const char *c);
  15. void set_transform(float (*transformer)(float));
  16. void set_rounding(unsigned int digits = 0);
  17. float reset_value;
  18. protected:
  19. bool integer_step;
  20. bool use_rounding;
  21. private:
  22. void getPos();
  23. void resetPos();
  24. double oldvalue;
  25. int old_y;
  26. bool pos;
  27. bool textset;
  28. class TipWin * tipwin;
  29. float (*transform)(float);
  30. int mod_state;
  31. };
  32. #endif