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

📄 fg__object_8h-source.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
00174     <span class="comment">//##ModelId=3F52BE510236</span><a name="l00179"></a><a class="code" href="classFG__Object.html#a14">00179</a> <span class="comment"></span>    <a class="code" href="group__Utility.html#ga1">WORD</a> <a class="code" href="classFG__Object.html#a14">FrameStyle</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classFG__Object.html#p3">m_wStyle</a> &amp; <a class="code" href="group__Frame__Style.html#ga4">FS_MASK</a>); }00180 00181     <span class="comment">//##ModelId=3F52BE51036C</span><a name="l00186"></a><a class="code" href="classFG__Object.html#a15">00186</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#a16">Style</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wStyle) { <a class="code" href="classFG__Object.html#p3">m_wStyle</a> = wStyle; }00187 00188     <span class="comment">//##ModelId=3F52BE5102CC</span><a name="l00193"></a><a class="code" href="classFG__Object.html#a16">00193</a> <span class="comment"></span>    <a class="code" href="group__Utility.html#ga1">WORD</a> <a class="code" href="classFG__Object.html#a16">Style</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classFG__Object.html#p3">m_wStyle</a>; }00194 00195     <span class="comment">//##ModelId=3F6EAC8F00F6</span><a name="l00201"></a><a class="code" href="classFG__Object.html#a17">00201</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#a17">SetFocus</a>(<span class="keywordtype">void</span>) { <a class="code" href="classFG__Object.html#p3">m_wStyle</a> |= <a class="code" href="group__General__Style.html#ga1">GS_FOCUS</a>; }00202 00203     <span class="comment">//##ModelId=3F6EAC8F0100</span><a name="l00209"></a><a class="code" href="classFG__Object.html#a18">00209</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#a18">ResetFocus</a>(<span class="keywordtype">void</span>) { <a class="code" href="classFG__Object.html#p3">m_wStyle</a> &amp;= ~<a class="code" href="group__General__Style.html#ga1">GS_FOCUS</a>; }00210 00211     <span class="comment">//##ModelId=3F6EAC8F0114</span><a name="l00217"></a><a class="code" href="classFG__Object.html#a19">00217</a> <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classFG__Object.html#a19">IsFocus</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classFG__Object.html#p3">m_wStyle</a> &amp; <a class="code" href="group__General__Style.html#ga1">GS_FOCUS</a>) != 0; }00218 00219     <span class="comment">//##ModelId=3F58382102A6</span>00229 <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classFG__Object.html#a20">Message</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00230 00231 <span class="keyword">protected</span>:00232     <span class="comment">//##ModelId=3F5DAA1402B2</span><a name="l00241"></a><a class="code" href="classFG__Object.html#b0">00241</a> <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classFG__Object.html#b0">StartTimer</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga0">BYTE</a> timerID, <span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> dwInterval)00242     {00243         <span class="keywordflow">return</span> <a class="code" href="group__Framework.html#ga0">FG_GetTimerManager</a>()-&gt;<a class="code" href="classFG__TimerManager.html#a0">StartTimer</a>(<span class="keyword">this</span>, timerID, dwInterval);00244     }00245     00246     <span class="comment">//##ModelId=3F5DAA140320</span><a name="l00254"></a><a class="code" href="classFG__Object.html#b1">00254</a> <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classFG__Object.html#b1">KillTimer</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga0">BYTE</a> timerID)00255     {00256         <span class="keywordflow">return</span> <a class="code" href="group__Framework.html#ga0">FG_GetTimerManager</a>()-&gt;<a class="code" href="classFG__TimerManager.html#a1">KillTimer</a>(<span class="keyword">this</span>, timerID);00257     }00258 00259     <span class="comment">//##ModelId=3F52BE520038</span>00264 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#b2">DrawBorder</a>(<a class="code" href="classFG__OSAdaptor.html">FG_OSAdaptor</a> * pAdaptor);00265 00266     <span class="comment">//##ModelId=3F603B980280</span>00271 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#b3">NotifyParent</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wNotification);00272 00273     <span class="comment">//##ModelId=3F603B9802BC</span>00277 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#b4">RequestDraw</a>();00278 00279 <span class="keyword">protected</span>:00280     <span class="comment">//##ModelId=3F52BE4E01E1</span><a name="l00281"></a><a class="code" href="classFG__Object.html#p0">00281</a>     <a class="code" href="group__Color.html#ga0">COLORVAL</a>    <a class="code" href="classFG__Object.html#p0">m_ForeColor</a>;        00282     <span class="comment">//##ModelId=3F52BE4E02BF</span><a name="l00283"></a><a class="code" href="classFG__Object.html#p1">00283</a>     <a class="code" href="group__Color.html#ga0">COLORVAL</a>    <a class="code" href="classFG__Object.html#p1">m_Background</a>;       00284     <span class="comment">//##ModelId=3F52BE4E02DD</span><a name="l00285"></a><a class="code" href="classFG__Object.html#p2">00285</a>     <a class="code" href="structFG__Rect.html">FG_Rect</a>     <a class="code" href="classFG__Object.html#p2">m_Rect</a>;             00287     <span class="comment">//##ModelId=3F52BE4E02F1</span><a name="l00288"></a><a class="code" href="classFG__Object.html#p3">00288</a>     <a class="code" href="group__Utility.html#ga1">WORD</a>        <a class="code" href="classFG__Object.html#p3">m_wStyle</a>;           00290     <span class="comment">//##ModelId=3F52BE4E0305</span><a name="l00291"></a><a class="code" href="classFG__Object.html#p4">00291</a>     <a class="code" href="group__Utility.html#ga1">WORD</a>        m_wID;              00293     <span class="comment">//##ModelId=3F52BE4E034D</span><a name="l00294"></a><a class="code" href="classFG__Object.html#p5">00294</a>     <a class="code" href="classFG__Object.html">FG_Object</a> * <a class="code" href="classFG__Object.html#p5">m_pParent</a>;          00296 <span class="comment">//    DECLARE_MESSAGE_MAP()</span>00297 <span class="keyword">private</span>:00298     <span class="comment">//##ModelId=3F5C4D41037C</span>00299     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structFG__MSGMAP__ENTRY.html">FG_MSGMAP_ENTRY</a>    <a class="code" href="classFG__Object.html#v0">m_MsgEntries</a>[];     00301 <span class="keyword">protected</span>:00302     <span class="comment">//##ModelId=3F5C4D4103CC</span>00303     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structFG__MSGMAP.html">FG_MSGMAP</a>          <a class="code" href="classFG__Object.html#t0">m_MsgMap</a>;           00305     <span class="comment">//##ModelId=3F5C4D42001F</span>00311 <span class="comment"></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structFG__MSGMAP.html">FG_MSGMAP</a> * <a class="code" href="classFG__Object.html#b5">GetMessageMap</a>() <span class="keyword">const</span>;00312 00313 <span class="keyword">protected</span>:00314     <span class="comment">//##ModelId=3F52BE4F01E3</span><a name="l00320"></a><a class="code" href="classFG__Object.html#b6">00320</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#b6">OnDraw</a>(<a class="code" href="classFG__OSAdaptor.html">FG_OSAdaptor</a> * pAdaptor)00321     {00322         <a class="code" href="classFG__Object.html#b2">DrawBorder</a>(pAdaptor);00323     }00324 00325     <span class="comment">//##ModelId=3F6EAC8F0128</span>00330 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classFG__Object.html#b7">OnFocus</a>(<a class="code" href="structFG__Message.html">FG_Message</a> * pMsg);00331 };00332 00333 <span class="comment">//##ModelId=3FD884F403D9</span><a name="l00338"></a><a class="code" href="classFG__CheckObjectID.html">00338</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classFG__CheckObjectID.html">FG_CheckObjectID</a> : <span class="keyword">public</span> <a class="code" href="classFG__ListCheck.html">FG_ListCheck</a>&lt;FG_Object&gt;00339 {00340 <span class="keyword">public</span>:00341     <span class="comment">//##ModelId=3FD884F600C5</span><a name="l00346"></a><a class="code" href="classFG__CheckObjectID.html#a0">00346</a> <span class="comment"></span>    <a class="code" href="classFG__CheckObjectID.html#a0">FG_CheckObjectID</a>(<span class="keyword">const</span> <a class="code" href="group__Utility.html#ga1">WORD</a> wID) : m_wID(wID) {}00347 00348     <span class="comment">//##ModelId=3FD884F600CF</span><a name="l00357"></a><a class="code" href="classFG__CheckObjectID.html#a1">00357</a> <span class="comment"></span>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFG__CheckObjectID.html#a1">FindIt</a>(<span class="keyword">const</span> <a class="code" href="classFG__Object.html">FG_Object</a> * pObj)00358     {00359         <span class="keywordflow">return</span> pObj-&gt;<a class="code" href="classFG__Object.html#a9">ID</a>() == m_wID;00360     }00361 00362 <span class="keyword">private</span>:00363     <span class="comment">//##ModelId=3FD884F600A8</span><a name="l00364"></a><a class="code" href="classFG__CheckObjectID.html#r0">00364</a>     <a class="code" href="group__Utility.html#ga1">WORD</a> m_wID;                 00365 };00366 00367 <span class="preprocessor">#endif </span><span class="comment">/* FG_OBJECT_H_HEADER_INCLUDED_C0AD453B */</span>00368 </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 + -