X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..0228081ff2d7642df743e812aa3d46cf61efa1d2:/include/wx/os2/region.h diff --git a/include/wx/os2/region.h b/include/wx/os2/region.h index 348f24008b..b19dfd045d 100644 --- a/include/wx/os2/region.h +++ b/include/wx/os2/region.h @@ -21,10 +21,6 @@ class WXDLLEXPORT wxRect; class WXDLLEXPORT wxPoint; -enum wxRegionContain { - wxOutRegion = 0, wxPartRegion = 1, wxInRegion = 2 -}; - // So far, for internal use only enum wxRegionOp { wxRGN_AND // Creates the intersection of the two combined regions. ,wxRGN_COPY // Creates a copy of the region identified by hrgnSrc1. @@ -170,10 +166,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. @@ -206,7 +201,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