X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85f6b408dfd796805b1c43718e69549506353ca7..2f0e16e186a58e730e38400f5ddd96df62ee19bb:/include/wx/mac/carbon/region.h diff --git a/include/wx/mac/carbon/region.h b/include/wx/mac/carbon/region.h index 24c060337f..33440ec1a6 100644 --- a/include/wx/mac/carbon/region.h +++ b/include/wx/mac/carbon/region.h @@ -37,13 +37,14 @@ 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); wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight); wxRegion(const wxRect& rect); wxRegion( WXHRGN hRegion ); + wxRegion(size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE ); wxRegion(); wxRegion(const wxBitmap& bmp) { @@ -68,6 +69,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); }