From 0c87491e6f9a72577954335ffaab6481e491e146 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Fri, 8 Aug 2025 04:57:34 +0200 Subject: [PATCH] Document vst_effect_supports_t.conformsToWindowRules --- vst.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/vst.h b/vst.h index 6b0a7f1..7ef70e9 100644 --- a/vst.h +++ b/vst.h @@ -2795,12 +2795,21 @@ struct vst_effect_supports_t { */ const char* receiveVstMidiEvent; + /** Plug-in wants to use @ref VST_HOST_OPCODE_EDITOR_RESIZE. + * Only necessary for legacy host compatibility. + * + * @sa vst_host_supports_t.sizeWindow + * @note (VST 2.1+) Available from VST 2.1 onwards. + * @deprecated (VST 2.4+) Deprecated from VST 2.4 onwards as the same check already exists on the host side. + * @return @ref VST_STATUS_TRUE if you want to use @ref VST_HOST_OPCODE_EDITOR_RESIZE, otherwise @ref VST_STATUS_FALSE. + */ + const char* conformsToWindowRules; + const char* midiProgramNames; // VST 2.1 or later. const char* receiveVstTimeInfo; const char* offline; // The following were only found in VST 2.3 plug-ins const char* plugAsChannelInsert; - const char* conformsToWindowRules; // Mac OS only, invalid in VST 2.4. Seems related to vst_host_supports.sizeWindow const char* plugAsSend; const char* mixDryWet; const char* noRealTime; @@ -2822,11 +2831,11 @@ struct vst_effect_supports_t { .receiveVstEvents = "receiveVstEvents", .sendVstMidiEvent = "sendVstMidiEvent", .receiveVstMidiEvent = "receiveVstMidiEvent", + .conformsToWindowRules = "conformsToWindowRules", .midiProgramNames = "midiProgramNames", .receiveVstTimeInfo = "receiveVstTimeInfo", .offline = "offline", .plugAsChannelInsert = "plugAsChannelInsert", - .conformsToWindowRules = "conformsToWindowRules", .plugAsSend = "plugAsSend", .mixDryWet = "mixDryWet", .noRealTime = "noRealTime",