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.

CarlaBridgeToolkit.hpp 1.6KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. class CarlaBridgeToolkit
  26. {
  27. public:
  28. CarlaBridgeToolkit(CarlaBridgeClient* const client, const char* const uiTitle);
  29. virtual ~CarlaBridgeToolkit();
  30. virtual void init() = 0;
  31. virtual void exec(const bool showGui) = 0;
  32. virtual void quit() = 0;
  33. virtual void show() = 0;
  34. virtual void hide() = 0;
  35. virtual void resize(const int width, const int height) = 0;
  36. virtual void* getContainerId();
  37. static CarlaBridgeToolkit* createNew(CarlaBridgeClient* const client, const char* const uiTitle);
  38. protected:
  39. CarlaBridgeClient* const kClient;
  40. const char* const kUiTitle;
  41. CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaBridgeToolkit)
  42. };
  43. CARLA_BRIDGE_END_NAMESPACE
  44. #endif // __CARLA_BRIDGE_TOOLKIT_HPP__