X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a16d7370e3cdc7d583a6f14ab11b3a1d27b73df..c5bb5453498db88fa0f13ef7ff5e944b220c2fec:/include/wx/gtk/region.h diff --git a/include/wx/gtk/region.h b/include/wx/gtk/region.h index 3aae6270c4..846f1946cf 100644 --- a/include/wx/gtk/region.h +++ b/include/wx/gtk/region.h @@ -37,6 +37,7 @@ public: wxRegion( size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE ); +#if wxUSE_IMAGE wxRegion( const wxBitmap& bmp) { Union(bmp); @@ -46,6 +47,7 @@ public: { Union(bmp, transColour, tolerance); } +#endif // wxUSE_IMAGE virtual ~wxRegion(); @@ -61,9 +63,8 @@ public: GdkRegion *GetRegion() const; protected: - // ref counting code - virtual wxObjectRefData *CreateRefData() const; - virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; + virtual wxGDIRefData *CreateGDIRefData() const; + virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; // wxRegionBase pure virtuals virtual bool DoIsEqual(const wxRegion& region) const; @@ -94,6 +95,10 @@ class WXDLLIMPEXP_CORE wxRegionIterator: public wxObject public: wxRegionIterator(); wxRegionIterator(const wxRegion& region); + wxRegionIterator(const wxRegionIterator& ri) : wxObject(ri) { Init(); *this = ri; } + ~wxRegionIterator(); + + wxRegionIterator& operator=(const wxRegionIterator& ri); void Reset() { m_current = 0u; } void Reset(const wxRegion& region); @@ -113,9 +118,15 @@ public: wxRect GetRect() const; private: + void Init(); + void CreateRects( const wxRegion& r ); + size_t m_current; wxRegion m_region; + wxRect *m_rects; + size_t m_numRects; + private: DECLARE_DYNAMIC_CLASS(wxRegionIterator) };