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.

37 lines
891B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. TipWin.h - Tooltips
  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 TIPWIN_H
  11. #include <string>
  12. #include <FL/Fl_Menu_Window.H>
  13. #include <FL/Fl_Tooltip.H>
  14. #define TIPWIN_H
  15. using namespace std;
  16. class TipWin:public Fl_Menu_Window
  17. {
  18. public:
  19. TipWin();
  20. void draw();
  21. void showValue(float f);
  22. void setText(const char *c);
  23. void showText();
  24. void set_rounding(unsigned int digits = 0);
  25. private:
  26. void redraw();
  27. const char *getStr() const;
  28. string tip;
  29. string text;
  30. bool textmode;
  31. char format[6];
  32. };
  33. #endif