diff options
author | Robin Gareus <robin@gareus.org> | 2019-08-24 21:44:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-08-24 21:44:27 +0200 |
commit | 4538bcc7f491b3eb7baf7ae8d16efeb6cae8fe2e (patch) | |
tree | 6d15cbbde714bc53b4c0e4768f31de5690d1172d /gtk2_ardour/luainstance.cc | |
parent | 1f05baa88163696052359552469a4a88be361912 (diff) |
Add/fix some TimeAxisView Lua bindings
Diffstat (limited to 'gtk2_ardour/luainstance.cc')
-rw-r--r-- | gtk2_ardour/luainstance.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 1d390e65fe..12189f3977 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -795,6 +795,11 @@ LuaInstance::register_classes (lua_State* L) .endClass () .deriveClass <TimeAxisView, AxisView> ("TimeAxisView") + .addFunction ("order", &TimeAxisView::order) + .addFunction ("y_position", &TimeAxisView::y_position) + .addFunction ("effective_height", &TimeAxisView::effective_height) + .addFunction ("current_height", &TimeAxisView::current_height) + .addFunction ("set_height", &TimeAxisView::set_height) .endClass () .deriveClass <StripableTimeAxisView, TimeAxisView> ("StripableTimeAxisView") @@ -818,11 +823,11 @@ LuaInstance::register_classes (lua_State* L) .endClass () // std::list<Selectable*> - .beginStdCPtrList <Selectable> ("SelectionList") + .beginConstStdCPtrList <Selectable> ("SelectionList") .endClass () // std::list<TimeAxisView*> - .beginStdCPtrList <TimeAxisView> ("TrackViewStdList") + .beginConstStdCPtrList <TimeAxisView> ("TrackViewStdList") .endClass () @@ -842,7 +847,8 @@ LuaInstance::register_classes (lua_State* L) .deriveClass <MarkerSelection, std::list<ArdourMarker*> > ("MarkerSelection") .endClass () - .deriveClass <TrackViewList, std::list<TimeAxisView*> > ("TrackViewList") + .beginClass <TrackViewList> ("TrackViewList") + .addCast<std::list<TimeAxisView*> > ("to_tav_list") .addFunction ("contains", &TrackViewList::contains) .addFunction ("routelist", &TrackViewList::routelist) .endClass () @@ -1047,6 +1053,12 @@ LuaInstance::register_classes (lua_State* L) .addConst ("Add", Selection::Operation(Selection::Add)) .endNamespace () + .beginNamespace ("TrackHeightMode") + .addConst ("OnlySelf", TimeAxisView::TrackHeightMode(TimeAxisView::OnlySelf)) + .addConst ("TotalHeight", TimeAxisView::TrackHeightMode(TimeAxisView::TotalHeight)) + .addConst ("HeightPerLane,", TimeAxisView::TrackHeightMode(TimeAxisView::HeightPerLane)) + .endNamespace () + .addCFunction ("actionlist", &lua_actionlist) .endNamespace () // end ArdourUI |