Fix debian/rules to build in BUILD/ dir.
[tagua/yd.git] / src / luaapi / luavalue.h
blob39026c33815d31472175be95c7d62fd2dfe56a40
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef LUAAPI__LUAVALUE_H
12 #define LUAAPI__LUAVALUE_H
14 #include <boost/variant.hpp>
15 #include <QString>
16 #include <QMap>
18 class QPointF;
19 class QRectF;
20 class lua_State;
22 namespace LuaApi {
24 typedef boost::variant<double, QPointF, QRectF> LuaValue;
25 typedef QMap<QString, LuaValue> LuaValueMap;
26 void lua_pushvalue(lua_State* l, const LuaValue& value);
27 void lua_pushvaluemap(lua_State* l, const LuaValueMap* valuemap);
29 } //end namespace LuaApi
31 #endif //LUAAPI__LUAVALUE_H