From 895dada6f67d633818980504f090d3e2bead0775 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 5 Feb 2022 18:41:41 +0100 Subject: [PATCH] Add window type constants missing from vst3_sys --- src/wrapper/vst3.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wrapper/vst3.rs b/src/wrapper/vst3.rs index 090f7e1b..39b93b35 100644 --- a/src/wrapper/vst3.rs +++ b/src/wrapper/vst3.rs @@ -60,6 +60,16 @@ pub use vst3_sys::sys::GUID; /// The VST3 SDK version this is roughtly based on. const VST3_SDK_VERSION: &str = "VST 3.6.14"; + +// Window handle type constants missing from vst3-sys +const VST3_PLATFORM_HWND: &str = "HWND"; +#[allow(unused)] +const VST3_PLATFORM_HIVIEW: &str = "HIView"; +const VST3_PLATFORM_NSVIEW: &str = "NSView"; +#[allow(unused)] +const VST3_PLATFORM_UIVIEW: &str = "UIView"; +const VST3_PLATFORM_X11_WINDOW: &str = "X11EmbedWindowID"; + /// Right now the wrapper adds its own bypass parameter. /// /// TODO: Actually use this parameter.