copy constructors and assignement operators for wxGraphicsObject subclasses

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-01-09 18:46:48 +00:00
parent 80061353ef
commit 73d2bd8f21

View File

@@ -64,6 +64,10 @@ class WXDLLIMPEXP_CORE wxGraphicsObject : public wxObject
{ {
public : public :
wxGraphicsObject() ; wxGraphicsObject() ;
#if wxABI_VERSION >= 20810
wxGraphicsObject( const wxGraphicsObject& other) : wxObject( other ) {}
wxGraphicsObject& operator= (const wxGraphicsObject & other) { Ref(other); return *this;}
#endif
wxGraphicsObject( wxGraphicsRenderer* renderer ) ; wxGraphicsObject( wxGraphicsRenderer* renderer ) ;
virtual ~wxGraphicsObject() ; virtual ~wxGraphicsObject() ;
@@ -83,6 +87,10 @@ class WXDLLIMPEXP_CORE wxGraphicsPen : public wxGraphicsObject
{ {
public : public :
wxGraphicsPen() {} wxGraphicsPen() {}
#if wxABI_VERSION >= 20810
wxGraphicsPen( const wxGraphicsPen& other) : wxGraphicsObject( other ) {}
wxGraphicsPen& operator= (const wxGraphicsPen & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsPen() {} virtual ~wxGraphicsPen() {}
private : private :
DECLARE_DYNAMIC_CLASS(wxGraphicsPen) DECLARE_DYNAMIC_CLASS(wxGraphicsPen)
@@ -94,6 +102,10 @@ class WXDLLIMPEXP_CORE wxGraphicsBrush : public wxGraphicsObject
{ {
public : public :
wxGraphicsBrush() {} wxGraphicsBrush() {}
#if wxABI_VERSION >= 20810
wxGraphicsBrush( const wxGraphicsBrush& other) : wxGraphicsObject( other ) {}
wxGraphicsBrush& operator= (const wxGraphicsBrush & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsBrush() {} virtual ~wxGraphicsBrush() {}
private : private :
DECLARE_DYNAMIC_CLASS(wxGraphicsBrush) DECLARE_DYNAMIC_CLASS(wxGraphicsBrush)
@@ -105,6 +117,10 @@ class WXDLLIMPEXP_CORE wxGraphicsFont : public wxGraphicsObject
{ {
public : public :
wxGraphicsFont() {} wxGraphicsFont() {}
#if wxABI_VERSION >= 20810
wxGraphicsFont( const wxGraphicsFont& other) : wxGraphicsObject( other ) {}
wxGraphicsFont& operator= (const wxGraphicsFont & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsFont() {} virtual ~wxGraphicsFont() {}
private : private :
DECLARE_DYNAMIC_CLASS(wxGraphicsFont) DECLARE_DYNAMIC_CLASS(wxGraphicsFont)
@@ -116,6 +132,10 @@ class WXDLLIMPEXP_CORE wxGraphicsBitmap : public wxGraphicsObject
{ {
public : public :
wxGraphicsBitmap() {} wxGraphicsBitmap() {}
#if wxABI_VERSION >= 20810
wxGraphicsBitmap( const wxGraphicsBitmap& other) : wxGraphicsObject( other ) {}
wxGraphicsBitmap& operator= (const wxGraphicsBitmap & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsBitmap() {} virtual ~wxGraphicsBitmap() {}
private : private :
DECLARE_DYNAMIC_CLASS(wxGraphicsBitmap) DECLARE_DYNAMIC_CLASS(wxGraphicsBitmap)
@@ -182,6 +202,10 @@ class WXDLLIMPEXP_CORE wxGraphicsMatrix : public wxGraphicsObject
{ {
public : public :
wxGraphicsMatrix() {} wxGraphicsMatrix() {}
#if wxABI_VERSION >= 20810
wxGraphicsMatrix( const wxGraphicsMatrix& other) : wxGraphicsObject( other ) {}
wxGraphicsMatrix& operator= (const wxGraphicsMatrix & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsMatrix() {} virtual ~wxGraphicsMatrix() {}
@@ -317,6 +341,10 @@ class WXDLLIMPEXP_CORE wxGraphicsPath : public wxGraphicsObject
{ {
public : public :
wxGraphicsPath() {} wxGraphicsPath() {}
#if wxABI_VERSION >= 20810
wxGraphicsPath( const wxGraphicsPath& other) : wxGraphicsObject( other ) {}
wxGraphicsPath& operator= (const wxGraphicsPath & other) { Ref(other); return *this;}
#endif
virtual ~wxGraphicsPath() {} virtual ~wxGraphicsPath() {}
// //
@@ -604,6 +632,10 @@ class WXDLLIMPEXP_CORE wxGraphicsFigure : public wxGraphicsObject
{ {
public : public :
wxGraphicsFigure(wxGraphicsRenderer* renderer) ; 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() ; virtual ~wxGraphicsFigure() ;