📄 classfg__screen.html
字号:
<td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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#l00094">94</a>行定义。<p>参考 <a class="el" href="FG__Screen_8cpp-source.html#l00057">m_pScreen</a>.<p>参考自 <a class="el" href="FG__Application_8cpp-source.html#l00053">FG_Application::OSMessage()</a>. </td> </tr></table><a class="anchor" name="b2" doxytag="FG_Screen::DrawAllWindow" ></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::DrawAllWindow </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> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>依次重画所有窗口. <p>通过发送<a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>消息要求窗口重画自己 <p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00195">195</a>行定义。<p>参考 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00113">FG_OSAdaptor::BeginDraw()</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00120">FG_OSAdaptor::EndDraw()</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="FG__Object_8h-source.html#l00320">FG_Object::OnDraw()</a>.<p>参考自 <a class="el" href="FG__Screen_8cpp-source.html#l00188">OnDrawTimer()</a>、<a class="el" href="FG__Screen_8cpp-source.html#l00159">OSMessage()</a>及<a class="el" href="FG__Screen_8cpp-source.html#l00140">RemoveWindow()</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Screen_b2_cgraph.png" border="0" usemap="#classFG__Screen_b2_cgraph_map" alt=""></center><map name="classFG__Screen_b2_cgraph_map"><area href="classFG__OSAdaptor.html#a3" shape="rect" coords="239,7,407,33" alt=""><area href="classFG__OSAdaptor.html#a4" shape="rect" coords="244,57,401,84" alt=""><area href="group__OSAdaptor.html#ga1" shape="rect" coords="273,108,372,135" alt=""><area href="classFG__Object.html#b6" shape="rect" coords="260,159,385,185" alt=""></map><a class="anchor" name="a3" doxytag="FG_Screen::GetFactory" ></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"> <a class="el" href="classFG__Factory.html">FG_Factory</a>* FG_Screen::GetFactory </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>得到当前使用的工厂对象 <p><dl compact><dt><b>返回:</b></dt><dd>指向当前使用的工厂对象的指针 </dd></dl><p>在文件<a class="el" href="FG__Screen_8h-source.html">FG_Screen.h</a>第<a class="el" href="FG__Screen_8h-source.html#l00099">99</a>行定义。<p>参考 <a class="el" href="FG__Screen_8h-source.html#l00145">m_pFactory</a>.<p>参考自 <a class="el" href="FG__Screen_8cpp-source.html#l00064">FG_GetFactory()</a>. </td> </tr></table><a class="anchor" name="b5" doxytag="FG_Screen::GetMessageMap" ></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"> const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> * FG_Screen::GetMessageMap </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>得到本类的消息映射表指针 <p>虚函数,派生类覆盖该函数,来返回自己的消息映射表指针,通过宏<a class="el" href="group__MsgMap__Define.html#ga1">BEGIN_MESSAGE_MAP</a>生成 <dl compact><dt><b>返回:</b></dt><dd>本类的消息映射表指针 </dd></dl><p>重载<a class="el" href="classFG__Container.html#b3">FG_Container</a>。<p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00051">51</a>行定义。 </td> </tr></table><a class="anchor" name="e0" doxytag="FG_Screen::GetScreen" ></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"> <a class="el" href="classFG__Screen.html">FG_Screen</a> * FG_Screen::GetScreen </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>得到屏幕类的唯一实例对象的全局访问点函数 <p>注册为<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>消息的观察者 <dl compact><dt><b>返回:</b></dt><dd>指向屏幕类的唯一实例对象的指针 </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#l00075">75</a>行定义。<p>参考 <a class="el" href="FG__Screen_8cpp-source.html#l00101">FG_Screen()</a>、<a class="el" href="FG__Screen_8cpp-source.html#l00057">m_pScreen</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>.<p>参考自 <a class="el" href="FG__Screen_8cpp-source.html#l00064">FG_GetFactory()</a>、<a class="el" href="FG__Screen_8cpp-source.html#l00059">FG_GetScreen()</a>及<a class="el" href="FG__Screen_8cpp-source.html#l00069">FG_SetFactory()</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Screen_e0_cgraph.png" border="0" usemap="#classFG__Screen_e0_cgraph_map" alt=""></center><map name="classFG__Screen_e0_cgraph_map"><area href="classFG__Screen.html#b3" shape="rect" coords="211,57,357,84" alt=""><area href="classFG__Object.html#a8" shape="rect" coords="444,7,572,33" alt=""><area href="group__OSAdaptor.html#ga1" shape="rect" coords="459,57,557,84" alt=""><area href="classFG__OSAdaptor.html#a1" shape="rect" coords="407,108,609,135" alt=""><area href="classFG__OSAdaptor.html#e0" shape="rect" coords="659,57,829,84" alt=""></map><a class="anchor" name="b0" doxytag="FG_Screen::OnDrawRequest" ></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::OnDrawRequest </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structFG__Message.html">FG_Message</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pMsg</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>窗口发送的要求重画消息<a class="el" href="group__Utility.html#gga12a24">FG_MSG_DRAW_REQUEST</a>的处理函数 <p>对于窗口对象发来的重画请求,并不直接重画,而是启动一个时间为<a class="el" href="group__Utility.html#ga8">SCREEN_DRAW_INTERVAL</a>(50毫秒)的定时器, 定时器到期时才执行重画操作,该定时器在删除之前只能被成功一次,因此50 毫秒内的只会发生一次重画操作, 提高了重画的效率,不会引起闪烁感 <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pMsg</em> </td><td>指向要求重画消息结构的指针 </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#l00179">179</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00100">SCREEN_DRAW_INTERVAL</a>、<a class="el" href="FG__Object_8h-source.html#l00241">FG_Object::StartTimer()</a>及<a class="el" href="classFG__Screen.html#y1y0">TIMERID_DRAW</a>. </td> </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Screen_b0_cgraph.png" border="0" usemap="#classFG__Screen_b0_cgraph_map" alt=""></center><map name="classFG__Screen_b0_cgraph_map"><area href="classFG__Object.html#b0" shape="rect" coords="242,59,381,85" alt=""><area href="group__Framework.html#ga0" shape="rect" coords="454,20,590,47" alt=""><area href="classFG__TimerManager.html#a0" shape="rect" coords="430,96,614,123" alt=""><area href="classFG__TimerManager.html#e0" shape="rect" coords="662,7,889,33" alt=""><area href="classFG__SList.html#a4" shape="rect" coords="729,57,822,84" alt=""><area href="group__Utility.html#ga10" shape="rect" coords="729,108,822,135" alt=""><area href="classFG__SList.html#a2" shape="rect" coords="728,159,824,185" alt=""></map><a class="anchor" name="b1" doxytag="FG_Screen::OnDrawTimer" ></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::OnDrawTimer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>用于减少重画次数的定时器消息(<a class="el" href="classFG__Screen.html#y1y0">TIMERID_DRAW</a>)的处理函数. <p>依次重画所有的窗口 <p>在文件<a class="el" href="FG__Screen_8cpp-source.html">FG_Screen.cpp</a>第<a class="el" href="FG__Screen_8cpp-source.html#l00188">188</a>行定义。<p>参考 <a class="el" href="FG__Screen_8cpp-source.html#l00195">DrawAllWindow()</a>、<a class="el" href="FG__Object_8h-source.html#l00254">FG_Object::KillTimer()</a>及<a class="el" href="classFG__Screen.html#y1y0">TIMERID_DRAW</a>. </td> </tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -