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.

WidgetPDial.h 896B

1234567891011121314151617181920212223242526272829303132333435
  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 scale = 1.0, float offset = 0.0);
  16. float transform(float x);
  17. void setRounding(unsigned int digits = 0);
  18. float reset_value;
  19. protected:
  20. bool integer_step;
  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 value_offset;
  30. float value_scale;
  31. };
  32. #endif