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.

38 lines
851B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_Button.cpp - OSC Powered 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. #include "Fl_Osc_Button.H"
  11. #include "Fl_Osc_Interface.h"
  12. #include "Fl_Osc_Pane.H"
  13. #include <cstdlib>
  14. #include <cstring>
  15. #include <cmath>
  16. #include <cassert>
  17. #include <sstream>
  18. Fl_Osc_Button::Fl_Osc_Button(int X, int Y, int W, int H, const char *label)
  19. :Fl_Button(X,Y,W,H,label), Fl_Osc_Widget(this)
  20. {
  21. }
  22. Fl_Osc_Button::~Fl_Osc_Button(void)
  23. {}
  24. void Fl_Osc_Button::OSC_value(bool v)
  25. {
  26. Fl_Button::value(v);
  27. }
  28. void Fl_Osc_Button::rebase(std::string base)
  29. {
  30. loc = base;
  31. }