Fully implement IContextMenuTarget

This commit is contained in:
Robbert van der Helm
2021-01-06 23:58:05 +01:00
parent 26eb8ac1f3
commit 5d0df7febe
9 changed files with 57 additions and 8 deletions
@@ -50,6 +50,13 @@ class Vst3ContextMenuProxyImpl : public Vst3ContextMenuProxy {
Steinberg::Vst::IContextMenuTarget* target) override;
tresult PLUGIN_API popup(Steinberg::UCoord x, Steinberg::UCoord y) override;
/**
* The targets passed when to `addItem` calls made by the plugin. This way
* we can call these same targets later.
*/
std::map<int32, Steinberg::IPtr<Steinberg::Vst::IContextMenuTarget>>
context_menu_targets;
private:
Vst3Bridge& bridge;
};