📄 structfg__rect.html
字号:
<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00059">wBottom</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">wLeft</a>、<a class="el" href="FG__Rect_8h-source.html#l00057">wRight</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="FG_Rect::Contains" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool FG_Rect::Contains </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const short </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const short </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>判断像素点是否位于本矩形内. <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>x</em> </td><td>要测试的像素点的横坐标 </td></tr> <tr><td valign=top><em>y</em> </td><td>要测试的像素点的纵坐标 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>true 像素点是否位于本矩形内 false 像素点不在本矩形内 </dd></dl><p>在文件<a class="el" href="FG__Rect_8cpp-source.html">FG_Rect.cpp</a>第<a class="el" href="FG__Rect_8cpp-source.html#l00056">56</a>行定义。<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00059">wBottom</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">wLeft</a>、<a class="el" href="FG__Rect_8h-source.html#l00057">wRight</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="FG_Rect::Contains" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool FG_Rect::Contains </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structFG__Point.html">FG_Point</a> </td> <td class="mdname1" valign="top" nowrap> <em>Test</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>判断像素点是否位于本矩形内. <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Test</em> </td><td>要测试的像素点 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>true 像素点是否位于本矩形内 false 像素点不在本矩形内 </dd></dl><p>在文件<a class="el" href="FG__Rect_8cpp-source.html">FG_Rect.cpp</a>第<a class="el" href="FG__Rect_8cpp-source.html#l00043">43</a>行定义。<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00059">wBottom</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">wLeft</a>、<a class="el" href="FG__Rect_8h-source.html#l00057">wRight</a>、<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>、<a class="el" href="FG__Point_8h-source.html#l00051">FG_Point::x</a>及<a class="el" href="FG__Point_8h-source.html#l00053">FG_Point::y</a>.<p>参考自 <a class="el" href="FG__Object_8h-source.html#l00104">FG_Object::IsContains()</a>. </td> </tr></table><a class="anchor" name="a21" doxytag="FG_Rect::Height" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> short FG_Rect::Height </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>得到矩形的高度 <p><dl compact><dt><b>返回:</b></dt><dd>矩形的高度 </dd></dl><p>在文件<a class="el" href="FG__Rect_8h-source.html">FG_Rect.h</a>第<a class="el" href="FG__Rect_8h-source.html#l00254">254</a>行定义。<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00059">wBottom</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>.<p>参考自 <a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00214">FG_X11DrawInterface::DrawDotRect()</a>、<a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00112">FG_X11DrawInterface::EndDraw()</a>、<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00090">FG_Win32DrawInterface::EndDraw()</a>及<a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00125">FG_X11DrawInterface::FillRect()</a>. </td> </tr></table><a class="anchor" name="a8" doxytag="FG_Rect::MoveTo" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void FG_Rect::MoveTo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const short </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const short </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>平移矩形. <p>横坐标移动到x,纵坐标移动到y <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>x</em> </td><td>矩形要移动到的横坐标位置 </td></tr> <tr><td valign=top><em>y</em> </td><td>矩形要移动到的纵坐标位置 </td></tr> </table></dl><p>在文件<a class="el" href="FG__Rect_8cpp-source.html">FG_Rect.cpp</a>第<a class="el" href="FG__Rect_8cpp-source.html#l00095">95</a>行定义。<p>参考 <a class="el" href="FG__Rect_8cpp-source.html#l00103">Shift()</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">wLeft</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="structFG__Rect_a8_cgraph.png" border="0" usemap="#structFG__Rect_a8_cgraph_map" alt=""></center><map name="structFG__Rect_a8_cgraph_map"><area href="structFG__Rect.html#a9" shape="rect" coords="178,7,272,33" alt=""></map><a class="anchor" name="a12" doxytag="FG_Rect::operator &" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="structFG__Rect.html">FG_Rect</a> FG_Rect::operator & </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structFG__Rect.html">FG_Rect</a> & </td> <td class="mdname1" valign="top" nowrap> <em>Rect</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>重载&运算符. <p>两个矩形执行&运算,即取两个矩形相交的部分 <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Rect</em> </td><td>执行&运算的另一个矩形 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>返回结果矩形 </dd></dl><p>在文件<a class="el" href="FG__Rect_8cpp-source.html">FG_Rect.cpp</a>第<a class="el" href="FG__Rect_8cpp-source.html#l00157">157</a>行定义。<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00059">wBottom</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">wLeft</a>、<a class="el" href="FG__Rect_8h-source.html#l00057">wRight</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">wTop</a>. </td> </tr></table><a class="anchor" name="a10" doxytag="FG_Rect::operator &=" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -