diff options
| author | cooljqln <cooljqln@noreply.codeberg.org> | 2024-05-03 04:48:17 +0000 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2024-05-03 04:48:17 +0000 |
| commit | 3ceb8025ee4330c177101ed30ec17dfb0002f41e (patch) | |
| tree | 58350210f15df7d00d967cac6f30eeceeb031a3c /src/ui/include/screen_lua.hpp | |
| parent | 964da15a0b84f8e5f00e8abac2f7dfda0bf60488 (diff) | |
| parent | 9fafd797a5504f458b5fcae4a1d28a68da936315 (diff) | |
| download | tangara-fw-3ceb8025ee4330c177101ed30ec17dfb0002f41e.tar.gz | |
Merge pull request 'Break dependency cycles with our components by merging co-dependent components together' (#68) from jqln/component-merge into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/68
Diffstat (limited to 'src/ui/include/screen_lua.hpp')
| -rw-r--r-- | src/ui/include/screen_lua.hpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/ui/include/screen_lua.hpp b/src/ui/include/screen_lua.hpp deleted file mode 100644 index 8a463bad..00000000 --- a/src/ui/include/screen_lua.hpp +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2023 jacqueline <me@jacqueline.id.au> - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -#include "lua.hpp" - -#include "property.hpp" -#include "screen.hpp" - -namespace ui { -namespace screens { - -class Lua : public Screen { - public: - Lua(); - ~Lua(); - - auto onShown() -> void override; - auto onHidden() -> void override; - - auto canPop() -> bool override; - - auto SetObjRef(lua_State*) -> void; - - private: - /* Invokes a method on this screen's Lua counterpart. */ - auto callMethod(std::string name) -> void; - /* Applies fn to each binding in this screen's `bindings` field. */ - auto forEachBinding(std::function<void(lua::Binding*)> fn) -> void; - - lua_State* s_; - std::optional<int> obj_ref_; -}; - -} // namespace screens -} // namespace ui |
