X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d318df4bbbd981948c27adc96d5cb3d293bbdfb5..d2c2afc91be4bdb6e036516785f334ddb54afa0c:/src/cocoa/region.cpp diff --git a/src/cocoa/region.cpp b/src/cocoa/region.cpp index 202b1dc76b..882030e070 100644 --- a/src/cocoa/region.cpp +++ b/src/cocoa/region.cpp @@ -45,6 +45,11 @@ void wxRegion::Clear() UnRef(); } +bool wxRegion::Offset(wxCoord x, wxCoord y) +{ + return false; +} + bool wxRegion::Combine(long x, long y, long width, long height, wxRegionOp op) { return false; @@ -100,16 +105,69 @@ wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h) { } +wxRegion::wxRegion(const wxRect& rect) +{ +} + wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) { } +// ---------------------------------------------------------------------------- +// wxRegionIterator +// ---------------------------------------------------------------------------- + wxRegionIterator::wxRegionIterator() { + m_current = + m_numRects = 0; + m_rects = NULL; +} + +wxRegionIterator::wxRegionIterator(const wxRegion& region) +{ + m_current = + m_numRects = 0; + + m_rects = NULL; +} + +wxRegionIterator::wxRegionIterator(const wxRegionIterator& iterator) +{ + m_current = iterator.m_current; + m_numRects = iterator.m_numRects; + + // TODO: copy m_rects + m_rects = NULL; +} + +wxRegionIterator wxRegionIterator::operator++(int) +{ + return wxRegionIterator(*this); +} + +long wxRegionIterator::GetX() const +{ + return 0; +} + +long wxRegionIterator::GetY() const +{ + return 0; +} + +long wxRegionIterator::GetW() const +{ + return 0; +} + +long wxRegionIterator::GetH() const +{ + return 0; } wxRegionIterator::~wxRegionIterator() { + // delete [] m_rects; } -// vi:sts=4:sw=4:et