]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_obj.i
Merged the wxPy_newswig branch into the HEAD branch (main trunk)
[wxWidgets.git] / wxPython / src / _obj.i
diff --git a/wxPython/src/_obj.i b/wxPython/src/_obj.i
new file mode 100644 (file)
index 0000000..d437664
--- /dev/null
@@ -0,0 +1,34 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        _wxobj.i
+// Purpose:     SWIG interface for wxObject
+//
+// Author:      Robin Dunn
+//
+// Created:     9-Aug-2003
+// RCS-ID:      $Id$
+// Copyright:   (c) 2003 by Total Control Software
+// Licence:     wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+// Not a %module
+
+
+//---------------------------------------------------------------------------
+%newgroup
+
+class wxObject {
+public:
+
+    %extend {
+        wxString GetClassName() {
+            return self->GetClassInfo()->GetClassName();
+        }
+
+        void Destroy() {
+            delete self;
+        }
+    }
+};
+
+
+//---------------------------------------------------------------------------