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

📄 classfg__window.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<p>在窗口中添加一个控件. <p>控件之间一般不能重叠,如果有重叠,后添加的控件覆盖以前添加的控件,焦点被切换到刚添加的控件<p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pWidget</em>&nbsp;</td><td>要添加的控件指针 </td></tr>  </table></dl><dl compact><dt><b>返回:</b></dt><dd>添加操作是否成功<br> true  成功<br> false 失败 </dd></dl><p>在文件<a class="el" href="FG__Window_8cpp-source.html">FG_Window.cpp</a>第<a class="el" href="FG__Window_8cpp-source.html#l00063">63</a>行定义。<p>参考 <a class="el" href="FG__Container_8cpp-source.html#l00059">FG_Container::AddChild()</a>、<a class="el" href="FG__Widget_8h-source.html#l00070">FG_Widget::CanGetFocus()</a>及<a class="el" href="FG__Window_8cpp-source.html#l00105">ChangeFocus()</a>.<p>参考自 <a class="el" href="MainWindow_8cpp-source.html#l00095">MainWindow::MainWindow()</a>、<a class="el" href="Win1_8cpp-source.html#l00074">Win1::Win1()</a>及<a class="el" href="Win2_8cpp-source.html#l00081">Win2::Win2()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Window_a2_cgraph.png" border="0" usemap="#classFG__Window_a2_cgraph_map" alt=""></center><map name="classFG__Window_a2_cgraph_map"><area href="classFG__Container.html#b0" shape="rect" coords="228,57,375,84" alt=""><area href="classFG__Widget.html#a1" shape="rect" coords="433,108,596,134" alt=""><area href="classFG__Window.html#a6" shape="rect" coords="219,158,384,185" alt=""><area href="classFG__BList.html#a6" shape="rect" coords="468,6,561,33" alt=""><area href="classFG__Object.html#a11" shape="rect" coords="456,57,573,84" alt=""><area href="classFG__Object.html#a20" shape="rect" coords="449,158,580,185" alt=""><area href="group__OSAdaptor.html#ga1" shape="rect" coords="695,108,793,134" alt=""><area href="structFG__MSGMAP.html#a0" shape="rect" coords="644,158,844,185" alt=""><area href="classFG__Object.html#b5" shape="rect" coords="655,209,833,236" alt=""></map><a class="anchor" name="a6" doxytag="FG_Window::ChangeFocus" ></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_Window::ChangeFocus </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classFG__Widget.html">FG_Widget</a> *const&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pWidget</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>焦点控件即当前有输入焦点的控件,不是快捷键的键盘消息应该发送给该控件<br><ul><li>改变过程中<ul><li>给失去焦点的控件发送焦点失去消息</li><li>给得到焦点的控件发送焦点得到消息</li></ul></li></ul><p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pWidget</em>&nbsp;</td><td>要得到输入焦点的控件 </td></tr>  </table></dl><p>在文件<a class="el" href="FG__Window_8cpp-source.html">FG_Window.cpp</a>第<a class="el" href="FG__Window_8cpp-source.html#l00105">105</a>行定义。<p>参考 <a class="el" href="FG__Widget_8h-source.html#l00070">FG_Widget::CanGetFocus()</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__Window_8h-source.html#l00195">m_pFocus</a>、<a class="el" href="FG__Object_8cpp-source.html#l00170">FG_Object::Message()</a>及<a class="el" href="FG__Message_8h-source.html#l00194">FG_Message::wData</a>.<p>参考自 <a class="el" href="FG__Window_8cpp-source.html#l00063">AddWidget()</a>、<a class="el" href="FG__Window_8cpp-source.html#l00192">OnKey()</a>、<a class="el" href="FG__Window_8cpp-source.html#l00221">OnMouse()</a>、<a class="el" href="FG__Window_8cpp-source.html#l00126">RegisterKey()</a>及<a class="el" href="FG__Window_8cpp-source.html#l00078">RemoveWidget()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Window_a6_cgraph.png" border="0" usemap="#classFG__Window_a6_cgraph_map" alt=""></center><map name="classFG__Window_a6_cgraph_map"><area href="classFG__Widget.html#a1" shape="rect" coords="233,7,396,33" alt=""><area href="classFG__Object.html#a20" shape="rect" coords="249,57,380,84" alt=""><area href="group__OSAdaptor.html#ga1" shape="rect" coords="494,7,593,33" alt=""><area href="structFG__MSGMAP.html#a0" shape="rect" coords="444,57,644,84" alt=""><area href="classFG__Object.html#b5" shape="rect" coords="454,108,633,135" alt=""><area href="classFG__OSAdaptor.html#e0" shape="rect" coords="693,7,864,33" alt=""></map><a class="anchor" name="a4" doxytag="FG_Window::GetClientRect" ></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_Window::GetClientRect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><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> const<code> [virtual]</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>返回的客户区矩形 </td></tr>  </table></dl><p>重载<a class="el" href="classFG__Object.html#a3">FG_Object</a>。<p>在文件<a class="el" href="FG__Window_8cpp-source.html">FG_Window.cpp</a>第<a class="el" href="FG__Window_8cpp-source.html#l00097">97</a>行定义。<p>参考 <a class="el" href="FG__Object_8cpp-source.html#l00147">FG_Object::GetClientRect()</a>、<a class="el" href="FG__String_8h-source.html#l00089">FG_String::Length()</a>、<a class="el" href="FG__Window_8h-source.html#l00193">m_Title</a>、<a class="el" href="FG__Common_8h-source.html#l00096">TITLE_HEIGHT</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">FG_Rect::wTop</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Window_a4_cgraph.png" border="0" usemap="#classFG__Window_a4_cgraph_map" alt=""></center><map name="classFG__Window_a4_cgraph_map"><area href="classFG__Object.html#a3" shape="rect" coords="233,6,393,33" alt=""><area href="classFG__String.html#a5" shape="rect" coords="256,57,370,84" alt=""><area href="structFG__Rect.html#a2" shape="rect" coords="441,6,529,33" alt=""></map><a class="anchor" name="b5" doxytag="FG_Window::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_Window::GetMessageMap </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> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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="classMainWindow.html#b7">MainWindow</a>、<a class="el" href="classWin1.html#b5">Win1</a>及<a class="el" href="classWin2.html#b2">Win2</a>重载。<p>在文件<a class="el" href="FG__Window_8cpp-source.html">FG_Window.cpp</a>第<a class="el" href="FG__Window_8cpp-source.html#l00055">55</a>行定义。    </td>  </tr></table><a class="anchor" name="b0" doxytag="FG_Window::OnDraw" ></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_Window::OnDraw </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classFG__OSAdaptor.html">FG_OSAdaptor</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pAdaptor</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>重画消息<a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>的处理函数. <p>按照覆盖顺序把<a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>消息发送给每个子控件,要求他们重画自己 <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pAdaptor</em>&nbsp;</td><td>指向操作系统适配器的指针 </td></tr>  </table></dl><p>重载<a class="el" href="classFG__Object.html#b6">FG_Object</a>。<p>在文件<a class="el" href="FG__Window_8cpp-source.html">FG_Window.cpp</a>第<a class="el" href="FG__Window_8cpp-source.html#l00145">145</a>行定义。<p>参考 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00113">FG_OSAdaptor::BeginDraw()</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00062">COLOR_BLUE</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00060">COLOR_WHITE</a>、<a class="el" href="FG__String_8h-source.html#l00082">FG_String::DataGet()</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00141">FG_OSAdaptor::DrawText()</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00120">FG_OSAdaptor::EndDraw()</a>、<a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00127">FG_OSAdaptor::FillRect()</a>、<a class="el" href="FG__Object_8cpp-source.html#l00147">FG_Object::GetClientRect()</a>、<a class="el" href="FG__String_8h-source.html#l00089">FG_String::Length()</a>、<a class="el" href="FG__Window_8h-source.html#l00193">m_Title</a>、<a class="el" href="FG__Object_8h-source.html#l00320">FG_Object::OnDraw()</a>、<a class="el" href="FG__Common_8h-source.html#l00096">TITLE_HEIGHT</a>、<a class="el" href="FG__Rect_8h-source.html#l00059">FG_Rect::wBottom</a>、<a class="el" href="FG__Rect_8h-source.html#l00053">FG_Rect::wLeft</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">FG_Rect::wTop</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__Window_b0_cgraph.png" border="0" usemap="#classFG__Window_b0_cgraph_map" alt=""></center><map name="classFG__Window_b0_cgraph_map"><area href="classFG__OSAdaptor.html#a3" shape="rect" coords="201,6,369,33" alt=""><area href="classFG__String.html#a4" shape="rect" coords="224,57,346,84" alt=""><area href="classFG__OSAdaptor.html#a7" shape="rect" coords="206,108,364,134" alt=""><area href="classFG__OSAdaptor.html#a4" shape="rect" coords="206,158,364,185" alt=""><area href="classFG__OSAdaptor.html#a5" shape="rect" coords="210,209,360,236" alt=""><area href="classFG__Object.html#a3" shape="rect" coords="205,260,365,286" alt=""><area href="classFG__String.html#a5" shape="rect" coords="228,310,342,337" alt=""><area href="classFG__Object.html#b6" shape="rect" coords="222,361,348,388" alt=""></map><a class="anchor" name="b3" doxytag="FG_Window::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_Window::OnDrawRequest </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="structFG__Message.html">FG_Message</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pMsg</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>

⌨️ 快捷键说明

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