summaryrefslogtreecommitdiff
path: root/src/config/lua/layout/LuaLayoutContext.hpp
diff options
context:
space:
mode:
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);
+}