From b876c1e435dea63446e48edd63f83694826b7fcf Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 23 Oct 2006 15:52:20 +0000 Subject: [PATCH] Update GraphcsContext/Path dummy classes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_graphics.i | 16 ++++++++++++++-- wxPython/src/gtk/_gdi_wrap.cpp | 16 ++++++++++++++-- wxPython/src/mac/_gdi_wrap.cpp | 16 ++++++++++++++-- wxPython/src/msw/_gdi_wrap.cpp | 16 ++++++++++++++-- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/wxPython/src/_graphics.i b/wxPython/src/_graphics.i index fd5fce2415..6a6bd4bedf 100644 --- a/wxPython/src/_graphics.i +++ b/wxPython/src/_graphics.i @@ -80,11 +80,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 ) {} @@ -135,7 +146,8 @@ public: virtual ~wxGCDC() {} - wxGraphicsContext* GetGraphicContext() { return NULL; } + wxGraphicsContext* GetGraphicsContext() { return NULL; } + void SetGraphicsContext( wxGraphicsContext* ) {} }; #endif diff --git a/wxPython/src/gtk/_gdi_wrap.cpp b/wxPython/src/gtk/_gdi_wrap.cpp index eba4de2de9..4faaf1a028 100644 --- a/wxPython/src/gtk/_gdi_wrap.cpp +++ b/wxPython/src/gtk/_gdi_wrap.cpp @@ -3610,11 +3610,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 ) {} @@ -3665,7 +3676,8 @@ public: virtual ~wxGCDC() {} - wxGraphicsContext* GetGraphicContext() { return NULL; } + wxGraphicsContext* GetGraphicsContext() { return NULL; } + void SetGraphicsContext( wxGraphicsContext* ) {} }; #endif diff --git a/wxPython/src/mac/_gdi_wrap.cpp b/wxPython/src/mac/_gdi_wrap.cpp index 5609329d82..ae46334809 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 diff --git a/wxPython/src/msw/_gdi_wrap.cpp b/wxPython/src/msw/_gdi_wrap.cpp index 5f74b50531..cb9903276a 100644 --- a/wxPython/src/msw/_gdi_wrap.cpp +++ b/wxPython/src/msw/_gdi_wrap.cpp @@ -3592,11 +3592,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 ) {} @@ -3647,7 +3658,8 @@ public: virtual ~wxGCDC() {} - wxGraphicsContext* GetGraphicContext() { return NULL; } + wxGraphicsContext* GetGraphicsContext() { return NULL; } + void SetGraphicsContext( wxGraphicsContext* ) {} }; #endif -- 2.45.2