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

📄 classwgui_1_1cbutton.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00162">162</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="classwGui_1_1CButton.html#s3s1">DOWN</a>, <a class="el" href="wg__button_8h-source.html#l00103">m_eButtonState</a>, <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>, <a class="el" href="wg__button_8cpp-source.html#l00064">SetButtonState()</a>, and <a class="el" href="classwGui_1_1CButton.html#s3s0">UP</a>.    </td>  </tr></table><a name="a6" doxytag="wGui::CButton::OnMouseButtonDown"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool wGui::CButton::OnMouseButtonDown </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Point</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Button</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This is called whenever the button is clicked on by the mouse Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em>&nbsp;</td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em>&nbsp;</td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>True if it's in the bounds of the button </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a25">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00118">118</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="classwGui_1_1CButton.html#s3s1">DOWN</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__button_8h-source.html#l00103">m_eButtonState</a>, <a class="el" href="wg__button_8h-source.html#l00104">m_MouseButton</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="wg__button_8cpp-source.html#l00064">SetButtonState()</a>, and <a class="el" href="classwGui_1_1CButton.html#s3s0">UP</a>.    </td>  </tr></table><a name="a7" doxytag="wGui::CButton::OnMouseButtonUp"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool wGui::CButton::OnMouseButtonUp </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Point</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>Button</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This is called whenever the a mouse button is released in the button Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em>&nbsp;</td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em>&nbsp;</td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>True if it's in the bounds of the button </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a26">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00134">134</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="classwGui_1_1CButton.html#s3s1">DOWN</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__button_8h-source.html#l00103">m_eButtonState</a>, <a class="el" href="wg__button_8h-source.html#l00104">m_MouseButton</a>, <a class="el" href="wg__window_8h-source.html#l00200">wGui::CWindow::m_pParentWindow</a>, and <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>.    </td>  </tr></table><a name="a3" doxytag="wGui::CButton::SetButtonState"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void wGui::CButton::SetButtonState </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CButton.html#s3">EState</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>eState</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the button state <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>eState</em>&nbsp;</td><td>The button state </td></tr></table></dl><p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00064">64</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="wg__button_8h-source.html#l00103">m_eButtonState</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>.<p>Referenced by <a class="el" href="wg__button_8cpp-source.html#l00162">HandleMessage()</a>, and <a class="el" href="wg__button_8cpp-source.html#l00118">OnMouseButtonDown()</a>.    </td>  </tr></table><a name="a5" doxytag="wGui::CButton::SetWindowText"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void wGui::CButton::SetWindowText </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sWindowText</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the WindowText of the button <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sWindowText</em>&nbsp;</td><td>The text to assign to the window </td></tr></table></dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a15">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00108">108</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="wg__button_8h-source.html#l00101">m_pFontEngine</a>, <a class="el" href="wg__button_8h-source.html#l00102">m_pRenderedString</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__button_8h-source.html">wg_button.h</a><li><a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:27 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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