📄 classwgui_1_1cgroupbox.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::CGroupBox 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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wGui::CGroupBox Class Reference</h1>A GroupBox is really just a fancier label that includes a box. <a href="#_details">More...</a><p><code>#include <<a class="el" href="wg__groupbox_8h-source.html">wg_groupbox.h</a>></code><p><p>Inheritance diagram for wGui::CGroupBox:<p><center><img src="classwGui_1_1CGroupBox.png" usemap="#wGui::CGroupBox_map" border="0" alt=""></center><map name="wGui::CGroupBox_map"><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_1CGroupBox.html#a0">CGroupBox</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &WindowRect, <a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *pParent, std::string sText, <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &FontColor=DEFAULT_LINE_COLOR, <a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> *pFontEngine=0)<li><a name="a1" doxytag="wGui::CGroupBox::~CGroupBox"></a>virtual <a class="el" href="classwGui_1_1CGroupBox.html#a1">~CGroupBox</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_1CGroupBox.html#a2">SetFontColor</a> (<a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &FontColor)<li><a name="a3" doxytag="wGui::CGroupBox::GetFontColor"></a><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> <a class="el" href="classwGui_1_1CGroupBox.html#a3">GetFontColor</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The color of the text in the label</dl><br><br></em></font></dl><li><a name="a4" doxytag="wGui::CGroupBox::Draw"></a>virtual void <a class="el" href="classwGui_1_1CGroupBox.html#a4">Draw</a> (void) const<dl class="el"><dd><font size=-1><em>Renders the Window Text, and clips to the Window Rect.<br><br></em></font></dl><li>virtual void <a class="el" href="classwGui_1_1CGroupBox.html#a5">SetWindowText</a> (const std::string &sWindowText)<li>virtual void <a class="el" href="classwGui_1_1CGroupBox.html#a6">SetWindowRect</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &WindowRect)</ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CGroupBox::m_pFontEngine"></a><a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> * <a class="el" href="classwGui_1_1CGroupBox.html#n0">m_pFontEngine</a><dl class="el"><dd><font size=-1><em>A pointer to the font engine to use to render the text.<br><br></em></font></dl><li><a name="n1" doxytag="wGui::CGroupBox::m_pRenderedString"></a>std::auto_ptr< <a class="el" href="classwGui_1_1CRenderedString.html">CRenderedString</a> > <a class="el" href="classwGui_1_1CGroupBox.html#n1">m_pRenderedString</a><dl class="el"><dd><font size=-1><em>An autopointer to the rendered version of the string.<br><br></em></font></dl><li><a name="n2" doxytag="wGui::CGroupBox::m_FontColor"></a><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> <a class="el" href="classwGui_1_1CGroupBox.html#n2">m_FontColor</a><dl class="el"><dd><font size=-1><em>The font color.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>A GroupBox is really just a fancier label that includes a box.<p><p>Definition at line <a class="el" href="wg__groupbox_8h-source.html#l00041">41</a> of file <a class="el" href="wg__groupbox_8h-source.html">wg_groupbox.h</a>.<hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="wGui::CGroupBox::CGroupBox"></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::CGroupBox::CGroupBox </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> & </td> <td class="mdname" nowrap> <em>WindowRect</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> * </td> <td class="mdname" nowrap> <em>pParent</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::string </td> <td class="mdname" nowrap> <em>sText</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> & </td> <td class="mdname" nowrap> <em>FontColor</em> = DEFAULT_LINE_COLOR, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> * </td> <td class="mdname" nowrap> <em>pFontEngine</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Construct a new group box <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em> </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> </td><td>A pointer to the parent window </td></tr><tr><td valign=top><em>sText</em> </td><td>The label text </td></tr><tr><td valign=top><em>FontColor</em> </td><td>The color of the label text </td></tr><tr><td valign=top><em>pFontEngine</em> </td><td>A pointer to the font engine to use when drawing the control If this is left out (or set to 0) it will use the default font engine specified by the <a class="el" href="classwGui_1_1CApplication.html">CApplication</a> (which must be set before instantiating this object) </td></tr></table></dl><p>Definition at line <a class="el" href="wg__groupbox_8cpp-source.html#l00032">32</a> of file <a class="el" href="wg__groupbox_8cpp-source.html">wg_groupbox.cpp</a>.<p>References <a class="el" href="wg__rect_8cpp-source.html#l00090">wGui::CRect::Grow()</a>, <a class="el" href="wg__window_8h-source.html#l00194">wGui::CWindow::m_BGColor</a>, <a class="el" href="wg__window_8h-source.html#l00197">wGui::CWindow::m_ClientRect</a>, <a class="el" href="wg__groupbox_8h-source.html#l00078">m_pFontEngine</a>, <a class="el" href="wg__groupbox_8h-source.html#l00079">m_pRenderedString</a>, <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>, <a class="el" href="wg__window_8h-source.html#l00188">wGui::CWindow::m_sWindowText</a>, and <a class="el" href="wg__rect_8h-source.html#l00067">wGui::CRect::SetTop()</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a2" doxytag="wGui::CGroupBox::SetFontColor"></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::CGroupBox::SetFontColor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> & </td> <td class="mdname1" valign="top" nowrap> <em>FontColor</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the color of the font used to render the label <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>FontColor</em> </td><td>The color of the label text </td></tr></table></dl><p>Definition at line <a class="el" href="wg__groupbox_8h-source.html#l00059">59</a> of file <a class="el" href="wg__groupbox_8h-source.html">wg_groupbox.h</a>.<p>References <a class="el" href="wg__groupbox_8h-source.html#l00080">m_FontColor</a>. </td> </tr></table><a name="a6" doxytag="wGui::CGroupBox::SetWindowRect"></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::CGroupBox::SetWindowRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> & </td> <td class="mdname1" valign="top" nowrap> <em>WindowRect</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>Giving a control a new WindowRect will move and resize the control <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em> </td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr></table></dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a2">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__groupbox_8cpp-source.html#l00086">86</a> of file <a class="el" href="wg__groupbox_8cpp-source.html">wg_groupbox.cpp</a>.<p>References <a class="el" href="wg__rect_8cpp-source.html#l00090">wGui::CRect::Grow()</a>, <a class="el" href="wg__window_8h-source.html#l00197">wGui::CWindow::m_ClientRect</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, and <a class="el" href="wg__rect_8h-source.html#l00067">wGui::CRect::SetTop()</a>. </td> </tr></table><a name="a5" doxytag="wGui::CGroupBox::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::CGroupBox::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 label <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__groupbox_8cpp-source.html#l00076">76</a> of file <a class="el" href="wg__groupbox_8cpp-source.html">wg_groupbox.cpp</a>.<p>References <a class="el" href="wg__groupbox_8h-source.html#l00078">m_pFontEngine</a>, <a class="el" href="wg__groupbox_8h-source.html#l00079">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__groupbox_8h-source.html">wg_groupbox.h</a><li><a class="el" href="wg__groupbox_8cpp-source.html">wg_groupbox.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 + -