]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/_oglbasic.i
dllexport buffer classes used by wxString
[wxWidgets.git] / wxPython / contrib / ogl / _oglbasic.i
index 7ceb86fac6474f8b8fb7e93cf82920b7b19cd167..df8052dff63facc5c2ca6fbd66d58ccd3a5d0551 100644 (file)
@@ -82,10 +82,14 @@ public:
 class wxPyShapeEvtHandler : public wxObject {
 public:
     %pythonAppend wxPyShapeEvtHandler "self._setOORandCallbackInfo(PyShapeEvtHandler)"
-    
+     %typemap(out) wxPyShapeEvtHandler*;    // turn off this typemap
+   
     wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL,
                         wxPyShape *shape = NULL);
 
+    %typemap(out) wxPyShapeEvtHandler*      { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
+
+    
     void _setCallbackInfo(PyObject* self, PyObject* _class);
     %extend {
         void _setOORInfo(PyObject* _self) {
@@ -146,9 +150,12 @@ public:
 class wxPyShape : public wxPyShapeEvtHandler {
 public:
     %pythonAppend wxPyShape "self._setOORandCallbackInfo(PyShape)"
-    
+    %typemap(out) wxPyShape*;    // turn off this typemap
+
     wxPyShape(wxPyShapeCanvas *can = NULL);  
 
+    %typemap(out) wxPyShape*                { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
+
     void _setCallbackInfo(PyObject* self, PyObject* _class);
 
     void GetBoundingBoxMax(double *OUTPUT, double *OUTPUT);