📄 classfg__x11adaptor.html
字号:
</table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>程序初始化 <p>调用X11函数打开X11显示设备,创建窗口<br> 发送<a class="el" href="group__Utility.html#gga12a17">FG_MSG_STARTUP</a>消息 <dl compact><dt><b>返回:</b></dt><dd>初始化是否成功<br> true 成功<br> false 失败 </dd></dl><p>Implements <a class="el" href="classFG__OSAdaptor.html#b1">FG_OSAdaptor</a>.<p>在文件<a class="el" href="FG__X11Adaptor_8cpp-source.html">FG_X11Adaptor.cpp</a>第<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00067">67</a>行定义。<p>参考 <a class="el" href="FG__X11Adaptor_8h-source.html#l00128">display</a>、<a class="el" href="group__Utility.html#gga12a17">FG_MSG_STARTUP</a>、<a class="el" href="FG__Common_8h-source.html#l00046">NULL</a>、<a class="el" href="FG__X11Adaptor_8h-source.html#l00131">screen</a>、<a class="el" href="FG__Common_8h-source.html#l00062">SCREEN_HEIGHT</a>、<a class="el" href="FG__Common_8h-source.html#l00061">SCREEN_WIDTH</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00106">FG_OSAdaptor::SendMsg()</a>及<a class="el" href="FG__X11Adaptor_8h-source.html#l00134">win</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__X11Adaptor_a0_cgraph.png" border="0" usemap="#classFG__X11Adaptor_a0_cgraph_map" alt=""></center><map name="classFG__X11Adaptor_a0_cgraph_map"><area href="classFG__OSAdaptor.html#a2" shape="rect" coords="239,7,399,33" alt=""></map><a class="anchor" name="d0" doxytag="FG_X11Adaptor::process_event" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void FG_X11Adaptor::process_event </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">XEvent </td> <td class="mdname1" valign="top" nowrap> <em>report</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>X11事件处理函数. <p>该函数接收系统消息,然后通过观查者模式发送给框架层 <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>report</em> </td><td>接收到的事件 </td></tr> </table></dl><p>在文件<a class="el" href="FG__X11Adaptor_8cpp-source.html">FG_X11Adaptor.cpp</a>第<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00190">190</a>行定义。<p>参考 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00061">FG_GetAdaptor()</a>、<a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>、<a class="el" href="group__Utility.html#gga12a20">FG_MSG_KEY</a>、<a class="el" href="group__Utility.html#gga12a21">FG_MSG_MOUSE</a>、<a class="el" href="group__Utility.html#gga13a29">FKS_DOWN</a>、<a class="el" href="group__Utility.html#gga13a30">FKS_UP</a>、<a class="el" href="group__Utility.html#gga14a32">FMS_LBUTTONDOWN</a>、<a class="el" href="group__Utility.html#gga14a33">FMS_LBUTTONUP</a>、<a class="el" href="FG__Message_8h-source.html#l00102">FVK_DELETE</a>、<a class="el" href="FG__Message_8h-source.html#l00101">FVK_ENTER</a>、<a class="el" href="FG__Message_8h-source.html#l00103">FVK_LEFT</a>、<a class="el" href="FG__Message_8h-source.html#l00104">FVK_RIGHT</a>、<a class="el" href="FG__Message_8h-source.html#l00105">FVK_TAB</a>、<a class="el" href="FG__Message_8h-source.html#l00200">FG_Message::lData</a>、<a class="el" href="FG__Message_8h-source.html#l00201">FG_Message::Point</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00106">FG_OSAdaptor::SendMsg()</a>、<a class="el" href="FG__Common_8h-source.html#l00055">WORD</a>、<a class="el" href="FG__Point_8h-source.html#l00051">FG_Point::x</a>及<a class="el" href="FG__Point_8h-source.html#l00053">FG_Point::y</a>.<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00112">Execute()</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__X11Adaptor_d0_cgraph.png" border="0" usemap="#classFG__X11Adaptor_d0_cgraph_map" alt=""></center><map name="classFG__X11Adaptor_d0_cgraph_map"><area href="group__OSAdaptor.html#ga1" shape="rect" coords="285,6,384,33" alt=""><area href="classFG__OSAdaptor.html#a2" shape="rect" coords="255,57,415,84" alt=""><area href="classFG__OSAdaptor.html#e0" shape="rect" coords="464,6,635,33" alt=""></map><a class="anchor" name="a3" doxytag="FG_X11Adaptor::SetXpmPath" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void FG_X11Adaptor::SetXpmPath </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>pPath</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>设置位图文件所在目录的绝对路径. <p>两种方法得到FishGUI主目录的绝对路径<ul><li>从环境变量HOME_FISHGUI中得到</li><li>从程序运行时argv[0]所带的运行程序路径和当前路径组合得到<br></li></ul><p>第二种方法在不同的环境中不能保证一定能得到位图文件所在目录的绝对路径, 这种情况下用户必须设置环境变量HOME_FISHGUI<p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pPath</em> </td><td>argv[0]所带的运行程序路径 </td></tr> </table></dl><p>在文件<a class="el" href="FG__X11Adaptor_8cpp-source.html">FG_X11Adaptor.cpp</a>第<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00141">141</a>行定义。<p>参考 <a class="el" href="FG__X11Adaptor_8h-source.html#l00137">XpmPath</a>.<p>参考自 <a class="el" href="main_8cpp-source.html#l00045">main()</a>. </td> </tr></table><hr><h2>友元及相关函数文档</h2><a class="anchor" name="n0" doxytag="FG_X11Adaptor::FG_OSAdaptor" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> friend class <a class="el" href="classFG__OSAdaptor.html">FG_OSAdaptor</a><code> [friend]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>在文件<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>第<a class="el" href="FG__X11Adaptor_8h-source.html#l00112">112</a>行定义。 </td> </tr></table><hr><h2>成员数据文档</h2><a class="anchor" name="r0" doxytag="FG_X11Adaptor::display" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Display* <a class="el" href="classFG__X11Adaptor.html#r0">FG_X11Adaptor::display</a><code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>X11显示设备. <p><p>在文件<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>第<a class="el" href="FG__X11Adaptor_8h-source.html#l00128">128</a>行定义。<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00112">Execute()</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00104">ExitInstance()</a>及<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00067">InitInstance()</a>. </td> </tr></table><a class="anchor" name="r1" doxytag="FG_X11Adaptor::screen" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int <a class="el" href="classFG__X11Adaptor.html#r1">FG_X11Adaptor::screen</a><code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>X11缺省屏幕号. <p><p>在文件<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>第<a class="el" href="FG__X11Adaptor_8h-source.html#l00131">131</a>行定义。<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00067">InitInstance()</a>. </td> </tr></table><a class="anchor" name="r2" doxytag="FG_X11Adaptor::win" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Window <a class="el" href="classFG__X11Adaptor.html#r2">FG_X11Adaptor::win</a><code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>X11窗口结构. <p><p>在文件<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>第<a class="el" href="FG__X11Adaptor_8h-source.html#l00134">134</a>行定义。<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00067">InitInstance()</a>. </td> </tr></table><a class="anchor" name="r3" doxytag="FG_X11Adaptor::XpmPath" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char <a class="el" href="classFG__X11Adaptor.html#r3">FG_X11Adaptor::XpmPath</a>[MAXPATHLEN + 1]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>位图文件所在目录的绝对路径. <p><p>在文件<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>第<a class="el" href="FG__X11Adaptor_8h-source.html#l00137">137</a>行定义。<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00181">DrawBitmap()</a>及<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00141">SetXpmPath()</a>. </td> </tr></table><hr>该类的文档由以下文件生成:<ul><li><a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a><li><a class="el" href="FG__X11Adaptor_8cpp-source.html">FG_X11Adaptor.cpp</a></ul><hr><center>由 DoxyGen 1.3.6 于 Wed Jun 9 22:37:57 2004 生成<br>版权所有 (C) 2003,2004 王咏武</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -