added wxRect::CentreIn()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-10 00:01:19 +00:00
parent cae50e6bbd
commit 1bfb73b877
3 changed files with 55 additions and 0 deletions

View File

@@ -68,6 +68,19 @@ Width member.
Height member.
\membersection{wxRect::CentreIn}\label{wxrectcentrein}
\constfunc{wxRect}{CentreIn}{\param{const wxRect\& }{r}, \param{int }{dir = wxBOTH}}
\constfunc{wxRect}{CenterIn}{\param{const wxRect\& }{r}, \param{int }{dir = wxBOTH}}
Returns the rectangle having the same size as this one but centered relatively
to the given rectangle \arg{r}. By default, rectangle is centred in both
directions but if \arg{dir} includes only \texttt{wxVERTICAL} or only
\texttt{wxHORIZONTAL} flag, then it is only centered in this direction while
the other component of its position remains unchanged.
\membersection{wxRect::Deflate}\label{wxrectdeflate}
\func{void}{Deflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}}