]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_region.i
This workaround is no longer needed because of fix in
[wxWidgets.git] / wxPython / src / _region.i
index 55a9cc4834a38dde4b67b6b92c5c089cdd14f53f..a1394b3056affc754101b8c887887bcaca659ca9 100644 (file)
@@ -41,12 +41,15 @@ enum wxRegionContain
 
 
 
+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);
+    %name(RegionFromBitmap)wxRegion(const wxBitmap& bmp);
+    %name(RegionFromBitmapColour)wxRegion(const wxBitmap& bmp,
+                                          const wxColour& transColour,
+                                          int   tolerance = 0);
 #ifndef __WXMAC__
     %name(RegionFromPoints)wxRegion(int points, wxPoint* points_array,
                                       int fillStyle = wxWINDING_RULE);
@@ -101,13 +104,16 @@ 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);
 };
 
 
 
+MustHaveApp(wxRegionIterator);
+
 class wxRegionIterator : public wxObject {
 public:
     wxRegionIterator(const wxRegion& region);