X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..36d9119341753b2f6f606571702a9b906050a07c:/include/wx/mgl/region.h diff --git a/include/wx/mgl/region.h b/include/wx/mgl/region.h index 9064b15159..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 Vaclav Slavik +// 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; };