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
@@ -145,7 +145,13 @@ tresult PLUGIN_API Vst3PlugViewProxyImpl::canResize() {
tresult PLUGIN_API
Vst3PlugViewProxyImpl::checkSizeConstraint(Steinberg::ViewRect* rect) {
// TODO: Implement
bridge.logger.log("TODO: IPlugView::checkSizeConstraint()");
return Steinberg::kNotImplemented;
if (rect) {
return bridge.send_message(YaPlugView::CheckSizeConstraint{
.owner_instance_id = owner_instance_id(), .rect = *rect});
} else {
bridge.logger.log(
"WARNING: Null pointer passed to "
"'IPlugView::checkSizeConstraint()'");
return Steinberg::kInvalidArgument;
}
}