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.

22 lines
534B

  1. #ifndef FL_OSC_TSLIDER_H
  2. #define FL_OSC_TSLIDER_H
  3. #include "Fl_Osc_Slider.H"
  4. #include "TipWin.h"
  5. class Fl_Osc_TSlider:public Fl_Osc_Slider
  6. {
  7. public:
  8. Fl_Osc_TSlider(int x, int y, int w, int h, const char *label = 0);
  9. ~Fl_Osc_TSlider();
  10. int handle(int event);
  11. void setTransform(float scale = 1.0, float offset = 0.0);
  12. float transform(float x);
  13. void setRounding(unsigned int digits = 0);
  14. private:
  15. class TipWin * tipwin;
  16. float value_offset;
  17. float value_scale;
  18. };
  19. #endif