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

📄 group__nanox__window.html

📁 Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在其网站上下载.
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <td><p>Places the specified window at the top of its parents drawing stack, above all of its sibling windows.<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 raise </td></tr>  </table></dl>    </td>  </tr></table><a name="a11" doxytag="nano-X.h::GrReparentWindow"></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 GrReparentWindow </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>pwid</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>Changes the parent window of the specified window to the specified parent window and places it at the specified coordinates relative to the new parent.<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 reparent </td></tr>    <tr><td valign=top><em>pwid</em>&nbsp;</td><td>the ID of the new parent window </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to place the window at relative to the new parent </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to place the window at relative to the new parent </td></tr>  </table></dl>    </td>  </tr></table><a name="a10" doxytag="nano-X.h::GrResizeWindow"></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 GrResizeWindow </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_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>Resizes the specified window to be the specified width and height.<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 resize </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width to resize the window to </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height to resize the window to </td></tr>  </table></dl>    </td>  </tr></table><a name="a18" doxytag="nano-X.h::GrSetBackgroundPixmap"></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 GrSetBackgroundPixmap </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>pixmap</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>flags</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>Sets the background of the specified window to the specified pixmap.<p>The flags which specify how to draw the pixmap (in the top left of the window, in the centre of the window, tiled, etc.) are those which start with GR_BACKGROUND_ in nano-X.h. If the pixmap value is 0, the server will disable the background pixmap and return to using a solid colour fill.<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>ID of the window to set the background of </td></tr>    <tr><td valign=top><em>pixmap</em>&nbsp;</td><td>ID of the pixmap to use as the background </td></tr>    <tr><td valign=top><em>flags</em>&nbsp;</td><td>flags specifying how to draw the pixmap onto the window </td></tr>  </table></dl>    </td>  </tr></table><a name="a13" doxytag="nano-X.h::GrSetFocus"></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 GrSetFocus </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>    <td><p>Sets the keyboard focus to the specified 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 set the focus to </td></tr>  </table></dl>    </td>  </tr></table><a name="a20" doxytag="nano-X.h::GrSetWindowRegion"></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 GrSetWindowRegion </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_REGION_ID&nbsp;</td>          <td class="mdname" nowrap> <em>rid</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>type</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>Sets the bounding region of the specified window, not to be confused with a GC clip region.<p>The bounding region is used to implement non-rectangular windows. A window is defined by two regions: the bounding region and the clip region. The bounding region defines the area within the parent window that the window will occupy, including border. The clip region is the subset of the bounding region that is available for subwindows and graphics. The area between the bounding region and the clip region is defined to be the border of the window. Currently, only the window bounding region is implemented.<p>Copies the specified region and makes the copy be the bounding region used for the specified window. After setting the clipping region, all drawing within the window will be clipped to the specified region (including the drawing of the window background by the server), and mouse events will pass through parts of the window which are outside the clipping region to whatever is underneath them. Also, windows underneath the areas which are outside the clipping region will be able to draw to the screen as if those areas of the window were not there (in other words, you can see through the gaps in the window). This is most commonly used to implement shaped windows (ie. windows which are some shape other than a simple rectangle). Note that if you are using this feature you will probably want to disable window manager decorations so that the window manager does not draw its own container window behind yours and spoil the desired effect. Also note that shaped windows must always have a border size of 0. If you need a border around a shaped window, add it to the clipping region and draw it yourself.<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 set the clipping region of </td></tr>    <tr><td valign=top><em>rid</em>&nbsp;</td><td>the ID of the region to assign to the specified window </td></tr>    <tr><td valign=top><em>type</em>&nbsp;</td><td>region type, bounding or clip mask </td></tr>  </table></dl>    </td>  </tr></table><a name="a14" doxytag="nano-X.h::GrSetWMProperties"></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 GrSetWMProperties </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><a class="el" href="structGR__WM__PROPERTIES.html">GR_WM_PROPERTIES</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>props</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>Copies the provided <a class="el" href="structGR__WM__PROPERTIES.html">GR_WM_PROPERTIES</a> structure into the the <a class="el" href="structGR__WM__PROPERTIES.html">GR_WM_PROPERTIES</a> structure of the specified window id.<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 set the WM properties of </td></tr>    <tr><td valign=top><em>props</em>&nbsp;</td><td>pointer to a <a class="el" href="structGR__WM__PROPERTIES.html">GR_WM_PROPERTIES</a> structure </td></tr>  </table></dl>    </td>  </tr></table><a name="a6" doxytag="nano-X.h::GrUnmapWindow"></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 GrUnmapWindow </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>    <td><p>Recursively unmaps (makes invisible) the specified window and all of the child windows.<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 unmap </td></tr>  </table></dl>    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Sun May 18 21:03:07 2003 for Microwindows Nano-X API by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.3 </small></address></body></html>

⌨️ 快捷键说明

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