File: wx193.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (203 lines) | stat: -rw-r--r-- 5,388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<HTML>
<head><title>wxRect</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxrect"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx192.htm#wxrealpoint"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx194.htm#wxrecordset"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxRect</H2>
<P>
A class for manipulating rectangles.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
None<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/gdicmn.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx171.htm#wxpoint">wxPoint</A>, <A HREF="wx205.htm#wxsize">wxSize</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic720">wxRect::wxRect</A><BR>
<A HREF="#topic721">wxRect::x</A><BR>
<A HREF="#topic722">wxRect::y</A><BR>
<A HREF="#topic723">wxRect::width</A><BR>
<A HREF="#topic724">wxRect::height</A><BR>
<A HREF="#wxrectgetbottom">wxRect::GetBottom</A><BR>
<A HREF="#wxrectgetheight">wxRect::GetHeight</A><BR>
<A HREF="#wxrectgetleft">wxRect::GetLeft</A><BR>
<A HREF="#wxrectgetposition">wxRect::GetPosition</A><BR>
<A HREF="#wxrectgetright">wxRect::GetRight</A><BR>
<A HREF="#wxrectgetsize">wxRect::GetSize</A><BR>
<A HREF="#wxrectgettop">wxRect::GetTop</A><BR>
<A HREF="#wxrectgetwidth">wxRect::GetWidth</A><BR>
<A HREF="#wxrectgetx">wxRect::GetX</A><BR>
<A HREF="#wxrectgety">wxRect::GetY</A><BR>
<A HREF="#wxrectsetheight">wxRect::SetHeight</A><BR>
<A HREF="#wxrectsetwidth">wxRect::SetWidth</A><BR>
<A HREF="#wxrectsetx">wxRect::SetX</A><BR>
<A HREF="#wxrectsety">wxRect::SetY</A><BR>
<A HREF="#topic725">wxRect::operator =</A><BR>
<A HREF="#topic726">wxRect::operator ==</A><BR>
<A HREF="#topic727">wxRect::operator !=</A><BR>
<P>

<HR>
<A NAME="topic720"></A>
<H3>wxRect::wxRect</H3>
<P>
<B></B> <B>wxRect</B>()<P>
Default constructor.<P>
<B></B> <B>wxRect</B>(<B>int</B><I> x</I>, <B>int</B><I> y</I>, <B>int</B><I> width</I>, <B>int</B><I> height</I>)<P>
Creates a wxRect object from x, y, width and height values.<P>
<B></B> <B>wxRect</B>(<B>const wxPoint&amp;</B><I> topLeft</I>, <B>const wxPoint&amp;</B><I> bottomRight</I>)<P>
Creates a wxRect object from top-left and bottom-right points.<P>
<B></B> <B>wxRect</B>(<B>const wxPoint&amp;</B><I> pos</I>, <B>const wxSize&amp;</B><I> size</I>)<P>
Creates a wxRect object from position and size values.<P>

<HR>
<A NAME="topic721"></A>
<H3>wxRect::x</H3>
<P>
int x<P>
x member.<P>

<HR>
<A NAME="topic722"></A>
<H3>wxRect::y</H3>
<P>
int y<P>
y member.<P>

<HR>
<A NAME="topic723"></A>
<H3>wxRect::width</H3>
<P>
int width<P>
Width member.<P>

<HR>
<A NAME="topic724"></A>
<H3>wxRect::height</H3>
<P>
int height<P>
Height member.<P>

<HR>
<A NAME="wxrectgetbottom"></A>
<H3>wxRect::GetBottom</H3>
<P>
<B>int</B> <B>GetBottom</B>() <B>const</B><P>
Gets the bottom point of the rectangle.<P>

<HR>
<A NAME="wxrectgetheight"></A>
<H3>wxRect::GetHeight</H3>
<P>
<B>int</B> <B>GetHeight</B>() <B>const</B><P>
Gets the height member.<P>

<HR>
<A NAME="wxrectgetleft"></A>
<H3>wxRect::GetLeft</H3>
<P>
<B>int</B> <B>GetLeft</B>() <B>const</B><P>
Gets the left point of the rectangle (the same as <A HREF="wx193.htm#wxrectgetx">wxRect::GetX</A>).<P>

<HR>
<A NAME="wxrectgetposition"></A>
<H3>wxRect::GetPosition</H3>
<P>
<B>wxPoint</B> <B>GetPosition</B>() <B>const</B><P>
Gets the position.<P>

<HR>
<A NAME="wxrectgetright"></A>
<H3>wxRect::GetRight</H3>
<P>
<B>int</B> <B>GetRight</B>() <B>const</B><P>
Gets the right point of the rectangle.<P>

<HR>
<A NAME="wxrectgetsize"></A>
<H3>wxRect::GetSize</H3>
<P>
<B>wxSize</B> <B>GetSize</B>() <B>const</B><P>
Gets the size.<P>

<HR>
<A NAME="wxrectgettop"></A>
<H3>wxRect::GetTop</H3>
<P>
<B>int</B> <B>GetTop</B>() <B>const</B><P>
Gets the top point of the rectangle (the same as <A HREF="wx193.htm#wxrectgety">wxRect::GetY</A>).<P>

<HR>
<A NAME="wxrectgetwidth"></A>
<H3>wxRect::GetWidth</H3>
<P>
<B>int</B> <B>GetWidth</B>() <B>const</B><P>
Gets the width member.<P>

<HR>
<A NAME="wxrectgetx"></A>
<H3>wxRect::GetX</H3>
<P>
<B>int</B> <B>GetX</B>() <B>const</B><P>
Gets the x member.<P>

<HR>
<A NAME="wxrectgety"></A>
<H3>wxRect::GetY</H3>
<P>
<B>int</B> <B>GetY</B>() <B>const</B><P>
Gets the y member.<P>

<HR>
<A NAME="wxrectsetheight"></A>
<H3>wxRect::SetHeight</H3>
<P>
<B>void</B> <B>SetHeight</B>(<B>int</B><I> height</I>)<P>
Sets the height.<P>

<HR>
<A NAME="wxrectsetwidth"></A>
<H3>wxRect::SetWidth</H3>
<P>
<B>void</B> <B>SetWidth</B>(<B>int</B><I> width</I>)<P>
Sets the width.<P>

<HR>
<A NAME="wxrectsetx"></A>
<H3>wxRect::SetX</H3>
<P>
<B>void</B> <B>SetX</B>(<B>int</B><I> x</I>)<P>
Sets the x position.<P>

<HR>
<A NAME="wxrectsety"></A>
<H3>wxRect::SetY</H3>
<P>
<B>void</B> <B>SetY</B>(<B>int</B><I> y</I>)<P>
Sets the y position.<P>

<HR>
<A NAME="topic725"></A>
<H3>wxRect::operator =</H3>
<P>
<B>void</B> <B>operator =</B>(<B>const wxRect&amp; </B><I>rect</I>)<P>
Assignment operator.<P>

<HR>
<A NAME="topic726"></A>
<H3>wxRect::operator ==</H3>
<P>
<B>bool</B> <B>operator ==</B>(<B>const wxRect&amp; </B><I>rect</I>)<P>
Equality operator.<P>

<HR>
<A NAME="topic727"></A>
<H3>wxRect::operator !=</H3>
<P>
<B>bool</B> <B>operator !=</B>(<B>const wxRect&amp; </B><I>rect</I>)<P>
Inequality operator.<P>


</BODY></HTML>