mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Expose mixer window screenshot method as Lua binding
This commit is contained in:
parent
c4cb9ef4d7
commit
728b53fa09
1 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include "luainstance.h"
|
||||
#include "luasignal.h"
|
||||
#include "marker.h"
|
||||
#include "mixer_ui.h"
|
||||
#include "region_view.h"
|
||||
#include "processor_box.h"
|
||||
#include "time_axis_view.h"
|
||||
|
|
@ -379,6 +380,10 @@ namespace LuaMixer {
|
|||
|
||||
};
|
||||
|
||||
static void mixer_screenshot (const std::string& fn) {
|
||||
Mixer_UI::instance()->screenshot (fn);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static PBD::ScopedConnectionList _luaexecs;
|
||||
|
|
@ -747,6 +752,8 @@ LuaInstance::register_classes (lua_State* L)
|
|||
|
||||
.addFunction ("http_get", &http_get_unlogged)
|
||||
|
||||
.addFunction ("mixer_screenshot", &mixer_screenshot)
|
||||
|
||||
.addFunction ("processor_selection", &LuaMixer::processor_selection)
|
||||
|
||||
.beginStdCPtrList <ArdourMarker> ("ArdourMarkerList")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue