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.

31 lines
864B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_TSlider.H - Variant Of OSC Based Slider
  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. #ifndef FL_OSC_TSLIDER_H
  11. #define FL_OSC_TSLIDER_H
  12. #include "Fl_Osc_Slider.H"
  13. #include "TipWin.h"
  14. class Fl_Osc_TSlider:public Fl_Osc_Slider
  15. {
  16. public:
  17. Fl_Osc_TSlider(int x, int y, int w, int h, const char *label = 0);
  18. ~Fl_Osc_TSlider();
  19. int handle(int event);
  20. void set_transform(float (*transformer)(float));
  21. void set_rounding(unsigned int digits = 0);
  22. private:
  23. class TipWin * tipwin;
  24. float (*transform)(float);
  25. };
  26. #endif