Add wx.Rect.CenterIn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -541,7 +541,7 @@ bottom, otherwise it is moved to the left or top respectively.", "",
|
|||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
void, Offset(const wxPoint& pt),
|
void, Offset(const wxPoint& pt),
|
||||||
"Same as OffsetXY but uses dx,dy from Point", "");
|
"Same as `OffsetXY` but uses dx,dy from Point", "");
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
wxRect, Intersect(const wxRect& rect),
|
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,
|
bool, Intersects(const wxRect& rect) const,
|
||||||
"Returns True if the rectangles have a non empty intersection.", "");
|
"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;
|
int x, y, width, height;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user