X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8673a125052b480c4a79772c310586e5eff05bf8..aaa6f9ba6bd0be1fe6a34800e6f753ffdc49900c:/docs/latex/wx/rect.tex diff --git a/docs/latex/wx/rect.tex b/docs/latex/wx/rect.tex index 44239884dd..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} @@ -142,6 +155,10 @@ Gets the right point of the rectangle. Gets the size. +\wxheading{See also} + +\helpref{wxRect::SetSize}{wxrectsetsize} + \membersection{wxRect::GetTop}\label{wxrectgettop} @@ -231,10 +248,18 @@ 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. +\membersection{wxRect::IsEmpty}\label{wxrectisempty} + +\constfunc{bool}{IsEmpty}{} + +Returns {\tt true} if this rectangle has a width or height less than or equal to +0 and {\tt false} otherwise. + + \membersection{wxRect::Offset}\label{wxrectoffset} \func{void}{Offset}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} @@ -253,6 +278,17 @@ bottom, otherwise it is moved to the left or top respectively. Sets the height. +\membersection{wxRect::SetSize}\label{wxrectsetsize} + +\func{void}{SetSize}{\param{const wxSize\&}{ s}} + +Sets the size. + +\wxheading{See also} + +\helpref{wxRect::GetSize}{wxrectgetsize} + + \membersection{wxRect::SetWidth}\label{wxrectsetwidth} \func{void}{SetWidth}{\param{int}{ width}}