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

📄 classfg__screen.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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_Screen 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_Screen类参考<br><small>[<a class="el" href="group__Framework.html">框架层</a>]</small></h1><code>#include &lt;<a class="el" href="FG__Screen_8h-source.html">FG_Screen.h</a>&gt;</code><p><p>继承图,类FG_Screen<p><center><img src="classFG__Screen.png" usemap="#FG_Screen_map" border="0" alt=""></center><map name="FG_Screen_map"><area href="classFG__Container.html" alt="FG_Container" shape="rect" coords="0,56,132,80"><area href="classFG__OSMsgObserver.html" alt="FG_OSMsgObserver" shape="rect" coords="142,56,274,80"><area href="classFG__Object.html" alt="FG_Object" shape="rect" coords="0,0,132,24"></map>FG_Screen合作图:<p><center><img src="classFG__Screen__coll__graph.png" border="0" usemap="#FG__Screen__coll__map" alt="Collaboration graph"></center><map name="FG__Screen__coll__map"><area href="classFG__Container.html" shape="rect" coords="144,369,269,593" alt=""><area href="structFG__MSGMAP.html" shape="rect" coords="255,209,383,305" alt=""><area href="structFG__MSGMAP__ENTRY.html" shape="rect" coords="79,17,220,145" alt=""><area href="classFG__OSMsgObserver.html" shape="rect" coords="407,433,561,529" alt=""><area href="classFG__Factory.html" shape="rect" coords="585,377,721,585" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__Screen-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>屏幕类. <p>该类为单件类,代表物理屏幕设备,在屏幕上可以放置多个可相互覆盖的窗口 <p><p>在文件<a class="el" href="FG__Screen_8h-source.html">FG_Screen.h</a>第<a class="el" href="FG__Screen_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&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#a0">AddWindow</a> (<a class="el" href="classFG__Window.html">FG_Window</a> *pWindow)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">在屏幕上添加一个窗口.  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#a1">RemoveWindow</a> (<a class="el" href="classFG__Window.html">FG_Window</a> *pWindow)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">从屏幕上删除一个窗口  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#a2">OSMessage</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">用于接收系统消息的接口.  <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__Factory.html">FG_Factory</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#a3">GetFactory</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到当前使用的工厂对象  <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#a4">SetFactory</a> (<a class="el" href="classFG__Factory.html">FG_Factory</a> *pFactory)</td></tr><tr><td class="mdescLeft">&nbsp;</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><a class="el" href="classFG__Screen.html">FG_Screen</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#e0">GetScreen</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到屏幕类的唯一实例对象的全局访问点函数  <a href="#e0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#e1">DeleteScreen</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">删除屏幕类的唯一实例对象.  <a href="#e1"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b0">OnDrawRequest</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">窗口发送的要求重画消息<a class="el" href="group__Utility.html#gga12a24">FG_MSG_DRAW_REQUEST</a>的处理函数  <a href="#b0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b1">OnDrawTimer</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">用于减少重画次数的定时器消息(<a class="el" href="classFG__Screen.html#y1y0">TIMERID_DRAW</a>)的处理函数.  <a href="#b1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b2">DrawAllWindow</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">依次重画所有窗口.  <a href="#b2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b3">FG_Screen</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">屏幕类的构造函数,用户不能直接调用.  <a href="#b3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b4">~FG_Screen</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">析构函数,用户不能直接调用.  <a href="#b4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#b5">GetMessageMap</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到本类的消息映射表指针  <a href="#b5"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__Factory.html">FG_Factory</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#p0">m_pFactory</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">指向当前使用的工厂对象的指针.  <a href="#p0"></a><br><br></td></tr><tr><td colspan=2><br><h2>静态保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#t0">m_MsgMap</a> = { &amp; <a class="el" href="classFG__Container.html">FG_Container</a> ::<a class="el" href="classFG__Screen.html#t0">m_MsgMap</a>, &amp; <a class="el" href="classFG__Screen.html">FG_Screen</a> ::<a class="el" href="classFG__Screen.html#v1">m_MsgEntries</a>[0] }</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">本类的消息映射表  <a href="#t0"></a><br><br></td></tr><tr><td colspan=2><br><h2>私有类型</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom>{ <a class="el" href="classFG__Screen.html#y1y0">TIMERID_DRAW</a> =  0xff }</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">定时器ID  <a href="#y1">更多...</a><br><br></td></tr><tr><td colspan=2><br><h2>静态私有属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__Screen.html">FG_Screen</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#v0">m_pScreen</a> = 0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">指向唯一的屏幕类的实例对象的指针,用于实现单件类.  <a href="#v0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__MSGMAP__ENTRY.html">FG_MSGMAP_ENTRY</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Screen.html#v1">m_MsgEntries</a> []</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">消息映射表项数组.  <a href="#v1"></a><br><br></td></tr></table><hr><h2>成员枚举类型文档</h2><a class="anchor" name="y1" doxytag="FG_Screen::@7" ></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"> anonymous enum<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>定时器ID <p><dl compact><dt><b>枚举值: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a class="anchor" name="y1y0" doxytag="TIMERID_DRAW" ></a>TIMERID_DRAW</em>&nbsp;</td><td>用于减少重画次数的定时器ID. </td></tr></table></dl><p>在文件<a class="el" href="FG__Screen_8h-source.html">FG_Screen.h</a>第<a class="el" href="FG__Screen_8h-source.html#l00151">151</a>行定义。    </td>  </tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="b3" doxytag="FG_Screen::FG_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"> FG_Screen::FG_Screen </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>Rect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>屏幕类的构造函数,用户不能直接调用. <p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>Rect</em>&nbsp;</td><td>屏幕占据的矩形区域,左上角坐标总是(0, 0),右下角坐标为(<a class="el" href="group__Utility.html#ga3">SCREEN_WIDTH</a>, <a class="el" href="group__Utility.html#ga4">SCREEN_HEIGHT</a>) </td></tr>  </table></dl><p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00101">101</a>行定义。<p>参考 <a class="el" href="FG__Object_8h-source.html#l00132">FG_Object::BGColor()</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00058">COLOR_BLACK</a>、<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="FG__Common_8h-source.html#l00113">FS_NONE</a>、<a class="el" href="FG__Screen_8h-source.html#l00145">m_pFactory</a>及<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00098">FG_OSAdaptor::SetMsgObserver()</a>.<p>参考自 <a class="el" href="FG__Screen_8cpp-source.html#l00075">GetScreen()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Screen_b3_cgraph.png" border="0" usemap="#classFG__Screen_b3_cgraph_map" alt=""></center><map name="classFG__Screen_b3_cgraph_map"><area href="classFG__Object.html#a8" shape="rect" coords="252,7,380,33" alt=""><area href="group__OSAdaptor.html#ga1" shape="rect" coords="267,57,365,84" alt=""><area href="classFG__OSAdaptor.html#a1" shape="rect" coords="215,108,417,135" alt=""><area href="classFG__OSAdaptor.html#e0" shape="rect" coords="467,57,637,84" alt=""></map><a class="anchor" name="b4" doxytag="FG_Screen::~FG_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"> FG_Screen::~<a class="el" href="classFG__Screen.html">FG_Screen</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>析构函数,用户不能直接调用. <p><p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00113">113</a>行定义。<p>参考 <a class="el" href="FG__Screen_8h-source.html#l00145">m_pFactory</a>.    </td>  </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a0" doxytag="FG_Screen::AddWindow" ></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_Screen::AddWindow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classFG__Window.html">FG_Window</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pWindow</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>在屏幕上添加一个窗口. <p>代理调用<a class="el" href="classFG__Container.html#b0">FG_Container::AddChild</a>,需要发送焦点切换消息 <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pWindow</em>&nbsp;</td><td>要添加的窗口对象的指针 </td></tr>  </table></dl><dl compact><dt><b>返回:</b></dt><dd>添加操作是否成功 true 成功 false 失败 </dd></dl><p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00119">119</a>行定义。<p>参考 <a class="el" href="FG__Container_8cpp-source.html#l00059">FG_Container::AddChild()</a>、<a class="el" href="group__Utility.html#gga15a35">FFS_GET</a>、<a class="el" href="group__Utility.html#gga15a36">FFS_LOSE</a>、<a class="el" href="group__Utility.html#gga12a25">FG_MSG_FOCUS</a>、<a class="el" href="FG__Message_8h-source.html#l00194">FG_Message::wData</a>及<a class="el" href="FG__Message_8h-source.html#l00192">FG_Message::wType</a>.<p>参考自 <a class="el" href="MyApp_8cpp-source.html#l00060">MyApp::InitApplication()</a>、<a class="el" href="MainWindow_8cpp-source.html#l00202">MainWindow::OnFactory()</a>、<a class="el" href="Win1_8cpp-source.html#l00114">Win1::OnOpen()</a>及<a class="el" href="MainWindow_8cpp-source.html#l00196">MainWindow::OnOpen()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Screen_a0_cgraph.png" border="0" usemap="#classFG__Screen_a0_cgraph_map" alt=""></center><map name="classFG__Screen_a0_cgraph_map"><area href="classFG__Container.html#b0" shape="rect" coords="219,32,365,58" alt=""><area href="classFG__BList.html#a6" shape="rect" coords="427,6,520,33" alt=""><area href="classFG__Object.html#a11" shape="rect" coords="415,57,532,84" alt=""></map><a class="anchor" name="e1" doxytag="FG_Screen::DeleteScreen" ></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_Screen::DeleteScreen </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>

⌨️ 快捷键说明

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