Add enum to configure Apple NSGLView mode

This commit is contained in:
Robin Gareus 2023-01-20 21:46:11 +01:00
parent db63f8320e
commit e6230bfd98
4 changed files with 19 additions and 0 deletions

View File

@ -685,6 +685,12 @@ enum PluginGUIBehavior {
PluginGUIDestroyVST,
};
enum AppleNSGLViewMode {
NSGLAuto, // disable on Catalina and above
NSGLDisable,
NSGLEnable
};
/** A struct used to describe changes to processors in a route.
* This is useful because objects that respond to a change in processors
* can optimise what work they do based on details of what has changed.

View File

@ -80,6 +80,7 @@ DEFINE_ENUM_CONVERT(ARDOUR::WaveformScale)
DEFINE_ENUM_CONVERT(ARDOUR::WaveformShape)
DEFINE_ENUM_CONVERT(ARDOUR::ScreenSaverMode)
DEFINE_ENUM_CONVERT(ARDOUR::PluginGUIBehavior)
DEFINE_ENUM_CONVERT(ARDOUR::AppleNSGLViewMode)
DEFINE_ENUM_CONVERT(ARDOUR::VUMeterStandard)
DEFINE_ENUM_CONVERT(ARDOUR::MeterLineUp)
DEFINE_ENUM_CONVERT(ARDOUR::InputMeterLayout)

View File

@ -144,6 +144,7 @@ setup_enum_writer ()
WaveformShape _WaveformShape;
ScreenSaverMode _ScreenSaverMode;
PluginGUIBehavior _PluginGUIBehavior;
AppleNSGLViewMode _AppleNSGLViewMode;
Session::PostTransportWork _Session_PostTransportWork;
MTC_Status _MIDI_MTC_Status;
BufferingPreset _BufferingPreset;
@ -761,6 +762,11 @@ setup_enum_writer ()
REGISTER_ENUM(PluginGUIDestroyVST);
REGISTER(_PluginGUIBehavior);
REGISTER_ENUM(NSGLAuto);
REGISTER_ENUM(NSGLDisable);
REGISTER_ENUM(NSGLEnable);
REGISTER(_AppleNSGLViewMode);
REGISTER_ENUM (Small);
REGISTER_ENUM (Medium);
REGISTER_ENUM (Large);

View File

@ -2581,6 +2581,12 @@ LuaBindings::common (lua_State* L)
.addConst ("InhibitAlways", ARDOUR::ScreenSaverMode(InhibitAlways))
.endNamespace ()
.beginNamespace ("AppleNSGLViewMode")
.addConst ("NSGLAuto", ARDOUR::AppleNSGLViewMode(NSGLAuto))
.addConst ("NSGLDisable", ARDOUR::AppleNSGLViewMode(NSGLDisable))
.addConst ("NSGLEnable", ARDOUR::AppleNSGLViewMode(NSGLEnable))
.endNamespace ()
.beginNamespace ("PluginGUIBehavior")
.addConst ("PluginGUIHide", ARDOUR::PluginGUIBehavior(PluginGUIHide))
.addConst ("PluginGUIDestroyAny", ARDOUR::PluginGUIBehavior(PluginGUIDestroyAny))