1 \section{\class{wxRect
}}\label{wxrect
}
3 A class for manipulating rectangles.
5 \wxheading{Derived from
}
9 \wxheading{Include files
}
15 \helpref{wxPoint
}{wxpoint
},
\helpref{wxSize
}{wxsize
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxRect::wxRect
}
21 \func{}{wxRect
}{\void}
25 \func{}{wxRect
}{\param{int
}{ x
},
\param{int
}{ y
},
\param{int
}{ width
},
\param{int
}{ height
}}
27 Creates a wxRect object from x, y, width and height values.
29 \func{}{wxRect
}{\param{const wxPoint\&
}{ topLeft
},
\param{const wxPoint\&
}{ bottomRight
}}
31 Creates a wxRect object from top-left and bottom-right points.
33 \func{}{wxRect
}{\param{const wxPoint\&
}{ pos
},
\param{const wxSize\&
}{ size
}}
35 Creates a wxRect object from position and size values.
37 \membersection{wxRect::x
}
43 \membersection{wxRect::y
}
49 \membersection{wxRect::width
}
55 \membersection{wxRect::height
}
61 \membersection{wxRect::GetBottom
}\label{wxrectgetbottom
}
63 \constfunc{int
}{GetBottom
}{\void}
65 Gets the bottom point of the rectangle.
67 \membersection{wxRect::GetHeight
}\label{wxrectgetheight
}
69 \constfunc{int
}{GetHeight
}{\void}
71 Gets the height member.
73 \membersection{wxRect::GetLeft
}\label{wxrectgetleft
}
75 \constfunc{int
}{GetLeft
}{\void}
77 Gets the left point of the rectangle (the same as
\helpref{wxRect::GetX
}{wxrectgetx
}).
79 \membersection{wxRect::GetPosition
}\label{wxrectgetposition
}
81 \constfunc{wxPoint
}{GetPosition
}{\void}
85 \membersection{wxRect::GetRight
}\label{wxrectgetright
}
87 \constfunc{int
}{GetRight
}{\void}
89 Gets the right point of the rectangle.
91 \membersection{wxRect::GetSize
}\label{wxrectgetsize
}
93 \constfunc{wxSize
}{GetSize
}{\void}
97 \membersection{wxRect::GetTop
}\label{wxrectgettop
}
99 \constfunc{int
}{GetTop
}{\void}
101 Gets the top point of the rectangle (the same as
\helpref{wxRect::GetY
}{wxrectgety
}).
103 \membersection{wxRect::GetWidth
}\label{wxrectgetwidth
}
105 \constfunc{int
}{GetWidth
}{\void}
107 Gets the width member.
109 \membersection{wxRect::GetX
}\label{wxrectgetx
}
111 \constfunc{int
}{GetX
}{\void}
115 \membersection{wxRect::GetY
}\label{wxrectgety
}
117 \constfunc{int
}{GetY
}{\void}
121 \membersection{wxRect::Inflate
}\label{wxrectinflate
}
123 \func{void
}{Inflate
}{\param{wxCoord
}{dx
},
\param{wxCoord
}{dy
}}
125 \func{void
}{Inflate
}{\param{wxCoord
}{diff
}}
127 Increase the rectangle size by
{\it dx
} in x direction and
{\it dy
} in y
128 direction. Both (or one of) parameters may be negative to decrease the
131 The second form uses the same
{\it diff
} for both
{\it dx
} and
{\it dy
}.
133 \membersection{wxRect::SetHeight
}\label{wxrectsetheight
}
135 \func{void
}{SetHeight
}{\param{int
}{ height
}}
139 \membersection{wxRect::SetWidth
}\label{wxrectsetwidth
}
141 \func{void
}{SetWidth
}{\param{int
}{ width
}}
145 \membersection{wxRect::SetX
}\label{wxrectsetx
}
147 \func{void
}{SetX
}{\param{int
}{ x
}}
151 \membersection{wxRect::SetY
}\label{wxrectsety
}
153 \func{void
}{SetY
}{\param{int
}{ y
}}
157 \membersection{wxRect::operator $=$
}
159 \func{void
}{operator $=$
}{\param{const wxRect\&
}{rect
}}
163 \membersection{wxRect::operator $==$
}
165 \func{bool
}{operator $==$
}{\param{const wxRect\&
}{rect
}}
169 \membersection{wxRect::operator $!=$
}
171 \func{bool
}{operator $!=$
}{\param{const wxRect\&
}{rect
}}