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.

Fl_Osc_Dial.H 1014B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <FL/Fl_Dial.H>
  3. #include "WidgetPDial.h"
  4. #include "Fl_Osc_Widget.H"
  5. #include <string>
  6. class Fl_Osc_Dial:public WidgetPDial, public Fl_Osc_Widget
  7. {
  8. public:
  9. Fl_Osc_Dial(int X, int Y, int W, int H, const char *label = NULL);
  10. virtual ~Fl_Osc_Dial(void);
  11. //Hack to get non-local controls up and running
  12. void alt_init(std::string base, std::string path_);
  13. //Normal Initialization
  14. void init(std::string path);
  15. //void OSC_value(float);
  16. void OSC_value(int);
  17. void OSC_value(char);
  18. using Fl_Osc_Widget::OSC_value;
  19. //Refetch parameter information
  20. void update(void);
  21. void callback(Fl_Callback *cb, void *p = NULL);
  22. //Midi learn handler
  23. int handle(int);
  24. void mark_dead(void);
  25. virtual void rebase(std::string new_base) override;
  26. void cb(void);
  27. private:
  28. bool alt_style;
  29. bool dead;
  30. std::pair<Fl_Callback*, void*> cb_data;
  31. };