📄 classwgui_1_1cbutton.html
字号:
<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">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em> </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">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em> </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">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CButton.html#s3">EState</a> </td> <td class="mdname1" valign="top" nowrap> <em>eState</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>sWindowText</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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 + -