summaryrefslogtreecommitdiff
path: root/client/luawidget.h
diff options
context:
space:
mode:
authordeva <deva>2011-03-18 07:18:56 +0000
committerdeva <deva>2011-03-18 07:18:56 +0000
commit165afd0d36abc8729b28e303077ed285b577caea (patch)
treeb35787b28a2e7c9dedd96ebcdb1687425efc6e1e /client/luawidget.h
parent97d32901efc2b6cbec3ab41f78fa409d2ce78804 (diff)
Moved lua methods into their respective Qt widget implementation files.
Diffstat (limited to 'client/luawidget.h')
-rw-r--r--client/luawidget.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/client/luawidget.h b/client/luawidget.h
index b110598..e6e0be3 100644
--- a/client/luawidget.h
+++ b/client/luawidget.h
@@ -33,7 +33,18 @@
#include "widgets/widget.h"
-void register_widget(lua_State *L);
+#define LUA_SRC "lua"
+
+void *luaL_isudata (lua_State *L, int ud, const char *tname);
+
+#define luaL_checkbool(L, i) \
+ (lua_isboolean(L,i) ? lua_toboolean(L,i) : luaL_checkint(L,i))
+
+typedef struct wdg_userdata {
+ Widget *widget;
+} wdg_userdata;
+
+void register_widgets(lua_State *L);
int wdg_make_widget(lua_State *L, Widget *widget);
#endif/*__PRACRO_LUAWIDGET_H__*/