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_VSlider.H 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Fl_Osc_VSlider.H - OSC Based Vertical 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. #pragma once
  11. #include <FL/Fl_Value_Slider.H>
  12. #include "Fl_Osc_Slider.H"
  13. #include <string>
  14. class Fl_Osc_VSlider:public Fl_Osc_Slider
  15. {
  16. public:
  17. Fl_Osc_VSlider(int X, int Y, int W, int H, const char *label = NULL);
  18. virtual ~Fl_Osc_VSlider(void);
  19. Fl_Font textfont_;
  20. Fl_Fontsize textsize_;
  21. Fl_Color textcolor_;
  22. void init(std::string, char type = 'i');
  23. //Refetch parameter information
  24. //MIDI Learn
  25. int handle(int);
  26. // Value Slider add-ins.
  27. Fl_Font textfont() const {return textfont_;}
  28. void textfont(Fl_Font s) {textfont_ = s;}
  29. Fl_Fontsize textsize() const {return textsize_;}
  30. void textsize(Fl_Fontsize s) {textsize_ = s;}
  31. Fl_Color textcolor() const {return textcolor_;}
  32. void textcolor(Fl_Color s) {textcolor_ = s;}
  33. protected:
  34. void draw(void);
  35. };