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.

61 lines
1.8KB

  1. /*
  2. * Carla Bridge Toolkit
  3. * Copyright (C) 2011-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 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_INCLUDED
  18. #define CARLA_BRIDGE_TOOLKIT_HPP_INCLUDED
  19. #include "CarlaBridge.hpp"
  20. #include "CarlaString.hpp"
  21. CARLA_BRIDGE_START_NAMESPACE
  22. // -----------------------------------------------------------------------
  23. class CarlaBridgeToolkit
  24. {
  25. public:
  26. virtual ~CarlaBridgeToolkit() {}
  27. virtual void init() = 0;
  28. virtual void exec(const bool showGui) = 0;
  29. virtual void quit() = 0;
  30. virtual void show() = 0;
  31. virtual void hide() = 0;
  32. virtual void resize(const int width, const int height) = 0;
  33. virtual void* getContainerId() const { return nullptr; }
  34. static CarlaBridgeToolkit* createNew(CarlaBridgeClient* const client, const char* const uiTitle);
  35. protected:
  36. CarlaBridgeClient* const kClient;
  37. const CarlaString kWindowTitle;
  38. CarlaBridgeToolkit(CarlaBridgeClient* const client, const char* const title)
  39. : kClient(client),
  40. kWindowTitle(title) {}
  41. CARLA_LEAK_DETECTOR(CarlaBridgeToolkit)
  42. };
  43. // -----------------------------------------------------------------------
  44. CARLA_BRIDGE_END_NAMESPACE
  45. #endif // __CARLA_BRIDGE_TOOLKIT_HPP__