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.

67 lines
1.7KB

  1. /*
  2. * Carla Bridge Toolkit
  3. * Copyright (C) 2011-2013 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 General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the GPL.txt file
  16. */
  17. #ifndef __CARLA_BRIDGE_TOOLKIT_HPP__
  18. #define __CARLA_BRIDGE_TOOLKIT_HPP__
  19. #include "CarlaBridge.hpp"
  20. #include "CarlaJuceUtils.hpp"
  21. CARLA_BRIDGE_START_NAMESPACE
  22. #if 0
  23. } // Fix editor indentation
  24. #endif
  25. /*!
  26. * @defgroup CarlaBridgeToolkit Carla Bridge Toolkit
  27. *
  28. * The Carla Bridge Toolkit.
  29. * @{
  30. */
  31. class CarlaBridgeToolkit
  32. {
  33. public:
  34. CarlaBridgeToolkit(CarlaBridgeClient* const client, const char* const uiTitle);
  35. virtual ~CarlaBridgeToolkit();
  36. virtual void init() = 0;
  37. virtual void exec(const bool showGui) = 0;
  38. virtual void quit() = 0;
  39. virtual void show() = 0;
  40. virtual void hide() = 0;
  41. virtual void resize(const int width, const int height) = 0;
  42. virtual void* getContainerId();
  43. static CarlaBridgeToolkit* createNew(CarlaBridgeClient* const client, const char* const uiTitle);
  44. protected:
  45. CarlaBridgeClient* const kClient;
  46. const char* const kUiTitle;
  47. CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaBridgeToolkit)
  48. };
  49. /**@}*/
  50. CARLA_BRIDGE_END_NAMESPACE
  51. #endif // __CARLA_BRIDGE_TOOLKIT_HPP__