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

📄 group__nanox__draw.html

📁 Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在其网站上下载.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
        <tr>          <td class="md" nowrap valign="top"> void GrArea </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</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_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></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>pixels</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>pixtype</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>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>&nbsp;</td><td>the ID of the drawable to draw the area onto </td></tr>    <tr><td valign=top><em>gc</em>&nbsp;</td><td>the ID of the graphics context to use when drawing the area </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to draw the area at relative to the drawable </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to draw the area at relative to the drawable </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width of the area </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the area </td></tr>    <tr><td valign=top><em>pixels</em>&nbsp;</td><td>pointer to an array containing the pixel data </td></tr>    <tr><td valign=top><em>pixtype</em>&nbsp;</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">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</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_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></td>          <td class="md" nowrap>GR_BITMAP *&nbsp;</td>          <td class="mdname" nowrap> <em>imagebits</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>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>&nbsp;</td><td>the ID of the drawable to draw the bitmap onto </td></tr>    <tr><td valign=top><em>gc</em>&nbsp;</td><td>the ID of the graphics context to use when drawing the bitmap </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to draw the bitmap at relative to the drawable </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to draw the bitmap at relative to the drawable </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>    <tr><td valign=top><em>imagebits</em>&nbsp;</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">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_WINDOW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>wid</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_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></td>          <td class="md" nowrap>GR_BOOL&nbsp;</td>          <td class="mdname" nowrap> <em>exposeflag</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>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>&nbsp;</td><td>Window ID. </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>X co-ordinate of rectangle to clear. </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>Y co-ordinate of rectangle to clear. </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>Width of rectangle to clear. </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>Height of rectangle to clear. </td></tr>    <tr><td valign=top><em>exposeflag</em>&nbsp;</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">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</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_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></td>          <td class="md" nowrap>GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>srcid</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>srcx</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</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 + -