Expose Stripable Color & Ordering API to Lua
We can't easily use C++ references with Lua closures, so new API (pointer to PresentationInfo) was added.
This commit is contained in:
parent
e2466621bc
commit
46cbb9084e
@ -73,6 +73,7 @@ class LIBARDOUR_API Stripable : public SessionObject {
|
|||||||
|
|
||||||
PresentationInfo const & presentation_info () const { return _presentation_info; }
|
PresentationInfo const & presentation_info () const { return _presentation_info; }
|
||||||
PresentationInfo& presentation_info () { return _presentation_info; }
|
PresentationInfo& presentation_info () { return _presentation_info; }
|
||||||
|
PresentationInfo* presentation_info_ptr () { return &_presentation_info; }
|
||||||
|
|
||||||
/* set just the order */
|
/* set just the order */
|
||||||
|
|
||||||
|
@ -587,6 +587,12 @@ LuaBindings::common (lua_State* L)
|
|||||||
// stub RouteGroup* is needed for new_audio_track()
|
// stub RouteGroup* is needed for new_audio_track()
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
|
.deriveClass <PresentationInfo, PBD::Stateful> ("PresentationInfo")
|
||||||
|
.addFunction ("color", &PresentationInfo::color)
|
||||||
|
.addFunction ("set_color", &PresentationInfo::set_color)
|
||||||
|
.addFunction ("order", &PresentationInfo::order)
|
||||||
|
.endClass ()
|
||||||
|
|
||||||
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
|
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
|
||||||
.addCast<Route> ("to_route")
|
.addCast<Route> ("to_route")
|
||||||
.addFunction ("is_auditioner", &Stripable::is_auditioner)
|
.addFunction ("is_auditioner", &Stripable::is_auditioner)
|
||||||
@ -603,6 +609,9 @@ LuaBindings::common (lua_State* L)
|
|||||||
.addFunction ("trim_control", &Stripable::trim_control)
|
.addFunction ("trim_control", &Stripable::trim_control)
|
||||||
.addFunction ("rec_enable_control", &Stripable::rec_enable_control)
|
.addFunction ("rec_enable_control", &Stripable::rec_enable_control)
|
||||||
.addFunction ("rec_safe_control", &Stripable::rec_safe_control)
|
.addFunction ("rec_safe_control", &Stripable::rec_safe_control)
|
||||||
|
.addFunction ("set_presentation_order", &Stripable::set_presentation_order)
|
||||||
|
.addFunction ("presentation_info_ptr", &Stripable::presentation_info_ptr)
|
||||||
|
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
.deriveWSPtrClass <Route, Stripable> ("Route")
|
.deriveWSPtrClass <Route, Stripable> ("Route")
|
||||||
|
Loading…
Reference in New Issue
Block a user