group__nanox__cursor.html

来自「Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在」· HTML 代码 · 共 253 行

HTML
253
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Nano-X cursor API.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center><hr><h1>Nano-X cursor API.<br><small>[<a class="el" href="group__nanox.html">Nano-X public API</a>]</small></h1>Functions for controlling the appearance of the mouse pointer. <a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__nanox__cursor.html#a0">GrSetWindowCursor</a> (GR_WINDOW_ID wid, GR_CURSOR_ID cid)</td></tr><tr><td>&nbsp;</td><td><em class="mdesc">Specify a cursor for a window.</em> <a href="#a0"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>GR_CURSOR_ID&nbsp;</td><td valign=bottom><a class="el" href="group__nanox__cursor.html#a1">GrNewCursor</a> (GR_SIZE width, GR_SIZE height, GR_COORD hotx, GR_COORD hoty, GR_COLOR foreground, GR_COLOR background, GR_BITMAP *fgbitmap, GR_BITMAP *bgbitmap)</td></tr><tr><td>&nbsp;</td><td><em class="mdesc">Creates a server-based cursor (mouse graphic) resource.</em> <a href="#a1"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__nanox__cursor.html#a2">GrMoveCursor</a> (GR_COORD x, GR_COORD y)</td></tr><tr><td>&nbsp;</td><td><em class="mdesc">Moves the cursor (mouse pointer) to the specified coordinates.</em> <a href="#a2"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__nanox__cursor.html#a3">GrDestroyCursor</a> (GR_CURSOR_ID cid)</td></tr><tr><td>&nbsp;</td><td><em class="mdesc">Destroys the specified server-based cursor and reclaims the memory used by it.</em> <a href="#a3"></a><em></em><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Functions for controlling the appearance of the mouse pointer.<p><hr><h2>Function Documentation</h2><a name="a3" doxytag="nano-X.h::GrDestroyCursor"></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 GrDestroyCursor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_CURSOR_ID&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>cid</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>Destroys the specified server-based cursor and reclaims the memory used by it.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>cid</em>&nbsp;</td><td>ID of the cursor to destory </td></tr>  </table></dl>    </td>  </tr></table><a name="a2" doxytag="nano-X.h::GrMoveCursor"></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 GrMoveCursor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">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 cursor (mouse pointer) to the specified coordinates.<p>The coordinates are relative to the root window, where (0,0) is the upper left hand corner of the screen. The reference point used for the pointer is that of the "hot spot". After moving the pointer, the graphic used for the pointer will change to the graphic defined for use in the window which it is over.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to move the pointer to </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to move the pointer to </td></tr>  </table></dl>    </td>  </tr></table><a name="a1" doxytag="nano-X.h::GrNewCursor"></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_CURSOR_ID GrNewCursor </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>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>hotx</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>hoty</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COLOR&nbsp;</td>          <td class="mdname" nowrap> <em>foreground</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_BITMAP *&nbsp;</td>          <td class="mdname" nowrap> <em>fgbitmap</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_BITMAP *&nbsp;</td>          <td class="mdname" nowrap> <em>bgbitmap</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>Creates a server-based cursor (mouse graphic) resource.<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 pointer bitmap </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the pointer bitmap </td></tr>    <tr><td valign=top><em>hotx</em>&nbsp;</td><td>the X coordinate within the bitmap used as the target of the pointer </td></tr>    <tr><td valign=top><em>hoty</em>&nbsp;</td><td>the Y coordinate within the bitmap used as the target of the pointer </td></tr>    <tr><td valign=top><em>foreground</em>&nbsp;</td><td>the colour to use for the foreground of the pointer </td></tr>    <tr><td valign=top><em>background</em>&nbsp;</td><td>the colour to use for the background of the pointer </td></tr>    <tr><td valign=top><em>fgbitmap</em>&nbsp;</td><td>pointer to bitmap data specifying the foreground of the pointer </td></tr>    <tr><td valign=top><em>bgbitmap</em>&nbsp;</td><td>pointer to bitmap data specifying the background of the pointer </td></tr>  </table></dl>    </td>  </tr></table><a name="a0" doxytag="nano-X.h::GrSetWindowCursor"></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 GrSetWindowCursor </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_CURSOR_ID&nbsp;</td>          <td class="mdname" nowrap> <em>cid</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>Specify a cursor for a window.<p>This cursor will only be used within that window, and by default for its new children. If the cursor is currently within this window, it will be changed to the new one immediately. If the new cursor ID is 0, revert to the root window cursor.<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 cursor for </td></tr>    <tr><td valign=top><em>cid</em>&nbsp;</td><td>the cursor ID </td></tr>  </table></dl>    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Sun May 18 21:03:06 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 + =
减小字号Ctrl + -
显示快捷键?