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.

64 lines
1.7KB

  1. /*
  2. * DISTRHO ProM Plugin
  3. * Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LICENSE file.
  15. */
  16. #ifndef DISTRHO_UI_PROM_HPP_INCLUDED
  17. #define DISTRHO_UI_PROM_HPP_INCLUDED
  18. #include "DistrhoUI.hpp"
  19. class projectM;
  20. START_NAMESPACE_DISTRHO
  21. // -----------------------------------------------------------------------
  22. class DistrhoUIProM : public UI
  23. {
  24. public:
  25. DistrhoUIProM();
  26. ~DistrhoUIProM() override;
  27. protected:
  28. // -------------------------------------------------------------------
  29. // DSP Callbacks
  30. void parameterChanged(uint32_t, float) override;
  31. // -------------------------------------------------------------------
  32. // UI Callbacks
  33. void uiIdle() override;
  34. void uiReshape(uint width, uint height) override;
  35. // -------------------------------------------------------------------
  36. // Widget Callbacks
  37. void onDisplay() override;
  38. bool onKeyboard(const KeyboardEvent&) override;
  39. bool onSpecial(const SpecialEvent&) override;
  40. private:
  41. ScopedPointer<projectM> fPM;
  42. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIProM)
  43. };
  44. // -----------------------------------------------------------------------
  45. END_NAMESPACE_DISTRHO
  46. #endif // DISTRHO_UI_PROM_HPP_INCLUDED