group__nanox__misc.html
来自「Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在」· HTML 代码 · 共 488 行 · 第 1/2 页
HTML
488 行
<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_BUTTON * </td> <td class="mdname" nowrap> <em>bmask</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>Returns the current information for the pointer.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>mwin</em> </td><td>Window the mouse is current in </td></tr> <tr><td valign=top><em>x</em> </td><td>Current X pos of mouse (from root) </td></tr> <tr><td valign=top><em>y</em> </td><td>Current Y pos of mouse (from root) </td></tr> <tr><td valign=top><em>bmask</em> </td><td>Current button mask </td></tr> </table></dl> </td> </tr></table><a name="a0" doxytag="nano-X.h::GrReqShmCmds"></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 GrReqShmCmds </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">long </td> <td class="mdname1" valign="top" nowrap> <em>shmsize</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Requests a shared memory area of the specified size to use for transferring command arguments.<p>This is faster but less portable than the standard BSD sockets method of communication (and of course will only work if the client and server are on the same machine). Apart from the initial allocation of the area using this call, the use of shared memory is completely transparent. Additionally, if the allocation fails we silently and automatically fall back on socket communication. It is safe to call this function even if shared memory support is not compiled in; it will simply do nothing.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>shmsize</em> </td><td>the size of the shared memory area to allocate</td></tr> </table></dl><p><dl compact><dt><b><a class="el" href="todo.html#_todo000010">Todo:</a></b></dt><dd>FIXME: how does the user decide what size of shared memory area to allocate? </dd></dl> </td> </tr></table><a name="a5" doxytag="nano-X.h::GrSetPortraitMode"></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 GrSetPortraitMode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>portraitmode</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set server portrait mode.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>portraitmode</em> </td><td>New portrait mode. </td></tr> </table></dl> </td> </tr></table><a name="a3" doxytag="nano-X.h::GrSetScreenSaverTimeout"></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 GrSetScreenSaverTimeout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_TIMEOUT </td> <td class="mdname1" valign="top" nowrap> <em>timeout</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the number of seconds of inactivity before a screen saver activate event is sent to the root window ID.<p>A value of 0 activates the screen saver immediately, and a value of -1 disables the screen saver function.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>timeout</em> </td><td>the number of seconds of inactivity before screen saver activates </td></tr> </table></dl> </td> </tr></table><a name="a9" doxytag="nano-X.h::GrSetTransform"></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 GrSetTransform </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_TRANSFORM * </td> <td class="mdname1" valign="top" nowrap> <em>trans</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This passes transform data to the mouse input engine.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>trans</em> </td><td>A GR_TRANSFORM structure that contains the transform data for the filter, or NULL to disable. </td></tr> </table></dl> </td> </tr></table><a name="a8" doxytag="nano-X.h::GrUngrabKey"></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 GrUngrabKey </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_WINDOW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_KEY </td> <td class="mdname" nowrap> <em>key</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>Ungrab a key for a specific window.<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>Window to stop key grab. </td></tr> <tr><td valign=top><em>key</em> </td><td>MWKEY value. </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 + =
减小字号Ctrl + -
显示快捷键?