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

📄 classfg__button.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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_Button 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_Button类参考<br><small>[<a class="el" href="group__Framework.html">框架层</a>]</small></h1><code>#include &lt;<a class="el" href="FG__Button_8h-source.html">FG_Button.h</a>&gt;</code><p><p>继承图,类FG_Button<p><center><img src="classFG__Button.png" usemap="#FG_Button_map" border="0" alt=""></center><map name="FG_Button_map"><area href="classFG__TextWidget.html" alt="FG_TextWidget" shape="rect" coords="0,112,97,136"><area href="classFG__Widget.html" alt="FG_Widget" shape="rect" coords="0,56,97,80"><area href="classFG__Object.html" alt="FG_Object" shape="rect" coords="0,0,97,24"><area href="classMyButton.html" alt="MyButton" shape="rect" coords="0,224,97,248"></map>FG_Button合作图:<p><center><img src="classFG__Button__coll__graph.png" border="0" usemap="#FG__Button__coll__map" alt="Collaboration graph"></center><map name="FG__Button__coll__map"><area href="classFG__TextWidget.html" shape="rect" coords="116,369,241,561" alt=""><area href="structFG__MSGMAP.html" shape="rect" coords="255,209,383,305" alt=""><area href="structFG__MSGMAP__ENTRY.html" shape="rect" coords="79,17,220,145" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__Button-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>按钮控件类 <p>该类的对象放在窗口上作为按钮使用 <p><p>在文件<a class="el" href="FG__Button_8h-source.html">FG_Button.h</a>第<a class="el" href="FG__Button_8h-source.html#l00048">48</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#a0">FG_Button</a> (const char *Text, const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;Rect, const <a class="el" href="group__Utility.html#ga1">WORD</a> wID=0)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">按钮控件的构造函数  <a href="#a0"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b0">OnDraw</a> (<a class="el" href="classFG__OSAdaptor.html">FG_OSAdaptor</a> *pAdaptor)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="group__Utility.html#gga12a19">FG_MSG_DRAW</a>消息的处理函数  <a href="#b0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b1">OnKeyDown</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">键盘按下消息(<a class="el" href="group__Utility.html#gga12a20">FG_MSG_KEY</a>,<a class="el" href="group__Utility.html#gga13a29">FKS_DOWN</a>)的处理函数  <a href="#b1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b2">OnKeyUp</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">键盘弹起消息(<a class="el" href="group__Utility.html#gga12a20">FG_MSG_KEY</a>,<a class="el" href="group__Utility.html#gga13a30">FKS_UP</a>)的处理函数  <a href="#b2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b3">OnLButtonDown</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">鼠标左键按下消息(<a class="el" href="group__Utility.html#gga12a21">FG_MSG_MOUSE</a>,<a class="el" href="group__Utility.html#gga14a32">FMS_LBUTTONDOWN</a>)的处理函数.  <a href="#b3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b4">OnLButtonUp</a> (<a class="el" href="structFG__Message.html">FG_Message</a> *pMsg)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">鼠标左键弹起消息(<a class="el" href="group__Utility.html#gga12a21">FG_MSG_MOUSE</a>,<a class="el" href="group__Utility.html#gga14a33">FMS_LBUTTONUP</a>)的处理函数.  <a href="#b4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b5">OnTimerUp</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">保证按钮控件总能弹起的定时器消息(<a class="el" href="classFG__Button.html#y1y0">TIMERID_UP</a>)的处理函数  <a href="#b5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#b6">GetMessageMap</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到本类的消息映射表指针  <a href="#b6"></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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#t0">m_MsgMap</a> = { &amp; <a class="el" href="classFG__TextWidget.html">FG_TextWidget</a> ::<a class="el" href="classFG__Button.html#t0">m_MsgMap</a>, &amp; <a class="el" href="classFG__Button.html">FG_Button</a> ::<a class="el" href="classFG__Button.html#v0">m_MsgEntries</a>[0] }</td></tr><tr><td class="mdescLeft">&nbsp;</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>enum &nbsp;</td><td class="memItemRight" valign=bottom>{ <a class="el" href="classFG__Button.html#y1y0">TIMERID_UP</a> =  0xff }</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">保证按钮控件总能弹起的定时器ID  <a href="#y1">更多...</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__Button.html#v0">m_MsgEntries</a> []</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">消息映射表项数组.  <a href="#v0"></a><br><br></td></tr></table><hr><h2>成员枚举类型文档</h2><a class="anchor" name="y1" doxytag="FG_Button::@5" ></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"> anonymous enum<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>保证按钮控件总能弹起的定时器ID <p>为了防止键盘或鼠标的弹起消息丢失造成按钮无法弹起,用一个定时器来在这种情况下弹起按钮 <dl compact><dt><b>枚举值: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a class="anchor" name="y1y0" doxytag="TIMERID_UP" ></a>TIMERID_UP</em>&nbsp;</td><td></td></tr></table></dl><p>在文件<a class="el" href="FG__Button_8h-source.html">FG_Button.h</a>第<a class="el" href="FG__Button_8h-source.html#l00114">114</a>行定义。    </td>  </tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_Button::FG_Button" ></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_Button::FG_Button </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>Text</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</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>&nbsp;</td>          <td class="mdname" nowrap> <em>wID</em> = 0</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>按钮控件的构造函数 <p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>Text</em>&nbsp;</td><td>按钮上的文本,以<a class="el" href="group__Utility.html#ga11">NULL</a>结束的字符串 </td></tr>    <tr><td valign=top><em>Rect</em>&nbsp;</td><td>按钮控件占据的矩形区域 </td></tr>    <tr><td valign=top><em>wID</em>&nbsp;</td><td>按钮控件的唯一标识 </td></tr>  </table></dl><p>在文件<a class="el" href="FG__Button_8h-source.html">FG_Button.h</a>第<a class="el" href="FG__Button_8h-source.html#l00058">58</a>行定义。<p>参考 <a class="el" href="FG__Common_8h-source.html#l00115">FS_RAISED</a>及<a class="el" href="FG__Common_8h-source.html#l00055">WORD</a>.    </td>  </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="b6" doxytag="FG_Button::GetMessageMap" ></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"> const <a class="el" href="structFG__MSGMAP.html">FG_MSGMAP</a> * FG_Button::GetMessageMap </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>得到本类的消息映射表指针 <p>虚函数,派生类覆盖该函数,来返回自己的消息映射表指针,通过宏<a class="el" href="group__MsgMap__Define.html#ga1">BEGIN_MESSAGE_MAP</a>生成 <dl compact><dt><b>返回:</b></dt><dd>本类的消息映射表指针 </dd></dl><p>重载<a class="el" href="classFG__TextWidget.html#b0">FG_TextWidget</a>。<p>被<a class="el" href="classMyButton.html#b1">MyButton</a>重载。<p>在文件<a class="el" href="FG__Button_8cpp-source.html">FG_Button.cpp</a>第<a class="el" href="FG__Button_8cpp-source.html#l00043">43</a>行定义。    </td>  </tr>

⌨️ 快捷键说明

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