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

📄 classwgui_1_1cwindow.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<tr><td valign=top><em>Point</em>&nbsp;</td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em>&nbsp;</td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>False by default, if an overridden control uses the click, then it should return true if it's in the bounds of the window </dl><p>Reimplemented in <a class="el" href="classwGui_1_1CButton.html#a7">wGui::CButton</a>, <a class="el" href="classwGui_1_1CCheckBox.html#a6">wGui::CCheckBox</a>, and <a class="el" href="classwGui_1_1CListBox.html#a16">wGui::CListBox</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00258">258</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">m_bVisible</a>, <a class="el" href="wg__window_8h-source.html#l00203">m_ChildWindows</a>, and <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>.<p>Referenced by <a class="el" href="wg__view_8cpp-source.html#l00112">wGui::CView::HandleMessage()</a>.    </td>  </tr></table><a name="b0" doxytag="wGui::CWindow::RegisterChildWindow"></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::CWindow::RegisterChildWindow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">CWindow *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pWindow</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Register pWindow as a child <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pWindow</em>&nbsp;</td><td>A pointer to the child window </td></tr></table></dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00278">278</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00203">m_ChildWindows</a>.<p>Referenced by <a class="el" href="wg__window_8cpp-source.html#l00223">SetNewParent()</a>.    </td>  </tr></table><a name="a6" doxytag="wGui::CWindow::SetBGColor"></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"> virtual void wGui::CWindow::SetBGColor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>Color</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the window's background color <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Color</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> that represents the background color </td></tr></table></dl><p>Definition at line <a class="el" href="wg__window_8h-source.html#l00077">77</a> of file <a class="el" href="wg__window_8h-source.html">wg_window.h</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00194">m_BGColor</a>.<p>Referenced by <a class="el" href="wg__dropdown_8cpp-source.html#l00034">wGui::CDropDown::CDropDown()</a>.    </td>  </tr></table><a name="a24" doxytag="wGui::CWindow::SetNewParent"></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::CWindow::SetNewParent </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">CWindow *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pNewParent</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>Transfer the ownership of the window, so it has a new parent <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pNewParent</em>&nbsp;</td><td>A pointer to a window that should be set as the parent </td></tr></table></dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00223">223</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00284">DeregisterChildWindow()</a>, <a class="el" href="wg__window_8cpp-source.html#l00104">GetAncestor()</a>, <a class="el" href="wg__window_8h-source.html#l00200">m_pParentWindow</a>, <a class="el" href="wg__window_8h-source.html#l00206">m_pSDLSurface</a>, <a class="el" href="wg__window_8cpp-source.html#l00278">RegisterChildWindow()</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s1">ROOT</a>.<p>Referenced by <a class="el" href="wg__window_8cpp-source.html#l00039">CWindow()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00163">wGui::CFrame::HandleMessage()</a>, <a class="el" href="wg__toolbar_8cpp-source.html#l00049">wGui::CToolBar::InsertButton()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00144">wGui::CFrame::OnMouseButtonDown()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00341">wGui::CMenu::ShowActivePopup()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00151">wGui::CDropDown::ShowListBox()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00059">~CWindow()</a>.    </td>  </tr></table><a name="a11" doxytag="wGui::CWindow::SetVisible"></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::CWindow::SetVisible </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>bVisible</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 visibility of the control, and all of it's children <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>bVisible</em>&nbsp;</td><td>Set to false to hide the control </td></tr></table></dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00151">151</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">GetAncestor()</a>, <a class="el" href="wg__window_8h-source.html#l00209">m_bVisible</a>, <a class="el" href="wg__window_8h-source.html#l00203">m_ChildWindows</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s0">PARENT</a>.<p>Referenced by <a class="el" href="wg__dropdown_8cpp-source.html#l00034">wGui::CDropDown::CDropDown()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00163">wGui::CDropDown::HideListBox()</a>, <a class="el" href="wg__tooltip_8cpp-source.html#l00075">wGui::CToolTip::HideTip()</a>, <a class="el" href="wg__toolbar_8cpp-source.html#l00096">wGui::CToolBar::RepositionButtons()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00151">wGui::CDropDown::ShowListBox()</a>, and <a class="el" href="wg__tooltip_8cpp-source.html#l00067">wGui::CToolTip::ShowTip()</a>.    </td>  </tr></table><a name="a2" doxytag="wGui::CWindow::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::CWindow::SetWindowRect </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="mdname1" valign="top" nowrap>&nbsp; <em>WindowRect</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>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>&nbsp;</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 in <a class="el" href="classwGui_1_1CFrame.html#a9">wGui::CFrame</a>, <a class="el" href="classwGui_1_1CGroupBox.html#a6">wGui::CGroupBox</a>, <a class="el" href="classwGui_1_1CListBox.html#a14">wGui::CListBox</a>, <a class="el" href="classwGui_1_1CPicture.html#a4">wGui::CPicture</a>, <a class="el" href="classwGui_1_1CScrollBar.html#a8">wGui::CScrollBar</a>, and <a class="el" href="classwGui_1_1CToolBar.html#a7">wGui::CToolBar</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00077">77</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">GetAncestor()</a>, <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s0">PARENT</a>.<p>Referenced by <a class="el" href="wg__view_8cpp-source.html#l00088">wGui::CView::AttachMenu()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00102">wGui::CFrame::AttachMenu()</a>, <a class="el" href="wg__toolbar_8cpp-source.html#l00096">wGui::CToolBar::RepositionButtons()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00142">wGui::CScrollBar::SetWindowRect()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00119">wGui::CFrame::SetWindowRect()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00384">wGui::CPopupMenu::Show()</a>, and <a class="el" href="wg__tooltip_8cpp-source.html#l00067">wGui::CToolTip::ShowTip()</a>.    </td>  </tr></table><a name="a15" doxytag="wGui::CWindow::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::CWindow::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 control <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 window </td></tr></table></dl><p>Reimplemented in <a class="el" href="classwGui_1_1CButton.html#a5">wGui::CButton</a>, <a class="el" href="classwGui_1_1CEditBox.html#a8">wGui::CEditBox</a>, <a class="el" href="classwGui_1_1CFrame.html#a11">wGui::CFrame</a>, <a class="el" href="classwGui_1_1CGroupBox.html#a5">wGui::CGroupBox</a>, <a class="el" href="classwGui_1_1CLabel.html#a5">wGui::CLabel</a>, and <a class="el" href="classwGui_1_1CView.html#a6">wGui::CView</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00166">166</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00188">m_sWindowText</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">StartDrawProc()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__window_8h-source.html">wg_window.h</a><li><a class="el" href="wg__window_8cpp-source.html">wg_window.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 + -