Implement IPlugView::removed()

This commit is contained in:
Robbert van der Helm
2020-12-21 18:30:42 +01:00
parent 7e34cf69fe
commit f1009f1941
6 changed files with 42 additions and 3 deletions
+1
View File
@@ -79,6 +79,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
YaEditController::CreateView,
YaPlugView::IsPlatformTypeSupported,
YaPlugView::Attached,
YaPlugView::Removed,
YaPlugView::GetSize,
YaPluginBase::Initialize,
YaPluginBase::Terminate,
@@ -112,6 +112,22 @@ class YaPlugView : public Steinberg::IPlugView {
virtual tresult PLUGIN_API attached(void* parent,
Steinberg::FIDString type) override = 0;
/**
* Message to pass through a call to `IPlugView::removed()` to the Wine
* plugin host.
*/
struct Removed {
using Response = UniversalTResult;
native_size_t owner_instance_id;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
}
};
virtual tresult PLUGIN_API removed() override = 0;
virtual tresult PLUGIN_API onWheel(float distance) override = 0;
virtual tresult PLUGIN_API onKeyDown(char16 key,