diff --git a/include/wx/graphics.h b/include/wx/graphics.h index 8dac635506..7da62bb778 100755 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -64,6 +64,10 @@ class WXDLLIMPEXP_CORE wxGraphicsObject : public wxObject { public : wxGraphicsObject() ; +#if wxABI_VERSION >= 20810 + wxGraphicsObject( const wxGraphicsObject& other) : wxObject( other ) {} + wxGraphicsObject& operator= (const wxGraphicsObject & other) { Ref(other); return *this;} +#endif wxGraphicsObject( wxGraphicsRenderer* renderer ) ; virtual ~wxGraphicsObject() ; @@ -83,6 +87,10 @@ class WXDLLIMPEXP_CORE wxGraphicsPen : public wxGraphicsObject { public : wxGraphicsPen() {} +#if wxABI_VERSION >= 20810 + wxGraphicsPen( const wxGraphicsPen& other) : wxGraphicsObject( other ) {} + wxGraphicsPen& operator= (const wxGraphicsPen & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsPen() {} private : DECLARE_DYNAMIC_CLASS(wxGraphicsPen) @@ -94,6 +102,10 @@ class WXDLLIMPEXP_CORE wxGraphicsBrush : public wxGraphicsObject { public : wxGraphicsBrush() {} +#if wxABI_VERSION >= 20810 + wxGraphicsBrush( const wxGraphicsBrush& other) : wxGraphicsObject( other ) {} + wxGraphicsBrush& operator= (const wxGraphicsBrush & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsBrush() {} private : DECLARE_DYNAMIC_CLASS(wxGraphicsBrush) @@ -105,6 +117,10 @@ class WXDLLIMPEXP_CORE wxGraphicsFont : public wxGraphicsObject { public : wxGraphicsFont() {} +#if wxABI_VERSION >= 20810 + wxGraphicsFont( const wxGraphicsFont& other) : wxGraphicsObject( other ) {} + wxGraphicsFont& operator= (const wxGraphicsFont & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsFont() {} private : DECLARE_DYNAMIC_CLASS(wxGraphicsFont) @@ -116,6 +132,10 @@ class WXDLLIMPEXP_CORE wxGraphicsBitmap : public wxGraphicsObject { public : wxGraphicsBitmap() {} +#if wxABI_VERSION >= 20810 + wxGraphicsBitmap( const wxGraphicsBitmap& other) : wxGraphicsObject( other ) {} + wxGraphicsBitmap& operator= (const wxGraphicsBitmap & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsBitmap() {} private : DECLARE_DYNAMIC_CLASS(wxGraphicsBitmap) @@ -182,6 +202,10 @@ class WXDLLIMPEXP_CORE wxGraphicsMatrix : public wxGraphicsObject { public : wxGraphicsMatrix() {} +#if wxABI_VERSION >= 20810 + wxGraphicsMatrix( const wxGraphicsMatrix& other) : wxGraphicsObject( other ) {} + wxGraphicsMatrix& operator= (const wxGraphicsMatrix & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsMatrix() {} @@ -317,6 +341,10 @@ class WXDLLIMPEXP_CORE wxGraphicsPath : public wxGraphicsObject { public : wxGraphicsPath() {} +#if wxABI_VERSION >= 20810 + wxGraphicsPath( const wxGraphicsPath& other) : wxGraphicsObject( other ) {} + wxGraphicsPath& operator= (const wxGraphicsPath & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsPath() {} // @@ -604,6 +632,10 @@ class WXDLLIMPEXP_CORE wxGraphicsFigure : public wxGraphicsObject { public : wxGraphicsFigure(wxGraphicsRenderer* renderer) ; +#if wxABI_VERSION >= 20810 + wxGraphicsFigure( const wxGraphicsFigure& other) : wxGraphicsObject( other ) {} + wxGraphicsFigure& operator= (const wxGraphicsFigure & other) { Ref(other); return *this;} +#endif virtual ~wxGraphicsFigure() ;