Removed AlignIn after further thought

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-01 17:15:38 +00:00
parent 605dfd9173
commit f67db8c002
2 changed files with 0 additions and 20 deletions

View File

@@ -365,18 +365,6 @@ public:
// return TRUE if the rectangles have a non empty intersection
bool Intersects(const wxRect& rect) const;
// align in another rectangle according to WX alignment flags.
void AlignIn(const wxRect& rect, int align)
{
if (align & wxALIGN_CENTER_HORIZONTAL) x = rect.x + (rect.width-width)/2;
else if (align & wxALIGN_RIGHT) x = rect.x+rect.width - width;
else x = rect.x;
if (align & wxALIGN_CENTER_VERTICAL) y = rect.y + (rect.height-height)/2;
else if (align & wxALIGN_BOTTOM) y = rect.y+rect.height - height;
else y = rect.y;
}
public:
int x, y, width, height;
};