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

📄 group__nanox__region.html

📁 Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在其网站上下载.
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>height</em></td>        </tr>        <tr>          <td></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>Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it.<p>1 bits in the bitmap specify areas inside the region and 0 bits specify areas outside it.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>bitmap</em>&nbsp;</td><td>pointer to a GR_BITMAP array specifying the region mask </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width of the bitmap </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the bitmap </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the ID of the newly allocated region structure, or 0 on error </dd></dl>    </td>  </tr></table><a name="a14" doxytag="nano-X.h::GrNewPolygonRegion"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> GR_REGION_ID GrNewPolygonRegion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap> <em>mode</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COUNT&nbsp;</td>          <td class="mdname" nowrap> <em>count</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_POINT *&nbsp;</td>          <td class="mdname" nowrap> <em>points</em></td>        </tr>        <tr>          <td></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>Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>mode</em>&nbsp;</td><td>the polygon mode to use (GR_POLY_EVENODD or GR_POLY_WINDING) </td></tr>    <tr><td valign=top><em>count</em>&nbsp;</td><td>the number of points in the polygon </td></tr>    <tr><td valign=top><em>points</em>&nbsp;</td><td>pointer to an array of point structures describing the polygon </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the ID of the newly allocated region structure, or 0 on error </dd></dl>    </td>  </tr></table><a name="a0" doxytag="nano-X.h::GrNewRegion"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> GR_REGION_ID GrNewRegion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </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>Creates a new region structure.<p>The structure is initialised with a set of default parameters.<p><dl compact><dt><b>Returns:</b></dt><dd>the ID of the newly created region </dd></dl>    </td>  </tr></table><a name="a12" doxytag="nano-X.h::GrOffsetRegion"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void GrOffsetRegion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_REGION_ID&nbsp;</td>          <td class="mdname" nowrap> <em>region</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>dx</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>dy</em></td>        </tr>        <tr>          <td></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>Offsets the specified region by the specified distance.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>region</em>&nbsp;</td><td>The ID of the region to offset </td></tr>    <tr><td valign=top><em>dx</em>&nbsp;</td><td>The distance to offset the region by in the X axis </td></tr>    <tr><td valign=top><em>dy</em>&nbsp;</td><td>The distance to offset the region by in the Y axis </td></tr>  </table></dl>    </td>  </tr></table><a name="a8" doxytag="nano-X.h::GrPointInRegion"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> GR_BOOL GrPointInRegion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_REGION_ID&nbsp;</td>          <td class="mdname" nowrap> <em>region</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td></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>Tests whether the specified point is within the specified region, and then returns either True or False depending on the result.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>region</em>&nbsp;</td><td>the ID of the region to examine. </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate of the point to test for. </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate of the point to test for. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE if the point is within the region, otherwise FALSE. </dd></dl>    </td>  </tr></table><a name="a9" doxytag="nano-X.h::GrRectInRegion"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int GrRectInRegion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_REGION_ID&nbsp;</td>          <td class="mdname" nowrap> <em>region</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>y</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>w</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>h</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>

⌨️ 快捷键说明

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