mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Implement IPlugView::attached()
This commit is contained in:
@@ -93,6 +93,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
|
||||
YaEditController::SetComponentHandler,
|
||||
YaEditController::CreateView,
|
||||
YaPlugView::IsPlatformTypeSupported,
|
||||
YaPlugView::Attached,
|
||||
YaPluginBase::Initialize,
|
||||
YaPluginBase::Terminate,
|
||||
YaPluginFactory::Construct,
|
||||
|
||||
@@ -84,6 +84,32 @@ class YaPlugView : public Steinberg::IPlugView {
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
isPlatformTypeSupported(Steinberg::FIDString type) override = 0;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IPlugView::attached(parent, type)` to
|
||||
* the Wine plugin host. Like mentioned above we will substitute
|
||||
* `kPlatformStringWin` for `kPlatformStringLinux`.
|
||||
*/
|
||||
struct Attached {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t owner_instance_id;
|
||||
|
||||
/**
|
||||
* The parent handle passed by the host. This will be an
|
||||
* `xcb_window_id`, and we'll embed the Wine window into it ourselves.
|
||||
*/
|
||||
native_size_t parent;
|
||||
std::string type;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
s.value8b(parent);
|
||||
s.text1b(type, 128);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API attached(void* parent,
|
||||
Steinberg::FIDString type) override = 0;
|
||||
virtual tresult PLUGIN_API removed() override = 0;
|
||||
|
||||
Reference in New Issue
Block a user