X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85f6b408dfd796805b1c43718e69549506353ca7..de370efe24890ba047093c74322333d57d510d58:/include/wx/os2/region.h diff --git a/include/wx/os2/region.h b/include/wx/os2/region.h index 6205315f22..d0b54162b4 100644 --- a/include/wx/os2/region.h +++ b/include/wx/os2/region.h @@ -59,14 +59,6 @@ public: wxRegion(); ~wxRegion(); - // - // Copying - // - inline wxRegion(const wxRegion& rSrc) - { Ref(rSrc); } - inline wxRegion& operator = (const wxRegion& rSrc) - { Ref(rSrc); return (*this); } - // // Modify region // @@ -178,10 +170,9 @@ public: // Tests // Does the region contain the point (x,y)? // - wxRegionContain Contains( wxCoord lX - ,wxCoord lY - ) const; - + inline wxRegionContain Contains( wxCoord lX, wxCoord lY ) const{ + return Contains( wxPoint( lX, lY ) ); + } // // Convert the region to a B&W bitmap with the black pixels being inside // the region. @@ -214,7 +205,10 @@ public: // // Does the region contain the rectangle rect? // - wxRegionContain Contains(const wxRect& rRect) const; + inline wxRegionContain Contains(const wxRect& rRect) const{ + return Contains( rRect.x, rRect.y, + rRect.GetWidth(), rRect.GetHeight()); + } // // Internal