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

📄 classfg__osadaptor.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<p>Implemented in <a class="el" href="classFG__Win32Adaptor.html#a1">FG_Win32Adaptor</a>, and <a class="el" href="classFG__X11Adaptor.html#a1">FG_X11Adaptor</a>.<p>参考自 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00090">Run()</a>.    </td>  </tr></table><a class="anchor" name="a5" doxytag="FG_OSAdaptor::FillRect" ></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_OSAdaptor::FillRect </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="mdname" nowrap> <em>rect</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="group__Color.html#ga0">COLORVAL</a>&nbsp;</td>          <td class="mdname" nowrap> <em>ForeColor</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="group__Color.html#ga0">COLORVAL</a>&nbsp;</td>          <td class="mdname" nowrap> <em>background</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [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="classFG__OSDrawInterface.html#a4">FG_OSDrawInterface::FillRect</a> <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>    <tr><td valign=top><em>ForeColor</em>&nbsp;</td><td>前景色 </td></tr>    <tr><td valign=top><em>background</em>&nbsp;</td><td>背景色 </td></tr>  </table></dl><p>在文件<a class="el" href="FG__OSAdaptor_8cpp-source.html">FG_OSAdaptor.cpp</a>第<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00127">127</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00072">COLORVAL</a>、<a class="el" href="classFG__OSDrawInterface.html#a4">FG_OSDrawInterface::FillRect()</a>及<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00067">m_pDraw</a>.<p>参考自 <a class="el" href="FG__Object_8cpp-source.html#l00061">FG_Object::DrawBorder()</a>、<a class="el" href="MyButton_8cpp-source.html#l00047">MyButton::OnDraw()</a>及<a class="el" href="FG__Window_8cpp-source.html#l00145">FG_Window::OnDraw()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__OSAdaptor_a5_cgraph.png" border="0" usemap="#classFG__OSAdaptor_a5_cgraph_map" alt=""></center><map name="classFG__OSAdaptor_a5_cgraph_map"><area href="classFG__OSDrawInterface.html#a4" shape="rect" coords="216,7,397,33" alt=""></map><a class="anchor" name="e0" doxytag="FG_OSAdaptor::GetAdaptor" ></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__OSAdaptor.html">FG_OSAdaptor</a> * FG_OSAdaptor::GetAdaptor </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> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>具体的操作系统适配器对象的全局访问点函数 <p><ul><li>如果<a class="el" href="classFG__OSAdaptor.html#t1">FG_OSAdaptor::m_pAdaptor</a>为<a class="el" href="group__Utility.html#ga11">NULL</a><ul><li>如果是Win32系统<ul><li>创建<a class="el" href="classFG__Win32Adaptor.html">FG_Win32Adaptor</a>的唯一实例对象</li></ul></li><li>如果是X11系统<ul><li>创建<a class="el" href="classFG__X11Adaptor.html">FG_X11Adaptor</a>的唯一实例对象</li></ul></li><li>让<a class="el" href="classFG__OSAdaptor.html#t1">FG_OSAdaptor::m_pAdaptor</a>指向创建的对象</li></ul></li><li>返回<a class="el" href="classFG__OSAdaptor.html#t1">FG_OSAdaptor::m_pAdaptor</a> </li></ul><p>在文件<a class="el" href="FG__OSAdaptor_8cpp-source.html">FG_OSAdaptor.cpp</a>第<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00076">76</a>行定义。<p>参考 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00066">m_pAdaptor</a>.<p>参考自 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00061">FG_GetAdaptor()</a>.    </td>  </tr></table><a class="anchor" name="a9" doxytag="FG_OSAdaptor::GetTextHeight" ></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="group__Utility.html#ga1">WORD</a> FG_OSAdaptor::GetTextHeight </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>Text</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [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="classFG__OSDrawInterface.html#a8">FG_OSDrawInterface::GetTextHeight</a> <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>Text</em>&nbsp;</td><td>要计算高度的字符串,以<a class="el" href="group__Utility.html#ga11">NULL</a>结束 </td></tr>  </table></dl><dl compact><dt><b>返回:</b></dt><dd>文本的高度的像素数 </dd></dl><p>在文件<a class="el" href="FG__OSAdaptor_8cpp-source.html">FG_OSAdaptor.cpp</a>第<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00157">157</a>行定义。<p>参考 <a class="el" href="classFG__OSDrawInterface.html#a8">FG_OSDrawInterface::GetTextHeight()</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00067">m_pDraw</a>及<a class="el" href="FG__Common_8h-source.html#l00055">WORD</a>.<p>参考自 <a class="el" href="FG__TextWidget_8cpp-source.html#l00046">FG_TextWidget::DrawTextFocus()</a>、<a class="el" href="MyButton_8cpp-source.html#l00047">MyButton::OnDraw()</a>、<a class="el" href="FG__RadioButton_8cpp-source.html#l00064">FG_RadioButton::OnDraw()</a>、<a class="el" href="FG__Label_8cpp-source.html#l00047">FG_Label::OnDraw()</a>、<a class="el" href="FG__Edit_8cpp-source.html#l00073">FG_Edit::OnDraw()</a>、<a class="el" href="FG__CheckBox_8cpp-source.html#l00049">FG_CheckBox::OnDraw()</a>及<a class="el" href="FG__Button_8cpp-source.html#l00053">FG_Button::OnDraw()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__OSAdaptor_a9_cgraph.png" border="0" usemap="#classFG__OSAdaptor_a9_cgraph_map" alt=""></center><map name="classFG__OSAdaptor_a9_cgraph_map"><area href="classFG__OSDrawInterface.html#a8" shape="rect" coords="253,7,472,33" alt=""></map><a class="anchor" name="a8" doxytag="FG_OSAdaptor::GetTextWidth" ></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="group__Utility.html#ga1">WORD</a> FG_OSAdaptor::GetTextWidth </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>Text</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [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="classFG__OSDrawInterface.html#a7">FG_OSDrawInterface::GetTextWidth</a> <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>Text</em>&nbsp;</td><td>要计算宽度的字符串,以<a class="el" href="group__Utility.html#ga11">NULL</a>结束 </td></tr>  </table></dl><dl compact><dt><b>返回:</b></dt><dd>文本的宽度的像素数 </dd></dl><p>在文件<a class="el" href="FG__OSAdaptor_8cpp-source.html">FG_OSAdaptor.cpp</a>第<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00148">148</a>行定义。<p>参考 <a class="el" href="classFG__OSDrawInterface.html#a7">FG_OSDrawInterface::GetTextWidth()</a>、<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00067">m_pDraw</a>及<a class="el" href="FG__Common_8h-source.html#l00055">WORD</a>.<p>参考自 <a class="el" href="FG__TextWidget_8cpp-source.html#l00046">FG_TextWidget::DrawTextFocus()</a>、<a class="el" href="MyButton_8cpp-source.html#l00047">MyButton::OnDraw()</a>、<a class="el" href="FG__Label_8cpp-source.html#l00047">FG_Label::OnDraw()</a>、<a class="el" href="FG__Group_8cpp-source.html#l00047">FG_Group::OnDraw()</a>、<a class="el" href="FG__Edit_8cpp-source.html#l00073">FG_Edit::OnDraw()</a>及<a class="el" href="FG__Button_8cpp-source.html#l00053">FG_Button::OnDraw()</a>.    </td>  </tr></table><p>Here is the call graph for this function:<p><center><img src="classFG__OSAdaptor_a8_cgraph.png" border="0" usemap="#classFG__OSAdaptor_a8_cgraph_map" alt=""></center><map name="classFG__OSAdaptor_a8_cgraph_map"><area href="classFG__OSDrawInterface.html#a7" shape="rect" coords="251,7,467,33" alt=""></map><a class="anchor" name="b1" doxytag="FG_OSAdaptor::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"> virtual bool FG_OSAdaptor::InitInstance </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, pure 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>初始化是否成功<br> true 成功<br> false 失败 </dd></dl><p>Implemented in <a class="el" href="classFG__Win32Adaptor.html#a0">FG_Win32Adaptor</a>, and <a class="el" href="classFG__X11Adaptor.html#a0">FG_X11Adaptor</a>.<p>参考自 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00090">Run()</a>.    </td>  </tr></table><a class="anchor" name="a6" doxytag="FG_OSAdaptor::Line" ></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_OSAdaptor::Line </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const short&nbsp;</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&nbsp;</td>          <td class="mdname" nowrap> <em>y1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>x2</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>y2</em>, </td>        </tr>

⌨️ 快捷键说明

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