📄 fg__osdrawinterface_8h-source.html
字号:
<!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.h Source File</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.h</h1><a href="FG__OSDrawInterface_8h.html">浏览该文件的文档。</a><div class="fragment"><pre>00001 <span class="comment">/*--------------------------------------------------------------------------</span>00002 <span class="comment"></span>00003 <span class="comment"> FG_OSDrawInterface.h - 操作系统绘图接口类的头文件</span>00004 <span class="comment"></span>00005 <span class="comment"> 本程序是FishGUI软件的一部分</span>00006 <span class="comment"></span>00007 <span class="comment"> 版权所有 (C) 2003,2004 王咏武</span>00008 <span class="comment"> http://www.contextfree.net/wangyw/</span>00009 <span class="comment"></span>00010 <span class="comment">----------------------------------------------------------------------------</span>00011 <span class="comment"></span>00012 <span class="comment"> 作者对 FishGUI 软件及其所有源代码授权如下:</span>00013 <span class="comment"></span>00014 <span class="comment"> 允许任何个人、组织、机构、企业无偿获得、修改、使用、重新发布 FishGUI 软</span>00015 <span class="comment"> 件及其源代码,或按照有偿或者无偿的方式发行基于 FishGUI 源代码的全部或部</span>00016 <span class="comment"> 分内容开发的软件产品,——但行使以上权利时,须遵守以下约定:</span>00017 <span class="comment"></span>00018 <span class="comment"> 1、重新发布 FishGUI 软件及其源代码时,不得隐去软件及其源代码中原有的版</span>00019 <span class="comment"> 权信息和开发者标识。</span>00020 <span class="comment"></span>00021 <span class="comment"> 2、发行基于 FishGUI 源代码的全部或部分内容开发的软件产品时,必须在产品</span>00022 <span class="comment"> 的显著位置标明以下字样:</span>00023 <span class="comment"></span>00024 <span class="comment"> 【本产品的一部分功能是基于王咏武在 FishGUI 软件中的工作完成的】</span>00025 <span class="comment"></span>00026 <span class="comment"> 3、在正式出版物中引用 FishGUI 的文档、源代码或注释内容的,应注明软件的</span>00027 <span class="comment"> 原作者为王咏武。</span>00028 <span class="comment"></span>00029 <span class="comment">--------------------------------------------------------------------------*/</span>00038 <span class="preprocessor">#ifndef FG_OSDRAWINTERFACE_H_HEADER_INCLUDED_C0B113C4</span>00039 <span class="preprocessor"></span><span class="preprocessor">#define FG_OSDRAWINTERFACE_H_HEADER_INCLUDED_C0B113C4</span>00040 <span class="preprocessor"></span>00041 <span class="preprocessor">#include "../Utility/FG_Utility.h"</span>00042 00043 <span class="comment">//##ModelId=3F49CF2F0067</span><a name="l00048"></a><a class="code" href="classFG__OSDrawInterface.html">00048</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classFG__OSDrawInterface.html">FG_OSDrawInterface</a>00049 {00050 <span class="keyword">public</span>:00051 <span class="comment">//##ModelId=3F6EAC810381</span><a name="l00054"></a><a class="code" href="classFG__OSDrawInterface.html#a0">00054</a> <span class="comment"></span> <a class="code" href="classFG__OSDrawInterface.html#a0">FG_OSDrawInterface</a>() : <a class="code" href="classFG__OSDrawInterface.html#p1">m_iDrawCount</a>(0) {}00055 00056 <span class="comment">//##ModelId=3F6EAC81038B</span><a name="l00059"></a><a class="code" href="classFG__OSDrawInterface.html#a1">00059</a> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classFG__OSDrawInterface.html#a1">~FG_OSDrawInterface</a>() {}00060 00061 <span class="comment">//##ModelId=3F4EBF2C01D4</span>00067 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a2">BeginDraw</a>(<span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> & rect) = 0;00068 00069 <span class="comment">//##ModelId=3F4EBF2C0293</span>00074 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a3">EndDraw</a>() = 0;00075 00076 <span class="comment">//##ModelId=3F4EBF2C02ED</span>00083 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a4">FillRect</a>(<span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> & rect, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> ForeColor, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> background) = 0;00084 00085 <span class="comment">//##ModelId=3F4EBF2D0081</span>00094 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a5">Line</a>(<span class="keyword">const</span> <span class="keywordtype">short</span> x1, <span class="keyword">const</span> <span class="keywordtype">short</span> y1, <span class="keyword">const</span> <span class="keywordtype">short</span> x2, <span class="keyword">const</span> <span class="keywordtype">short</span> y2, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> color) = 0;00095 00096 <span class="comment">//##ModelId=3F4EBF2D02B2</span>00104 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a6">DrawText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <span class="keywordtype">short</span> x, <span class="keyword">const</span> <span class="keywordtype">short</span> y, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> color) = 0;00105 00106 <span class="comment">//##ModelId=3F4EBF2E00BF</span>00112 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__Utility.html#ga1">WORD</a> <a class="code" href="classFG__OSDrawInterface.html#a7">GetTextWidth</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text) = 0;00113 00114 <span class="comment">//##ModelId=3F4EBF2E0191</span>00120 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="group__Utility.html#ga1">WORD</a> <a class="code" href="classFG__OSDrawInterface.html#a8">GetTextHeight</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text) = 0;00121 00122 <span class="comment">//##ModelId=3F4EBF2E026D</span>00129 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a9">DrawBitmap</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * pBmpName, <span class="keyword">const</span> <span class="keywordtype">short</span> x1, <span class="keyword">const</span> <span class="keywordtype">short</span> y1) = 0;00130 00131 <span class="comment">//##ModelId=3F6193B20152</span>00138 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a10">DrawPolyLine</a>(<span class="keyword">const</span> <span class="keywordtype">short</span> n, <span class="keyword">const</span> <a class="code" href="structFG__Point.html">FG_Point</a> * vert, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> color) = 0;00139 00140 <span class="comment">//##ModelId=3F6EAC810395</span>00146 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFG__OSDrawInterface.html#a11">DrawDotRect</a>(<span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> & rect, <span class="keyword">const</span> <a class="code" href="group__Color.html#ga0">COLORVAL</a> color) = 0;00147 00148 <span class="keyword">protected</span>:00149 <span class="comment">//##ModelId=3F6EAC810350</span><a name="l00155"></a><a class="code" href="classFG__OSDrawInterface.html#p0">00155</a> <span class="comment"></span> <a class="code" href="structFG__Rect.html">FG_Rect</a> <a class="code" href="classFG__OSDrawInterface.html#p0">m_Invalid</a>;00156 00157 <span class="comment">//##ModelId=3F6EAC810363</span><a name="l00163"></a><a class="code" href="classFG__OSDrawInterface.html#p1">00163</a> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="classFG__OSDrawInterface.html#p1">m_iDrawCount</a>;00164 };00165 00166 <span class="preprocessor">#endif </span><span class="comment">/* FG_OSDRAWINTERFACE_H_HEADER_INCLUDED_C0B113C4 */</span>00167 </pre></div><hr><center>由 DoxyGen 1.3.6 于 Wed Jun 9 22:34:41 2004 生成<br>版权所有 (C) 2003,2004 王咏武</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -