]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/oglbasic.i
added a few encoding convenience methods for pc-mac encoding and string handling...
[wxWidgets.git] / wxPython / contrib / ogl / oglbasic.i
index 43418c3833019757fbd3056232fac78226cca77b..f12f64033f1abd96a4ec7afe61f61b89592ca516 100644 (file)
@@ -42,7 +42,7 @@
 //---------------------------------------------------------------------------
 
 
-class wxShapeRegion {
+class wxShapeRegion : public wxObject {
 public:
     wxShapeRegion();
     //~wxShapeRegion();
@@ -87,7 +87,7 @@ public:
 %}
 
 
-class wxPyShapeEvtHandler {
+class wxPyShapeEvtHandler : public wxObject {
 public:
     wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL,
                         wxPyShape *shape = NULL);
@@ -95,9 +95,7 @@ public:
     void _setSelf(PyObject* self, PyObject* _class);
     %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShapeEvtHandler)"
 
-    %addmethods {
-        void Destroy() { delete self; }
-    }
+    %addmethods { void Destroy() { delete self; } }
 
     void SetShape(wxPyShape *sh);
     wxPyShape *GetShape();
@@ -231,9 +229,11 @@ public:
     int GetAttachmentMode();
     void SetId(long i);
     long GetId();
+
     void SetPen(wxPen *pen);
     void SetBrush(wxBrush *brush);
 
+
     // void SetClientData(wxObject *client_data);
     // wxObject *GetClientData();
     %addmethods {