📄 fg__window_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_Window.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_Window.h</h1><a href="FG__Window_8h.html">浏览该文件的文档。</a><div class="fragment"><pre>00001 <span class="comment">/*--------------------------------------------------------------------------</span>00002 <span class="comment"></span>00003 <span class="comment"> FG_Window.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>00039 <span class="preprocessor">#ifndef FG_WINDOW_H_HEADER_INCLUDED_C0AD431E</span>00040 <span class="preprocessor"></span><span class="preprocessor">#define FG_WINDOW_H_HEADER_INCLUDED_C0AD431E</span>00041 <span class="preprocessor"></span>00042 <span class="preprocessor">#include "../Utility/FG_Utility.h"</span>00043 <span class="preprocessor">#include "<a class="code" href="FG__Container_8h.html">FG_Container.h</a>"</span>00044 <span class="preprocessor">#include "<a class="code" href="FG__Widget_8h.html">FG_Widget.h</a>"</span>00045 <span class="preprocessor">#include "<a class="code" href="FG__KeyMap_8h.html">FG_KeyMap.h</a>"</span>00046 00047 <span class="comment">//##ModelId=3F52B6BD00A5</span><a name="l00052"></a><a class="code" href="classFG__Window.html">00052</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classFG__Window.html">FG_Window</a> : <span class="keyword">public</span> <a class="code" href="classFG__Container.html">FG_Container</a>00053 {00054 <span class="keyword">public</span>:00055 <span class="comment">//##ModelId=3F5838220352</span><a name="l00064"></a><a class="code" href="classFG__Window.html#a0">00064</a> <span class="comment"></span> <a class="code" href="classFG__Window.html#a0">FG_Window</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * title, <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)00065 : <a class="code" href="classFG__Window.html#p0">m_Title</a>(title), <a class="code" href="classFG__Window.html#p1">m_pFocus</a>(<a class="code" href="group__Utility.html#ga11">NULL</a>), <a class="code" href="classFG__Container.html">FG_Container</a>(wID, wStyle)00066 {}00067 00068 <span class="comment">//##ModelId=3F58382201CB</span><a name="l00078"></a><a class="code" href="classFG__Window.html#a1">00078</a> <span class="comment"></span> <a class="code" href="classFG__Window.html#a0">FG_Window</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * title, <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__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) 00079 : <a class="code" href="classFG__Window.html#p0">m_Title</a>(title), <a class="code" href="classFG__Window.html#p1">m_pFocus</a>(<a class="code" href="group__Utility.html#ga11">NULL</a>), <a class="code" href="classFG__Container.html">FG_Container</a>(Rect, wID, wStyle)00080 {}00081 00082 <span class="comment">//##ModelId=3F5B470501FA</span>00092 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Window.html#a2">AddWidget</a>(<a class="code" href="classFG__Widget.html">FG_Widget</a> * <span class="keyword">const</span> pWidget);00093 00094 <span class="comment">//##ModelId=3F5B47050240</span>00103 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Window.html#a3">RemoveWidget</a>(<a class="code" href="classFG__Widget.html">FG_Widget</a> * <span class="keyword">const</span> pWidget);00104 00105 <span class="comment">//##ModelId=3F6193A800D6</span>00111 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Window.html#a4">GetClientRect</a>(<a class="code" href="structFG__Rect.html">FG_Rect</a> & rect) <span class="keyword">const</span>;00112 00113 <span class="comment">//##ModelId=3F5EDD9E03DF</span>00125 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Window.html#a5">RegisterKey</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wOrgKey, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wActKey, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID);00126 00127 <span class="comment">//##ModelId=3F6193A800F4</span>00137 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Window.html#a6">ChangeFocus</a>(<a class="code" href="classFG__Widget.html">FG_Widget</a> * <span class="keyword">const</span> pWidget);00138 00139 <span class="keyword">protected</span>:00140 <span class="comment">//##ModelId=3F584C9403D0</span>00146 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Window.html#b0">OnDraw</a>(<a class="code" href="classFG__OSAdaptor.html">FG_OSAdaptor</a> * pAdaptor);00147 00148 <span class="comment">//##ModelId=3F5C4AEB0321</span>00160 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Window.html#b1">OnKey</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00161 00162 <span class="comment">//##ModelId=3F5C4AEB032B</span>00171 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Window.html#b2">OnMouse</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00172 00173 <span class="comment">//##ModelId=3F603B980398</span>00183 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Window.html#b3">OnDrawRequest</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00184 00185 <span class="comment">//##ModelId=3F6193A80162</span>00190 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Window.html#b4">OnFocus</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00191 00192 <span class="comment">//##ModelId=409260D5024A</span><a name="l00193"></a><a class="code" href="classFG__Window.html#p0">00193</a> <a class="code" href="classFG__String.html">FG_String</a> <a class="code" href="classFG__Window.html#p0">m_Title</a>; 00194 <span class="comment">//##ModelId=3F6193A800B9</span><a name="l00195"></a><a class="code" href="classFG__Window.html#p1">00195</a> <a class="code" href="classFG__Widget.html">FG_Widget</a> * <a class="code" href="classFG__Window.html#p1">m_pFocus</a>; 00197 <span class="keyword">private</span>:00198 <span class="comment">//##ModelId=3F5E6ECC03A6</span><a name="l00199"></a><a class="code" href="classFG__Window.html#r0">00199</a> <a class="code" href="classFG__KeyMap.html">FG_KeyMap</a> <a class="code" href="classFG__Window.html#r0">m_KeyMap</a>; 00201 <a class="code" href="group__MsgMap__Define.html#ga0">DECLARE_MESSAGE_MAP</a>()00202 };00203 00204 <span class="preprocessor">#endif </span><span class="comment">/* FG_WINDOW_H_HEADER_INCLUDED_C0AD431E */</span>00205 00206 <span class="comment">/* @} */</span>00207 </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 + -