📄 group__nanox__region.html
字号:
</tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>width</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>height</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>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> </td><td>pointer to a GR_BITMAP array specifying the region mask </td></tr> <tr><td valign=top><em>width</em> </td><td>the width of the bitmap </td></tr> <tr><td valign=top><em>height</em> </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">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>mode</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COUNT </td> <td class="mdname" nowrap> <em>count</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_POINT * </td> <td class="mdname" nowrap> <em>points</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>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> </td><td>the polygon mode to use (GR_POLY_EVENODD or GR_POLY_WINDING) </td></tr> <tr><td valign=top><em>count</em> </td><td>the number of points in the polygon </td></tr> <tr><td valign=top><em>points</em> </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">( </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></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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">( </td> <td class="md" nowrap valign="top">GR_REGION_ID </td> <td class="mdname" nowrap> <em>region</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>dx</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>dy</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>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> </td><td>The ID of the region to offset </td></tr> <tr><td valign=top><em>dx</em> </td><td>The distance to offset the region by in the X axis </td></tr> <tr><td valign=top><em>dy</em> </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">( </td> <td class="md" nowrap valign="top">GR_REGION_ID </td> <td class="mdname" nowrap> <em>region</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </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>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> </td><td>the ID of the region to examine. </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate of the point to test for. </td></tr> <tr><td valign=top><em>y</em> </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">( </td> <td class="md" nowrap valign="top">GR_REGION_ID </td> <td class="mdname" nowrap> <em>region</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>w</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>h</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -