X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..9342fdbe5e17b09025d53496dd983bc7eb99f21f:/wxPython/contrib/ogl/oglhelpers.h?ds=inline diff --git a/wxPython/contrib/ogl/oglhelpers.h b/wxPython/contrib/ogl/oglhelpers.h index d5c9281858..a4c12d68ff 100644 --- a/wxPython/contrib/ogl/oglhelpers.h +++ b/wxPython/contrib/ogl/oglhelpers.h @@ -97,11 +97,11 @@ //--------------------------------------------------------------------------- // These are prototypes of some helper functions found in ogl.i -wxList* wxPy_wxListHelper(PyObject* pyList, char* className); +wxList* wxPy_wxListHelper(PyObject* pyList, const wxChar* className); wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList); PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source); -PyObject* wxPy_ConvertShapeList(wxListBase* list, const char* className); - +PyObject* wxPy_ConvertShapeList(wxListBase* list); +PyObject* wxPy_ConvertRealPointList(wxListBase* list); //--------------------------------------------------------------------------- @@ -148,6 +148,12 @@ public: wxPyShape(wxPyShapeCanvas *can = NULL) : wxShape(can) {} + virtual void GetBoundingBoxMin(double *width, double *height) + { + if (width) *width = 0.0; + if (height) *height = 0.0; + } + WXSHAPE_DEC_CALLBACKS(); };