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_Counter.H 662B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <FL/Fl_Counter.H>
  3. #include "Fl_Osc_Widget.H"
  4. #include <string>
  5. class Fl_Osc_Counter: public Fl_Counter, public Fl_Osc_Widget
  6. {
  7. public:
  8. Fl_Osc_Counter(int x, int y, int w, int h, const char *label=0);
  9. void init(const char *path_, char type_ = 'i', int display_off = 0);
  10. void OSC_value(char);
  11. void OSC_value(int);
  12. using Fl_Osc_Widget::OSC_value;
  13. //Refetch parameters
  14. void update(void);
  15. void callback(Fl_Callback *cb, void *p = NULL);
  16. void cb(void);
  17. char cb_type;
  18. private:
  19. int offset;
  20. std::pair<Fl_Callback*, void*> cb_data;
  21. };