14#include <wx/wupdlock.h>
30 resizeView(view,
size);
35 if(
auto window = mWindow.get())
37 auto topWindow = wxGetTopLevelParent(window);
39 wxWindowUpdateLocker windowUpdateLocker(topWindow);
41 window->SetInitialSize({newSize->getWidth(), newSize->getHeight() });
43 topWindow->SetMinSize(wxDefaultSize);
45 topWindow->SetMinSize(topWindow->GetSize());
52 return view->onSize(newSize);
54 return Steinberg::kResultFalse;
IMPLEMENT_FUNKNOWN_METHODS(RunLoop, Steinberg::Linux::IRunLoop, Steinberg::Linux::IRunLoop::iid)
Dispatches window resize events from VST PlugView to the wxWindow.
Steinberg::tresult PLUGIN_API resizeView(Steinberg::IPlugView *view, Steinberg::ViewRect *newSize) override
void init(Steinberg::IPlugView *view, Steinberg::ViewRect *size)
PlugFrame(wxWindow *window)