summaryrefslogtreecommitdiff
path: root/src/config/lua/layout/LuaLayoutContext.hpp
blob: 2f9970378e8a15dcf43c2c9260a8609f8e59af4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}