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.

67 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 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. START_NAMESPACE_DISTRHO
  25. // -----------------------------------------------------------------------
  26. class DistrhoUIGLBars : public UI
  27. {
  28. public:
  29. DistrhoUIGLBars();
  30. ~DistrhoUIGLBars() override;
  31. protected:
  32. // -------------------------------------------------------------------
  33. // DSP Callbacks
  34. void parameterChanged(uint32_t, float) override;
  35. // -------------------------------------------------------------------
  36. // UI Callbacks
  37. void uiIdle() override;
  38. // void uiReshape(uint width, uint height) override;
  39. // -------------------------------------------------------------------
  40. // Widget Callbacks
  41. void onDisplay() override;
  42. bool onKeyboard(const KeyboardEvent&) override;
  43. private:
  44. glBarsState fState;
  45. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIGLBars)
  46. };
  47. // -----------------------------------------------------------------------
  48. END_NAMESPACE_DISTRHO
  49. #endif // DISTRHO_UI_GLBARS_HPP_INCLUDED