📄 classfg__x11adaptor.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>FishGUI: FG_X11Adaptor class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">首页</a> | <a class="qindex" href="modules.html">模块</a> | <a class="qindex" href="hierarchy.html">类继承关系</a> | <a class="qindex" href="classes.html">按字典顺序排序的列表</a> | <a class="qindex" href="annotated.html">组合类型列表</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">组合类型成员</a> | <a class="qindex" href="globals.html">文件成员</a></div><h1>FG_X11Adaptor类参考<br><small>[<a class="el" href="group__OSAdaptor.html">操作系统适配层</a>]</small></h1><code>#include <<a class="el" href="FG__X11Adaptor_8h-source.html">FG_X11Adaptor.h</a>></code><p><p>继承图,类FG_X11Adaptor<p><center><img src="classFG__X11Adaptor.png" usemap="#FG_X11Adaptor_map" border="0" alt=""></center><map name="FG_X11Adaptor_map"><area href="classFG__OSAdaptor.html" alt="FG_OSAdaptor" shape="rect" coords="0,0,104,24"></map>FG_X11Adaptor合作图:<p><center><img src="classFG__X11Adaptor__coll__graph.png" border="0" usemap="#FG__X11Adaptor__coll__map" alt="Collaboration graph"></center><map name="FG__X11Adaptor__coll__map"><area href="classFG__OSAdaptor.html" shape="rect" coords="113,353,236,737" alt=""><area href="classFG__OSDrawInterface.html" shape="rect" coords="7,17,164,289" alt=""><area href="classFG__OSMsgObserver.html" shape="rect" coords="188,105,343,201" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__X11Adaptor-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>X11的适配器类. <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#l00053">53</a>行定义。<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>公有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#a0">InitInstance</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">程序初始化 <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#a1">ExitInstance</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">程序退出 <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#a2">Execute</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">程序运行过程,执行消息循环 <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#a3">SetXpmPath</a> (const char *pPath)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">设置位图文件所在目录的绝对路径. <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#a4">DrawBitmap</a> (const char *pBmpName, const short x1, const short y1)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">绘制位图 <a href="#a4"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#b0">FG_X11Adaptor</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">X11适配器类的缺省构造函数. <a href="#b0"></a><br><br></td></tr><tr><td colspan=2><br><h2>私有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#d0">process_event</a> (XEvent report)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">X11事件处理函数. <a href="#d0"></a><br><br></td></tr><tr><td colspan=2><br><h2>私有属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Display * </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#r0">display</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">X11显示设备. <a href="#r0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#r1">screen</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">X11缺省屏幕号. <a href="#r1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Window </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#r2">win</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">X11窗口结构. <a href="#r2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#r3">XpmPath</a> [MAXPATHLEN+1]</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">位图文件所在目录的绝对路径. <a href="#r3"></a><br><br></td></tr><tr><td colspan=2><br><h2>友元</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11Adaptor.html#n0">FG_OSAdaptor</a></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="b0" doxytag="FG_X11Adaptor::FG_X11Adaptor" ></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"> FG_X11Adaptor::FG_X11Adaptor </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, protected]</code></td> </tr> </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#l00116">116</a>行定义。 </td> </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a4" doxytag="FG_X11Adaptor::DrawBitmap" ></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::DrawBitmap </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>pBmpName</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const short </td> <td class="mdname" nowrap> <em>x1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const short </td> <td class="mdname" nowrap> <em>y1</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>绘制位图 <p>X11适配器类覆盖该函数,把位图名组合成位图文件的绝对路径名,然后代理调用<a class="el" href="classFG__OSDrawInterface.html#a9">FG_OSDrawInterface::DrawBitmap</a> <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pBmpName</em> </td><td>要绘制的位图名 </td></tr> <tr><td valign=top><em>x1</em> </td><td>位图左上角的横坐标 </td></tr> <tr><td valign=top><em>y1</em> </td><td>位图左上角的纵坐标 </td></tr> </table></dl><p>重载<a class="el" href="classFG__OSAdaptor.html#a10">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#l00181">181</a>行定义。<p>参考 <a class="el" href="classFG__OSDrawInterface.html#a9">FG_OSDrawInterface::DrawBitmap()</a>及<a class="el" href="FG__X11Adaptor_8h-source.html#l00137">XpmPath</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__X11Adaptor_a4_cgraph.png" border="0" usemap="#classFG__X11Adaptor_a4_cgraph_map" alt=""></center><map name="classFG__X11Adaptor_a4_cgraph_map"><area href="classFG__OSDrawInterface.html#a9" shape="rect" coords="241,7,449,33" alt=""></map><a class="anchor" name="a2" doxytag="FG_X11Adaptor::Execute" ></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"> bool FG_X11Adaptor::Execute </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>程序运行过程,执行消息循环 <p>执行X11的消息循环 <dl compact><dt><b>返回:</b></dt><dd>退出是否成功<br> true 成功<br> false 失败 </dd></dl><p>Implements <a class="el" href="classFG__OSAdaptor.html#b3">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#l00112">112</a>行定义。<p>参考 <a class="el" href="FG__X11Adaptor_8h-source.html#l00128">display</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00061">FG_GetAdaptor()</a>、<a class="el" href="group__Utility.html#gga12a22">FG_MSG_TIMER</a>、<a class="el" href="FG__Common_8h-source.html#l00046">NULL</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00190">process_event()</a>及<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00106">FG_OSAdaptor::SendMsg()</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__X11Adaptor_a2_cgraph.png" border="0" usemap="#classFG__X11Adaptor_a2_cgraph_map" alt=""></center><map name="classFG__X11Adaptor_a2_cgraph_map"><area href="group__OSAdaptor.html#ga1" shape="rect" coords="488,32,587,59" alt=""><area href="classFG__X11Adaptor.html#d0" shape="rect" coords="220,57,409,84" alt=""><area href="classFG__OSAdaptor.html#a2" shape="rect" coords="457,95,617,121" alt=""><area href="classFG__OSAdaptor.html#e0" shape="rect" coords="667,32,837,59" alt=""></map><a class="anchor" name="a1" doxytag="FG_X11Adaptor::ExitInstance" ></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"> bool FG_X11Adaptor::ExitInstance </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>程序退出 <p>关闭X11显示设备,释放对象 <dl compact><dt><b>返回:</b></dt><dd>退出是否成功<br> true 成功<br> false 失败 </dd></dl><p>Implements <a class="el" href="classFG__OSAdaptor.html#b2">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#l00104">104</a>行定义。<p>参考 <a class="el" href="FG__X11Adaptor_8h-source.html#l00128">display</a>. </td> </tr></table><a class="anchor" name="a0" doxytag="FG_X11Adaptor::InitInstance" ></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"> bool FG_X11Adaptor::InitInstance </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -