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

📄 classwgui_1_1cpicturebutton.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wGui::CPictureButton class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; </center><hr><h1>wGui::CPictureButton Class Reference</h1>Picture Buttons are pushbuttons that display a bitmap in place of a text label. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="wg__button_8h-source.html">wg_button.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CPictureButton:<p><center><img src="classwGui_1_1CPictureButton.png" usemap="#wGui::CPictureButton_map" border="0" alt=""></center><map name="wGui::CPictureButton_map"><area href="classwGui_1_1CButton.html" alt="wGui::CButton" shape="rect" coords="0,112,138,136"><area href="classwGui_1_1CWindow.html" alt="wGui::CWindow" shape="rect" coords="0,56,138,80"><area href="classwGui_1_1CMessageClient.html" alt="wGui::CMessageClient" shape="rect" coords="0,0,138,24"></map><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CPictureButton.html#a0">CPictureButton</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;WindowRect, <a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *pParent, std::string sPictureFile)<li><a class="el" href="classwGui_1_1CPictureButton.html#a1">CPictureButton</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;WindowRect, <a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *pParent, const <a class="el" href="classwGui_1_1CBitmapResourceHandle.html">CBitmapResourceHandle</a> &amp;hBitmap)<li><a name="a2" doxytag="wGui::CPictureButton::~CPictureButton"></a>virtual <a class="el" href="classwGui_1_1CPictureButton.html#a2">~CPictureButton</a> (void)<dl class="el"><dd><font size=-1><em>Standard destructor.<br><br></em></font></dl><li>void <a class="el" href="classwGui_1_1CPictureButton.html#a3">SetPicture</a> (std::string sPictureFile)<li>void <a class="el" href="classwGui_1_1CPictureButton.html#a4">SetPicture</a> (const <a class="el" href="classwGui_1_1CBitmapResourceHandle.html">CBitmapResourceHandle</a> &amp;hBitmap)<li><a name="a5" doxytag="wGui::CPictureButton::Draw"></a>virtual void <a class="el" href="classwGui_1_1CPictureButton.html#a5">Draw</a> (void) const<dl class="el"><dd><font size=-1><em>Draws the button and renders the button label.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Picture Buttons are pushbuttons that display a bitmap in place of a text label.<p><p>Definition at line <a class="el" href="wg__button_8h-source.html#l00113">113</a> of file <a class="el" href="wg__button_8h-source.html">wg_button.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CPictureButton::CPictureButton"></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"> wGui::CPictureButton::CPictureButton </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>WindowRect</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pParent</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::string&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>sPictureFile</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructs a new picture button <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr><tr><td valign=top><em>pParent</em>&nbsp;</td><td>A pointer to the parent window </td></tr><tr><td valign=top><em>sPictureFile</em>&nbsp;</td><td>The file to use as the button's picture </td></tr></table></dl><p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00190">190</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>.    </td>  </tr></table><a name="a1" doxytag="wGui::CPictureButton::CPictureButton"></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"> wGui::CPictureButton::CPictureButton </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>WindowRect</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pParent</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CBitmapResourceHandle.html">CBitmapResourceHandle</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>hBitmap</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructs a new picture button <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr><tr><td valign=top><em>pParent</em>&nbsp;</td><td>A pointer to the parent window </td></tr><tr><td valign=top><em>hBitmap</em>&nbsp;</td><td>A handle for the bitmap resource </td></tr></table></dl><p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00199">199</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a4" doxytag="wGui::CPictureButton::SetPicture"></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::CPictureButton::SetPicture </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CBitmapResourceHandle.html">CBitmapResourceHandle</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>hBitmap</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>Change the picture the button displays <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>hBitmap</em>&nbsp;</td><td>A handle for the bitmap resource </td></tr></table></dl><p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00220">220</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>.    </td>  </tr></table><a name="a3" doxytag="wGui::CPictureButton::SetPicture"></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::CPictureButton::SetPicture </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">std::string&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sPictureFile</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>Change the picture the button displays <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sPictureFile</em>&nbsp;</td><td>The file to use as the button's picture </td></tr></table></dl><p>Definition at line <a class="el" href="wg__button_8cpp-source.html#l00214">214</a> of file <a class="el" href="wg__button_8cpp-source.html">wg_button.cpp</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:28 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 + -