📄 group__nanox__draw.html
字号:
<tr> <td class="md" nowrap valign="top"> void GrArea </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></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>pixels</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pixtype</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 the specified pixel array of the specified size and format onto the specified drawable using the specified graphics context at the specified position.<p>Note that colour conversion is currently only performed when using the GR_PF_RGB format, which is an unsigned long containing RGBX data.<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 area onto </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the area </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate to draw the area at relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate to draw the area at relative to the drawable </td></tr> <tr><td valign=top><em>width</em> </td><td>the width of the area </td></tr> <tr><td valign=top><em>height</em> </td><td>the height of the area </td></tr> <tr><td valign=top><em>pixels</em> </td><td>pointer to an array containing the pixel data </td></tr> <tr><td valign=top><em>pixtype</em> </td><td>the format of the pixel data </td></tr> </table></dl> </td> </tr></table><a name="a26" doxytag="nano-X.h::GrBitmap"></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 GrBitmap </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></td> <td class="md" nowrap>GR_BITMAP * </td> <td class="mdname" nowrap> <em>imagebits</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 the monochrome bitmap data provided in the imagebits argument at the specified position on the specified drawable using the specified graphics context.<p>Note that the bitmap data should be an array of aligned 16 bit words. The usebackground flag in the graphics context specifies whether to draw the background colour wherever a bit value is zero.<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 bitmap onto </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the bitmap </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate to draw the bitmap at relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate to draw the bitmap at relative to the drawable </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> <tr><td valign=top><em>imagebits</em> </td><td>pointer to the bitmap data </td></tr> </table></dl> </td> </tr></table><a name="a6" doxytag="nano-X.h::GrClearArea"></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 GrClearArea </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_WINDOW_ID </td> <td class="mdname" nowrap> <em>wid</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></td> <td class="md" nowrap>GR_BOOL </td> <td class="mdname" nowrap> <em>exposeflag</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>Clears the specified window by to its background color or pixmap.<p>If exposeflag is non zero, an exposure event is generated for the window after it has been cleared.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>wid</em> </td><td>Window ID. </td></tr> <tr><td valign=top><em>x</em> </td><td>X co-ordinate of rectangle to clear. </td></tr> <tr><td valign=top><em>y</em> </td><td>Y co-ordinate of rectangle to clear. </td></tr> <tr><td valign=top><em>width</em> </td><td>Width of rectangle to clear. </td></tr> <tr><td valign=top><em>height</em> </td><td>Height of rectangle to clear. </td></tr> <tr><td valign=top><em>exposeflag</em> </td><td>A flag indicating whether to also generate an exposure event. </td></tr> </table></dl> </td> </tr></table><a name="a29" doxytag="nano-X.h::GrCopyArea"></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 GrCopyArea </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></td> <td class="md" nowrap>GR_DRAW_ID </td> <td class="mdname" nowrap> <em>srcid</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>srcx</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>srcy</em>, </td> </tr> <tr> <td></td> <td></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -