Collection of DPF-based plugins for packaging
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.

68 lines
1.9KB

  1. /*
  2. * DISTRHO glBars Plugin based on XMMS/XBMC "GL Bars"
  3. * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
  4. * Copyright (C) 2000 Christian Zander <phoenix@minion.de>
  5. * Copyright (C) 2015 Nedko Arnaudov
  6. * Copyright (C) 2016-2022 Filipe Coelho <falktx@falktx.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * For a full copy of the license see the LICENSE file.
  19. */
  20. #ifndef DISTRHO_UI_GLBARS_HPP_INCLUDED
  21. #define DISTRHO_UI_GLBARS_HPP_INCLUDED
  22. #include "DistrhoUI.hpp"
  23. #include "glBars.hpp"
  24. #include "ResizeHandle.hpp"
  25. START_NAMESPACE_DISTRHO
  26. // -----------------------------------------------------------------------
  27. class DistrhoUIGLBars : public UI
  28. {
  29. public:
  30. DistrhoUIGLBars();
  31. ~DistrhoUIGLBars() override;
  32. protected:
  33. // -------------------------------------------------------------------
  34. // DSP Callbacks
  35. void parameterChanged(uint32_t, float) override;
  36. // -------------------------------------------------------------------
  37. // UI Callbacks
  38. void uiIdle() override;
  39. // -------------------------------------------------------------------
  40. // Widget Callbacks
  41. void onDisplay() override;
  42. private:
  43. bool fInitialized;
  44. glBarsState fState;
  45. ResizeHandle fResizeHandle;
  46. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIGLBars)
  47. };
  48. // -----------------------------------------------------------------------
  49. END_NAMESPACE_DISTRHO
  50. #endif // DISTRHO_UI_GLBARS_HPP_INCLUDED