X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b737ad10dec946cd7d5e38c43c666e8efe89f0ae..83811067515a49ce16e9502c1cf217497a216b18:/docs/latex/wx/rect.tex diff --git a/docs/latex/wx/rect.tex b/docs/latex/wx/rect.tex index 8e3c6bf1de..8e6b9fe02d 100644 --- a/docs/latex/wx/rect.tex +++ b/docs/latex/wx/rect.tex @@ -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}} @@ -126,7 +139,7 @@ Gets the topleft position of the rectangle. (Same as GetPosition). \constfunc{wxPoint}{GetBottomRight}{\void} -Gets the the bottom right position. Returns the bottom right point inside the rectangle. +Gets the bottom right position. Returns the bottom right point inside the rectangle. \membersection{wxRect::GetRight}\label{wxrectgetright} @@ -235,7 +248,7 @@ boundary) and {\tt false} otherwise. \constfunc{bool}{Intersects}{\param{const wxRect\& }{rect}} -Returns {\tt true} if this rectangle has a non empty intersection with the +Returns {\tt true} if this rectangle has a non-empty intersection with the rectangle {\it rect} and {\tt false} otherwise.