X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9838df2cefc5b368bb11f98c784ecc78f45ecaf7..4104ed92a537f36f7f41ce07d34cadbe4d78685c:/docs/latex/wx/rect.tex diff --git a/docs/latex/wx/rect.tex b/docs/latex/wx/rect.tex index c99b66b423..63216a5bbf 100644 --- a/docs/latex/wx/rect.tex +++ b/docs/latex/wx/rect.tex @@ -6,6 +6,10 @@ A class for manipulating rectangles. None +\wxheading{Include files} + + + \wxheading{See also} \helpref{wxPoint}{wxpoint}, \helpref{wxSize}{wxsize} @@ -34,13 +38,13 @@ Creates a wxRect object from position and size values. \member{int}{x} -x member. +x coordinate of the top-level corner of the rectangle. \membersection{wxRect::y} \member{int}{y} -y member. +y coordinate of the top-level corner of the rectangle. \membersection{wxRect::width} @@ -54,6 +58,27 @@ Width member. Height member. +\membersection{wxRect::Deflate}\label{wxrectdeflate} + +\func{void}{Deflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} + +\func{void}{Deflate}{\param{wxCoord }{diff}} + +\constfunc{wxRect}{Deflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} + +Decrease the rectangle size by {\it dx} in x direction and {\it dy} in y +direction. Both (or one of) parameters may be negative to increase the +rectngle size. This method is the opposite of \helpref{Inflate}{wxrectinflate}. + +The second form uses the same {\it diff} for both {\it dx} and {\it dy}. + +The first two versions modify the rectangle in place, the last one returns a +new rectangle leaving this one unchanged. + +\wxheading{See also} + +\helpref{Inflate}{wxrectinflate} + \membersection{wxRect::GetBottom}\label{wxrectgetbottom} \constfunc{int}{GetBottom}{\void} @@ -114,6 +139,53 @@ Gets the x member. Gets the y member. +\membersection{wxRect::Inflate}\label{wxrectinflate} + +\func{void}{Inflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} + +\func{void}{Inflate}{\param{wxCoord }{diff}} + +\constfunc{wxRect}{Inflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} + +Increase the rectangle size by {\it dx} in x direction and {\it dy} in y +direction. Both (or one of) parameters may be negative to decrease the +rectangle size. + +The second form uses the same {\it diff} for both {\it dx} and {\it dy}. + +The first two versions modify the rectangle in place, the last one returns a +new rectangle leaving this one unchanged. + +\wxheading{See also} + +\helpref{Deflate}{wxrectdeflate} + +\membersection{wxRect:Inside}\label{wxrectinside} + +\constfunc{bool}{Inside}{\param{int }{x}, \param{int }{y}} + +\constfunc{bool}{Inside}{\param{const wxPoint\& }{pt}} + +Returns {\tt true} if the given point is inside the rectangle (or on its +boundary) and {\tt false} otherwise. + +\membersection{wxRect:Intersects}\label{wxrectintersects} + +\constfunc{bool}{Intersects}{\param{const wxRect\& }{rect}} + +Returns {\tt true} if this rectangle has a non empty intersection with the +rectangle {\it rect} and {\tt false} otherwise. + +\membersection{wxRect::Offset}\label{wxrectoffset} + +\func{void}{Offset}{\param{wxCoord }{dx}, \param{wxCoord }{dy}} + +\func{void}{Offset}{\param{const wxPoint\& }{pt}} + +Moves the rectangle by the specified offset. If {\it dx} is positive, the +rectangle is moved to the right, if {\it dy} is positive, it is moved to the +bottom, otherwise it is moved to the left or top respectively. + \membersection{wxRect::SetHeight}\label{wxrectsetheight} \func{void}{SetHeight}{\param{int}{ height}} @@ -156,4 +228,3 @@ Equality operator. Inequality operator. -