From: John L. <jr...@us...> - 2006-05-26 20:22:22
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10865/wxLua/modules/wxbind/src Modified Files: controls.cpp wx_bind.cpp Log Message: add wxArrayTreeItemIds and hack for wxTreeItemIdValue Index: wx_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wx_bind.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** wx_bind.cpp 25 May 2006 22:50:05 -0000 1.44 --- wx_bind.cpp 26 May 2006 20:22:15 -0000 1.45 *************** *** 5359,5367 **** - #if (wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_wxTreeCtrl) - { "wxTreeItemIdValue", wxTreeItemIdValue_methods, wxTreeItemIdValue_methodCount, -1, NULL, &s_wxluatag_wxTreeItemIdValue, NULL }, - #endif - - #if (wxLUA_USE_wxBitmapButton) && (wxLUA_USE_wxButton) { "wxBitmapButton", wxBitmapButton_methods, wxBitmapButton_methodCount, -1, CLASSINFO(wxBitmapButton), &s_wxluatag_wxBitmapButton, "wxButton" }, --- 5359,5362 ---- *************** *** 6197,6200 **** --- 6192,6196 ---- #if wxLUA_USE_wxTreeCtrl + { "wxArrayTreeItemIds", wxArrayTreeItemIds_methods, wxArrayTreeItemIds_methodCount, -1, NULL, &s_wxluatag_wxArrayTreeItemIds, NULL }, { "wxLuaTreeItemData", wxLuaTreeItemData_methods, wxLuaTreeItemData_methodCount, -1, NULL, &s_wxluatag_wxLuaTreeItemData, "wxTreeItemData" }, { "wxTreeCtrl", wxTreeCtrl_methods, wxTreeCtrl_methodCount, -1, CLASSINFO(wxTreeCtrl), &s_wxluatag_wxTreeCtrl, "wxControl" }, *************** *** 6513,6516 **** --- 6509,6513 ---- #if wxLUA_USE_wxTreeCtrl + wxLUA_IMPLEMENT_ENCAPSULATION(wxArrayTreeItemIds) wxLUA_IMPLEMENT_ENCAPSULATION(wxTreeItemId) #endif Index: controls.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/controls.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** controls.cpp 26 May 2006 03:19:51 -0000 1.28 --- controls.cpp 26 May 2006 20:22:15 -0000 1.29 *************** *** 8460,8534 **** - #if ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_wxTreeCtrl)) && (wxLUA_USE_wxTreeCtrl) - // %override wxLua_wxTreeCtrl_GetFirstChild - // wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& cookie) const - static int LUACALL wxLua_wxTreeCtrl_GetFirstChild(lua_State *L) - { - wxLuaState wxlState(L); - wxTreeItemId *returns; - #if wxCHECK_VERSION(2, 5, 0) - wxTreeItemIdValue cookie = 0; - #else - // long& cookie - long cookie = 0; - #endif - // const wxTreeItemId& item - const wxTreeItemId *item = (wxTreeItemId *)wxlState.GetUserDataType(2, s_wxluatag_wxTreeItemId); - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxTreeCtrl); - // call GetFirstChild - // allocate a new object using the copy constructor - returns = new wxTreeItemId(self->GetFirstChild(*item, cookie)); - // add the new object to the tracked memory list - wxLua_AddToTrackedMemoryList(wxlState, returns); - // push the result datatype - wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); - #if wxCHECK_VERSION(2, 5, 0) - wxlState.PushUserDataType(s_wxluatag_wxTreeItemIdValue, cookie); - #else - // push the cookie - lua_pushnumber(L, cookie); - #endif - // return the number of parameters - return 2; - } - - // %override wxLua_wxTreeCtrl_GetNextChild - // wxTreeItemId GetNextChild(const wxTreeItemId& item, long& cookie) const - static int LUACALL wxLua_wxTreeCtrl_GetNextChild(lua_State *L) - { - wxLuaState wxlState(L); - wxTreeItemId *returns; - - #if wxCHECK_VERSION(2, 5, 0) - wxTreeItemIdValue cookie = (wxTreeItemIdValue *)wxlState.GetUserDataType(1, s_wxluatag_wxTreeItemIdValue); - #else - // long& cookie - long cookie = (long)lua_tonumber(L, 3); - #endif - // const wxTreeItemId& item - const wxTreeItemId *item = (wxTreeItemId *)wxlState.GetUserDataType(2, s_wxluatag_wxTreeItemId); - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxTreeCtrl); - // call GetNextChild - // allocate a new object using the copy constructor - returns = new wxTreeItemId(self->GetNextChild(*item, cookie)); - // add the new object to the tracked memory list - wxLua_AddToTrackedMemoryList(wxlState, returns); - // push the result datatype - wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); - #if wxCHECK_VERSION(2, 5, 0) - wxlState.PushUserDataType(s_wxluatag_wxTreeItemIdValue, cookie); - #else - // push the cookie - lua_pushnumber(L, cookie); - #endif - // return the number of parameters - return 2; - } - - #endif - - #if ((wxLUA_USE_wxTreeCtrl) && (wxLUA_USE_wxValidator)) && (wxLUA_USE_wxPointSizeRect) // wxTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTreeCtrl") --- 8460,8463 ---- *************** *** 9097,9100 **** --- 9026,9062 ---- } + // %override wxLua_wxTreeCtrl_GetFirstChild + // wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& cookie) const + static int LUACALL wxLua_wxTreeCtrl_GetFirstChild(lua_State *L) + { + wxLuaState wxlState(L); + wxTreeItemId *returns; + #if wxCHECK_VERSION(2, 5, 0) + wxTreeItemIdValue cookie = 0; + #else + // long& cookie + long cookie = 0; + #endif + // const wxTreeItemId& item + const wxTreeItemId *item = (wxTreeItemId *)wxlState.GetUserDataType(2, s_wxluatag_wxTreeItemId); + // get this + wxTreeCtrl *self = (wxTreeCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxTreeCtrl); + // call GetFirstChild + // allocate a new object using the copy constructor + returns = new wxTreeItemId(self->GetFirstChild(*item, cookie)); + // add the new object to the tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, returns); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); + #if wxCHECK_VERSION(2, 5, 0) + lua_pushnumber(L, (long)cookie); // wxTreeItemIdValue is void* + #else + // push the cookie + lua_pushnumber(L, cookie); + #endif + // return the number of parameters + return 2; + } + // wxTreeItemId GetFirstVisibleItem() const static int LUACALL wxLua_wxTreeCtrl_GetFirstVisibleItem(lua_State *L) *************** *** 9205,9208 **** --- 9167,9204 ---- } + // %override wxLua_wxTreeCtrl_GetNextChild + // wxTreeItemId GetNextChild(const wxTreeItemId& item, long& cookie) const + static int LUACALL wxLua_wxTreeCtrl_GetNextChild(lua_State *L) + { + wxLuaState wxlState(L); + wxTreeItemId *returns; + + #if wxCHECK_VERSION(2, 5, 0) + wxTreeItemIdValue cookie = (wxTreeItemIdValue)(long)wxlState.GetNumberType(3); + #else + // long& cookie + long cookie = (long)lua_tonumber(L, 3); + #endif + // const wxTreeItemId& item + const wxTreeItemId *item = (wxTreeItemId *)wxlState.GetUserDataType(2, s_wxluatag_wxTreeItemId); + // get this + wxTreeCtrl *self = (wxTreeCtrl *)wxlState.GetUserDataType(1, s_wxluatag_wxTreeCtrl); + // call GetNextChild + // allocate a new object using the copy constructor + returns = new wxTreeItemId(self->GetNextChild(*item, cookie)); + // add the new object to the tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, returns); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); + #if wxCHECK_VERSION(2, 5, 0) + lua_pushnumber(L, (long)cookie); + #else + // push the cookie + lua_pushnumber(L, cookie); + #endif + // return the number of parameters + return 2; + } + // wxTreeItemId GetNextSibling(const wxTreeItemId& item) const static int LUACALL wxLua_wxTreeCtrl_GetNextSibling(lua_State *L) *************** *** 9801,9810 **** - #if ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_wxTreeCtrl)) && (wxLUA_USE_wxTreeCtrl) - { LuaMethod, "GetFirstChild", wxLua_wxTreeCtrl_GetFirstChild, 2, 2, { &s_wxluatag_wxTreeItemId, &s_wxluatag_wxTreeItemIdValue, 0 } }, - { LuaMethod, "GetNextChild", wxLua_wxTreeCtrl_GetNextChild, 2, 2, { &s_wxluatag_wxTreeItemId, &s_wxluatag_wxTreeItemIdValue, 0 } }, - #endif - - #if ((wxLUA_USE_wxTreeCtrl) && (wxLUA_USE_wxValidator)) && (wxLUA_USE_wxPointSizeRect) { LuaConstructor, "wxTreeCtrl", wxLua_wxTreeCtrl_constructor, 7, 2, { &s_wxluatag_wxWindow, &s_wxluaarg_Number, &s_wxluatag_wxPoint, &s_wxluatag_wxSize, &s_wxluaarg_Number, &s_wxluatag_wxValidator, &s_wxluaarg_String, 0 } }, --- 9797,9800 ---- *************** *** 9864,9867 **** --- 9854,9858 ---- { LuaMethod, "GetChildrenCount", wxLua_wxTreeCtrl_GetChildrenCount, 2, 1, { &s_wxluatag_wxTreeItemId, &s_wxluaarg_Boolean, 0 } }, { LuaMethod, "GetCount", wxLua_wxTreeCtrl_GetCount, 0, 0, { 0 } }, + { LuaMethod, "GetFirstChild", wxLua_wxTreeCtrl_GetFirstChild, 2, 2, { &s_wxluatag_wxTreeItemId, &s_wxluaarg_LightUserData, 0 } }, { LuaMethod, "GetFirstVisibleItem", wxLua_wxTreeCtrl_GetFirstVisibleItem, 0, 0, { 0 } }, { LuaMethod, "GetIndent", wxLua_wxTreeCtrl_GetIndent, 0, 0, { 0 } }, *************** *** 9870,9873 **** --- 9861,9865 ---- { LuaMethod, "GetItemText", wxLua_wxTreeCtrl_GetItemText, 1, 1, { &s_wxluatag_wxTreeItemId, 0 } }, { LuaMethod, "GetLastChild", wxLua_wxTreeCtrl_GetLastChild, 1, 1, { &s_wxluatag_wxTreeItemId, 0 } }, + { LuaMethod, "GetNextChild", wxLua_wxTreeCtrl_GetNextChild, 2, 2, { &s_wxluatag_wxTreeItemId, &s_wxluaarg_LightUserData, 0 } }, { LuaMethod, "GetNextSibling", wxLua_wxTreeCtrl_GetNextSibling, 1, 1, { &s_wxluatag_wxTreeItemId, 0 } }, { LuaMethod, "GetNextVisible", wxLua_wxTreeCtrl_GetNextVisible, 1, 1, { &s_wxluatag_wxTreeItemId, 0 } }, *************** *** 10146,10177 **** - #if (wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_wxTreeCtrl) - // ------------------------------------------------------------------------------------------------- - // Bind class wxTreeItemIdValue - // ------------------------------------------------------------------------------------------------- - - // Lua MetaTable Tag for Class - int s_wxluatag_wxTreeItemIdValue = -1; - - static int LUACALL wxLua_wxTreeItemIdValue_destructor(lua_State *) - { - return 0; - } - - - - - - // Map Lua Class Methods to C Binding Functions - static WXLUAMETHOD s_wxTreeItemIdValue_methods[] = { - { LuaDelete, "wxTreeItemIdValue", wxLua_wxTreeItemIdValue_destructor, 0, 0, {0} }, - }; - - // Extern accessor to class method map - WXLUAMETHOD* wxTreeItemIdValue_methods = s_wxTreeItemIdValue_methods; - int wxTreeItemIdValue_methodCount = sizeof(s_wxTreeItemIdValue_methods)/sizeof(s_wxTreeItemIdValue_methods[0]); - #endif - - #if wxLUA_USE_wxTreeCtrl // ------------------------------------------------------------------------------------------------- --- 10138,10141 ---- *************** *** 10348,10351 **** --- 10312,10613 ---- #if wxLUA_USE_wxTreeCtrl // ------------------------------------------------------------------------------------------------- + // Bind class wxArrayTreeItemIds + // ------------------------------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class + int s_wxluatag_wxArrayTreeItemIds = -1; + + // %overload wxArrayTreeItemIds() + static int LUACALL wxLua_wxArrayTreeItemIds_constructor1(lua_State *L) + { + wxLuaState wxlState(L); + wxArrayTreeItemIds *returns; + // call constructor + returns = new wxArrayTreeItemIds(); + // add to tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, (wxArrayTreeItemIds *)returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxArrayTreeItemIds, returns); + + return 1; + } + + // %overload %constructor wxArrayTreeItemIdsCopy(const wxArrayTreeItemIds& array) + static int LUACALL wxLua_wxArrayTreeItemIdsCopy_constructor(lua_State *L) + { + wxLuaState wxlState(L); + wxArrayTreeItemIds *returns; + // const wxArrayTreeItemIds array + const wxArrayTreeItemIds * array = (const wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call constructor + returns = new wxArrayTreeItemIds(*array); + // add to tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, (wxArrayTreeItemIds *)returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxArrayTreeItemIds, returns); + + return 1; + } + + // void Add(const wxTreeItemId& id) + static int LUACALL wxLua_wxArrayTreeItemIds_Add(lua_State *L) + { + wxLuaState wxlState(L); + // const wxTreeItemId id + const wxTreeItemId * id = (const wxTreeItemId *)wxlState.GetUserDataType(2, s_wxluatag_wxTreeItemId); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Add + self->Add(*id); + + return 0; + } + + // void Alloc(size_t nCount) + static int LUACALL wxLua_wxArrayTreeItemIds_Alloc(lua_State *L) + { + wxLuaState wxlState(L); + // size_t nCount + size_t nCount = (size_t)wxlState.GetNumberType(2); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Alloc + self->Alloc(nCount); + + return 0; + } + + // void Clear() + static int LUACALL wxLua_wxArrayTreeItemIds_Clear(lua_State *L) + { + wxLuaState wxlState(L); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Clear + self->Clear(); + + return 0; + } + + // void Empty() + static int LUACALL wxLua_wxArrayTreeItemIds_Empty(lua_State *L) + { + wxLuaState wxlState(L); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Empty + self->Empty(); + + return 0; + } + + // int GetCount() const + static int LUACALL wxLua_wxArrayTreeItemIds_GetCount(lua_State *L) + { + wxLuaState wxlState(L); + int returns; + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call GetCount + returns = self->GetCount(); + // push the result number + lua_pushnumber(L, returns); + + return 1; + } + + // int Index(wxTreeItemIdValue treeItemIdValue, bool bFromEnd = false) + static int LUACALL wxLua_wxArrayTreeItemIds_Index(lua_State *L) + { + wxLuaState wxlState(L); + int returns; + // get number of arguments + int argCount = lua_gettop(L); + // bool bFromEnd = false + bool bFromEnd = (argCount >= 3 ? wxlState.GetBooleanType(3) : false); + // wxTreeItemIdValue treeItemIdValue + wxTreeItemIdValue treeItemIdValue = (wxTreeItemIdValue)wxlState.GetEnumerationType(2); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Index + returns = self->Index(treeItemIdValue, bFromEnd); + // push the result number + lua_pushnumber(L, returns); + + return 1; + } + + // bool IsEmpty() + static int LUACALL wxLua_wxArrayTreeItemIds_IsEmpty(lua_State *L) + { + wxLuaState wxlState(L); + bool returns; + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call IsEmpty + returns = self->IsEmpty(); + // push the result flag + lua_pushboolean(L, returns); + + return 1; + } + + // wxTreeItemId Item(size_t nIndex) const + static int LUACALL wxLua_wxArrayTreeItemIds_Item(lua_State *L) + { + wxLuaState wxlState(L); + wxTreeItemId *returns; + // size_t nIndex + size_t nIndex = (size_t)wxlState.GetNumberType(2); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Item + // allocate a new object using the copy constructor + returns = new wxTreeItemId(self->Item(nIndex)); + // add the new object to the tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, (wxTreeItemId *)returns); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); + + return 1; + } + + // wxTreeItemId Last() + static int LUACALL wxLua_wxArrayTreeItemIds_Last(lua_State *L) + { + wxLuaState wxlState(L); + wxTreeItemId *returns; + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Last + // allocate a new object using the copy constructor + returns = new wxTreeItemId(self->Last()); + // add the new object to the tracked memory list + wxLua_AddToTrackedMemoryList(wxlState, (wxTreeItemId *)returns); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); + + return 1; + } + + // void Remove(wxTreeItemIdValue treeItemIdValue) + static int LUACALL wxLua_wxArrayTreeItemIds_Remove(lua_State *L) + { + wxLuaState wxlState(L); + // wxTreeItemIdValue treeItemIdValue + wxTreeItemIdValue treeItemIdValue = (wxTreeItemIdValue)wxlState.GetEnumerationType(2); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Remove + self->Remove(treeItemIdValue); + + return 0; + } + + // void RemoveAt(size_t nIndex, size_t count = 1) + static int LUACALL wxLua_wxArrayTreeItemIds_RemoveAt(lua_State *L) + { + wxLuaState wxlState(L); + // get number of arguments + int argCount = lua_gettop(L); + // size_t count = 1 + size_t count = (argCount >= 3 ? (size_t)wxlState.GetNumberType(3) : 1); + // size_t nIndex + size_t nIndex = (size_t)wxlState.GetNumberType(2); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call RemoveAt + self->RemoveAt(nIndex, count); + + return 0; + } + + // void Shrink() + static int LUACALL wxLua_wxArrayTreeItemIds_Shrink(lua_State *L) + { + wxLuaState wxlState(L); + // get this + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // call Shrink + self->Shrink(); + + return 0; + } + + static int LUACALL wxLua_wxArrayTreeItemIds_destructor(lua_State *L) + { + wxLuaState wxlState(L); + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + + // remove from tracked memory list + if (self != 0) + wxlState.RemoveTrackedMemory(self); + return 0; + } + + static int LUACALL wxLua_wxArrayTreeItemIds_Delete(lua_State *L) + { + wxLuaState wxlState(L); + wxArrayTreeItemIds * self = (wxArrayTreeItemIds *)wxlState.GetUserDataType(1, s_wxluatag_wxArrayTreeItemIds); + // remove from tracked memory list + if (self != 0) + if (wxlState.RemoveTrackedMemory(self)) + { // if removed, reset the tag so that gc() is not called on this object. + lua_pushnil(L); + lua_setmetatable(L, -2); + } + return 0; + } + + + + // Overloaded function bindings + + #if (wxLUA_USE_wxTreeCtrl) + // Overloaded functions for wxLua_wxArrayTreeItemIds_constructor + static int LUACALL wxLua_wxArrayTreeItemIds_constructor(lua_State *L) + { + // function overload table + static WXLUAMETHOD overloaded_methods[] = + { + { LuaConstructor, "wxArrayTreeItemIds", wxLua_wxArrayTreeItemIds_constructor1, 0, 0, { 0 } }, + { LuaConstructor, "wxArrayTreeItemIdsCopy", wxLua_wxArrayTreeItemIdsCopy_constructor, 1, 1, { &s_wxluatag_wxArrayTreeItemIds, 0 } }, + }; + static int overloaded_methodCount = sizeof(overloaded_methods)/sizeof(overloaded_methods[0]); + wxLuaState wxlState(L); + return wxlState.CallOverloadedFunction(overloaded_methods, overloaded_methodCount); + } + #endif + + + + // Map Lua Class Methods to C Binding Functions + static WXLUAMETHOD s_wxArrayTreeItemIds_methods[] = { + { LuaConstructor, "wxArrayTreeItemIds", wxLua_wxArrayTreeItemIds_constructor, 0, 0, { 0 } }, + { LuaConstructor, "wxArrayTreeItemIdsCopy", wxLua_wxArrayTreeItemIdsCopy_constructor, 1, 1, { &s_wxluatag_wxArrayTreeItemIds, 0 } }, + { LuaMethod, "Add", wxLua_wxArrayTreeItemIds_Add, 1, 1, { &s_wxluatag_wxTreeItemId, 0 } }, + { LuaMethod, "Alloc", wxLua_wxArrayTreeItemIds_Alloc, 1, 1, { &s_wxluaarg_Number, 0 } }, + { LuaMethod, "Clear", wxLua_wxArrayTreeItemIds_Clear, 0, 0, { 0 } }, + { LuaMethod, "Empty", wxLua_wxArrayTreeItemIds_Empty, 0, 0, { 0 } }, + { LuaMethod, "GetCount", wxLua_wxArrayTreeItemIds_GetCount, 0, 0, { 0 } }, + { LuaMethod, "Index", wxLua_wxArrayTreeItemIds_Index, 2, 1, { &s_wxluaarg_Enumeration, &s_wxluaarg_Boolean, 0 } }, + { LuaMethod, "IsEmpty", wxLua_wxArrayTreeItemIds_IsEmpty, 0, 0, { 0 } }, + { LuaMethod, "Item", wxLua_wxArrayTreeItemIds_Item, 1, 1, { &s_wxluaarg_Number, 0 } }, + { LuaMethod, "Last", wxLua_wxArrayTreeItemIds_Last, 0, 0, { 0 } }, + { LuaMethod, "Remove", wxLua_wxArrayTreeItemIds_Remove, 1, 1, { &s_wxluaarg_Enumeration, 0 } }, + { LuaMethod, "RemoveAt", wxLua_wxArrayTreeItemIds_RemoveAt, 2, 1, { &s_wxluaarg_Number, &s_wxluaarg_Number, 0 } }, + { LuaMethod, "Shrink", wxLua_wxArrayTreeItemIds_Shrink, 0, 0, { 0 } }, + { LuaDelete, "wxArrayTreeItemIds", wxLua_wxArrayTreeItemIds_destructor, 0, 0, {0} }, + { LuaMethod, "Delete", wxLua_wxArrayTreeItemIds_Delete, 0, 0, {0} }, + }; + + // Extern accessor to class method map + WXLUAMETHOD* wxArrayTreeItemIds_methods = s_wxArrayTreeItemIds_methods; + int wxArrayTreeItemIds_methodCount = sizeof(s_wxArrayTreeItemIds_methods)/sizeof(s_wxArrayTreeItemIds_methods[0]); + #endif + + + #if wxLUA_USE_wxTreeCtrl + // ------------------------------------------------------------------------------------------------- // Bind class wxTreeItemData // ------------------------------------------------------------------------------------------------- |