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

📄 group__rect__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the bound rectangle of two source rectangles. <p>This function creates the bound rect (<em>pdrc</em>) of two rectangles (<em>psrc1</em> and <em>prsrc2</em>). The bound rect is the smallest rectangle that contains both source rectangles.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pdrc</em>&nbsp;</td><td>The destination rectangle. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>psrc1</em>&nbsp;</td><td>The first source rectangle. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>psrc2</em>&nbsp;</td><td>The second source rectangle.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__rect__fns.htm#ga13">UnionRect</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::InflateRect"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void InflateRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>cx</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>cy</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Increases or decreases the width and height of an rectangle. <p>This function increases or decreases the width and height of the specified rectangle <em>prc</em>. This function adds <em>cx</em> units to the left and right ends of the rectangle and <em>cy</em> units to the top and bottom. the <em>cx</em> and <em>cy</em> are signed values; positive values increases the width and height, and negative values decreases them.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>prc</em>&nbsp;</td><td>The pointer to the rectangle. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>cx</em>&nbsp;</td><td>The inflating x value. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>cy</em>&nbsp;</td><td>The inflating y value.</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as an inline function for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__rect__fns.htm#ga5">InflateRectToPt</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04951">4951</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::InflateRectToPt"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void InflateRectToPt           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Inflates a rectangle to contain a point. <p>This function inflates the rectangle <em>prc</em> to contain the specified point <em></em>(x,y).<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>prc</em>&nbsp;</td><td>The pointer to the rectangle. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>x,y: The point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>x,y: The point.</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as an inline function for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__rect__fns.htm#ga4">InflateRect</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04972">4972</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga10" doxytag="gdi.h::IntersectRect"></a><p><table class="mdTable" 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="group__simple__types.htm#ga0">BOOL</a> GUIAPI IntersectRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pdrc</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>psrc1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>psrc2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Calculates the intersection of two rectangles. <p>This function calculates the intersection of two source rectangles (<em>psrc1</em> and <em>psrc2</em>) and places the coordinates of the intersection rectangle into the destination rectangle pointed to by <em>pdrc</em>. If the source rectangles do not intersect, and empty rectangle (in which all coordinates are set to zero) is placed into the destination rectangle.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pdrc</em>&nbsp;</td><td>The pointer to the destination rectangle. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>psrc1</em>&nbsp;</td><td>The first source rectangles. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>psrc2</em>&nbsp;</td><td>The second source rectangles.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE if the source rectangles intersect, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__rect__fns.htm#ga12">DoesIntersect</a>, <a class="el" href="group__rect__fns.htm#ga11">IsCovered</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga11" doxytag="gdi.h::IsCovered"></a><p><table class="mdTable" 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="group__simple__types.htm#ga0">BOOL</a> GUIAPI IsCovered           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines whether one rectangle is covered by another. <p>This function determines whether one rectangle (<em>prc1</em>) is covered by another rectangle (<em>prc2</em>).<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>prc1</em>&nbsp;</td><td>The first rectangles. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>prc2</em>&nbsp;</td><td>The second rectangles.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE if the first rectangle is covered by the second, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__rect__fns.htm#ga12">DoesIntersect</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::IsRectEmpty"></a><p><table class="mdTable" 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="group__simple__types.htm#ga0">BOOL</a> GUIAPI IsRectEmpty           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>prc</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines whether an rectangle is empty. <p>This function determines whether the specified rectangle <em>prc</em> is empty. An empty rectangle is one that has no area; that is, the coordinates of the right side is equal to the coordinate of the left side, or the coordinates of the bottom side is equal to the coordinate of the top side.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>prc</em>&nbsp;</td><td>The pointer to the rectangle. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE for empty, otherwise FALSE. </dd></dl>    </td>  </tr></table><a class="anchor" name="ga9" doxytag="gdi.h::NormalizeRect"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void GUIAPI NormalizeRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pRect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Normalizes a rectangle. <p>This function normalizes the rectangle pointed to by <em>prc</em> so that both the height and width are positive.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pRect</em>&nbsp;</td><td>The pointer to the rectangle. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga3" doxytag="gdi.h::OffsetRect"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void OffsetRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc</em>, </td>        </tr>

⌨️ 快捷键说明

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