Audacity 3.2.0
PlugFrame.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file PlugFrame.h
6
7 @author Vitaly Sverchinsky
8
9 @brief Part of Audacity VST3 module
10
11**********************************************************************/
12
13#pragma once
14
15#include <wx/wx.h>
16#include <pluginterfaces/gui/iplugview.h>
17
18namespace internal
19{
20
22 class PlugFrame final : public Steinberg::IPlugFrame
23 {
24 wxWeakRef<wxWindow> mWindow;
25 bool mInitialized{false};
26 public:
27
28 PlugFrame(wxWindow* window);
29 virtual ~PlugFrame();
30
31 void init(Steinberg::IPlugView* view, Steinberg::ViewRect* size);
32
33 Steinberg::tresult PLUGIN_API resizeView(Steinberg::IPlugView* view, Steinberg::ViewRect* newSize) override;
34
35 DECLARE_FUNKNOWN_METHODS
36 };
37
38}
Dispatches window resize events from VST PlugView to the wxWindow.
Definition: PlugFrame.h:23
wxWeakRef< wxWindow > mWindow
Definition: PlugFrame.h:24
virtual ~PlugFrame()
Definition: PlugFrame.cpp:22
Steinberg::tresult PLUGIN_API resizeView(Steinberg::IPlugView *view, Steinberg::ViewRect *newSize) override
Definition: PlugFrame.cpp:33
void init(Steinberg::IPlugView *view, Steinberg::ViewRect *size)
Definition: PlugFrame.cpp:27
PlugFrame(wxWindow *window)
Definition: PlugFrame.cpp:16