mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
Implement IPlugFrame::resizeView()
The base IPlugFrame only contains this single function.
This commit is contained in:
@@ -40,9 +40,18 @@ Vst3PlugFrameProxyImpl::queryInterface(const Steinberg::TUID _iid, void** obj) {
|
||||
}
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3PlugFrameProxyImpl::resizeView(Steinberg::IPlugView* view,
|
||||
Vst3PlugFrameProxyImpl::resizeView(Steinberg::IPlugView* /*view*/,
|
||||
Steinberg::ViewRect* newSize) {
|
||||
// TODO: Implement
|
||||
std::cerr << "TODO: IPlugFrame::resizeView()" << std::endl;
|
||||
return Steinberg::kNotImplemented;
|
||||
if (newSize) {
|
||||
// XXX: Since VST3 currently only support a single view type we'll
|
||||
// assume `view` is the `IPlugView*` returned by the last call to
|
||||
// `IEditController::createView()`
|
||||
return bridge.send_message(YaPlugFrame::ResizeView{
|
||||
.owner_instance_id = owner_instance_id(), .new_size = *newSize});
|
||||
} else {
|
||||
std::cerr
|
||||
<< "WARNING: Null pointer passed to 'IPlugFrame::resizeView()'"
|
||||
<< std::endl;
|
||||
return Steinberg::kInvalidArgument;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user