X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f7b34a878bbcb2f71a0c7694e2a3bec51460218..e81a301cbdc8729b0a71fa5dfd7124bf59368673:/include/wx/mgl/region.h?ds=inline diff --git a/include/wx/mgl/region.h b/include/wx/mgl/region.h index 3f9e10461b..62c5386502 100644 --- a/include/wx/mgl/region.h +++ b/include/wx/mgl/region.h @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // Created: 2001/03/12 // RCS-ID: $Id$ -// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) +// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -55,6 +55,8 @@ public: // Clear current region void Clear(void); + bool Offset(wxCoord x, wxCoord y); + // Union rectangle or region with this. bool Union(wxCoord x, wxCoord y, wxCoord width, wxCoord height); bool Union(const wxRect& rect) { return Union(rect.x, rect.y, rect.width, rect.height); } @@ -97,9 +99,11 @@ public: // implementation from now on: const MGLRegion& GetMGLRegion() const; - -private: - void Unshare(); + +protected: + // ref counting code + virtual wxObjectRefData *CreateRefData() const; + virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; };