⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 structfg__rect.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>FishGUI: FG_Rect struct Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">首页</a> | <a class="qindex" href="modules.html">模块</a> | <a class="qindex" href="hierarchy.html">类继承关系</a> | <a class="qindex" href="classes.html">按字典顺序排序的列表</a> | <a class="qindex" href="annotated.html">组合类型列表</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">组合类型成员</a> | <a class="qindex" href="globals.html">文件成员</a></div><h1>FG_Rect结构参考<br><small>[<a class="el" href="group__Utility.html">应用包</a>]</small></h1><code>#include &lt;<a class="el" href="FG__Rect_8h-source.html">FG_Rect.h</a>&gt;</code><p><a href="structFG__Rect-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>矩形结构 <p>定义屏幕上使用的矩形结构 <p><p>在文件<a class="el" href="FG__Rect_8h-source.html">FG_Rect.h</a>第<a class="el" href="FG__Rect_8h-source.html#l00050">50</a>行定义。<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>公有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a0">FG_Rect</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形结构的缺省构造函数  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a1">FG_Rect</a> (const short x1, const short y1, const short x2, const short y2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形结构的构造函数  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a2">Set</a> (const short x1, const short y1, const short x2, const short y2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置新的矩形坐标.  <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a3">Set</a> (const <a class="el" href="structFG__Point.html">FG_Point</a> ul, const <a class="el" href="structFG__Point.html">FG_Point</a> br)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置新的矩形坐标.  <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a4">Contains</a> (const <a class="el" href="structFG__Point.html">FG_Point</a> Test) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">判断像素点是否位于本矩形内.  <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a5">Contains</a> (const short x, const short y) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">判断像素点是否位于本矩形内.  <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a6">Contains</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">判断某矩形是否完全位于本矩形内.  <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a7">Overlap</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">判断某矩形是否和本矩形互相重载.  <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a8">MoveTo</a> (const short x, const short y)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">平移矩形.  <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a9">Shift</a> (const short xShift, const short yShift)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">平移矩形.  <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a10">operator &amp;=</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Other)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载&amp;=运算符.  <a href="#a10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a11">operator|=</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Other)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载|=运算符.  <a href="#a11"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a12">operator &amp;</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载&amp;运算符.  <a href="#a12"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a13">operator+</a> (const <a class="el" href="structFG__Point.html">FG_Point</a> &amp;Point) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载+运算符.  <a href="#a13"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__Rect.html">FG_Rect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a14">operator++</a> (int)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载后置++运算符.  <a href="#a14"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a15">operator+=</a> (const int x)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载+=运算符.  <a href="#a15"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__Rect.html">FG_Rect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a16">operator--</a> (int)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载后置--运算符.  <a href="#a16"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a17">operator-=</a> (const int x)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载-=运算符.  <a href="#a17"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a18">operator!=</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载!=运算符.  <a href="#a18"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a19">operator==</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载==运算符.  <a href="#a19"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a20">Width</a> (void) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到矩形的宽度  <a href="#a20"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#a21">Height</a> (void) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到矩形的高度  <a href="#a21"></a><br><br></td></tr><tr><td colspan=2><br><h2>公有属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#o0">wLeft</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形左上角的横坐标  <a href="#o0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#o1">wTop</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形左上角的纵坐标  <a href="#o1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#o2">wRight</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形右下角的横坐标  <a href="#o2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>short&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structFG__Rect.html#o3">wBottom</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">矩形右下角的纵坐标  <a href="#o3"></a><br><br></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_Rect::FG_Rect" ></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"> FG_Rect::FG_Rect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>矩形结构的缺省构造函数 <p><p>在文件<a class="el" href="FG__Rect_8h-source.html">FG_Rect.h</a>第<a class="el" href="FG__Rect_8h-source.html#l00064">64</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="a1" doxytag="FG_Rect::FG_Rect" ></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"> FG_Rect::FG_Rect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const short&nbsp;</td>          <td class="mdname" nowrap> <em>x1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>y1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>x2</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>y2</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>矩形结构的构造函数 <p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>x1</em>&nbsp;</td><td>矩形左上角的横坐标 </td></tr>    <tr><td valign=top><em>y1</em>&nbsp;</td><td>矩形左上角的纵坐标 </td></tr>    <tr><td valign=top><em>x2</em>&nbsp;</td><td>矩形右下角的横坐标 </td></tr>    <tr><td valign=top><em>y2</em>&nbsp;</td><td>矩形右下角的纵坐标 </td></tr>  </table></dl><p>在文件<a class="el" href="FG__Rect_8h-source.html">FG_Rect.h</a>第<a class="el" href="FG__Rect_8h-source.html#l00072">72</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><hr><h2>成员函数文档</h2><a class="anchor" name="a6" 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">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>Rect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>&nbsp;</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#l00069">69</a>行定义。

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -