DPF Plugin examples
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.

65 lines
1.4KB

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0300
  2. #ifndef ducka_widget_h
  3. #define ducka_widget_h
  4. #include <FL/Fl.H>
  5. #include <FL/Fl_Double_Window.H>
  6. //#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
  7. #include "DistrhoUI.hpp"
  8. #include "avtk.h"
  9. #include <stdio.h>
  10. #include "header.c"
  11. using namespace std;
  12. // keep things inside the namespace to prevent issues with public symbols
  13. START_NAMESPACE_DISTRHO
  14. class DuckaUI {
  15. public:
  16. void update_button(int button);
  17. DuckaUI(UI* const ui);
  18. Fl_Double_Window *window;
  19. Avtk::Image *headerImage;
  20. private:
  21. void cb_headerImage_i(Avtk::Image*, void*);
  22. static void cb_headerImage(Avtk::Image*, void*);
  23. public:
  24. Avtk::SidechainGain *graph;
  25. private:
  26. void cb_graph_i(Avtk::SidechainGain*, void*);
  27. static void cb_graph(Avtk::SidechainGain*, void*);
  28. public:
  29. Avtk::Dial *threshold;
  30. private:
  31. void cb_threshold_i(Avtk::Dial*, void*);
  32. static void cb_threshold(Avtk::Dial*, void*);
  33. public:
  34. Avtk::Dial *drop;
  35. private:
  36. void cb_drop_i(Avtk::Dial*, void*);
  37. static void cb_drop(Avtk::Dial*, void*);
  38. public:
  39. Avtk::Dial *time;
  40. private:
  41. void cb_time_i(Avtk::Dial*, void*);
  42. static void cb_time(Avtk::Dial*, void*);
  43. public:
  44. int getWidth();
  45. int getHeight();
  46. private:
  47. UI* const ui;
  48. float gain;
  49. float cutoff;
  50. float Q;
  51. public:
  52. void setHostParameter(uint32_t index, float value);
  53. void close_cb(Fl_Widget* o, void*);
  54. };
  55. END_NAMESPACE_DISTRHO
  56. #endif