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.

47 lines
1.2KB

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. WidgetPDial.h - Fl_Dial Custom Behavior
  4. Copyright (C) 2016 Mark McCurry
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. */
  10. // generated by Fast Light User Interface Designer (fluid) version 1.0107f
  11. #ifndef WIDGETPDIAL_h
  12. #define WIDGETPDIAL_h
  13. #include <FL/Fl_Dial.H>
  14. #include "TipWin.h"
  15. class WidgetPDial:public Fl_Dial
  16. {
  17. public:
  18. WidgetPDial(int x, int y, int w, int h, const char *label = 0);
  19. ~WidgetPDial();
  20. int handle(int event);
  21. void draw();
  22. void pdialcolor(int r, int g, int b);
  23. void tooltip(const char *c);
  24. void set_transform(float (*transformer)(float));
  25. void set_rounding(unsigned int digits = 0);
  26. float reset_value;
  27. protected:
  28. bool integer_step;
  29. bool use_rounding;
  30. private:
  31. void getPos();
  32. void resetPos();
  33. double oldvalue;
  34. int old_y;
  35. bool pos;
  36. bool textset;
  37. class TipWin * tipwin;
  38. float (*transform)(float);
  39. int mod_state;
  40. };
  41. #endif