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

📄 group__nanox__window.html

📁 Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在其网站上下载.
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>The border and background of the window are painted, and an exposure event is generated for the window and every child which becomes visible.<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>the ID of the window to map </td></tr>  </table></dl>    </td>  </tr></table><a name="a9" doxytag="nano-X.h::GrMoveWindow"></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 GrMoveWindow </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 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>Moves the specified window to the specified position relative to its parent window.<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>the ID of the window to move </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to move the window to relative to its parent. </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to move the window to relative to its parent. </td></tr>  </table></dl>    </td>  </tr></table><a name="a2" doxytag="nano-X.h::GrNewInputWindow"></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_WINDOW_ID GrNewInputWindow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_WINDOW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>parent</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 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>Create a new input-only window with the specified dimensions which is a child of the specified parent window.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>parent</em>&nbsp;</td><td>The ID of the window to use as the parent of the new window. </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>The X coordinate of the new window relative to the parent window. </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>The Y coordinate of the new window relative to the parent window. </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>The width of the new window. </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>The height of the new window. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The ID of the newly created window. </dd></dl>    </td>  </tr></table><a name="a1" doxytag="nano-X.h::GrNewPixmap"></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_WINDOW_ID GrNewPixmap </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">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 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>Create a new server side pixmap.<p>This is an offscreen drawing area which can be copied into a window using a GrCopyArea call.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>width</em>&nbsp;</td><td>The width of the pixmap. </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>The height of the pixmap. </td></tr>    <tr><td valign=top><em>pixels</em>&nbsp;</td><td>Currently unused in client/server mode. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The ID of the newly created pixmap.</dd></dl><p><dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>FIXME Add support for shared memory... </dd></dl>    </td>  </tr></table><a name="a0" doxytag="nano-X.h::GrNewWindow"></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_WINDOW_ID GrNewWindow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_WINDOW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>parent</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_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>bordersize</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COLOR&nbsp;</td>          <td class="mdname" nowrap> <em>background</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COLOR&nbsp;</td>          <td class="mdname" nowrap> <em>bordercolor</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>Create a new window.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>parent</em>&nbsp;</td><td>The ID of the parent window. </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>The X coordinate of the new window relative to the parent window. </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>The Y coordinate of the new window relative to the parent window. </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>The width of the new window. </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>The height of the new window. </td></tr>    <tr><td valign=top><em>bordersize</em>&nbsp;</td><td>The width of the window border. </td></tr>    <tr><td valign=top><em>background</em>&nbsp;</td><td>The color of the window background. </td></tr>    <tr><td valign=top><em>bordercolor</em>&nbsp;</td><td>The color of the window border. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The ID of the newly created window. </dd></dl>    </td>  </tr></table><a name="a19" doxytag="nano-X.h::GrQueryTree"></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 GrQueryTree </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_WINDOW_ID *&nbsp;</td>          <td class="mdname" nowrap> <em>parentid</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_WINDOW_ID **&nbsp;</td>          <td class="mdname" nowrap> <em>children</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COUNT *&nbsp;</td>          <td class="mdname" nowrap> <em>nchildren</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>Return window parent and list of children.<p>Caller must free() children list after use.<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 for query </td></tr>    <tr><td valign=top><em>parentid</em>&nbsp;</td><td>returned parent ID </td></tr>    <tr><td valign=top><em>children</em>&nbsp;</td><td>returned children ID list </td></tr>    <tr><td valign=top><em>nchildren</em>&nbsp;</td><td>returned children count </td></tr>  </table></dl>    </td>  </tr></table><a name="a7" doxytag="nano-X.h::GrRaiseWindow"></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 GrRaiseWindow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_WINDOW_ID&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>wid</em>          </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>

⌨️ 快捷键说明

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