- }
-
- 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 ) {}
- void SetPen( const wxPen & ) {}
- void SetBrush( const wxBrush & ) {}
- void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
- const wxColour&, const wxColour&) {}
- void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
- const wxColour &, const wxColour &) {}
- void SetFont( const wxFont & ) {}
- void SetTextColour( const wxColour & ) {}
- void StrokePath( const wxGraphicsPath * ) {}
- void FillPath( const wxGraphicsPath *, int ) {}
- void DrawPath( const wxGraphicsPath *, int ) {}
- void DrawText( const wxString &, wxDouble , wxDouble ) {}
- void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
- void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
- wxDouble *, wxDouble * ) const {}
- void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
- void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
- void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
- void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
- void StrokeLines( size_t , const wxPoint2DDouble *) {}
- void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
- void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
- void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
- void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
- void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ }
+
+ static wxGraphicsContext* CreateFromNativeWindow( void * ) {
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wx.GraphicsContext is not available on this platform.");
+ return NULL;
+ }
+
+ static wxGraphicsContext* Create( wxWindow* ) {
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wx.GraphicsContext is not available on this platform.");
+ return NULL;
+ }
+
+ wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
+
+ virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
+
+ virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
+
+ virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
+ const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
+
+ virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
+ wxDouble xc, wxDouble yc, wxDouble radius,
+ const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
+
+ virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
+
+ virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
+ wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
+
+ virtual void PushState() {}
+ virtual void PopState() {}
+ virtual void Clip( const wxRegion & ) {}
+ virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual void ResetClip() {}
+ virtual void * GetNativeContext() { return NULL; }
+ virtual int GetLogicalFunction() const { return 0; }
+ virtual bool SetLogicalFunction(int ) {}
+ virtual void Translate( wxDouble , wxDouble ) {}
+ virtual void Scale( wxDouble , wxDouble ) {}
+ virtual void Rotate( wxDouble ) {}
+ virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
+ virtual void SetTransform( const wxGraphicsMatrix& ) {}
+ virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
+
+ virtual void SetPen( const wxGraphicsPen& ) {}
+ void SetPen( const wxPen& ) {}
+
+ virtual void SetBrush( const wxGraphicsBrush& ) {}
+ void SetBrush( const wxBrush& ) {}
+
+ virtual void SetFont( const wxGraphicsFont& ) {}
+ void SetFont( const wxFont&, const wxColour& ) {}
+
+ virtual void StrokePath( const wxGraphicsPath & ) {}
+ virtual void FillPath( const wxGraphicsPath &, int ) {}
+ virtual void DrawPath( const wxGraphicsPath &, int ) {}
+
+ virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
+ virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
+ virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
+ virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
+ virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
+ wxDouble *, wxDouble * ) const {}
+ virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
+
+ virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
+
+ virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
+ virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
+ virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
+ virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
+ virtual bool ShouldOffset() const { return false; }
+};
+
+
+class wxGraphicsRenderer : public wxObject
+{
+public :
+ wxGraphicsRenderer() {
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wx.GraphicsRenderer is not available on this platform.");
+ }
+
+ virtual ~wxGraphicsRenderer() {}
+
+ static wxGraphicsRenderer* GetDefaultRenderer() {
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wx.GraphicsRenderer is not available on this platform.");
+ return NULL;
+ }
+
+ virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
+ virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
+ virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
+ virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
+ virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
+
+ virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
+
+ virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
+ wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
+
+ virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
+ virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
+ virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
+ const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
+ virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
+ const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
+ virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }