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.

29 lines
767B

  1. #pragma once
  2. #include <FL/Fl_Check_Button.H>
  3. #include "Fl_Osc_Widget.H"
  4. #include <string>
  5. using std::string; //yes this is bad form FIXME
  6. class Fl_Osc_Check:public Fl_Check_Button, public Fl_Osc_Widget
  7. {
  8. public:
  9. Fl_Osc_Check(int X, int Y, int W, int H, const char *label = NULL);
  10. //string name,
  11. // const char *metadata);
  12. virtual ~Fl_Osc_Check(void);
  13. virtual void OSC_value(bool) override;
  14. using Fl_Osc_Widget::OSC_value;
  15. void init(std::string loc, char type = 'T');
  16. void callback(Fl_Callback *cb, void *p = NULL);
  17. void cb(void);
  18. static void _cb(Fl_Widget *w, void *);
  19. int is_osc;
  20. private:
  21. std::pair<Fl_Callback*, void*> cb_data;
  22. char type;
  23. };