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

11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Carla Bridge UI
  3. * Copyright (C) 2011-2021 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 doc/GPL.txt file.
  16. */
  17. #ifndef CARLA_BRIDGE_TOOLKIT_HPP_INCLUDED
  18. #define CARLA_BRIDGE_TOOLKIT_HPP_INCLUDED
  19. #include "CarlaBridgeUI.hpp"
  20. #include "CarlaJuceUtils.hpp"
  21. CARLA_BRIDGE_UI_START_NAMESPACE
  22. // -----------------------------------------------------------------------
  23. class CarlaBridgeToolkit
  24. {
  25. public:
  26. virtual ~CarlaBridgeToolkit() {}
  27. virtual bool init(int argc, const char* argv[]) = 0;
  28. virtual void exec(bool showUI) = 0;
  29. virtual void quit() = 0;
  30. virtual void show() = 0;
  31. virtual void focus() = 0;
  32. virtual void hide() = 0;
  33. virtual void setChildWindow(void* ptr) = 0;
  34. virtual void setSize(uint width, uint height) = 0;
  35. virtual void setTitle(const char* title) = 0;
  36. virtual void* getContainerId() const { return nullptr; }
  37. virtual void* getContainerId2() const { return nullptr; }
  38. static CarlaBridgeToolkit* createNew(CarlaBridgeFormat* format);
  39. protected:
  40. CarlaBridgeFormat* const fPlugin;
  41. CarlaBridgeToolkit(CarlaBridgeFormat* const format)
  42. : fPlugin(format) {}
  43. CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaBridgeToolkit)
  44. };
  45. // -----------------------------------------------------------------------
  46. CARLA_BRIDGE_UI_END_NAMESPACE
  47. #endif // CARLA_BRIDGE_TOOLKIT_HPP_INCLUDED