📄 classfg__widget.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_Widget 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_Widget类参考<br><small>[<a class="el" href="group__Framework.html">框架层</a>]</small></h1><code>#include <<a class="el" href="FG__Widget_8h-source.html">FG_Widget.h</a>></code><p><p>继承图,类FG_Widget<p><center><img src="classFG__Widget.png" usemap="#FG_Widget_map" border="0" alt=""></center><map name="FG_Widget_map"><area href="classFG__Object.html" alt="FG_Object" shape="rect" coords="282,0,385,24"><area href="classFG__TextWidget.html" alt="FG_TextWidget" shape="rect" coords="282,112,385,136"><area href="classFG__Bitmap.html" alt="FG_Bitmap" shape="rect" coords="0,168,103,192"><area href="classFG__Button.html" alt="FG_Button" shape="rect" coords="113,168,216,192"><area href="classFG__CheckBox.html" alt="FG_CheckBox" shape="rect" coords="226,168,329,192"><area href="classFG__Group.html" alt="FG_Group" shape="rect" coords="339,168,442,192"><area href="classFG__Label.html" alt="FG_Label" shape="rect" coords="452,168,555,192"><area href="classFG__RadioButton.html" alt="FG_RadioButton" shape="rect" coords="565,168,668,192"><area href="classMyButton.html" alt="MyButton" shape="rect" coords="113,224,216,248"><area href="classFG__Edit.html" alt="FG_Edit" shape="rect" coords="452,224,555,248"></map>FG_Widget合作图:<p><center><img src="classFG__Widget__coll__graph.png" border="0" usemap="#FG__Widget__coll__map" alt="Collaboration graph"></center><map name="FG__Widget__coll__map"><area href="classFG__Object.html" shape="rect" coords="97,369,223,1009" alt=""><area href="structFG__MSGMAP.html" shape="rect" coords="275,209,403,305" alt=""><area href="structFG__MSGMAP__ENTRY.html" shape="rect" coords="99,17,240,145" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__Widget-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>控件抽象类 <p>该类的派生类可以放置在窗口上作为控件,控件类中不能再容纳其他窗口元素 <p><p>在文件<a class="el" href="FG__Widget_8h-source.html">FG_Widget.h</a>第<a class="el" href="FG__Widget_8h-source.html#l00049">49</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> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#a0">FG_Widget</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &Rect, const <a class="el" href="group__Utility.html#ga1">WORD</a> wID=0, const <a class="el" href="group__Utility.html#ga1">WORD</a> wStyle=<a class="el" href="group__Frame__Style.html#ga0">FS_NONE</a>)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">构造函数 <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#a1">CanGetFocus</a> (void) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">返回控件能否得到焦点的标志 <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#a2">SetCanGetFocus</a> (const bool flag)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">设置控件能否得到焦点的标志. <a href="#a2"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#b0">GetMessageMap</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">得到本类的消息映射表指针 <a href="#b0"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#p0">m_bCanGetFocus</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">该控件是否能得到焦点的标志设 <a href="#p0"></a><br><br></td></tr><tr><td colspan=2><br><h2>静态保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#t0">m_MsgMap</a> = { & <a class="el" href="classFG__Object.html">FG_Object</a> ::<a class="el" href="classFG__Widget.html#t0">m_MsgMap</a>, & <a class="el" href="classFG__Widget.html">FG_Widget</a> ::<a class="el" href="classFG__Widget.html#v0">m_MsgEntries</a>[0] }</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">本类的消息映射表 <a href="#t0"></a><br><br></td></tr><tr><td colspan=2><br><h2>静态私有属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="structFG__MSGMAP__ENTRY.html">FG_MSGMAP_ENTRY</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Widget.html#v0">m_MsgEntries</a> []</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">消息映射表项数组. <a href="#v0"></a><br><br></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_Widget::FG_Widget" ></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_Widget::FG_Widget </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structFG__Rect.html">FG_Rect</a> & </td> <td class="mdname" nowrap> <em>Rect</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const <a class="el" href="group__Utility.html#ga1">WORD</a> </td> <td class="mdname" nowrap> <em>wID</em> = 0, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const <a class="el" href="group__Utility.html#ga1">WORD</a> </td> <td class="mdname" nowrap> <em>wStyle</em> = <a class="el" href="group__Frame__Style.html#ga0">FS_NONE</a></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>构造函数 <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>Rect</em> </td><td>该控件占据的矩形区域 </td></tr> <tr><td valign=top><em>wID</em> </td><td>该控件的唯一标识,缺省为0 </td></tr> <tr><td valign=top><em>wStyle</em> </td><td>该控件的边框风格,缺省为<a class="el" href="group__Frame__Style.html#ga0">FS_NONE</a> </td></tr> </table></dl><p>在文件<a class="el" href="FG__Widget_8h-source.html">FG_Widget.h</a>第<a class="el" href="FG__Widget_8h-source.html#l00059">59</a>行定义。<p>参考 <a class="el" href="FG__Widget_8h-source.html#l00085">m_bCanGetFocus</a>及<a class="el" href="FG__Common_8h-source.html#l00055">WORD</a>. </td> </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a1" doxytag="FG_Widget::CanGetFocus" ></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 bool FG_Widget::CanGetFocus </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>返回控件能否得到焦点的标志 <p><dl compact><dt><b>返回:</b></dt><dd>控件能否得到焦点的标志<br> true 该控件能得到焦点<br> false 该控件不能得到焦点 </dd></dl><p>被<a class="el" href="classFG__Bitmap.html#a1">FG_Bitmap</a>、<a class="el" href="classFG__Edit.html#a1">FG_Edit</a>、<a class="el" href="classFG__Group.html#a1">FG_Group</a>及<a class="el" href="classFG__Label.html#a1">FG_Label</a>重载。<p>在文件<a class="el" href="FG__Widget_8h-source.html">FG_Widget.h</a>第<a class="el" href="FG__Widget_8h-source.html#l00070">70</a>行定义。<p>参考 <a class="el" href="FG__Widget_8h-source.html#l00085">m_bCanGetFocus</a>.<p>参考自 <a class="el" href="FG__Window_8cpp-source.html#l00063">FG_Window::AddWidget()</a>及<a class="el" href="FG__Window_8cpp-source.html#l00105">FG_Window::ChangeFocus()</a>. </td> </tr></table><a class="anchor" name="b0" doxytag="FG_Widget::GetMessageMap" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -