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

📄 classwgui_1_1clabel.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::CLabel 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::CLabel Class Reference</h1>A static label that renders it's WindowText to the screen. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="wg__label_8h-source.html">wg_label.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CLabel:<p><center><img src="classwGui_1_1CLabel.png" usemap="#wGui::CLabel_map" border="0" alt=""></center><map name="wGui::CLabel_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_1CLabel.html#a0">CLabel</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 sText="", <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;FontColor=DEFAULT_LINE_COLOR, <a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> *pFontEngine=0)<li><a name="a1" doxytag="wGui::CLabel::~CLabel"></a>virtual <a class="el" href="classwGui_1_1CLabel.html#a1">~CLabel</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_1CLabel.html#a2">SetFontColor</a> (<a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;FontColor)<li><a name="a3" doxytag="wGui::CLabel::GetFontColor"></a><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> <a class="el" href="classwGui_1_1CLabel.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::CLabel::Draw"></a>virtual void <a class="el" href="classwGui_1_1CLabel.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_1CLabel.html#a5">SetWindowText</a> (const std::string &amp;sWindowText)</ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CLabel::m_pFontEngine"></a><a class="el" href="classwGui_1_1CFontEngine.html">CFontEngine</a> * <a class="el" href="classwGui_1_1CLabel.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::CLabel::m_pRenderedString"></a>std::auto_ptr&lt; <a class="el" href="classwGui_1_1CRenderedString.html">CRenderedString</a> &gt; <a class="el" href="classwGui_1_1CLabel.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::CLabel::m_FontColor"></a><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> <a class="el" href="classwGui_1_1CLabel.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 static label that renders it's WindowText to the screen.<p><p>Definition at line <a class="el" href="wg__label_8h-source.html#l00041">41</a> of file <a class="el" href="wg__label_8h-source.html">wg_label.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CLabel::CLabel"></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::CLabel::CLabel </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>sText</em> = "", </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <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> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pFontEngine</em> = 0</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>Construct a new label <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>sText</em>&nbsp;</td><td>The label text, defaults to an empty string </td></tr><tr><td valign=top><em>FontColor</em>&nbsp;</td><td>The color of the label text, defaults to the DEFAULT_LINE_COLOR </td></tr><tr><td valign=top><em>pFontEngine</em>&nbsp;</td><td>A pointer to the font engine to use when drawing the control, defaults to 0 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__label_8cpp-source.html#l00032">32</a> of file <a class="el" href="wg__label_8cpp-source.html">wg_label.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00194">wGui::CWindow::m_BGColor</a>, <a class="el" href="wg__label_8h-source.html#l00074">m_pFontEngine</a>, <a class="el" href="wg__label_8h-source.html#l00075">m_pRenderedString</a>, <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>, and <a class="el" href="wg__window_8h-source.html#l00188">wGui::CWindow::m_sWindowText</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a2" doxytag="wGui::CLabel::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::CLabel::SetFontColor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>FontColor</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td>The color of the label text </td></tr></table></dl><p>Definition at line <a class="el" href="wg__label_8h-source.html#l00059">59</a> of file <a class="el" href="wg__label_8h-source.html">wg_label.h</a>.<p>References <a class="el" href="wg__label_8h-source.html#l00076">m_FontColor</a>.    </td>  </tr></table><a name="a5" doxytag="wGui::CLabel::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::CLabel::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 label <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__label_8cpp-source.html#l00067">67</a> of file <a class="el" href="wg__label_8cpp-source.html">wg_label.cpp</a>.<p>References <a class="el" href="wg__label_8h-source.html#l00074">m_pFontEngine</a>, <a class="el" href="wg__label_8h-source.html#l00075">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__label_8h-source.html">wg_label.h</a><li><a class="el" href="wg__label_8cpp-source.html">wg_label.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 + -