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.6KB

  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. CARLA_BRIDGE_START_NAMESPACE
  21. #if 0
  22. } // Fix editor indentation
  23. #endif
  24. /*!
  25. * @defgroup CarlaBridgeToolkit Carla Bridge Toolkit
  26. *
  27. * The Carla Bridge Toolkit.
  28. * @{
  29. */
  30. class CarlaBridgeToolkit
  31. {
  32. public:
  33. CarlaBridgeToolkit(CarlaBridgeClient* const client, const char* const uiTitle);
  34. virtual ~CarlaBridgeToolkit();
  35. virtual void init() = 0;
  36. virtual void exec(const bool showGui) = 0;
  37. virtual void quit() = 0;
  38. virtual void show() = 0;
  39. virtual void hide() = 0;
  40. virtual void resize(const int width, const int height) = 0;
  41. virtual void* getContainerId();
  42. static CarlaBridgeToolkit* createNew(CarlaBridgeClient* const client, const char* const uiTitle);
  43. protected:
  44. CarlaBridgeClient* const kClient;
  45. const char* kUiTitle;
  46. };
  47. /**@}*/
  48. CARLA_BRIDGE_END_NAMESPACE
  49. #endif // __CARLA_BRIDGE_TOOLKIT_HPP__