X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..b519803b436486ca933d750c990ef64a29551221:/wxPython/src/_region.i diff --git a/wxPython/src/_region.i b/wxPython/src/_region.i index 29f18cb677..c26cbe99a1 100644 --- a/wxPython/src/_region.i +++ b/wxPython/src/_region.i @@ -46,29 +46,18 @@ MustHaveApp(wxRegion); class wxRegion : public wxGDIObject { public: wxRegion(wxCoord x=0, wxCoord y=0, wxCoord width=0, wxCoord height=0); - %name(RegionFromBitmap)wxRegion(const wxBitmap& bmp, - const wxColour& transColour = wxNullColour, - int tolerance = 0); -#ifndef __WXMAC__ + %name(RegionFromBitmap)wxRegion(const wxBitmap& bmp); + %name(RegionFromBitmapColour)wxRegion(const wxBitmap& bmp, + const wxColour& transColour, + int tolerance = 0); %name(RegionFromPoints)wxRegion(int points, wxPoint* points_array, int fillStyle = wxWINDING_RULE); -#else - %extend { - %name(RegionFromPoints)wxRegion(int points, wxPoint* points_array, - int fillStyle = wxWINDING_RULE) { - wxPyRaiseNotImplemented(); - return NULL; - } - } -#endif ~wxRegion(); void Clear(); -#ifndef __WXMAC__ bool Offset(wxCoord x, wxCoord y); -#endif wxRegionContain Contains(wxCoord x, wxCoord y); %name(ContainsPoint)wxRegionContain Contains(const wxPoint& pt); @@ -103,9 +92,10 @@ public: // with this region. If the bitmap has a mask then it will be used, // otherwise the colour to be treated as transparent may be specified, // along with an optional tolerance value. - %name(UnionBitmap)bool Union(const wxBitmap& bmp, - const wxColour& transColour = wxNullColour, - int tolerance = 0); + %name(UnionBitmap)bool Union(const wxBitmap& bmp); + %name(UnionBitmapColour)bool Union(const wxBitmap& bmp, + const wxColour& transColour, + int tolerance = 0); };