Implement IPlugView::checkSizeConstraint()

With this the whole of `IPlugView` and thus also `IEditController` is
implemented.
This commit is contained in:
Robbert van der Helm
2020-12-22 15:42:41 +01:00
parent 5ef7e73725
commit 9bb90388c1
7 changed files with 47 additions and 4 deletions
+1
View File
@@ -90,6 +90,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
YaPlugView::OnFocus,
YaPlugView::SetFrame,
YaPlugView::CanResize,
YaPlugView::CheckSizeConstraint,
YaPluginBase::Initialize,
YaPluginBase::Terminate,
YaPluginFactory::Construct,
@@ -319,6 +319,25 @@ class YaPlugView : public Steinberg::IPlugView {
};
virtual tresult PLUGIN_API canResize() override = 0;
/**
* Message to pass through a call to `IPlugView::checkSizeConstraint(rect)`
* to the Wine plugin host.
*/
struct CheckSizeConstraint {
using Response = UniversalTResult;
native_size_t owner_instance_id;
Steinberg::ViewRect rect;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
s.object(rect);
}
};
virtual tresult PLUGIN_API
checkSizeConstraint(Steinberg::ViewRect* rect) override = 0;