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

📄 fg__factory_8h-source.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 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_Factory.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_Factory.h</h1><a href="FG__Factory_8h.html">浏览该文件的文档。</a><div class="fragment"><pre>00001 <span class="comment">/*--------------------------------------------------------------------------</span>00002 <span class="comment"></span>00003 <span class="comment">        FG_Factory.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_FACTORY_H_HEADER_INCLUDED_C0A7A9C0</span>00039 <span class="preprocessor"></span><span class="preprocessor">#define FG_FACTORY_H_HEADER_INCLUDED_C0A7A9C0</span>00040 <span class="preprocessor"></span>00041 <span class="preprocessor">#include "../Utility/FG_Utility.h"</span>00042 <span class="preprocessor">#include "<a class="code" href="FG__Button_8h.html">FG_Button.h</a>"</span>00043 <span class="preprocessor">#include "<a class="code" href="FG__Bitmap_8h.html">FG_Bitmap.h</a>"</span>00044 <span class="preprocessor">#include "<a class="code" href="FG__Label_8h.html">FG_Label.h</a>"</span>00045 <span class="preprocessor">#include "<a class="code" href="FG__Group_8h.html">FG_Group.h</a>"</span>00046 <span class="preprocessor">#include "<a class="code" href="FG__Edit_8h.html">FG_Edit.h</a>"</span>00047 <span class="preprocessor">#include "<a class="code" href="FG__CheckBox_8h.html">FG_CheckBox.h</a>"</span>00048 <span class="preprocessor">#include "<a class="code" href="FG__RadioButton_8h.html">FG_RadioButton.h</a>"</span>00049 00050 <span class="comment">//##ModelId=3F37D6AD0116</span><a name="l00055"></a><a class="code" href="classFG__Factory.html">00055</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classFG__Factory.html">FG_Factory</a>00056 {00057 <span class="keyword">public</span>:00058     <span class="comment">//##ModelId=3F5B470401E5</span><a name="l00061"></a><a class="code" href="classFG__Factory.html#a0">00061</a> <span class="comment"></span>    <a class="code" href="classFG__Factory.html#a0">FG_Factory</a>() {}00062 00063     <span class="comment">//##ModelId=3F71ACAE0181</span><a name="l00066"></a><a class="code" href="classFG__Factory.html#a1">00066</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Factory.html#a1">~FG_Factory</a>() {}00067 00068     <span class="comment">//##ModelId=3F71ACAE0195</span><a name="l00077"></a><a class="code" href="classFG__Factory.html#a2">00077</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Bitmap.html">FG_Bitmap</a> * <a class="code" href="classFG__Factory.html#a2">CreateBitmap</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wStyle = FS_NONE|GS_TRANSPARENT)00078     {00079         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__Bitmap.html">FG_Bitmap</a>(Text, Rect, wID, wStyle);00080     }00081 00082     <span class="comment">//##ModelId=3F71ACAE0221</span><a name="l00090"></a><a class="code" href="classFG__Factory.html#a3">00090</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Button.html">FG_Button</a> * <a class="code" href="classFG__Factory.html#a3">CreateButton</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0)00091     {00092         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__Button.html">FG_Button</a>(Text, Rect, wID);00093     }00094 00095     <span class="comment">//##ModelId=3F71ACAE02A3</span><a name="l00103"></a><a class="code" href="classFG__Factory.html#a4">00103</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__CheckBox.html">FG_CheckBox</a> * <a class="code" href="classFG__Factory.html#a4">CreateCheckBox</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0)00104     {00105         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__CheckBox.html">FG_CheckBox</a>(Text, Rect, wID);00106     }00107 00108     <span class="comment">//##ModelId=3F71ACAE032F</span><a name="l00118"></a><a class="code" href="classFG__Factory.html#a5">00118</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Edit.html">FG_Edit</a> * <a class="code" href="classFG__Factory.html#a5">CreateEdit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wLimit, <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wStyle = TS_LEFT|FS_RECESSED)00119     {00120         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__Edit.html">FG_Edit</a>(Text, Rect, wLimit, wID, wStyle);00121     }00122 00123     <span class="comment">//##ModelId=3F71ACAF0038</span><a name="l00131"></a><a class="code" href="classFG__Factory.html#a6">00131</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Group.html">FG_Group</a> * <a class="code" href="classFG__Factory.html#a6">CreateGroup</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0)00132     {00133         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__Group.html">FG_Group</a>(Text, Rect, wID);00134     }00135 00136     <span class="comment">//##ModelId=3F71ACAF00E2</span><a name="l00145"></a><a class="code" href="classFG__Factory.html#a7">00145</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__Label.html">FG_Label</a> * <a class="code" href="classFG__Factory.html#a7">CreateLabel</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wStyle = FS_NONE|GS_TRANSPARENT)00146     {00147         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__Label.html">FG_Label</a>(Text, Rect, wID, wStyle);00148     }00149 00150     <span class="comment">//##ModelId=3F71ACAF01BE</span><a name="l00159"></a><a class="code" href="classFG__Factory.html#a8">00159</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classFG__RadioButton.html">FG_RadioButton</a> * <a class="code" href="classFG__Factory.html#a8">CreateRadioButton</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * Text, <span class="keyword">const</span> <a class="code" href="structFG__Rect.html">FG_Rect</a> &amp; Rect, <a class="code" href="classFG__RadioButton.html">FG_RadioButton</a> * <span class="keyword">const</span> pSameGroup = NULL, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID = 0)00160     {00161         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classFG__RadioButton.html">FG_RadioButton</a>(Text, Rect, pSameGroup, wID);00162     }00163 };00164 00165 <span class="preprocessor">#endif </span><span class="comment">/* FG_FACTORY_H_HEADER_INCLUDED_C0A7A9C0 */</span>00166 </pre></div><hr><center>由 DoxyGen 1.3.6 于 Wed Jun 9 22:34:40 2004 生成<br>版权所有 (C) 2003,2004 王咏武</body></html>

⌨️ 快捷键说明

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