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/include/lua_screen.hpp | |
| 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/include/lua_screen.hpp')
| -rw-r--r-- | src/lua/include/lua_screen.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lua/include/lua_screen.hpp b/src/lua/include/lua_screen.hpp new file mode 100644 index 00000000..1c3bed1a --- /dev/null +++ b/src/lua/include/lua_screen.hpp @@ -0,0 +1,15 @@ +/* + * Copyright 2023 jacqueline <me@jacqueline.id.au> + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#pragma once + +#include "lua.hpp" + +namespace lua { + +auto RegisterScreenModule(lua_State*) -> void; + +} // namespace lua |
