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.

DistrhoUIProM.hpp 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * DISTRHO ProM Plugin
  3. * Copyright (C) 2014 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_3BANDEQ_HPP_INCLUDED
  17. #define DISTRHO_UI_3BANDEQ_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. // Information
  30. uint d_getWidth() const noexcept override
  31. {
  32. return 512;
  33. }
  34. uint d_getHeight() const noexcept override
  35. {
  36. return 512;
  37. }
  38. // -------------------------------------------------------------------
  39. // DSP Callbacks
  40. void d_parameterChanged(uint32_t, float) override;
  41. // -------------------------------------------------------------------
  42. // UI Callbacks
  43. void d_uiIdle() override;
  44. void d_uiReshape(int width, int height) override;
  45. // -------------------------------------------------------------------
  46. // Widget Callbacks
  47. void onDisplay() override;
  48. bool onKeyboard(const KeyboardEvent&) override;
  49. bool onSpecial(const SpecialEvent&) override;
  50. private:
  51. ScopedPointer<projectM> fPM;
  52. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIProM)
  53. };
  54. // -----------------------------------------------------------------------
  55. END_NAMESPACE_DISTRHO
  56. #endif // DISTRHO_UI_3BANDEQ_HPP_INCLUDED