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

📄 classfg__osdrawinterface.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_OSDrawInterface 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_OSDrawInterface类参考<br><small>[<a class="el" href="group__OSAdaptor.html">操作系统适配层</a>]</small></h1><code>#include &lt;<a class="el" href="FG__OSDrawInterface_8h-source.html">FG_OSDrawInterface.h</a>&gt;</code><p><p>继承图,类FG_OSDrawInterface<p><center><img src="classFG__OSDrawInterface.png" usemap="#FG_OSDrawInterface_map" border="0" alt=""></center><map name="FG_OSDrawInterface_map"><area href="classFG__Win32DrawInterface.html" alt="FG_Win32DrawInterface" shape="rect" coords="0,56,151,80"><area href="classFG__X11DrawInterface.html" alt="FG_X11DrawInterface" shape="rect" coords="161,56,312,80"></map>FG_OSDrawInterface合作图:<p><center><img src="classFG__OSDrawInterface__coll__graph.png" border="0" usemap="#FG__OSDrawInterface__coll__map" alt="Collaboration graph"></center><map name="FG__OSDrawInterface__coll__map"><area href="structFG__Rect.html" shape="rect" coords="37,17,133,481" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__OSDrawInterface-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>操作系统绘图接口类 <p>该类的派生类封装具体的操作系统的绘图接口,给框架层提供一个统一的接口 <p><p>在文件<a class="el" href="FG__OSDrawInterface_8h-source.html">FG_OSDrawInterface.h</a>第<a class="el" href="FG__OSDrawInterface_8h-source.html#l00048">48</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a0">FG_OSDrawInterface</a> ()</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>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a1">~FG_OSDrawInterface</a> ()</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>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a2">BeginDraw</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect)=0</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>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a3">EndDraw</a> ()=0</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>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a4">FillRect</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> ForeColor, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> background)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">填充矩形.  <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a5">Line</a> (const short x1, const short y1, const short x2, const short y2, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">画线  <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a6">DrawText</a> (const char *Text, const short x, const short y, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制文本  <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="group__Utility.html#ga1">WORD</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a7">GetTextWidth</a> (const char *Text)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到文本的宽度  <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="group__Utility.html#ga1">WORD</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a8">GetTextHeight</a> (const char *Text)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到文本的高度  <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a9">DrawBitmap</a> (const char *pBmpName, const short x1, const short y1)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制位图  <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a10">DrawPolyLine</a> (const short n, const <a class="el" href="structFG__Point.html">FG_Point</a> *vert, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制折线  <a href="#a10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#a11">DrawDotRect</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)=0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制点划线矩形  <a href="#a11"></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="structFG__Rect.html">FG_Rect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#p0">m_Invalid</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">当前的需要重画的无效区域  <a href="#p0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__OSDrawInterface.html#p1">m_iDrawCount</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFG__OSDrawInterface.html#a2">FG_OSDrawInterface::BeginDraw</a>被调用的次数  <a href="#p1"></a><br><br></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_OSDrawInterface::FG_OSDrawInterface" ></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_OSDrawInterface::FG_OSDrawInterface </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> [inline]</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__OSDrawInterface_8h-source.html">FG_OSDrawInterface.h</a>第<a class="el" href="FG__OSDrawInterface_8h-source.html#l00054">54</a>行定义。<p>参考 <a class="el" href="FG__OSDrawInterface_8h-source.html#l00163">m_iDrawCount</a>.    </td>  </tr></table><a class="anchor" name="a1" doxytag="FG_OSDrawInterface::~FG_OSDrawInterface" ></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 FG_OSDrawInterface::~<a class="el" href="classFG__OSDrawInterface.html">FG_OSDrawInterface</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> [inline, virtual]</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__OSDrawInterface_8h-source.html">FG_OSDrawInterface.h</a>第<a class="el" href="FG__OSDrawInterface_8h-source.html#l00059">59</a>行定义。    </td>  </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a2" doxytag="FG_OSDrawInterface::BeginDraw" ></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 void FG_OSDrawInterface::BeginDraw </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> [pure 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#a3">FG_OSDrawInterface::EndDraw</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>  </table></dl><p>Implemented in <a class="el" href="classFG__Win32DrawInterface.html#a3">FG_Win32DrawInterface</a>, and <a class="el" href="classFG__X11DrawInterface.html#a2">FG_X11DrawInterface</a>.<p>参考自 <a class="el" href="FG__OSAdaptor_8cpp-source.html#l00113">FG_OSAdaptor::BeginDraw()</a>.    </td>  </tr></table><a class="anchor" name="a9" doxytag="FG_OSDrawInterface::DrawBitmap" ></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 void FG_OSDrawInterface::DrawBitmap </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>pBmpName</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>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></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [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>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pBmpName</em>&nbsp;</td><td>要绘制的位图名 </td></tr>    <tr><td valign=top><em>x1</em>&nbsp;</td><td>位图左上角的横坐标 </td></tr>    <tr><td valign=top><em>y1</em>&nbsp;</td><td>位图左上角的纵坐标 </td></tr>  </table></dl><p>Implemented in <a class="el" href="classFG__Win32DrawInterface.html#a10">FG_Win32DrawInterface</a>, and <a class="el" href="classFG__X11DrawInterface.html#a9">FG_X11DrawInterface</a>.<p>参考自 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00181">FG_X11Adaptor::DrawBitmap()</a>、<a class="el" href="FG__Win32Adaptor_8cpp-source.html#l00130">FG_Win32Adaptor::DrawBitmap()</a>及<a class="el" href="FG__OSAdaptor_8cpp-source.html#l00166">FG_OSAdaptor::DrawBitmap()</a>.    </td>

⌨️ 快捷键说明

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