Tentative Randomless-Entropy variant.
[tagua/yd.git] / src / luaapi / luavalue.h
blob0390f755bb8f5525ddb175e4e69dc8e43180174e
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 /**
23 * @brief Namespace holding the Lua bindings used for theming.
25 namespace LuaApi {
27 typedef boost::variant<double, QPointF, QRectF> LuaValue;
28 typedef QMap<QString, LuaValue> LuaValueMap;
29 void lua_pushvalue(lua_State* l, const LuaValue& value);
30 void lua_pushvaluemap(lua_State* l, const LuaValueMap* valuemap);
32 } //end namespace LuaApi
34 #endif //LUAAPI__LUAVALUE_H