From 165afd0d36abc8729b28e303077ed285b577caea Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 18 Mar 2011 07:18:56 +0000 Subject: Moved lua methods into their respective Qt widget implementation files. --- client/luawidget.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'client/luawidget.h') 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__*/ -- cgit v1.2.3