📄 group__nanox__draw.html
字号:
</td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Draws a filled ellipse at the specified position using the specified dimensions and graphics context on the specified drawable.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the filled ellipse on </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the ellipse </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate to draw the ellipse at relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate to draw the ellipse at relative to the drawable </td></tr> <tr><td valign=top><em>rx</em> </td><td>the radius of the ellipse on the X axis </td></tr> <tr><td valign=top><em>ry</em> </td><td>the radius of the ellipse on the Y axis </td></tr> </table></dl> </td> </tr></table><a name="a34" doxytag="nano-X.h::GrFillPoly"></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 GrFillPoly </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</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>pointtable</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>Draws a filled polygon on the specified drawable using the specified graphics context.<p>The polygon is specified by an array of point structures. The polygon is automatically closed- the last point need not be the same as the first in order for the polygon to be closed.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the polygon onto </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the polygon </td></tr> <tr><td valign=top><em>count</em> </td><td>the number of points in the point array </td></tr> <tr><td valign=top><em>pointtable</em> </td><td>pointer to an array of points describing the polygon </td></tr> </table></dl> </td> </tr></table><a name="a21" doxytag="nano-X.h::GrFillRect"></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 GrFillRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</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_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>Draw a filled rectangle of the specified dimensions and position on the specified drawable using the specified graphics context.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the rectangle on </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the rectangle </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate of the rectangle relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate of the rectangle relative to the drawable </td></tr> <tr><td valign=top><em>width</em> </td><td>the width of the rectangle </td></tr> <tr><td valign=top><em>height</em> </td><td>the height of the rectangle </td></tr> </table></dl> </td> </tr></table><a name="a0" doxytag="nano-X.h::GrGetGCInfo"></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 GrGetGCInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structGR__GC__INFO.html">GR_GC_INFO</a> * </td> <td class="mdname" nowrap> <em>gcip</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>Fills in the specified <a class="el" href="structGR__GC__INFO.html">GR_GC_INFO</a> structure with information regarding the specified graphics context.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>gc</em> </td><td>A graphics context. </td></tr> <tr><td valign=top><em>gcip</em> </td><td>Pointer to a <a class="el" href="structGR__GC__INFO.html">GR_GC_INFO</a> structure to store the result. </td></tr> </table></dl> </td> </tr></table><a name="a19" doxytag="nano-X.h::GrLine"></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 GrLine </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x1</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y1</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x2</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y2</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>Draws a line using the specified graphics context on the specified drawable from (x1, y1) to (x2, y2), with coordinates given relative to the drawable.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the line on </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the line </td></tr> <tr><td valign=top><em>x1</em> </td><td>the X coordinate of the start of the line relative to the drawable </td></tr> <tr><td valign=top><em>y1</em> </td><td>the Y coordinate of the start of the line relative to the drawable </td></tr> <tr><td valign=top><em>x2</em> </td><td>the X coordinate of the end of the line relative to the drawable </td></tr> <tr><td valign=top><em>y2</em> </td><td>the Y coordinate of the end of the line relative to the drawable </td></tr> </table></dl> </td> </tr></table><a name="a1" doxytag="nano-X.h::GrNewGC"></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_GC_ID GrNewGC </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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -