1 {{+bindTo:partials.standard_nacl_api}}
2 <h1>pp::FloatRect Class Reference</h1>
4 {{- dummy div to appease doxygen -}}
6 <!-- Generated by Doxygen 1.7.6.1 -->
12 <div class="contents">
13 <!-- doxytag: class="pp::FloatRect" -->
14 <p><a href="classpp_1_1_float_rect-members.html">List of all members.</a></p>
16 Public Member Functions</h2><table class="memberdecls">
18 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">FloatRect</a> ()</td></tr>
19 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#aaf4f5bb63c29eb79aa336bf0444d19ac">FloatRect</a> (const PP_FloatRect &rect)</td></tr>
20 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a8216cb8951805b04a00909b860a949dc">FloatRect</a> (float w, float h)</td></tr>
21 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a02d2648692b0882ff54d812da3704aeb">FloatRect</a> (float <a class="el" href="classpp_1_1_float_rect.html#a4820c673dc07e6b35f8fc0c42368e92c">x</a>, float <a class="el" href="classpp_1_1_float_rect.html#ae31847965339e36aa1fe6c4cf8cf479c">y</a>, float w, float h)</td></tr>
22 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a7072595c890bc203544e55cd926d72ae">FloatRect</a> (const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> &s)</td></tr>
23 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a643d926ee6f5e9208fccffd47c1d22be">FloatRect</a> (const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> &origin, const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> &size)</td></tr>
24 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#aa64361055526791e34cba09d97d2cf75">~FloatRect</a> ()</td></tr>
25 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a85c34bdfd11703d4cc86486b3f38a032">operator PP_FloatRect</a> () const </td></tr>
26 <tr><td class="memItemLeft" align="right" valign="top">const PP_FloatRect & </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#aa63a6eab8caae819c7efb133b89e3ec2">pp_float_rect</a> () const </td></tr>
27 <tr><td class="memItemLeft" align="right" valign="top">PP_FloatRect & </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a796ff93f77b488ac673b0e82a2527507">pp_float_rect</a> ()</td></tr>
28 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a4820c673dc07e6b35f8fc0c42368e92c">x</a> () const </td></tr>
29 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a52ed4022d98fc75e2bfd942ba0fb982f">set_x</a> (float in_x)</td></tr>
30 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#ae31847965339e36aa1fe6c4cf8cf479c">y</a> () const </td></tr>
31 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a3b3a43a2764b7c0b6e6fad7bed300164">set_y</a> (float in_y)</td></tr>
32 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a25ffcc41df9f488acf15613f20e240db">width</a> () const </td></tr>
33 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a9553c5bf8b2c00bc9eeb7a7c2c22d0f7">set_width</a> (float w)</td></tr>
34 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a9dc3d3004aacf708356a73e09d1cc96e">height</a> () const </td></tr>
35 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a81a0cc8fc8521167b34b10e75f94679f">set_height</a> (float h)</td></tr>
36 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#ae3f310aaeb5634e9f2ca7d51e35526a5">point</a> () const </td></tr>
37 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a80c403de88c32d76c0a774e2af5c4973">set_point</a> (const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> &origin)</td></tr>
38 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_size.html">FloatSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#aee27f20031234762c710d441bc0cd148">Floatsize</a> () const </td></tr>
39 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a132796b0ca75d600509731d8c5a83736">set_size</a> (const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> &s)</td></tr>
40 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a34632c0a01c72fce447ac6b6f0cdf86b">right</a> () const </td></tr>
41 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#ae356a34c997e6c291fdc0e3431a0a63c">bottom</a> () const </td></tr>
42 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#acfadd4bca5c16f05d138e4074b557df2">SetRect</a> (float <a class="el" href="classpp_1_1_float_rect.html#a4820c673dc07e6b35f8fc0c42368e92c">x</a>, float <a class="el" href="classpp_1_1_float_rect.html#ae31847965339e36aa1fe6c4cf8cf479c">y</a>, float w, float h)</td></tr>
43 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#ae5c915a40cd7689798c7395824132117">SetRect</a> (const PP_FloatRect &rect)</td></tr>
44 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a2d8abde94cff6a5813c2849dce42d707">Inset</a> (float horizontal, float vertical)</td></tr>
45 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a24f94c63d2f097bd7f8b45a2c375077c">Inset</a> (float left, float top, float <a class="el" href="classpp_1_1_float_rect.html#a34632c0a01c72fce447ac6b6f0cdf86b">right</a>, float <a class="el" href="classpp_1_1_float_rect.html#ae356a34c997e6c291fdc0e3431a0a63c">bottom</a>)</td></tr>
46 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a9b5247961b45da6dc5c656b906462f8b">Offset</a> (float horizontal, float vertical)</td></tr>
47 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a60fce18269499d5c9f8c2446319844c3">Offset</a> (const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> &<a class="el" href="classpp_1_1_float_rect.html#ae3f310aaeb5634e9f2ca7d51e35526a5">point</a>)</td></tr>
48 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a73c6f15d2c2ed26a2bd8893efeab1dcb">IsEmpty</a> () const </td></tr>
49 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43">Contains</a> (float point_x, float point_y) const </td></tr>
50 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a82eaf22456cdf77d6a588ae86e4e86f9">Contains</a> (const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> &<a class="el" href="classpp_1_1_float_rect.html#ae3f310aaeb5634e9f2ca7d51e35526a5">point</a>) const </td></tr>
51 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#afcdf6b7eb8e1b931ac482c973af9fa9e">Contains</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
52 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a701e3ca1e1cbd0ee10c432effb119088">Intersects</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
53 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a6529366c00323c6d6495f3db14906ce8">Intersect</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
54 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#abb13835e0dbea82794cd4fa9140adb1e">Union</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
55 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a8b1c8031d1442dfcc0d11ea75b396683">Subtract</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
56 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#af0009bd0ff6ac801359fb9d15a8c1b7c">AdjustToFit</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
57 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a55eafb38d0a63a1a8b1ad0a4aeeef3f3">CenterPoint</a> () const </td></tr>
58 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpp_1_1_float_rect.html#a9ab2652f39dc26de8c6750cc8d75d66a">SharesEdgeWith</a> (const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> &rect) const </td></tr>
60 <hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
61 <div class="textblock"><p>A 2 dimensional rectangle. </p>
62 <p>A rectangle is represented by x and y (which identifies the upper-left corner of the rectangle), width, and height. </p>
63 </div><hr /><h2>Constructor & Destructor Documentation</h2>
64 <a class="anchor" id="a00133448de297c5ed19b7831c456bf23"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="a00133448de297c5ed19b7831c456bf23" args="()" -->
66 <div class="memproto">
67 <table class="memname">
69 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
71 <td class="paramname"></td><td>)</td>
72 <td><code> [inline]</code></td>
77 <p>The default constructor. </p>
78 <p>Creates a <code><a class="el" href="classpp_1_1_rect.html" title="A 2 dimensional rectangle.">Rect</a></code> in the upper-left at 0.0f,0.0f with height and width of 0.0f. </p>
81 <a class="anchor" id="aaf4f5bb63c29eb79aa336bf0444d19ac"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="aaf4f5bb63c29eb79aa336bf0444d19ac" args="(const PP_FloatRect &rect)" -->
83 <div class="memproto">
84 <table class="memname">
86 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
88 <td class="paramtype">const PP_FloatRect & </td>
89 <td class="paramname"><em>rect</em></td><td>)</td>
90 <td><code> [inline]</code></td>
95 <p>A constructor accepting a reference to a <code>PP_FloatRect and</code> converting the <code>PP_FloatRect</code> to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>. </p>
96 <p>This is an implicit conversion constructor.</p>
97 <dl class="params"><dt><b>Parameters:</b></dt><dd>
98 <table class="params">
99 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A <code>PP_FloatRect</code>. </td></tr>
105 <a class="anchor" id="a8216cb8951805b04a00909b860a949dc"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="a8216cb8951805b04a00909b860a949dc" args="(float w, float h)" -->
106 <div class="memitem">
107 <div class="memproto">
108 <table class="memname">
110 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
112 <td class="paramtype">float </td>
113 <td class="paramname"><em>w</em>, </td>
116 <td class="paramkey"></td>
118 <td class="paramtype">float </td>
119 <td class="paramname"><em>h</em> </td>
124 <td></td><td><code> [inline]</code></td>
129 <p>A constructor accepting two float values for width and height and converting them to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> in the upper-left starting coordinate of 0.0f, 0.0f. </p>
130 <dl class="params"><dt><b>Parameters:</b></dt><dd>
131 <table class="params">
132 <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>An float value representing a width. </td></tr>
133 <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>An float value representing a height. </td></tr>
139 <a class="anchor" id="a02d2648692b0882ff54d812da3704aeb"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="a02d2648692b0882ff54d812da3704aeb" args="(float x, float y, float w, float h)" -->
140 <div class="memitem">
141 <div class="memproto">
142 <table class="memname">
144 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
146 <td class="paramtype">float </td>
147 <td class="paramname"><em>x</em>, </td>
150 <td class="paramkey"></td>
152 <td class="paramtype">float </td>
153 <td class="paramname"><em>y</em>, </td>
156 <td class="paramkey"></td>
158 <td class="paramtype">float </td>
159 <td class="paramname"><em>w</em>, </td>
162 <td class="paramkey"></td>
164 <td class="paramtype">float </td>
165 <td class="paramname"><em>h</em> </td>
170 <td></td><td><code> [inline]</code></td>
175 <p>A constructor accepting four float values for width, height, x, and y. </p>
176 <dl class="params"><dt><b>Parameters:</b></dt><dd>
177 <table class="params">
178 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>An float value representing a horizontal coordinate of a point, starting with 0.0f as the left-most coordinate. </td></tr>
179 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>An float value representing a vertical coordinate of a point, starting with 0.0f as the top-most coordinate. </td></tr>
180 <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>An float value representing a width. </td></tr>
181 <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>An float value representing a height. </td></tr>
187 <a class="anchor" id="a7072595c890bc203544e55cd926d72ae"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="a7072595c890bc203544e55cd926d72ae" args="(const FloatSize &s)" -->
188 <div class="memitem">
189 <div class="memproto">
190 <table class="memname">
192 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
194 <td class="paramtype">const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> & </td>
195 <td class="paramname"><em>s</em></td><td>)</td>
196 <td><code> [inline, explicit]</code></td>
201 <p>A constructor accepting a pointer to a <a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a> and converting the <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code> to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> in the upper-left starting coordinate of 0.0f,0.0f. </p>
202 <dl class="params"><dt><b>Parameters:</b></dt><dd>
203 <table class="params">
204 <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code>. </td></tr>
210 <a class="anchor" id="a643d926ee6f5e9208fccffd47c1d22be"></a><!-- doxytag: member="pp::FloatRect::FloatRect" ref="a643d926ee6f5e9208fccffd47c1d22be" args="(const FloatPoint &origin, const FloatSize &size)" -->
211 <div class="memitem">
212 <div class="memproto">
213 <table class="memname">
215 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#a00133448de297c5ed19b7831c456bf23">pp::FloatRect::FloatRect</a> </td>
217 <td class="paramtype">const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> & </td>
218 <td class="paramname"><em>origin</em>, </td>
221 <td class="paramkey"></td>
223 <td class="paramtype">const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> & </td>
224 <td class="paramname"><em>size</em> </td>
229 <td></td><td><code> [inline]</code></td>
234 <p>A constructor accepting a pointer to a <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code> representing the origin of the rectangle and a pointer to a <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code> representing the height and width. </p>
235 <dl class="params"><dt><b>Parameters:</b></dt><dd>
236 <table class="params">
237 <tr><td class="paramdir">[in]</td><td class="paramname">origin</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code> representing the upper-left starting coordinate. </td></tr>
238 <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code> representing the height and width. </td></tr>
244 <a class="anchor" id="aa64361055526791e34cba09d97d2cf75"></a><!-- doxytag: member="pp::FloatRect::~FloatRect" ref="aa64361055526791e34cba09d97d2cf75" args="()" -->
245 <div class="memitem">
246 <div class="memproto">
247 <table class="memname">
249 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html#aa64361055526791e34cba09d97d2cf75">pp::FloatRect::~FloatRect</a> </td>
251 <td class="paramname"></td><td>)</td>
252 <td><code> [inline]</code></td>
260 <hr /><h2>Member Function Documentation</h2>
261 <a class="anchor" id="af0009bd0ff6ac801359fb9d15a8c1b7c"></a><!-- doxytag: member="pp::FloatRect::AdjustToFit" ref="af0009bd0ff6ac801359fb9d15a8c1b7c" args="(const FloatRect &rect) const " -->
262 <div class="memitem">
263 <div class="memproto">
264 <table class="memname">
266 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> <a class="el" href="classpp_1_1_float_rect.html#af0009bd0ff6ac801359fb9d15a8c1b7c">pp::FloatRect::AdjustToFit</a> </td>
268 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
269 <td class="paramname"><em>rect</em></td><td>)</td>
275 <p><a class="el" href="classpp_1_1_float_rect.html#af0009bd0ff6ac801359fb9d15a8c1b7c" title="AdjustToFit() fits as much of the receiving rectangle within the supplied rectangle as possible...">AdjustToFit()</a> fits as much of the receiving rectangle within the supplied rectangle as possible, returning the result. </p>
276 <p>For example, if the receiver had a x-location of 2 and a width of 4, and the supplied rectangle had an x-location of 0 with a width of 5, the returned rectangle would have an x-location of 1 with a width of 4.</p>
277 <dl class="params"><dt><b>Parameters:</b></dt><dd>
278 <table class="params">
279 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
283 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> representing the difference between this rectangle and the receiving rectangle. </dd></dl>
286 <a class="anchor" id="ae356a34c997e6c291fdc0e3431a0a63c"></a><!-- doxytag: member="pp::FloatRect::bottom" ref="ae356a34c997e6c291fdc0e3431a0a63c" args="() const " -->
287 <div class="memitem">
288 <div class="memproto">
289 <table class="memname">
291 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#ae356a34c997e6c291fdc0e3431a0a63c">pp::FloatRect::bottom</a> </td>
293 <td class="paramname"></td><td>)</td>
294 <td> const<code> [inline]</code></td>
299 <p>Getter function to get the upper-bound for the y-coordinates of the rectangle. </p>
300 <p>Note that this coordinate value is one past the highest xy value of pixels in the rectangle. This loop will access all the pixels in a horizontal line in the rectangle: <code>for (float y = rect.y(); y < rect.bottom(); ++y) {}</code></p>
301 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of y + height for this point. </dd></dl>
304 <a class="anchor" id="a55eafb38d0a63a1a8b1ad0a4aeeef3f3"></a><!-- doxytag: member="pp::FloatRect::CenterPoint" ref="a55eafb38d0a63a1a8b1ad0a4aeeef3f3" args="() const " -->
305 <div class="memitem">
306 <div class="memproto">
307 <table class="memname">
309 <td class="memname"><a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> <a class="el" href="classpp_1_1_float_rect.html#a55eafb38d0a63a1a8b1ad0a4aeeef3f3">pp::FloatRect::CenterPoint</a> </td>
311 <td class="paramname"></td><td>)</td>
317 <p><a class="el" href="classpp_1_1_float_rect.html#a55eafb38d0a63a1a8b1ad0a4aeeef3f3" title="CenterPoint() determines the center of this rectangle.">CenterPoint()</a> determines the center of this rectangle. </p>
318 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code> representing the center of this rectangle. </dd></dl>
321 <a class="anchor" id="a82bd21c4fc823d212a7526c2f03e3d43"></a><!-- doxytag: member="pp::FloatRect::Contains" ref="a82bd21c4fc823d212a7526c2f03e3d43" args="(float point_x, float point_y) const " -->
322 <div class="memitem">
323 <div class="memproto">
324 <table class="memname">
326 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43">pp::FloatRect::Contains</a> </td>
328 <td class="paramtype">float </td>
329 <td class="paramname"><em>point_x</em>, </td>
332 <td class="paramkey"></td>
334 <td class="paramtype">float </td>
335 <td class="paramname"><em>point_y</em> </td>
340 <td></td><td> const</td>
345 <p><a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43" title="Contains() determines if the point identified by point_x and point_y falls inside this rectangle...">Contains()</a> determines if the point identified by point_x and point_y falls inside this rectangle. </p>
346 <p>The point (x, y) is inside the rectangle, but the point (x + width, y + height) is not.</p>
347 <dl class="params"><dt><b>Parameters:</b></dt><dd>
348 <table class="params">
349 <tr><td class="paramdir">[in]</td><td class="paramname">point_x</td><td>An float value representing a x value. </td></tr>
350 <tr><td class="paramdir">[in]</td><td class="paramname">point_y</td><td>An float value representing a y value.</td></tr>
354 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the point_x and point_y fall inside the rectangle. </dd></dl>
357 <a class="anchor" id="a82eaf22456cdf77d6a588ae86e4e86f9"></a><!-- doxytag: member="pp::FloatRect::Contains" ref="a82eaf22456cdf77d6a588ae86e4e86f9" args="(const FloatPoint &point) const " -->
358 <div class="memitem">
359 <div class="memproto">
360 <table class="memname">
362 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43">pp::FloatRect::Contains</a> </td>
364 <td class="paramtype">const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> & </td>
365 <td class="paramname"><em>point</em></td><td>)</td>
366 <td> const<code> [inline]</code></td>
371 <p><a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43" title="Contains() determines if the point identified by point_x and point_y falls inside this rectangle...">Contains()</a> determines if the specified point is contained by this rectangle. </p>
372 <dl class="params"><dt><b>Parameters:</b></dt><dd>
373 <table class="params">
374 <tr><td class="paramdir">[in]</td><td class="paramname">point</td><td>A pointer to a <a class="el" href="classpp_1_1_point.html" title="A 2 dimensional point with 0,0 being the upper-left starting coordinate.">Point</a> representing a 2D coordinate.</td></tr>
378 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the point_x and point_y fall inside the rectangle. </dd></dl>
381 <a class="anchor" id="afcdf6b7eb8e1b931ac482c973af9fa9e"></a><!-- doxytag: member="pp::FloatRect::Contains" ref="afcdf6b7eb8e1b931ac482c973af9fa9e" args="(const FloatRect &rect) const " -->
382 <div class="memitem">
383 <div class="memproto">
384 <table class="memname">
386 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43">pp::FloatRect::Contains</a> </td>
388 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
389 <td class="paramname"><em>rect</em></td><td>)</td>
395 <p><a class="el" href="classpp_1_1_float_rect.html#a82bd21c4fc823d212a7526c2f03e3d43" title="Contains() determines if the point identified by point_x and point_y falls inside this rectangle...">Contains()</a> determines if this rectangle contains the specified rectangle. </p>
396 <dl class="params"><dt><b>Parameters:</b></dt><dd>
397 <table class="params">
398 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
402 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the rectangle fall inside this rectangle. </dd></dl>
405 <a class="anchor" id="aee27f20031234762c710d441bc0cd148"></a><!-- doxytag: member="pp::FloatRect::Floatsize" ref="aee27f20031234762c710d441bc0cd148" args="() const " -->
406 <div class="memitem">
407 <div class="memproto">
408 <table class="memname">
410 <td class="memname"><a class="el" href="classpp_1_1_float_size.html">FloatSize</a> <a class="el" href="classpp_1_1_float_rect.html#aee27f20031234762c710d441bc0cd148">pp::FloatRect::Floatsize</a> </td>
412 <td class="paramname"></td><td>)</td>
413 <td> const<code> [inline]</code></td>
418 <p>Getter function for returning the <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code>. </p>
419 <dl class="return"><dt><b>Returns:</b></dt><dd>The size of the rectangle. </dd></dl>
422 <a class="anchor" id="a9dc3d3004aacf708356a73e09d1cc96e"></a><!-- doxytag: member="pp::FloatRect::height" ref="a9dc3d3004aacf708356a73e09d1cc96e" args="() const " -->
423 <div class="memitem">
424 <div class="memproto">
425 <table class="memname">
427 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#a9dc3d3004aacf708356a73e09d1cc96e">pp::FloatRect::height</a> </td>
429 <td class="paramname"></td><td>)</td>
430 <td> const<code> [inline]</code></td>
435 <p>Getter function for returning the value of height. </p>
436 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of height for this <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>. </dd></dl>
439 <a class="anchor" id="a2d8abde94cff6a5813c2849dce42d707"></a><!-- doxytag: member="pp::FloatRect::Inset" ref="a2d8abde94cff6a5813c2849dce42d707" args="(float horizontal, float vertical)" -->
440 <div class="memitem">
441 <div class="memproto">
442 <table class="memname">
444 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a2d8abde94cff6a5813c2849dce42d707">pp::FloatRect::Inset</a> </td>
446 <td class="paramtype">float </td>
447 <td class="paramname"><em>horizontal</em>, </td>
450 <td class="paramkey"></td>
452 <td class="paramtype">float </td>
453 <td class="paramname"><em>vertical</em> </td>
458 <td></td><td><code> [inline]</code></td>
463 <p><a class="el" href="classpp_1_1_float_rect.html#a2d8abde94cff6a5813c2849dce42d707" title="Inset() shrinks the rectangle by a horizontal and vertical distance on all sides.">Inset()</a> shrinks the rectangle by a horizontal and vertical distance on all sides. </p>
464 <dl class="params"><dt><b>Parameters:</b></dt><dd>
465 <table class="params">
466 <tr><td class="paramdir">[in]</td><td class="paramname">horizontal</td><td>An float value representing a horizontal shrinking distance. </td></tr>
467 <tr><td class="paramdir">[in]</td><td class="paramname">vertical</td><td>An float value representing a vertical shrinking distance. </td></tr>
473 <a class="anchor" id="a24f94c63d2f097bd7f8b45a2c375077c"></a><!-- doxytag: member="pp::FloatRect::Inset" ref="a24f94c63d2f097bd7f8b45a2c375077c" args="(float left, float top, float right, float bottom)" -->
474 <div class="memitem">
475 <div class="memproto">
476 <table class="memname">
478 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a2d8abde94cff6a5813c2849dce42d707">pp::FloatRect::Inset</a> </td>
480 <td class="paramtype">float </td>
481 <td class="paramname"><em>left</em>, </td>
484 <td class="paramkey"></td>
486 <td class="paramtype">float </td>
487 <td class="paramname"><em>top</em>, </td>
490 <td class="paramkey"></td>
492 <td class="paramtype">float </td>
493 <td class="paramname"><em>right</em>, </td>
496 <td class="paramkey"></td>
498 <td class="paramtype">float </td>
499 <td class="paramname"><em>bottom</em> </td>
509 <p><a class="el" href="classpp_1_1_float_rect.html#a2d8abde94cff6a5813c2849dce42d707" title="Inset() shrinks the rectangle by a horizontal and vertical distance on all sides.">Inset()</a> shrinks the rectangle by the specified amount on each side. </p>
510 <dl class="params"><dt><b>Parameters:</b></dt><dd>
511 <table class="params">
512 <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>An float value representing a left shrinking distance. </td></tr>
513 <tr><td class="paramdir">[in]</td><td class="paramname">top</td><td>An float value representing a top shrinking distance. </td></tr>
514 <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>An float value representing a right shrinking distance. </td></tr>
515 <tr><td class="paramdir">[in]</td><td class="paramname">bottom</td><td>An float value representing a bottom shrinking distance. </td></tr>
521 <a class="anchor" id="a6529366c00323c6d6495f3db14906ce8"></a><!-- doxytag: member="pp::FloatRect::Intersect" ref="a6529366c00323c6d6495f3db14906ce8" args="(const FloatRect &rect) const " -->
522 <div class="memitem">
523 <div class="memproto">
524 <table class="memname">
526 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> <a class="el" href="classpp_1_1_float_rect.html#a6529366c00323c6d6495f3db14906ce8">pp::FloatRect::Intersect</a> </td>
528 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
529 <td class="paramname"><em>rect</em></td><td>)</td>
535 <p><a class="el" href="classpp_1_1_float_rect.html#a6529366c00323c6d6495f3db14906ce8" title="Intersect() computes the intersection of this rectangle with the given rectangle.">Intersect()</a> computes the intersection of this rectangle with the given rectangle. </p>
536 <dl class="params"><dt><b>Parameters:</b></dt><dd>
537 <table class="params">
538 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
542 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> representing the intersection. </dd></dl>
545 <a class="anchor" id="a701e3ca1e1cbd0ee10c432effb119088"></a><!-- doxytag: member="pp::FloatRect::Intersects" ref="a701e3ca1e1cbd0ee10c432effb119088" args="(const FloatRect &rect) const " -->
546 <div class="memitem">
547 <div class="memproto">
548 <table class="memname">
550 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a701e3ca1e1cbd0ee10c432effb119088">pp::FloatRect::Intersects</a> </td>
552 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
553 <td class="paramname"><em>rect</em></td><td>)</td>
559 <p><a class="el" href="classpp_1_1_float_rect.html#a701e3ca1e1cbd0ee10c432effb119088" title="Intersects() determines if this rectangle intersects the specified rectangle.">Intersects()</a> determines if this rectangle intersects the specified rectangle. </p>
560 <dl class="params"><dt><b>Parameters:</b></dt><dd>
561 <table class="params">
562 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
566 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the rectangle intersects this rectangle. </dd></dl>
569 <a class="anchor" id="a73c6f15d2c2ed26a2bd8893efeab1dcb"></a><!-- doxytag: member="pp::FloatRect::IsEmpty" ref="a73c6f15d2c2ed26a2bd8893efeab1dcb" args="() const " -->
570 <div class="memitem">
571 <div class="memproto">
572 <table class="memname">
574 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a73c6f15d2c2ed26a2bd8893efeab1dcb">pp::FloatRect::IsEmpty</a> </td>
576 <td class="paramname"></td><td>)</td>
577 <td> const<code> [inline]</code></td>
582 <p><a class="el" href="classpp_1_1_float_rect.html#a73c6f15d2c2ed26a2bd8893efeab1dcb" title="IsEmpty() determines if the area of a rectangle is zero.">IsEmpty()</a> determines if the area of a rectangle is zero. </p>
583 <p>Returns true if the area of the rectangle is zero.</p>
584 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the area of the rectangle is zero. </dd></dl>
587 <a class="anchor" id="a9b5247961b45da6dc5c656b906462f8b"></a><!-- doxytag: member="pp::FloatRect::Offset" ref="a9b5247961b45da6dc5c656b906462f8b" args="(float horizontal, float vertical)" -->
588 <div class="memitem">
589 <div class="memproto">
590 <table class="memname">
592 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a9b5247961b45da6dc5c656b906462f8b">pp::FloatRect::Offset</a> </td>
594 <td class="paramtype">float </td>
595 <td class="paramname"><em>horizontal</em>, </td>
598 <td class="paramkey"></td>
600 <td class="paramtype">float </td>
601 <td class="paramname"><em>vertical</em> </td>
611 <p><a class="el" href="classpp_1_1_float_rect.html#a9b5247961b45da6dc5c656b906462f8b" title="Offset() moves the rectangle by a horizontal and vertical distance.">Offset()</a> moves the rectangle by a horizontal and vertical distance. </p>
612 <dl class="params"><dt><b>Parameters:</b></dt><dd>
613 <table class="params">
614 <tr><td class="paramdir">[in]</td><td class="paramname">horizontal</td><td>An float value representing a horizontal move distance. </td></tr>
615 <tr><td class="paramdir">[in]</td><td class="paramname">vertical</td><td>An float value representing a vertical move distance. </td></tr>
621 <a class="anchor" id="a60fce18269499d5c9f8c2446319844c3"></a><!-- doxytag: member="pp::FloatRect::Offset" ref="a60fce18269499d5c9f8c2446319844c3" args="(const FloatPoint &point)" -->
622 <div class="memitem">
623 <div class="memproto">
624 <table class="memname">
626 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a9b5247961b45da6dc5c656b906462f8b">pp::FloatRect::Offset</a> </td>
628 <td class="paramtype">const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> & </td>
629 <td class="paramname"><em>point</em></td><td>)</td>
630 <td><code> [inline]</code></td>
635 <p><a class="el" href="classpp_1_1_float_rect.html#a9b5247961b45da6dc5c656b906462f8b" title="Offset() moves the rectangle by a horizontal and vertical distance.">Offset()</a> moves the rectangle by a horizontal and vertical distance. </p>
636 <dl class="params"><dt><b>Parameters:</b></dt><dd>
637 <table class="params">
638 <tr><td class="paramdir">[in]</td><td class="paramname">point</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code> representing the horizontal and vertical move distances. </td></tr>
644 <a class="anchor" id="a85c34bdfd11703d4cc86486b3f38a032"></a><!-- doxytag: member="pp::FloatRect::operator PP_FloatRect" ref="a85c34bdfd11703d4cc86486b3f38a032" args="() const " -->
645 <div class="memitem">
646 <div class="memproto">
647 <table class="memname">
649 <td class="memname">pp::FloatRect::operator PP_FloatRect </td>
651 <td class="paramname"></td><td>)</td>
652 <td> const<code> [inline]</code></td>
657 <p>PP_FloatRect() allows implicit conversion of a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> to a <code>PP_FloatRect</code>. </p>
658 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_point.html" title="A 2 dimensional point with 0,0 being the upper-left starting coordinate.">Point</a></code>. </dd></dl>
661 <a class="anchor" id="ae3f310aaeb5634e9f2ca7d51e35526a5"></a><!-- doxytag: member="pp::FloatRect::point" ref="ae3f310aaeb5634e9f2ca7d51e35526a5" args="() const " -->
662 <div class="memitem">
663 <div class="memproto">
664 <table class="memname">
666 <td class="memname"><a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> <a class="el" href="classpp_1_1_float_rect.html#ae3f310aaeb5634e9f2ca7d51e35526a5">pp::FloatRect::point</a> </td>
668 <td class="paramname"></td><td>)</td>
669 <td> const<code> [inline]</code></td>
674 <p>Getter function for returning the <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code>. </p>
675 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code>. </dd></dl>
678 <a class="anchor" id="aa63a6eab8caae819c7efb133b89e3ec2"></a><!-- doxytag: member="pp::FloatRect::pp_float_rect" ref="aa63a6eab8caae819c7efb133b89e3ec2" args="() const " -->
679 <div class="memitem">
680 <div class="memproto">
681 <table class="memname">
683 <td class="memname">const PP_FloatRect& <a class="el" href="classpp_1_1_float_rect.html#aa63a6eab8caae819c7efb133b89e3ec2">pp::FloatRect::pp_float_rect</a> </td>
685 <td class="paramname"></td><td>)</td>
686 <td> const<code> [inline]</code></td>
691 <p>Getter function for returning the internal <code>PP_FloatRect</code> struct. </p>
692 <dl class="return"><dt><b>Returns:</b></dt><dd>A const reference to the internal <code>PP_FloatRect</code> struct. </dd></dl>
695 <a class="anchor" id="a796ff93f77b488ac673b0e82a2527507"></a><!-- doxytag: member="pp::FloatRect::pp_float_rect" ref="a796ff93f77b488ac673b0e82a2527507" args="()" -->
696 <div class="memitem">
697 <div class="memproto">
698 <table class="memname">
700 <td class="memname">PP_FloatRect& <a class="el" href="classpp_1_1_float_rect.html#aa63a6eab8caae819c7efb133b89e3ec2">pp::FloatRect::pp_float_rect</a> </td>
702 <td class="paramname"></td><td>)</td>
703 <td><code> [inline]</code></td>
708 <p>Getter function for returning the internal <code>PP_FloatRect</code> struct. </p>
709 <dl class="return"><dt><b>Returns:</b></dt><dd>A mutable reference to the <code>PP_FloatRect</code> struct. </dd></dl>
712 <a class="anchor" id="a34632c0a01c72fce447ac6b6f0cdf86b"></a><!-- doxytag: member="pp::FloatRect::right" ref="a34632c0a01c72fce447ac6b6f0cdf86b" args="() const " -->
713 <div class="memitem">
714 <div class="memproto">
715 <table class="memname">
717 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#a34632c0a01c72fce447ac6b6f0cdf86b">pp::FloatRect::right</a> </td>
719 <td class="paramname"></td><td>)</td>
720 <td> const<code> [inline]</code></td>
725 <p>Getter function to get the upper-bound for the x-coordinates of the rectangle. </p>
726 <p>Note that this coordinate value is one past the highest x value of pixels in the rectangle. This loop will access all the pixels in a horizontal line in the rectangle: <code>for (float x = rect.x(); x < rect.right(); ++x) {}</code></p>
727 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of x + width for this point. </dd></dl>
730 <a class="anchor" id="a81a0cc8fc8521167b34b10e75f94679f"></a><!-- doxytag: member="pp::FloatRect::set_height" ref="a81a0cc8fc8521167b34b10e75f94679f" args="(float h)" -->
731 <div class="memitem">
732 <div class="memproto">
733 <table class="memname">
735 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a81a0cc8fc8521167b34b10e75f94679f">pp::FloatRect::set_height</a> </td>
737 <td class="paramtype">float </td>
738 <td class="paramname"><em>h</em></td><td>)</td>
739 <td><code> [inline]</code></td>
744 <p>Setter function for setting the value of height. </p>
745 <dl class="params"><dt><b>Parameters:</b></dt><dd>
746 <table class="params">
747 <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>A new width height. </td></tr>
753 <a class="anchor" id="a80c403de88c32d76c0a774e2af5c4973"></a><!-- doxytag: member="pp::FloatRect::set_point" ref="a80c403de88c32d76c0a774e2af5c4973" args="(const FloatPoint &origin)" -->
754 <div class="memitem">
755 <div class="memproto">
756 <table class="memname">
758 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a80c403de88c32d76c0a774e2af5c4973">pp::FloatRect::set_point</a> </td>
760 <td class="paramtype">const <a class="el" href="classpp_1_1_float_point.html">FloatPoint</a> & </td>
761 <td class="paramname"><em>origin</em></td><td>)</td>
762 <td><code> [inline]</code></td>
767 <p>Setter function for setting the value of the <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code>. </p>
768 <dl class="params"><dt><b>Parameters:</b></dt><dd>
769 <table class="params">
770 <tr><td class="paramdir">[in]</td><td class="paramname">origin</td><td>A <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code> representing the upper-left starting coordinate. </td></tr>
776 <a class="anchor" id="a132796b0ca75d600509731d8c5a83736"></a><!-- doxytag: member="pp::FloatRect::set_size" ref="a132796b0ca75d600509731d8c5a83736" args="(const FloatSize &s)" -->
777 <div class="memitem">
778 <div class="memproto">
779 <table class="memname">
781 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a132796b0ca75d600509731d8c5a83736">pp::FloatRect::set_size</a> </td>
783 <td class="paramtype">const <a class="el" href="classpp_1_1_float_size.html">FloatSize</a> & </td>
784 <td class="paramname"><em>s</em></td><td>)</td>
785 <td><code> [inline]</code></td>
790 <p>Setter function for setting the <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code>. </p>
791 <dl class="params"><dt><b>Parameters:</b></dt><dd>
792 <table class="params">
793 <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_size.html" title="A size of an object based on width and height.">FloatSize</a></code> representing the height and width. </td></tr>
799 <a class="anchor" id="a9553c5bf8b2c00bc9eeb7a7c2c22d0f7"></a><!-- doxytag: member="pp::FloatRect::set_width" ref="a9553c5bf8b2c00bc9eeb7a7c2c22d0f7" args="(float w)" -->
800 <div class="memitem">
801 <div class="memproto">
802 <table class="memname">
804 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a9553c5bf8b2c00bc9eeb7a7c2c22d0f7">pp::FloatRect::set_width</a> </td>
806 <td class="paramtype">float </td>
807 <td class="paramname"><em>w</em></td><td>)</td>
808 <td><code> [inline]</code></td>
813 <p>Setter function for setting the value of width. </p>
814 <dl class="params"><dt><b>Parameters:</b></dt><dd>
815 <table class="params">
816 <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>A new width value. </td></tr>
822 <a class="anchor" id="a52ed4022d98fc75e2bfd942ba0fb982f"></a><!-- doxytag: member="pp::FloatRect::set_x" ref="a52ed4022d98fc75e2bfd942ba0fb982f" args="(float in_x)" -->
823 <div class="memitem">
824 <div class="memproto">
825 <table class="memname">
827 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a52ed4022d98fc75e2bfd942ba0fb982f">pp::FloatRect::set_x</a> </td>
829 <td class="paramtype">float </td>
830 <td class="paramname"><em>in_x</em></td><td>)</td>
831 <td><code> [inline]</code></td>
836 <p>Setter function for setting the value of x. </p>
837 <dl class="params"><dt><b>Parameters:</b></dt><dd>
838 <table class="params">
839 <tr><td class="paramdir">[in]</td><td class="paramname">in_x</td><td>A new x value. </td></tr>
845 <a class="anchor" id="a3b3a43a2764b7c0b6e6fad7bed300164"></a><!-- doxytag: member="pp::FloatRect::set_y" ref="a3b3a43a2764b7c0b6e6fad7bed300164" args="(float in_y)" -->
846 <div class="memitem">
847 <div class="memproto">
848 <table class="memname">
850 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#a3b3a43a2764b7c0b6e6fad7bed300164">pp::FloatRect::set_y</a> </td>
852 <td class="paramtype">float </td>
853 <td class="paramname"><em>in_y</em></td><td>)</td>
854 <td><code> [inline]</code></td>
859 <p>Setter function for setting the value of y. </p>
860 <dl class="params"><dt><b>Parameters:</b></dt><dd>
861 <table class="params">
862 <tr><td class="paramdir">[in]</td><td class="paramname">in_y</td><td>A new y value. </td></tr>
868 <a class="anchor" id="acfadd4bca5c16f05d138e4074b557df2"></a><!-- doxytag: member="pp::FloatRect::SetRect" ref="acfadd4bca5c16f05d138e4074b557df2" args="(float x, float y, float w, float h)" -->
869 <div class="memitem">
870 <div class="memproto">
871 <table class="memname">
873 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#acfadd4bca5c16f05d138e4074b557df2">pp::FloatRect::SetRect</a> </td>
875 <td class="paramtype">float </td>
876 <td class="paramname"><em>x</em>, </td>
879 <td class="paramkey"></td>
881 <td class="paramtype">float </td>
882 <td class="paramname"><em>y</em>, </td>
885 <td class="paramkey"></td>
887 <td class="paramtype">float </td>
888 <td class="paramname"><em>w</em>, </td>
891 <td class="paramkey"></td>
893 <td class="paramtype">float </td>
894 <td class="paramname"><em>h</em> </td>
899 <td></td><td><code> [inline]</code></td>
904 <p>Setter function for setting the value of the <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>. </p>
905 <dl class="params"><dt><b>Parameters:</b></dt><dd>
906 <table class="params">
907 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>A new x value. </td></tr>
908 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>A new y value. </td></tr>
909 <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>A new width value. </td></tr>
910 <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>A new height value. </td></tr>
916 <a class="anchor" id="ae5c915a40cd7689798c7395824132117"></a><!-- doxytag: member="pp::FloatRect::SetRect" ref="ae5c915a40cd7689798c7395824132117" args="(const PP_FloatRect &rect)" -->
917 <div class="memitem">
918 <div class="memproto">
919 <table class="memname">
921 <td class="memname">void <a class="el" href="classpp_1_1_float_rect.html#acfadd4bca5c16f05d138e4074b557df2">pp::FloatRect::SetRect</a> </td>
923 <td class="paramtype">const PP_FloatRect & </td>
924 <td class="paramname"><em>rect</em></td><td>)</td>
925 <td><code> [inline]</code></td>
930 <p>Setter function for setting the value of the <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>. </p>
931 <dl class="params"><dt><b>Parameters:</b></dt><dd>
932 <table class="params">
933 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code>PP_FloatRect</code>. </td></tr>
939 <a class="anchor" id="a9ab2652f39dc26de8c6750cc8d75d66a"></a><!-- doxytag: member="pp::FloatRect::SharesEdgeWith" ref="a9ab2652f39dc26de8c6750cc8d75d66a" args="(const FloatRect &rect) const " -->
940 <div class="memitem">
941 <div class="memproto">
942 <table class="memname">
944 <td class="memname">bool <a class="el" href="classpp_1_1_float_rect.html#a9ab2652f39dc26de8c6750cc8d75d66a">pp::FloatRect::SharesEdgeWith</a> </td>
946 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
947 <td class="paramname"><em>rect</em></td><td>)</td>
953 <p><a class="el" href="classpp_1_1_float_rect.html#a9ab2652f39dc26de8c6750cc8d75d66a" title="SharesEdgeWith() determines if this rectangle shares an entire edge (same width or same height) with ...">SharesEdgeWith()</a> determines if this rectangle shares an entire edge (same width or same height) with the given rectangle, and the rectangles do not overlap. </p>
954 <dl class="params"><dt><b>Parameters:</b></dt><dd>
955 <table class="params">
956 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
960 <dl class="return"><dt><b>Returns:</b></dt><dd>true if this rectangle and supplied rectangle share an edge. </dd></dl>
963 <a class="anchor" id="a8b1c8031d1442dfcc0d11ea75b396683"></a><!-- doxytag: member="pp::FloatRect::Subtract" ref="a8b1c8031d1442dfcc0d11ea75b396683" args="(const FloatRect &rect) const " -->
964 <div class="memitem">
965 <div class="memproto">
966 <table class="memname">
968 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> <a class="el" href="classpp_1_1_float_rect.html#a8b1c8031d1442dfcc0d11ea75b396683">pp::FloatRect::Subtract</a> </td>
970 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
971 <td class="paramname"><em>rect</em></td><td>)</td>
977 <p><a class="el" href="classpp_1_1_float_rect.html#a8b1c8031d1442dfcc0d11ea75b396683" title="Subtract() computes the rectangle resulting from subtracting rect from this Rect.">Subtract()</a> computes the rectangle resulting from subtracting <code>rect</code> from this <a class="el" href="classpp_1_1_rect.html" title="A 2 dimensional rectangle.">Rect</a>. </p>
978 <p>If <code>rect</code>does not intersect completely in either the x or y direction, then <code>*this</code> is returned. If <code>rect</code> contains <code>this</code>, then an empty <code><a class="el" href="classpp_1_1_rect.html" title="A 2 dimensional rectangle.">Rect</a></code> is returned.</p>
979 <dl class="params"><dt><b>Parameters:</b></dt><dd>
980 <table class="params">
981 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
985 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> representing the subtraction. </dd></dl>
988 <a class="anchor" id="abb13835e0dbea82794cd4fa9140adb1e"></a><!-- doxytag: member="pp::FloatRect::Union" ref="abb13835e0dbea82794cd4fa9140adb1e" args="(const FloatRect &rect) const " -->
989 <div class="memitem">
990 <div class="memproto">
991 <table class="memname">
993 <td class="memname"><a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> <a class="el" href="classpp_1_1_float_rect.html#abb13835e0dbea82794cd4fa9140adb1e">pp::FloatRect::Union</a> </td>
995 <td class="paramtype">const <a class="el" href="classpp_1_1_float_rect.html">FloatRect</a> & </td>
996 <td class="paramname"><em>rect</em></td><td>)</td>
1001 <div class="memdoc">
1002 <p><a class="el" href="classpp_1_1_float_rect.html#abb13835e0dbea82794cd4fa9140adb1e" title="Union() computes the union of this rectangle with the given rectangle.">Union()</a> computes the union of this rectangle with the given rectangle. </p>
1003 <p>The union is the smallest rectangle containing both rectangles.</p>
1004 <dl class="params"><dt><b>Parameters:</b></dt><dd>
1005 <table class="params">
1006 <tr><td class="paramdir">[in]</td><td class="paramname">rect</td><td>A pointer to a <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>.</td></tr>
1010 <dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code> representing the union. </dd></dl>
1013 <a class="anchor" id="a25ffcc41df9f488acf15613f20e240db"></a><!-- doxytag: member="pp::FloatRect::width" ref="a25ffcc41df9f488acf15613f20e240db" args="() const " -->
1014 <div class="memitem">
1015 <div class="memproto">
1016 <table class="memname">
1018 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#a25ffcc41df9f488acf15613f20e240db">pp::FloatRect::width</a> </td>
1020 <td class="paramname"></td><td>)</td>
1021 <td> const<code> [inline]</code></td>
1025 <div class="memdoc">
1026 <p>Getter function for returning the value of width. </p>
1027 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of width for this <code><a class="el" href="classpp_1_1_float_rect.html" title="A 2 dimensional rectangle.">FloatRect</a></code>. </dd></dl>
1030 <a class="anchor" id="a4820c673dc07e6b35f8fc0c42368e92c"></a><!-- doxytag: member="pp::FloatRect::x" ref="a4820c673dc07e6b35f8fc0c42368e92c" args="() const " -->
1031 <div class="memitem">
1032 <div class="memproto">
1033 <table class="memname">
1035 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#a4820c673dc07e6b35f8fc0c42368e92c">pp::FloatRect::x</a> </td>
1037 <td class="paramname"></td><td>)</td>
1038 <td> const<code> [inline]</code></td>
1042 <div class="memdoc">
1043 <p>Getter function for returning the value of x. </p>
1044 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of x for this <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code>. </dd></dl>
1047 <a class="anchor" id="ae31847965339e36aa1fe6c4cf8cf479c"></a><!-- doxytag: member="pp::FloatRect::y" ref="ae31847965339e36aa1fe6c4cf8cf479c" args="() const " -->
1048 <div class="memitem">
1049 <div class="memproto">
1050 <table class="memname">
1052 <td class="memname">float <a class="el" href="classpp_1_1_float_rect.html#ae31847965339e36aa1fe6c4cf8cf479c">pp::FloatRect::y</a> </td>
1054 <td class="paramname"></td><td>)</td>
1055 <td> const<code> [inline]</code></td>
1059 <div class="memdoc">
1060 <p>Getter function for returning the value of y. </p>
1061 <dl class="return"><dt><b>Returns:</b></dt><dd>The value of y for this <code><a class="el" href="classpp_1_1_float_point.html" title="A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate.">FloatPoint</a></code>. </dd></dl>
1064 <hr />The documentation for this class was generated from the following file:<ul>
1065 <li><a class="el" href="rect_8h.html">rect.h</a></li>
1067 </div><!-- contents -->
1069 {{/partials.standard_nacl_api}}