X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ae9011bb432b6122e63b3b5a85ab78a3fac7442..c893f25d86ce00a0f5fc0a37a18e41d487a014fb:/wxPython/contrib/ogl/oglshapes.i diff --git a/wxPython/contrib/ogl/oglshapes.i b/wxPython/contrib/ogl/oglshapes.i index 05f39ba9ec..57d32dae49 100644 --- a/wxPython/contrib/ogl/oglshapes.i +++ b/wxPython/contrib/ogl/oglshapes.i @@ -40,7 +40,7 @@ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- -class wxPseudoMetaFile { +class wxPseudoMetaFile : public wxObject { public: wxPseudoMetaFile(); ~wxPseudoMetaFile(); @@ -108,8 +108,9 @@ class wxPyRectangleShape : public wxPyShape { public: wxPyRectangleShape(double width = 0.0, double height = 0.0); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyRectangleShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyRectangleShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void SetCornerRadius(double radius); @@ -158,8 +159,9 @@ public: double size = 0.0, double the_xoffset = 0.0, double the_yoffset = 0.0, int the_type = 0); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyControlPoint)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyControlPoint)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void SetCornerRadius(double radius); @@ -205,8 +207,9 @@ class wxPyBitmapShape : public wxPyRectangleShape { public: wxPyBitmapShape(); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyBitmapShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyBitmapShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" wxBitmap& GetBitmap(); wxString GetFilename(); @@ -254,8 +257,9 @@ class wxPyDrawnShape : public wxPyRectangleShape { public: wxPyDrawnShape(); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyDrawnShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyDrawnShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void CalculateSize(); void DestroyClippingRect(); @@ -326,7 +330,7 @@ public: //--------------------------------------------------------------------------- -class wxOGLConstraint { +class wxOGLConstraint : public wxObject { public: //wxOGLConstraint(int type, wxPyShape *constraining, wxList& constrained); %addmethods { @@ -358,8 +362,9 @@ class wxPyCompositeShape : public wxPyRectangleShape { public: wxPyCompositeShape(); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyCompositeShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyCompositeShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void AddChild(wxPyShape *child, wxPyShape *addAfter = NULL); @@ -403,7 +408,7 @@ public: PyObject* GetDivisions() { wxList& list = self->GetDivisions(); - return wxPy_ConvertList(&list, "wxPyDivisionShape"); + return wxPy_ConvertShapeList(&list, "wxPyDivisionShape"); } } @@ -456,8 +461,9 @@ class wxPyDividedShape : public wxPyRectangleShape { public: wxPyDividedShape(double width = 0.0, double height = 0.0); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyDividedShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyDividedShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void EditRegions(); void SetRegionSizes(); @@ -505,8 +511,9 @@ class wxPyDivisionShape : public wxPyCompositeShape { public: wxPyDivisionShape(); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyDivisionShape)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyDivisionShape)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void AdjustBottom(double bottom, bool test); void AdjustLeft(double left, bool test);