X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e7ecb7be084f5815051682b2a5809090ebb2706..3d2791f12caee789ac732ac586588dad1fab1947:/wxPython/contrib/ogl/oglbasic.i diff --git a/wxPython/contrib/ogl/oglbasic.i b/wxPython/contrib/ogl/oglbasic.i index 43418c3833..f12f64033f 100644 --- a/wxPython/contrib/ogl/oglbasic.i +++ b/wxPython/contrib/ogl/oglbasic.i @@ -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 {