summaryrefslogtreecommitdiff
path: root/src/config/lua/layout/LuaLayoutContext.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-05-06 13:56:12 +0100
committerGitHub <noreply@github.com>2026-05-06 13:56:12 +0100
commit1681bea42dd2f11ba3fe6df05560d0b231de3c76 (patch)
tree899103dbddf675a01758c7cdd379224c9c81a7fb /src/config/lua/layout/LuaLayoutContext.hpp
parent5f1350f522d3fe3af78cbe30a98311763b3509d5 (diff)
config/lua: add simple layout API (#14258)
Adds a simple layout lua api
Diffstat (limited to 'src/config/lua/layout/LuaLayoutContext.hpp')
-rw-r--r--src/config/lua/layout/LuaLayoutContext.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/config/lua/layout/LuaLayoutContext.hpp b/src/config/lua/layout/LuaLayoutContext.hpp
new file mode 100644
index 00000000..2f997037
--- /dev/null
+++ b/src/config/lua/layout/LuaLayoutContext.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "../../../helpers/math/Math.hpp"
+#include "../../../helpers/memory/Memory.hpp"
+
+#include <vector>
+
+extern "C" {
+#include <lua.h>
+}
+
+namespace Layout {
+ class ITarget;
+}
+
+namespace Config::Lua::Layouts {
+ void pushBox(lua_State* L, const CBox& box);
+ bool boxFromTable(lua_State* L, int idx, CBox& box);
+ void pushLayoutContext(lua_State* L, const std::vector<SP<Layout::ITarget>>& targets, const CBox& area);
+}