]> git.saurik.com Git - wxWidgets.git/commitdiff
Inside --> Contains
authorRobin Dunn <robin@alldunn.com>
Thu, 14 Sep 2006 20:28:28 +0000 (20:28 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 14 Sep 2006 20:28:28 +0000 (20:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_gdicmn.i

index d1be49859b4c99d17661cec5376849cd6e6b3312..f819bd50d8c756bd5f9a7cab3b93c922cfff1112 100644 (file)
@@ -644,15 +644,20 @@ bottom, otherwise it is moved to the left or top respectively.", "",
     }
 
     
-    DocStr( Inside, "Return True if the point is (not strcitly) inside the rect.", "");
-    %Rename(InsideXY, bool, Inside(int x, int y) const);
-    bool Inside(const wxPoint& pt) const;
+    DocStr( Contains, "Return True if the point is inside the rect.", "");
+    %Rename(ContainsXY, bool, Contains(int x, int y) const);
+    bool Contains(const wxPoint& pt) const;
 
     DocDeclStrName(
-        bool, Inside(const wxRect& rect) const,
+        bool, Contains(const wxRect& rect) const,
         "Returns ``True`` if the given rectangle is completely inside this
 rectangle or touches its boundary.", "",
-        InsideRect);
+        ContainsRect);
+    %pythoncode {
+        Inside = wx._deprecated(Contains, "Use `Contains` instead.")
+        InsideXY = wx._deprecated(ContainsXY, "Use `ContainsXY` instead.")
+        InsideRect = wx._deprecated(ContainsRect, "Use `ContainsRect` instead.")
+    }
     
     DocDeclStr(    
         bool, Intersects(const wxRect& rect) const,