Implement IPlugFrame::resizeView()

The base IPlugFrame only contains this single function.
This commit is contained in:
Robbert van der Helm
2020-12-22 15:09:33 +01:00
parent 3bc3409929
commit 656f6d3f6c
8 changed files with 86 additions and 26 deletions
+13 -1
View File
@@ -348,7 +348,7 @@ bool Vst3Logger::log_request(bool is_host_vst,
}
bool Vst3Logger::log_request(bool is_host_vst,
const YaPluginFactory::SetHostContext& request) {
const YaPluginFactory::SetHostContext&) {
return log_request_base(is_host_vst, [&](auto& message) {
message << "IPluginFactory3::setHostContext(<FUnknown*>)";
});
@@ -612,6 +612,18 @@ bool Vst3Logger::log_request(bool is_host_vst,
});
}
bool Vst3Logger::log_request(bool is_host_vst,
const YaPlugFrame::ResizeView& request) {
return log_request_base(is_host_vst, [&](auto& message) {
message << request.owner_instance_id
<< ": IPlugFrame::resizeView(view = <IPlugView*>, newSize = "
"<ViewRect* with left = "
<< request.new_size.left << ", top = " << request.new_size.top
<< ", right = " << request.new_size.right
<< ", bottom = " << request.new_size.bottom << ">)";
});
}
void Vst3Logger::log_response(bool is_host_vst, const Ack&) {
log_response_base(is_host_vst, [&](auto& message) { message << "ACK"; });
}