From: John L. <jr...@us...> - 2009-01-14 18:52:20
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16471/wxLua/modules/wxbind/src Modified Files: wxcore_windows.cpp Log Message: Add back void* wxWindow::GetHandle() Index: wxcore_windows.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_windows.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** wxcore_windows.cpp 29 Jan 2008 04:22:54 -0000 1.15 --- wxcore_windows.cpp 14 Jan 2009 18:52:06 -0000 1.16 *************** *** 1475,1478 **** --- 1475,1496 ---- } + static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetHandle[] = { &wxluatype_wxWindow, NULL }; + static int LUACALL wxLua_wxWindow_GetHandle(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetHandle[1] = {{ wxLua_wxWindow_GetHandle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetHandle }}; + // %override wxLua_wxWindow_GetHandle + // void *GetHandle() const + static int LUACALL wxLua_wxWindow_GetHandle(lua_State *L) + { + // get this + wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); + // call GetHandle + void *handle = (void *)self->GetHandle(); + // push handle + lua_pushlightuserdata(L, handle); + // return the number of parameters + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetHelpText[] = { &wxluatype_wxWindow, NULL }; static int LUACALL wxLua_wxWindow_GetHelpText(lua_State *L); *************** *** 4225,4228 **** --- 4243,4247 ---- { "GetGrandParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetGrandParent, 1, NULL }, + { "GetHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetHandle, 1, NULL }, { "GetHelpText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetHelpText, 1, NULL }, { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetId, 1, NULL }, |