X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7600a2cabbc4d91dd53d842324eea6f5bfe3fe6..db16e5c3aae30ee4502d3e0d41eed500af365fe9:/include/wx/mac/region.h diff --git a/include/wx/mac/region.h b/include/wx/mac/region.h index ee40f921f7..019c9a4365 100644 --- a/include/wx/mac/region.h +++ b/include/wx/mac/region.h @@ -12,7 +12,7 @@ #ifndef _WX_REGION_H_ #define _WX_REGION_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "region.h" #endif @@ -128,13 +128,13 @@ public: ~wxRegionIterator(); wxRegionIterator& operator=(const wxRegionIterator& iterator); - + void Reset() { m_current = 0; } void Reset(const wxRegion& region); operator bool () const { return m_current < m_numRects; } bool HaveRects() const { return m_current < m_numRects; } - + wxRegionIterator& operator++(); wxRegionIterator operator++(int); @@ -146,6 +146,8 @@ public: long GetHeight() const { return GetH(); } wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); } private: + void SetRects(long numRects, wxRect *rects); + long m_current; long m_numRects; wxRegion m_region;