mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 04:50:14 +02:00
Implement IPlugView::canResize()
This commit is contained in:
@@ -89,6 +89,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
|
||||
YaPlugView::OnSize,
|
||||
YaPlugView::OnFocus,
|
||||
YaPlugView::SetFrame,
|
||||
YaPlugView::CanResize,
|
||||
YaPluginBase::Initialize,
|
||||
YaPluginBase::Terminate,
|
||||
YaPluginFactory::Construct,
|
||||
|
||||
@@ -302,6 +302,22 @@ class YaPlugView : public Steinberg::IPlugView {
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
setFrame(Steinberg::IPlugFrame* frame) override = 0;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IPlugView::canResize()` to the Wine
|
||||
* plugin host.
|
||||
*/
|
||||
struct CanResize {
|
||||
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 canResize() override = 0;
|
||||
virtual tresult PLUGIN_API
|
||||
checkSizeConstraint(Steinberg::ViewRect* rect) override = 0;
|
||||
|
||||
Reference in New Issue
Block a user