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.

22 lines
602B

  1. #pragma once
  2. #include <JuceHeader.h>
  3. #include "ChainSlots.hpp"
  4. class GuestPluginWindow : public juce::DocumentWindow
  5. {
  6. public:
  7. const std::shared_ptr<juce::AudioPluginInstance> plugin;
  8. GuestPluginWindow(std::function<void()> onCloseCallback,
  9. std::shared_ptr<juce::AudioPluginInstance> newPlugin,
  10. std::shared_ptr<PluginEditorBounds> editorBounds);
  11. ~GuestPluginWindow();
  12. void closeButtonPressed() override;
  13. private:
  14. std::function<void()> _onCloseCallback;
  15. std::shared_ptr<PluginEditorBounds> _editorBounds;
  16. };