2 #include <Vst3/UI/WindowContainer.hpp>
7 #include <pluginterfaces/gui/iplugview.h>
13 class PlugFrame final :
public Steinberg::IPlugFrame
16 Steinberg::tresult queryInterface(
const Steinberg::TUID _iid,
void** obj)
override
19 return Steinberg::kResultFalse;
22 Steinberg::uint32 addRef()
override {
return 1; }
23 Steinberg::uint32 release()
override {
return 1; }
27 PlugFrame(QDialog& w, WindowContainer& wc)
34 resizeView(Steinberg::IPlugView* view, Steinberg::ViewRect* newSize)
override
36 wc.setSizeFromVst(*view, *newSize, w);
37 return Steinberg::kResultOk;
42 #if defined(__APPLE__)
43 class PlugFrame final :
public Steinberg::IPlugFrame
46 Steinberg::tresult queryInterface(
const Steinberg::TUID _iid,
void** obj)
override
49 return Steinberg::kResultFalse;
52 Steinberg::uint32 addRef()
override {
return 1; }
53 Steinberg::uint32 release()
override {
return 1; }
57 PlugFrame(QDialog& w, WindowContainer& wc)
64 resizeView(Steinberg::IPlugView* view, Steinberg::ViewRect* newSize)
override
66 wc.setSizeFromVst(*view, *newSize, w);
67 return Steinberg::kResultOk;