Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4255/wxLua/modules/wxbind/src Modified Files: wxadv_bind.cpp wxaui_bind.cpp wxbase_base.cpp wxbase_bind.cpp wxbase_config.cpp wxbase_data.cpp wxbase_datetime.cpp wxbase_file.cpp wxcore_appframe.cpp wxcore_bind.cpp wxcore_clipdrag.cpp wxcore_controls.cpp wxcore_core.cpp wxcore_defsutils.cpp wxcore_dialogs.cpp wxcore_event.cpp wxcore_gdi.cpp wxcore_geometry.cpp wxcore_help.cpp wxcore_image.cpp wxcore_mdi.cpp wxcore_menutool.cpp wxcore_picker.cpp wxcore_print.cpp wxcore_sizer.cpp wxcore_windows.cpp wxcore_wxlcore.cpp wxgl_bind.cpp wxhtml_bind.cpp wxmedia_bind.cpp wxnet_bind.cpp wxstc_bind.cpp wxxml_bind.cpp wxxrc_bind.cpp Log Message: Removed %encapsulate and %noclassinfo tags for %classes in the bindings. No longer encapsulating non wxObjects in a wxObject class for deletion. We now provide delete functions for each class in the wxLuaBindClass structs to be called on the void* we get from Lua. Index: wxcore_core.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_core.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** wxcore_core.cpp 27 Sep 2009 03:13:53 -0000 1.14 --- wxcore_core.cpp 1 Oct 2009 04:21:01 -0000 1.15 *************** *** 46,50 **** wxLogGui* returns = new wxLogGui(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxLogGui((wxLogGui*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogGui); --- 46,50 ---- wxLogGui* returns = new wxLogGui(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxLogGui); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogGui); *************** *** 56,59 **** --- 56,65 ---- + void wxLua_wxLogGui_delete_function(void** p) + { + wxLogGui* o = (wxLogGui*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxLogGui_methods[] = { *************** *** 93,97 **** wxLogTextCtrl* returns = new wxLogTextCtrl(textCtrl); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxLogTextCtrl((wxLogTextCtrl*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogTextCtrl); --- 99,103 ---- wxLogTextCtrl* returns = new wxLogTextCtrl(textCtrl); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxLogTextCtrl); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogTextCtrl); *************** *** 104,107 **** --- 110,119 ---- + void wxLua_wxLogTextCtrl_delete_function(void** p) + { + wxLogTextCtrl* o = (wxLogTextCtrl*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxLogTextCtrl_methods[] = { *************** *** 187,191 **** wxLogWindow* returns = new wxLogWindow(pParent, szTitle, bShow, bPassToOld); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxLogWindow((wxLogWindow*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogWindow); --- 199,203 ---- wxLogWindow* returns = new wxLogWindow(pParent, szTitle, bShow, bPassToOld); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxLogWindow); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogWindow); *************** *** 197,200 **** --- 209,218 ---- + void wxLua_wxLogWindow_delete_function(void** p) + { + wxLogWindow* o = (wxLogWindow*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxLogWindow_methods[] = { *************** *** 236,240 **** wxColour* returns = new wxColour(wxSystemSettings::GetColour(index)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxColour*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); --- 254,258 ---- wxColour* returns = new wxColour(wxSystemSettings::GetColour(index)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxColour); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); *************** *** 258,262 **** wxFont* returns = new wxFont(wxSystemSettings::GetFont(index)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxFont*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); --- 276,280 ---- wxFont* returns = new wxFont(wxSystemSettings::GetFont(index)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxFont); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); *************** *** 333,336 **** --- 351,360 ---- + void wxLua_wxSystemSettings_delete_function(void** p) + { + wxSystemSettings* o = (wxSystemSettings*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxSystemSettings_methods[] = { *************** *** 478,481 **** --- 502,511 ---- + void wxLua_wxValidator_delete_function(void** p) + { + wxValidator* o = (wxValidator*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxValidator_methods[] = { *************** *** 642,645 **** --- 672,681 ---- + void wxLua_wxTextValidator_delete_function(void** p) + { + wxTextValidator* o = (wxTextValidator*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxTextValidator_methods[] = { *************** *** 691,695 **** wxGenericValidator *returns = new wxGenericValidator(valPtr->GetArrayPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); --- 727,731 ---- wxGenericValidator *returns = new wxGenericValidator(valPtr->GetArrayPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); *************** *** 711,715 **** wxGenericValidator *returns = new wxGenericValidator(boolPtr->GetBoolPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); --- 747,751 ---- wxGenericValidator *returns = new wxGenericValidator(boolPtr->GetBoolPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); *************** *** 731,735 **** wxGenericValidator *returns = new wxGenericValidator(valPtr->GetIntPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); --- 767,771 ---- wxGenericValidator *returns = new wxGenericValidator(valPtr->GetIntPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); *************** *** 751,755 **** wxGenericValidator *returns = new wxGenericValidator(valPtr->GetStringPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); --- 787,791 ---- wxGenericValidator *returns = new wxGenericValidator(valPtr->GetStringPtr()); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); *************** *** 762,765 **** --- 798,807 ---- + void wxLua_wxGenericValidator_delete_function(void** p) + { + wxGenericValidator* o = (wxGenericValidator*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxGenericValidator_methods[] = { *************** *** 891,895 **** wxMemoryFSHandler* returns = new wxMemoryFSHandler(); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryFSHandler); --- 933,937 ---- wxMemoryFSHandler* returns = new wxMemoryFSHandler(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxMemoryFSHandler); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryFSHandler); *************** *** 919,922 **** --- 961,970 ---- #endif // ((wxLUA_USE_wxBitmap) && ((wxUSE_STREAMS && wxUSE_FILESYSTEM) && (wxUSE_IMAGE)))||((wxLUA_USE_wxImage && wxUSE_IMAGE) && ((wxUSE_STREAMS && wxUSE_FILESYSTEM) && (wxUSE_IMAGE)))||(wxUSE_STREAMS && wxUSE_FILESYSTEM) + void wxLua_wxMemoryFSHandler_delete_function(void** p) + { + wxMemoryFSHandler* o = (wxMemoryFSHandler*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxMemoryFSHandler_methods[] = { Index: wxcore_clipdrag.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_clipdrag.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wxcore_clipdrag.cpp 27 Sep 2009 03:13:53 -0000 1.16 --- wxcore_clipdrag.cpp 1 Oct 2009 04:21:01 -0000 1.17 *************** *** 237,240 **** --- 237,246 ---- + void wxLua_wxClipboard_delete_function(void** p) + { + wxClipboard* o = (wxClipboard*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxClipboard_methods[] = { *************** *** 317,321 **** wxClipboardLocker* returns = new wxClipboardLocker(clipboard); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxClipboardLocker((wxClipboardLocker*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardLocker); --- 323,327 ---- wxClipboardLocker* returns = new wxClipboardLocker(clipboard); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxClipboardLocker); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardLocker); *************** *** 327,330 **** --- 333,342 ---- + void wxLua_wxClipboardLocker_delete_function(void** p) + { + wxClipboardLocker* o = (wxClipboardLocker*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxClipboardLocker_methods[] = { *************** *** 367,371 **** wxClipboardTextEvent* returns = new wxClipboardTextEvent(type, winid); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardTextEvent); --- 379,383 ---- wxClipboardTextEvent* returns = new wxClipboardTextEvent(type, winid); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxClipboardTextEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardTextEvent); *************** *** 377,380 **** --- 389,398 ---- + void wxLua_wxClipboardTextEvent_delete_function(void** p) + { + wxClipboardTextEvent* o = (wxClipboardTextEvent*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxClipboardTextEvent_methods[] = { *************** *** 494,498 **** wxDataFormat* returns = new wxDataFormat(format); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataFormat((wxDataFormat*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); --- 512,516 ---- wxDataFormat* returns = new wxDataFormat(format); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); *************** *** 514,518 **** wxDataFormat* returns = new wxDataFormat(format); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataFormat((wxDataFormat*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); --- 532,536 ---- wxDataFormat* returns = new wxDataFormat(format); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); *************** *** 535,538 **** --- 553,562 ---- #endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) + void wxLua_wxDataFormat_delete_function(void** p) + { + wxDataFormat* o = (wxDataFormat*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDataFormat_methods[] = { *************** *** 693,697 **** wxDataFormat* returns = new wxDataFormat(self->GetPreferredFormat(dir)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataFormat((wxDataFormat*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); --- 717,721 ---- wxDataFormat* returns = new wxDataFormat(self->GetPreferredFormat(dir)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); *************** *** 727,730 **** --- 751,760 ---- + void wxLua_wxDataObject_delete_function(void** p) + { + wxDataObject* o = (wxDataObject*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDataObject_methods[] = { *************** *** 879,883 **** wxDataObjectSimple* returns = new wxDataObjectSimple(*format); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataObjectSimple((wxDataObjectSimple*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectSimple); --- 909,913 ---- wxDataObjectSimple* returns = new wxDataObjectSimple(*format); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataObjectSimple); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectSimple); *************** *** 889,892 **** --- 919,928 ---- + void wxLua_wxDataObjectSimple_delete_function(void** p) + { + wxDataObjectSimple* o = (wxDataObjectSimple*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDataObjectSimple_methods[] = { *************** *** 950,954 **** wxDataFormat* returns = new wxDataFormat(self->GetReceivedFormat()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataFormat((wxDataFormat*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); --- 986,990 ---- wxDataFormat* returns = new wxDataFormat(self->GetReceivedFormat()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); *************** *** 970,974 **** wxDataObjectComposite* returns = new wxDataObjectComposite(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDataObjectComposite((wxDataObjectComposite*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectComposite); --- 1006,1010 ---- wxDataObjectComposite* returns = new wxDataObjectComposite(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDataObjectComposite); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectComposite); *************** *** 980,983 **** --- 1016,1025 ---- + void wxLua_wxDataObjectComposite_delete_function(void** p) + { + wxDataObjectComposite* o = (wxDataObjectComposite*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDataObjectComposite_methods[] = { *************** *** 1037,1041 **** wxArrayString* returns = new wxArrayString(self->GetFilenames()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxArrayString((wxArrayString*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); --- 1079,1083 ---- wxArrayString* returns = new wxArrayString(self->GetFilenames()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); *************** *** 1057,1061 **** wxFileDataObject* returns = new wxFileDataObject(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxFileDataObject((wxFileDataObject*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDataObject); --- 1099,1103 ---- wxFileDataObject* returns = new wxFileDataObject(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxFileDataObject); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDataObject); *************** *** 1067,1070 **** --- 1109,1118 ---- + void wxLua_wxFileDataObject_delete_function(void** p) + { + wxFileDataObject* o = (wxFileDataObject*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxFileDataObject_methods[] = { *************** *** 1158,1162 **** wxTextDataObject* returns = new wxTextDataObject(text); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxTextDataObject((wxTextDataObject*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextDataObject); --- 1206,1210 ---- wxTextDataObject* returns = new wxTextDataObject(text); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxTextDataObject); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextDataObject); *************** *** 1168,1171 **** --- 1216,1225 ---- + void wxLua_wxTextDataObject_delete_function(void** p) + { + wxTextDataObject* o = (wxTextDataObject*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxTextDataObject_methods[] = { *************** *** 1205,1209 **** wxBitmap* returns = new wxBitmap(self->GetBitmap()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxBitmap*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); --- 1259,1263 ---- wxBitmap* returns = new wxBitmap(self->GetBitmap()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); *************** *** 1248,1252 **** wxBitmapDataObject* returns = new wxBitmapDataObject(*bitmap); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxBitmapDataObject((wxBitmapDataObject*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapDataObject); --- 1302,1306 ---- wxBitmapDataObject* returns = new wxBitmapDataObject(*bitmap); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxBitmapDataObject); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapDataObject); *************** *** 1259,1262 **** --- 1313,1322 ---- + void wxLua_wxBitmapDataObject_delete_function(void** p) + { + wxBitmapDataObject* o = (wxBitmapDataObject*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxBitmapDataObject_methods[] = { *************** *** 1336,1340 **** wxURLDataObject* returns = new wxURLDataObject(url); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxURLDataObject((wxURLDataObject*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxURLDataObject); --- 1396,1400 ---- wxURLDataObject* returns = new wxURLDataObject(url); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxURLDataObject); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxURLDataObject); *************** *** 1346,1349 **** --- 1406,1415 ---- + void wxLua_wxURLDataObject_delete_function(void** p) + { + wxURLDataObject* o = (wxURLDataObject*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxURLDataObject_methods[] = { *************** *** 1388,1391 **** --- 1454,1463 ---- + void wxLua_wxDropTarget_delete_function(void** p) + { + wxDropTarget* o = (wxDropTarget*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDropTarget_methods[] = { *************** *** 1512,1516 **** wxDropSource* returns = new wxDropSource(*data, win, *iconCopy, *iconMove, *iconStop); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDropSource((wxDropSource*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); --- 1584,1588 ---- wxDropSource* returns = new wxDropSource(*data, win, *iconCopy, *iconMove, *iconStop); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); *************** *** 1543,1547 **** wxDropSource* returns = new wxDropSource(*data, win, *cursorCopy, *cursorMove, *cursorStop); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDropSource((wxDropSource*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); --- 1615,1619 ---- wxDropSource* returns = new wxDropSource(*data, win, *cursorCopy, *cursorMove, *cursorStop); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); *************** *** 1572,1576 **** wxDropSource* returns = new wxDropSource(win, *iconCopy, *iconMove, *iconStop); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDropSource((wxDropSource*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); --- 1644,1648 ---- wxDropSource* returns = new wxDropSource(win, *iconCopy, *iconMove, *iconStop); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); *************** *** 1601,1605 **** wxDropSource* returns = new wxDropSource(win, *cursorCopy, *cursorMove, *cursorStop); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDropSource((wxDropSource*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); --- 1673,1677 ---- wxDropSource* returns = new wxDropSource(win, *cursorCopy, *cursorMove, *cursorStop); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); *************** *** 1637,1640 **** --- 1709,1718 ---- #endif // ((((wxLUA_USE_wxIcon) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && ((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||(((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxCursor))||(((wxLUA_USE_wxIcon) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && ((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)))||(((wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxCursor)) && ((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))) + void wxLua_wxDropSource_delete_function(void** p) + { + wxDropSource* o = (wxDropSource*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDropSource_methods[] = { *************** *** 1731,1735 **** wxPoint* returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxPoint((wxPoint*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); --- 1809,1813 ---- wxPoint* returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxPoint); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); *************** *** 1746,1749 **** --- 1824,1833 ---- + void wxLua_wxDropFilesEvent_delete_function(void** p) + { + wxDropFilesEvent* o = (wxDropFilesEvent*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDropFilesEvent_methods[] = { *************** *** 1849,1853 **** wxMetafile* returns = new wxMetafile(filename); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); --- 1933,1937 ---- wxMetafile* returns = new wxMetafile(filename); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxMetafile); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); *************** *** 1859,1862 **** --- 1943,1952 ---- + void wxLua_wxMetafile_delete_function(void** p) + { + wxMetafile* o = (wxMetafile*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxMetafile_methods[] = { *************** *** 1898,1902 **** // call Close wxMetafile* returns = (wxMetafile*)self->Close(); ! if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); --- 1988,1992 ---- // call Close wxMetafile* returns = (wxMetafile*)self->Close(); ! if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMetafile); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); *************** *** 1923,1927 **** wxMetafileDC* returns = new wxMetafileDC(filename); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafileDC); --- 2013,2017 ---- wxMetafileDC* returns = new wxMetafileDC(filename); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxMetafileDC); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafileDC); *************** *** 1933,1936 **** --- 2023,2032 ---- + void wxLua_wxMetafileDC_delete_function(void** p) + { + wxMetafileDC* o = (wxMetafileDC*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxMetafileDC_methods[] = { Index: wxcore_event.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_event.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wxcore_event.cpp 27 Sep 2009 03:13:53 -0000 1.17 --- wxcore_event.cpp 1 Oct 2009 04:21:01 -0000 1.18 *************** *** 463,467 **** wxEvtHandler* returns = new wxEvtHandler(); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); --- 463,467 ---- wxEvtHandler* returns = new wxEvtHandler(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxEvtHandler); // push the constructed class pointer [...1073 lines suppressed...] wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpEvent); --- 5129,5133 ---- wxHelpEvent* returns = new wxHelpEvent(type, id, *pt); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxHelpEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpEvent); *************** *** 4935,4938 **** --- 5157,5166 ---- #endif // ((wxLUA_USE_wxPointSizeRect) && (wxCHECK_VERSION(2,8,0)))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) + void wxLua_wxHelpEvent_delete_function(void** p) + { + wxHelpEvent* o = (wxHelpEvent*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxHelpEvent_methods[] = { Index: wxaui_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxaui_bind.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** wxaui_bind.cpp 27 Sep 2009 03:13:51 -0000 1.20 --- wxaui_bind.cpp 1 Oct 2009 04:21:01 -0000 1.21 *************** *** 139,143 **** wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); --- 139,143 ---- wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); *************** *** 161,165 **** wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(command_type, win_id); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); --- 161,165 ---- wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(command_type, win_id); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); *************** *** 182,185 **** --- 182,191 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiNotebookEvent_delete_function(void** p) + { + wxAuiNotebookEvent* o = (wxAuiNotebookEvent*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiNotebookEvent_methods[] = { *************** *** 387,390 **** --- 393,402 ---- + void wxLua_wxAuiNotebookPage_delete_function(void** p) + { + wxAuiNotebookPage* o = (wxAuiNotebookPage*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiNotebookPage_methods[] = { *************** *** 545,549 **** wxAuiNotebookPage* returns = new wxAuiNotebookPage(self->Item(nIndex)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiNotebookPage((wxAuiNotebookPage*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPage); --- 557,561 ---- wxAuiNotebookPage* returns = new wxAuiNotebookPage(self->Item(nIndex)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPage); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPage); *************** *** 582,586 **** wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(*array); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiNotebookPageArray((wxAuiNotebookPageArray*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); --- 594,598 ---- wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(*array); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPageArray); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); *************** *** 597,601 **** wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiNotebookPageArray((wxAuiNotebookPageArray*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); --- 609,613 ---- wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPageArray); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); *************** *** 618,621 **** --- 630,639 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiNotebookPageArray_delete_function(void** p) + { + wxAuiNotebookPageArray* o = (wxAuiNotebookPageArray*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiNotebookPageArray_methods[] = { *************** *** 861,864 **** --- 879,888 ---- + void wxLua_wxAuiTabContainerButton_delete_function(void** p) + { + wxAuiTabContainerButton* o = (wxAuiTabContainerButton*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiTabContainerButton_methods[] = { *************** *** 947,951 **** // call Clone wxAuiTabArt* returns = (wxAuiTabArt*)self->Clone(); ! if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiTabArt(returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); --- 971,975 ---- // call Clone wxAuiTabArt* returns = (wxAuiTabArt*)self->Clone(); ! if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxAuiTabArt); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); *************** *** 1105,1109 **** wxSize* returns = new wxSize(self->GetTabSize(*dc, wnd, caption, *bitmap, active, close_button_state, x_extent)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxSize((wxSize*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); --- 1129,1133 ---- wxSize* returns = new wxSize(self->GetTabSize(*dc, wnd, caption, *bitmap, active, close_button_state, x_extent)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxSize); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); *************** *** 1231,1234 **** --- 1255,1264 ---- + void wxLua_wxAuiTabArt_delete_function(void** p) + { + wxAuiTabArt* o = (wxAuiTabArt*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiTabArt_methods[] = { *************** *** 1293,1297 **** wxAuiDefaultTabArt* returns = new wxAuiDefaultTabArt(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiDefaultTabArt((wxAuiDefaultTabArt*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultTabArt); --- 1323,1327 ---- wxAuiDefaultTabArt* returns = new wxAuiDefaultTabArt(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiDefaultTabArt); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultTabArt); *************** *** 1303,1306 **** --- 1333,1342 ---- + void wxLua_wxAuiDefaultTabArt_delete_function(void** p) + { + wxAuiDefaultTabArt* o = (wxAuiDefaultTabArt*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiDefaultTabArt_methods[] = { *************** *** 1335,1339 **** wxAuiSimpleTabArt* returns = new wxAuiSimpleTabArt(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiSimpleTabArt((wxAuiSimpleTabArt*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiSimpleTabArt); --- 1371,1375 ---- wxAuiSimpleTabArt* returns = new wxAuiSimpleTabArt(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiSimpleTabArt); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiSimpleTabArt); *************** *** 1345,1348 **** --- 1381,1390 ---- + void wxLua_wxAuiSimpleTabArt_delete_function(void** p) + { + wxAuiSimpleTabArt* o = (wxAuiSimpleTabArt*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiSimpleTabArt_methods[] = { *************** *** 2012,2015 **** --- 2054,2063 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiTabCtrl_delete_function(void** p) + { + wxAuiTabCtrl* o = (wxAuiTabCtrl*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiTabCtrl_methods[] = { *************** *** 2290,2294 **** wxBitmap* returns = new wxBitmap(self->GetPageBitmap(page_idx)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxBitmap*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); --- 2338,2342 ---- wxBitmap* returns = new wxBitmap(self->GetPageBitmap(page_idx)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); *************** *** 2741,2744 **** --- 2789,2798 ---- #endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiNotebook_delete_function(void** p) + { + wxAuiNotebook* o = (wxAuiNotebook*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiNotebook_methods[] = { *************** *** 2995,2999 **** wxColour* returns = new wxColour(self->GetColor(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxColour*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); --- 3049,3053 ---- wxColour* returns = new wxColour(self->GetColor(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxColour); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); *************** *** 3016,3020 **** wxColour* returns = new wxColour(self->GetColour(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxColour*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); --- 3070,3074 ---- wxColour* returns = new wxColour(self->GetColour(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxColour); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); *************** *** 3040,3044 **** wxFont* returns = new wxFont(self->GetFont(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (wxFont*)returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); --- 3094,3098 ---- wxFont* returns = new wxFont(self->GetFont(id)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxFont); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); *************** *** 3152,3155 **** --- 3206,3215 ---- + void wxLua_wxAuiDockArt_delete_function(void** p) + { + wxAuiDockArt* o = (wxAuiDockArt*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiDockArt_methods[] = { *************** *** 3213,3217 **** wxAuiDefaultDockArt* returns = new wxAuiDefaultDockArt(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiDefaultDockArt((wxAuiDefaultDockArt*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultDockArt); --- 3273,3277 ---- wxAuiDefaultDockArt* returns = new wxAuiDefaultDockArt(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiDefaultDockArt); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultDockArt); *************** *** 3223,3226 **** --- 3283,3292 ---- + void wxLua_wxAuiDefaultDockArt_delete_function(void** p) + { + wxAuiDefaultDockArt* o = (wxAuiDefaultDockArt*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiDefaultDockArt_methods[] = { *************** *** 3307,3310 **** --- 3373,3382 ---- + void wxLua_wxAuiFloatingFrame_delete_function(void** p) + { + wxAuiFloatingFrame* o = (wxAuiFloatingFrame*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiFloatingFrame_methods[] = { *************** *** 5250,5254 **** wxAuiPaneInfo* returns = new wxAuiPaneInfo(*c); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiPaneInfo((wxAuiPaneInfo*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); --- 5322,5326 ---- wxAuiPaneInfo* returns = new wxAuiPaneInfo(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); *************** *** 5265,5269 **** wxAuiPaneInfo* returns = new wxAuiPaneInfo(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiPaneInfo((wxAuiPaneInfo*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); --- 5337,5341 ---- wxAuiPaneInfo* returns = new wxAuiPaneInfo(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); *************** *** 5344,5347 **** --- 5416,5425 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiPaneInfo_delete_function(void** p) + { + wxAuiPaneInfo* o = (wxAuiPaneInfo*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiPaneInfo_methods[] = { *************** *** 5700,5704 **** wxAuiPaneInfo* returns = new wxAuiPaneInfo(self->Item(nIndex)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiPaneInfo((wxAuiPaneInfo*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); --- 5778,5782 ---- wxAuiPaneInfo* returns = new wxAuiPaneInfo(self->Item(nIndex)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); *************** *** 5737,5741 **** wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(*array); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiPaneInfoArray((wxAuiPaneInfoArray*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); --- 5815,5819 ---- wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(*array); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfoArray); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); *************** *** 5752,5756 **** wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiPaneInfoArray((wxAuiPaneInfoArray*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); --- 5830,5834 ---- wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfoArray); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); *************** *** 5773,5776 **** --- 5851,5860 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiPaneInfoArray_delete_function(void** p) + { + wxAuiPaneInfoArray* o = (wxAuiPaneInfoArray*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiPaneInfoArray_methods[] = { *************** *** 5894,5898 **** wxRect* returns = new wxRect(self->CalculateHintRect(pane_window, *pt, *offset)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxRect((wxRect*)returns)); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); --- 5978,5982 ---- wxRect* returns = new wxRect(self->CalculateHintRect(pane_window, *pt, *offset)); // add the new object to the tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxRect); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); *************** *** 6452,6457 **** // call constructor wxAuiManager* returns = new wxAuiManager(managed_wnd, flags); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); --- 6536,6539 ---- *************** *** 6489,6492 **** --- 6571,6580 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiManager_delete_function(void** p) + { + wxAuiManager* o = (wxAuiManager*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiManager_methods[] = { *************** *** 6775,6779 **** wxAuiManagerEvent* returns = new wxAuiManagerEvent(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); --- 6863,6867 ---- wxAuiManagerEvent* returns = new wxAuiManagerEvent(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiManagerEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); *************** *** 6795,6799 **** wxAuiManagerEvent* returns = new wxAuiManagerEvent(type); // add to tracked memory list ! wxluaO_addgcobject(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); --- 6883,6887 ---- wxAuiManagerEvent* returns = new wxAuiManagerEvent(type); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiManagerEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); *************** *** 6816,6819 **** --- 6904,6913 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiManagerEvent_delete_function(void** p) + { + wxAuiManagerEvent* o = (wxAuiManagerEvent*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiManagerEvent_methods[] = { *************** *** 7243,7247 **** wxAuiDockInfo* returns = new wxAuiDockInfo(*c); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiDockInfo((wxAuiDockInfo*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); --- 7337,7341 ---- wxAuiDockInfo* returns = new wxAuiDockInfo(*c); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiDockInfo); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); *************** *** 7258,7262 **** wxAuiDockInfo* returns = new wxAuiDockInfo(); // add to tracked memory list ! wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxAuiDockInfo((wxAuiDockInfo*)returns)); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); --- 7352,7356 ---- wxAuiDockInfo* returns = new wxAuiDockInfo(); // add to tracked memory list ! wxluaO_addgcobject(L, returns, wxluatype_wxAuiDockInfo); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); *************** *** 7279,7282 **** --- 7373,7382 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiDockInfo_delete_function(void** p) + { + wxAuiDockInfo* o = (wxAuiDockInfo*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiDockInfo_methods[] = { *************** *** 7630,7633 **** --- 7730,7739 ---- + void wxLua_wxAuiDockUIPart_delete_function(void** p) + { + wxAuiDockUIPart* o = (wxAuiDockUIPart*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiDockUIPart_methods[] = { *************** *** 7766,7769 **** --- 7872,7881 ---- + void wxLua_wxAuiPaneButton_delete_function(void** p) + { + wxAuiPaneButton* o = (wxAuiPaneButton*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiPaneButton_methods[] = { *************** *** 8171,8174 **** --- 8283,8292 ---- #endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiMDIParentFrame_delete_function(void** p) + { + wxAuiMDIParentFrame* o = (wxAuiMDIParentFrame*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiMDIParentFrame_methods[] = { *************** *** 8564,8567 **** --- 8682,8691 ---- #endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiMDIChildFrame_delete_function(void** p) + { + wxAuiMDIChildFrame* o = (wxAuiMDIChildFrame*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiMDIChildFrame_methods[] = { *************** *** 8713,8716 **** --- 8837,8846 ---- #endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) + void wxLua_wxAuiMDIClientWindow_delete_function(void** p) + { + wxAuiMDIClientWindow* o = (wxAuiMDIClientWindow*)(*p); + delete o; + } + // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiMDIClientWindow_methods[] = { *************** *** 9010,9059 **** --- 9140,9211 ---- extern wxLuaBindMethod wxAuiDefaultDockArt_methods[]; extern int wxAuiDefaultDockArt_methodCount; + extern void wxLua_wxAuiDefaultDockArt_delete_function(void** p); extern wxLuaBindMethod wxAuiDefaultTabArt_methods[]; extern int wxAuiDefaultTabArt_methodCount; + extern void wxLua_wxAuiDefaultTabArt_delete_function(void** p); extern wxLuaBindMethod wxAuiDockArt_methods[]; extern int wxAuiDockArt_methodCount; + extern void wxLua_wxAuiDockArt_delete_function(void** p); extern wxLuaBindMethod wxAuiDockInfo_methods[]; extern int wxAuiDockInfo_methodCount; + extern void wxLua_wxAuiDockInfo_delete_function(void** p); extern wxLuaBindMethod wxAuiDockUIPart_methods[]; extern int wxAuiDockUIPart_methodCount; extern wxLuaBindNumber wxAuiDockUIPart_enums[]; extern int wxAuiDockUIPart_enumCount; + extern void wxLua_wxAuiDockUIPart_delete_function(void** p); extern wxLuaBindMethod wxAuiFloatingFrame_methods[]; extern int wxAuiFloatingFrame_methodCount; + extern void wxLua_wxAuiFloatingFrame_delete_function(void** p); extern wxLuaBindMethod wxAuiMDIChildFrame_methods[]; extern int wxAuiMDIChildFrame_methodCount; + extern void wxLua_wxAuiMDIChildFrame_delete_function(void** p); extern wxLuaBindMethod wxAuiMDIClientWindow_methods[]; extern int wxAuiMDIClientWindow_methodCount; + extern void wxLua_wxAuiMDIClientWindow_delete_function(void** p); extern wxLuaBindMethod wxAuiMDIParentFrame_methods[]; extern int wxAuiMDIParentFrame_methodCount; + extern void wxLua_wxAuiMDIParentFrame_delete_function(void** p); extern wxLuaBindMethod wxAuiManager_methods[]; extern int wxAuiManager_methodCount; + extern void wxLua_wxAuiManager_delete_function(void** p); extern wxLuaBindMethod wxAuiManagerEvent_methods[]; extern int wxAuiManagerEvent_methodCount; + extern void wxLua_wxAuiManagerEvent_delete_function(void** p); extern wxLuaBindMethod wxAuiNotebook_methods[]; extern int wxAuiNotebook_methodCount; + extern void wxLua_wxAuiNotebook_delete_function(void** p); extern wxLuaBindMethod wxAuiNotebookEvent_methods[]; extern int wxAuiNotebookEvent_methodCount; + extern void wxLua_wxAuiNotebookEvent_delete_function(void** p); extern wxLuaBindMethod wxAuiNotebookPage_methods[]; extern int wxAuiNotebookPage_methodCount; + extern void wxLua_wxAuiNotebookPage_delete_function(void** p); extern wxLuaBindMethod wxAuiNotebookPageArray_methods[]; extern int wxAuiNotebookPageArray_methodCount; + extern void wxLua_wxAuiNotebookPageArray_delete_function(void** p); extern wxLuaBindMethod wxAuiPaneButton_methods[]; extern int wxAuiPaneButton_methodCount; + extern void wxLua_wxAuiPaneButton_delete_function(void** p); extern wxLuaBindMethod wxAuiPaneInfo_methods[]; extern int wxAuiPaneInfo_methodCount; extern wxLuaBindNumber wxAuiPaneInfo_enums[]; extern int wxAuiPaneInfo_enumCount; + extern void wxLua_wxAuiPaneInfo_delete_function(void** p); extern wxLuaBindMethod wxAuiPaneInfoArray_methods[]; extern int wxAuiPaneInfoArray_methodCount; + extern void wxLua_wxAuiPaneInfoArray_delete_function(void** p); extern wxLuaBindMethod wxAuiSimpleTabArt_methods[]; extern int wxAuiSimpleTabArt_methodCount; + extern void wxLua_wxAuiSimpleTabArt_delete_function(void** p); extern wxLuaBindMethod wxAuiTabArt_methods[]; extern int wxAuiTabArt_methodCount; + extern void wxLua_wxAuiTabArt_delete_function(void** p); extern wxLuaBindMethod wxAuiTabContainerButton_methods[]; extern int wxAuiTabContainerButton_methodCount; + extern void wxLua_wxAuiTabContainerButton_delete_function(void** p); extern wxLuaBindMethod wxAuiTabCtrl_methods[]; extern int wxAuiTabCtrl_methodCount; + extern void wxLua_wxAuiTabCtrl_delete_function(void** p); #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI *************** *** 9066,9091 **** { #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI ! { wxluaclassname_wxAuiDefaultDockArt, wxAuiDefaultDockArt_methods, wxAuiDefaultDockArt_methodCount, NULL, &wxluatype_wxAuiDefaultDockArt, wxluabaseclassnames_wxAuiDefaultDockArt, wxluabaseclassbinds_wxAuiDefaultDockArt, NULL, NULL, NULL, 0, }, ! { wxluaclassname_wxAuiDefaultTabArt, wxAuiDefaultTabArt_methods, wxAuiDefaultTabArt_methodCount, NULL, &wxluatype_wxAuiDefaultTabArt, wxluabaseclassnames_wxAuiDefaultTabArt, wxluabaseclassbinds_wxAuiDefaultTabArt, NULL, NULL, NULL, 0, }, ! { wxluaclassname_wxAuiDockArt, wxAuiDockArt_methods, wxAuiDockArt_methodCount, NULL, &wxluatype_wxAuiDockArt, NULL, NULL, NULL, NULL, NULL, 0, }, ! { wxluaclassname_wxAuiDockInfo, wxAuiDockInfo_methods, wxAuiDockInfo_methodCount, NULL, &wxluatype_wxAuiDockInfo, NULL, NULL, NULL, NULL, NULL, 0, }, ! { wxluaclassname_wxAuiDockUIPart, wxAuiDockUIPart_methods, wxAuiDockUIPart_methodCount, NULL, &wxluatype_wxAuiDockUIPart, NULL, NULL, NULL, NULL, wxAuiDockUIPart_enums, wxAuiDockUIPart_enumCount, }, ! { wxluaclassname_wxAuiFloatingFrame, wxAuiFloatingFrame_methods, wxAuiFloatingFrame_methodCount, CLASSINFO(wxAuiFloatingFrame), &wxluatype_wxAuiFloatingFrame, wxluabasec... [truncated message content] |