X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e1222c7cd2f1378f32b9e5ff56ad322916cb43b..6a223074d30c2ec81b688f2c0f14845fdaa4da81:/wxPython/src/_gdicmn.i?ds=sidebyside diff --git a/wxPython/src/_gdicmn.i b/wxPython/src/_gdicmn.i index 20c67d6bf7..40b3874e16 100644 --- a/wxPython/src/_gdicmn.i +++ b/wxPython/src/_gdicmn.i @@ -516,10 +516,19 @@ public: wxPoint GetBottomRight() const; void SetBottomRight(const wxPoint &p); + wxPoint GetTopRight() const; + void SetTopRight(const wxPoint &p); + wxPoint GetBottomLeft() const; + void SetBottomLeft(const wxPoint &p); + // wxPoint GetLeftTop() const; // void SetLeftTop(const wxPoint &p); // wxPoint GetRightBottom() const; // void SetRightBottom(const wxPoint &p); +// wxPoint GetRightTop() const; +// void SetRightTop(const wxPoint &p); +// wxPoint GetLeftBottom() const; +// void SetLeftBottom(const wxPoint &p); int GetLeft() const; int GetTop() const; @@ -644,15 +653,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, @@ -708,6 +722,24 @@ usually, but not necessarily, the larger one.", ""); __safe_for_unpickling__ = True def __reduce__(self): return (wx.Rect, self.Get()) } + + + %property(Bottom, GetBottom, SetBottom, doc="See `GetBottom` and `SetBottom`"); + %property(BottomRight, GetBottomRight, SetBottomRight, doc="See `GetBottomRight` and `SetBottomRight`"); + %property(BottomLeft, GetBottomLeft, SetBottomLeft, doc="See `GetBottomLeft` and `SetBottomLeft`"); + %property(Height, GetHeight, SetHeight, doc="See `GetHeight` and `SetHeight`"); + %property(Left, GetLeft, SetLeft, doc="See `GetLeft` and `SetLeft`"); + %property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`"); + %property(Right, GetRight, SetRight, doc="See `GetRight` and `SetRight`"); + %property(Size, GetSize, SetSize, doc="See `GetSize` and `SetSize`"); + %property(Top, GetTop, SetTop, doc="See `GetTop` and `SetTop`"); + %property(TopLeft, GetTopLeft, SetTopLeft, doc="See `GetTopLeft` and `SetTopLeft`"); + %property(TopRight, GetTopRight, SetTopRight, doc="See `GetTopRight` and `SetTopRight`"); + %property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`"); + %property(X, GetX, SetX, doc="See `GetX` and `SetX`"); + %property(Y, GetY, SetY, doc="See `GetY` and `SetY`"); + + %property(Empty, IsEmpty, doc="See `IsEmpty`"); }; @@ -857,6 +889,12 @@ public: __safe_for_unpickling__ = True def __reduce__(self): return (wx.Point2D, self.Get()) } + + %property(Floor, GetFloor, doc="See `GetFloor`"); + %property(Rounded, GetRounded, doc="See `GetRounded`"); + %property(VectorAngle, GetVectorAngle, SetVectorAngle, doc="See `GetVectorAngle` and `SetVectorAngle`"); + %property(VectorLength, GetVectorLength, SetVectorLength, doc="See `GetVectorLength` and `SetVectorLength`"); + };