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_Check.H 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_Check.H - OSC Powered Check Button
  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. #pragma once
  11. #include <FL/Fl_Check_Button.H>
  12. #include "Fl_Osc_Widget.H"
  13. #include <string>
  14. using std::string; //yes this is bad form FIXME
  15. class Fl_Osc_Check:public Fl_Check_Button, public Fl_Osc_Widget
  16. {
  17. public:
  18. Fl_Osc_Check(int X, int Y, int W, int H, const char *label = NULL);
  19. //string name,
  20. // const char *metadata);
  21. virtual ~Fl_Osc_Check(void);
  22. virtual void OSC_value(bool) override;
  23. using Fl_Osc_Widget::OSC_value;
  24. void init(std::string loc, char type = 'T');
  25. void callback(Fl_Callback *cb, void *p = NULL);
  26. void cb(void);
  27. static void _cb(Fl_Widget *w, void *);
  28. int is_osc;
  29. private:
  30. std::pair<Fl_Callback*, void*> cb_data;
  31. char type;
  32. };