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

📄 classwgui_1_1cview.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::CView 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::CView Class Reference</h1>A general view class. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="wg__view_8h-source.html">wg_view.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CView:<p><center><img src="classwGui_1_1CView.png" usemap="#wGui::CView_map" border="0" alt=""></center><map name="wGui::CView_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_1CView.html#a0">CView</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;Rect, std::string sTitle, bool bResizable=true, bool bFullScreen=false)<li><a name="a1" doxytag="wGui::CView::~CView"></a>virtual <a class="el" href="classwGui_1_1CView.html#a1">~CView</a> (void)<dl class="el"><dd><font size=-1><em>Standard Destructor.<br><br></em></font></dl><li><a name="a2" doxytag="wGui::CView::IsResizable"></a>bool <a class="el" href="classwGui_1_1CView.html#a2">IsResizable</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>true if the view is resizable</dl><br><br></em></font></dl><li><a name="a3" doxytag="wGui::CView::IsFullScreen"></a>bool <a class="el" href="classwGui_1_1CView.html#a3">IsFullScreen</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>true if the view was created as fullscreen</dl><br><br></em></font></dl><li>void <a class="el" href="classwGui_1_1CView.html#a4">AttachMenu</a> (<a class="el" href="classwGui_1_1CMenu.html">CMenu</a> *pMenu)<li><a name="a5" doxytag="wGui::CView::GetMenu"></a><a class="el" href="classwGui_1_1CMenu.html">CMenu</a> * <a class="el" href="classwGui_1_1CView.html#a5">GetMenu</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>A pointer to the view's menu, 0 if the view doesn't have a menu</dl><br><br></em></font></dl><li>virtual void <a class="el" href="classwGui_1_1CView.html#a6">SetWindowText</a> (const std::string &amp;sText)<li><a name="a7" doxytag="wGui::CView::HandleMessage"></a>virtual bool <a class="el" href="classwGui_1_1CView.html#a7">HandleMessage</a> (<a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *pMessage)<dl class="el"><dd><font size=-1><em>Handles APP_PAINT messages with itself or 0 as the destination, and will redraw all of it's children as well as itself.<br><br></em></font></dl></ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CView::m_bResizable"></a>bool <a class="el" href="classwGui_1_1CView.html#n0">m_bResizable</a><dl class="el"><dd><font size=-1><em>Indicates if the view is resizable.<br><br></em></font></dl><li><a name="n1" doxytag="wGui::CView::m_bFullScreen"></a>bool <a class="el" href="classwGui_1_1CView.html#n1">m_bFullScreen</a><dl class="el"><dd><font size=-1><em>Indicates if the view was created as fullscreen.<br><br></em></font></dl><li><a name="n2" doxytag="wGui::CView::m_pMenu"></a><a class="el" href="classwGui_1_1CMenu.html">CMenu</a> * <a class="el" href="classwGui_1_1CView.html#n2">m_pMenu</a><dl class="el"><dd><font size=-1><em>A pointer to the view's menu.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>A general view class.<p>A <a class="el" href="classwGui_1_1CView.html">CView</a> creates itself as a root window (it has no parent) and responds to APP_PAINT messages with itself or 0 as the destination, and will redraw all of it's children as well as itself Because of a limitation in SDL, there can be only one View <p><p>Definition at line <a class="el" href="wg__view_8h-source.html#l00048">48</a> of file <a class="el" href="wg__view_8h-source.html">wg_view.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CView::CView"></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::CView::CView </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>Rect</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::string&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>sTitle</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bResizable</em> = true, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bFullScreen</em> = false</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><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Rect</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>sTitle</em>&nbsp;</td><td>The window title, which will appear in the title bar of the view </td></tr><tr><td valign=top><em>bResizable</em>&nbsp;</td><td>If true, the window will be resizable (defaults to true) </td></tr><tr><td valign=top><em>bFullScreen</em>&nbsp;</td><td>If true, the window will be created full-screen, and the bResizable parameter will be ignored (defaults to false) </td></tr></table></dl><p>Definition at line <a class="el" href="wg__view_8cpp-source.html#l00039">39</a> of file <a class="el" href="wg__view_8cpp-source.html">wg_view.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00130">wGui::CRect::Height()</a>, <a class="el" href="wg__view_8h-source.html#l00087">m_bFullScreen</a>, <a class="el" href="wg__view_8h-source.html#l00086">m_bResizable</a>, <a class="el" href="wg__window_8h-source.html#l00206">wGui::CWindow::m_pSDLSurface</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>, <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#l00127">wGui::CRect::Width()</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a4" doxytag="wGui::CView::AttachMenu"></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::CView::AttachMenu </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMenu.html">CMenu</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pMenu</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>Attaches a standard menu to the view, if the view already has a menu, the old menu will be deleted <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pMenu</em>&nbsp;</td><td>A pointer to the menu, the <a class="el" href="classwGui_1_1CView.html">CView</a> is then responsible for cleaning it up, passing in 0 will delete the current menu </td></tr></table></dl><p>Definition at line <a class="el" href="wg__view_8cpp-source.html#l00088">88</a> of file <a class="el" href="wg__view_8cpp-source.html">wg_view.cpp</a>.<p>References <a class="el" href="wg__rect_8cpp-source.html#l00129">wGui::CRect::ClipTo()</a>, <a class="el" href="wg__window_8h-source.html#l00062">wGui::CWindow::GetWindowRect()</a>, <a class="el" href="wg__rect_8h-source.html#l00130">wGui::CRect::Height()</a>, <a class="el" href="wg__window_8h-source.html#l00197">wGui::CWindow::m_ClientRect</a>, <a class="el" href="wg__view_8h-source.html#l00088">m_pMenu</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="wg__rect_8h-source.html#l00067">wGui::CRect::SetTop()</a>, <a class="el" href="wg__window_8cpp-source.html#l00077">wGui::CWindow::SetWindowRect()</a>, and <a class="el" href="wg__rect_8h-source.html#l00127">wGui::CRect::Width()</a>.    </td>  </tr></table><a name="a6" doxytag="wGui::CView::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::CView::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>sText</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 view, which is used as the window caption <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>sText</em>&nbsp;</td><td>The text to assign to the view </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__view_8cpp-source.html#l00105">105</a> of file <a class="el" href="wg__view_8cpp-source.html">wg_view.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00188">wGui::CWindow::m_sWindowText</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__view_8h-source.html">wg_view.h</a><li><a class="el" href="wg__view_8cpp-source.html">wg_view.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:29 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 + -