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

📄 classfg__win32drawinterface.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <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>    <tr><td valign=top><em>color</em>&nbsp;</td><td>矩形的颜色 </td></tr>  </table></dl><p>Implements <a class="el" href="classFG__OSDrawInterface.html#a11">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__Win32DrawInterface_8cpp-source.html">FG_Win32DrawInterface.cpp</a>第<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00232">232</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00072">COLORVAL</a>、<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00101">m_hMemDC</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#l00057">FG_Rect::wRight</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">FG_Rect::wTop</a>.    </td>  </tr></table><a class="anchor" name="a11" doxytag="FG_Win32DrawInterface::DrawPolyLine" ></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_Win32DrawInterface::DrawPolyLine </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const short&nbsp;</td>          <td class="mdname" nowrap> <em>n</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="structFG__Point.html">FG_Point</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>vert</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>color</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><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>n</em>&nbsp;</td><td>该折线包含的点数 </td></tr>    <tr><td valign=top><em>vert</em>&nbsp;</td><td>所有点的数组 </td></tr>    <tr><td valign=top><em>color</em>&nbsp;</td><td>折线的颜色 </td></tr>  </table></dl><p>Implements <a class="el" href="classFG__OSDrawInterface.html#a10">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__Win32DrawInterface_8cpp-source.html">FG_Win32DrawInterface.cpp</a>第<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00204">204</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00072">COLORVAL</a>、<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00101">m_hMemDC</a>、<a class="el" href="FG__Point_8h-source.html#l00051">FG_Point::x</a>及<a class="el" href="FG__Point_8h-source.html#l00053">FG_Point::y</a>.    </td>  </tr></table><a class="anchor" name="a7" doxytag="FG_Win32DrawInterface::DrawText" ></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_Win32DrawInterface::DrawText </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>Text</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>x</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>y</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>color</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><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>    <tr><td valign=top><em>x</em>&nbsp;</td><td>文本左上角的横坐标 </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>文本左上角的纵坐标 </td></tr>    <tr><td valign=top><em>color</em>&nbsp;</td><td>文本的颜色 </td></tr>  </table></dl><p>Implements <a class="el" href="classFG__OSDrawInterface.html#a6">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__Win32DrawInterface_8cpp-source.html">FG_Win32DrawInterface.cpp</a>第<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00146">146</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00072">COLORVAL</a>及<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00101">m_hMemDC</a>.    </td>  </tr></table><a class="anchor" name="a4" doxytag="FG_Win32DrawInterface::EndDraw" ></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_Win32DrawInterface::EndDraw </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> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>结束重画 <p>该函数把缓冲区内容刷新到屏幕上 <p>Implements <a class="el" href="classFG__OSDrawInterface.html#a3">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__Win32DrawInterface_8cpp-source.html">FG_Win32DrawInterface.cpp</a>第<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00090">90</a>行定义。<p>参考 <a class="el" href="FG__Rect_8h-source.html#l00254">FG_Rect::Height()</a>、<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00098">m_hDC</a>、<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00101">m_hMemDC</a>、<a class="el" href="FG__Rect_8h-source.html#l00247">FG_Rect::Width()</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__Win32DrawInterface_a4_cgraph.png" border="0" usemap="#classFG__Win32DrawInterface_a4_cgraph_map" alt=""></center><map name="classFG__Win32DrawInterface_a4_cgraph_map"><area href="structFG__Rect.html#a21" shape="rect" coords="277,6,381,33" alt=""><area href="structFG__Rect.html#a20" shape="rect" coords="279,57,380,84" alt=""></map><a class="anchor" name="a5" doxytag="FG_Win32DrawInterface::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_Win32DrawInterface::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><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>Implements <a class="el" href="classFG__OSDrawInterface.html#a4">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__Win32DrawInterface_8cpp-source.html">FG_Win32DrawInterface.cpp</a>第<a class="el" href="FG__Win32DrawInterface_8cpp-source.html#l00102">102</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00072">COLORVAL</a>、<a class="el" href="FG__Win32DrawInterface_8h-source.html#l00101">m_hMemDC</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#l00057">FG_Rect::wRight</a>及<a class="el" href="FG__Rect_8h-source.html#l00055">FG_Rect::wTop</a>.    </td>  </tr></table><a class="anchor" name="a9" doxytag="FG_Win32DrawInterface::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_Win32DrawInterface::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><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>

⌨️ 快捷键说明

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