X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/564cb9de6150b7de9fbbce5b4f8de24792922277..88ef3a57a47f840adea9d38bc11cb30689a0838a:/include/wx/mac/carbon/region.h diff --git a/include/wx/mac/carbon/region.h b/include/wx/mac/carbon/region.h index 923a0014ad..21831e4e54 100644 --- a/include/wx/mac/carbon/region.h +++ b/include/wx/mac/carbon/region.h @@ -12,10 +12,6 @@ #ifndef _WX_REGION_H_ #define _WX_REGION_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "region.h" -#endif - #include "wx/list.h" #include "wx/gdiobj.h" #include "wx/gdicmn.h" @@ -37,7 +33,7 @@ wxRGN_XOR // Creates the union of two combined regions except for any }; class WXDLLEXPORT wxRegion : public wxGDIObject { -DECLARE_DYNAMIC_CLASS(wxRegion); +DECLARE_DYNAMIC_CLASS(wxRegion) friend class WXDLLEXPORT wxRegionIterator; public: wxRegion(long x, long y, long w, long h); @@ -69,6 +65,9 @@ public: // Clear current region void Clear(); + // Move the region + bool Offset(wxCoord x, wxCoord y); + // Union rectangle or region with this. bool Union(long x, long y, long width, long height) { return Combine(x, y, width, height, wxRGN_OR); }