diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-03-07 10:59:03 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-03-07 10:59:03 +1100 |
| commit | ef72b25660912ff247997089abfb93e9f0b52809 (patch) | |
| tree | d5d9711cb5a4192966d914094e9370c446f145fb /src/lua/bridge.cpp | |
| parent | 53c4ea7805f1af6a4d2969fc8eabbc8ae26ac5ca (diff) | |
| download | tangara-fw-ef72b25660912ff247997089abfb93e9f0b52809.tar.gz | |
use prototype inheritance for lua screens, rather than functions
this gives us a way to give each screen nice little hooks, like
'onShown' and 'onHidden'. later we can use these hooks to disable
bindings for screens that aren't in-use.
Diffstat (limited to 'src/lua/bridge.cpp')
| -rw-r--r-- | src/lua/bridge.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/bridge.cpp b/src/lua/bridge.cpp index a26f74bb..2bef1c30 100644 --- a/src/lua/bridge.cpp +++ b/src/lua/bridge.cpp @@ -19,6 +19,7 @@ #include "lua_controls.hpp" #include "lua_database.hpp" #include "lua_queue.hpp" +#include "lua_screen.hpp" #include "lua_version.hpp" #include "lvgl.h" @@ -84,6 +85,7 @@ auto Bridge::installBaseModules(lua_State* L) -> void { RegisterDatabaseModule(L); RegisterQueueModule(L); RegisterVersionModule(L); + RegisterScreenModule(L); } auto Bridge::installLvgl(lua_State* L) -> void { |
