X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a27f3943619be8fe8b3c6acb6140aae1c6503de..59571b718e142de7159c6ad3a86d15d4e896593a:/wxPython/src/mac/_gdi_wrap.cpp diff --git a/wxPython/src/mac/_gdi_wrap.cpp b/wxPython/src/mac/_gdi_wrap.cpp index 4218a491f3..ceb431498e 100644 --- a/wxPython/src/mac/_gdi_wrap.cpp +++ b/wxPython/src/mac/_gdi_wrap.cpp @@ -3614,11 +3614,22 @@ public: wxPyEndBlockThreads(blocked); return NULL; } - + + static wxGraphicsContext* CreateFromNative( void * ) { + wxPyBlock_t blocked = wxPyBeginBlockThreads(); + PyErr_SetString(PyExc_NotImplementedError, + "wxGraphicsContext is not available on this platform."); + wxPyEndBlockThreads(blocked); + return NULL; + } + wxGraphicsPath * CreatePath() { return NULL; } void PushState() {} void PopState() {} void Clip( const wxRegion & ) {} + void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {} + void ResetClip() {} + void * GetNativeContext() { return NULL; } void Translate( wxDouble , wxDouble ) {} void Scale( wxDouble , wxDouble ) {} void Rotate( wxDouble ) {} @@ -3669,7 +3680,8 @@ public: virtual ~wxGCDC() {} - wxGraphicsContext* GetGraphicContext() { return NULL; } + wxGraphicsContext* GetGraphicsContext() { return NULL; } + void SetGraphicsContext( wxGraphicsContext* ) {} }; #endif @@ -3696,6 +3708,9 @@ SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,Py #include "wx/dcgraph.h" +#include + + SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ self->AddColour(name, wxColour(red, green, blue)); @@ -27223,9 +27238,7 @@ SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObjec wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - { - resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); - } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL;