X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e6b35578d9be94739e1f9ebadcb57d9a483db6a..bc50a2ae95f2ab36b16ceedc7902a9cbfb2f70ea:/wxPython/src/_gdicmn.i diff --git a/wxPython/src/_gdicmn.i b/wxPython/src/_gdicmn.i index 22a3d83fbc..bb54248466 100644 --- a/wxPython/src/_gdicmn.i +++ b/wxPython/src/_gdicmn.i @@ -113,8 +113,8 @@ enum wxStockCursor DocStr( wxSize, "wx.Size is a useful data structure used to represent the size of -something. It simply contians integer width and height -proprtites. In most places in wxPython where a wx.Size is +something. It simply contains integer width and height +properties. In most places in wxPython where a wx.Size is expected a (width, height) tuple can be used instead.", ""); class wxSize @@ -541,7 +541,7 @@ bottom, otherwise it is moved to the left or top respectively.", "", DocDeclStr( void, Offset(const wxPoint& pt), - "Same as OffsetXY but uses dx,dy from Point", ""); + "Same as `OffsetXY` but uses dx,dy from Point", ""); DocDeclStr( wxRect, Intersect(const wxRect& rect), @@ -577,6 +577,12 @@ bottom, otherwise it is moved to the left or top respectively.", "", bool, Intersects(const wxRect& rect) const, "Returns True if the rectangles have a non empty intersection.", ""); + DocDeclStr( + wxRect, CenterIn(const wxRect& r, int dir = wxBOTH), + "Center this rectangle within the one passed to the method, which is +usually, but not necessarily, the larger one.", ""); + %pythoncode { CentreIn = CenterIn } + int x, y, width, height;