📄 classwgui_1_1cwindow.html
字号:
Definition at line <a class="el" href="wg__window_8h-source.html#l00111">111</a> of file <a class="el" href="wg__window_8h-source.html">wg_window.h</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00096">GetClientRect()</a>, and <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>. </td> </tr></table><a name="b1" doxytag="wGui::CWindow::DeregisterChildWindow"></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::DeregisterChildWindow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">CWindow * </td> <td class="mdname1" valign="top" nowrap> <em>pWindow</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Deregister 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> </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#l00284">284</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="a19" doxytag="wGui::CWindow::DrawBG"></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::DrawBG </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Render the background for the control Draws the background as a filled <a class="el" href="classwGui_1_1CRect.html">CRect</a> <p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00173">173</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__painter_8cpp-source.html#l00122">wGui::CPainter::DrawRect()</a>, <a class="el" href="wg__window_8h-source.html#l00194">m_BGColor</a>, <a class="el" href="wg__window_8h-source.html#l00206">m_pSDLSurface</a>, and <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>.<p>Referenced by <a class="el" href="wg__window_8cpp-source.html#l00201">DrawProc()</a>. </td> </tr></table><a name="a18" doxytag="wGui::CWindow::DrawProc"></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::DrawProc </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The rendering chain for windows <a class="el" href="classwGui_1_1CWindow.html#a18">DrawProc()</a> is the primary draw method and calls the other draw methods <p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00201">201</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#l00180">Draw()</a>, <a class="el" href="wg__window_8cpp-source.html#l00173">DrawBG()</a>, <a class="el" href="wg__window_8cpp-source.html#l00186">DrawChildren()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00195">DrawPostChild()</a>.<p>Referenced by <a class="el" href="wg__window_8cpp-source.html#l00213">StartDrawProc()</a>. </td> </tr></table><a name="a8" doxytag="wGui::CWindow::GetAncestor"></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"> CWindow * wGui::CWindow::GetAncestor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CWindow.html#s2">EAncestor</a> </td> <td class="mdname1" valign="top" nowrap> <em>eAncestor</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>GetAncestor will return an ancestor of the window (using it's parent chain) based upon the requested ancestor <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>eAncestor</em> </td><td>The desired ancestor of the window </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A pointer to the ancestor window, 0 is the window has no ancestors </dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00104">104</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#l00200">m_pParentWindow</a>, <a class="el" href="classwGui_1_1CWindow.html#s2s0">PARENT</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s1">ROOT</a>.<p>Referenced by <a class="el" href="wg__dropdown_8cpp-source.html#l00034">wGui::CDropDown::CDropDown()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00538">wGui::CPopupMenu::HandleMessage()</a>, <a class="el" href="wg__window_8cpp-source.html#l00133">IsChildOf()</a>, <a class="el" href="wg__window_8cpp-source.html#l00084">MoveWindow()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00501">wGui::CPopupMenu::OnMouseButtonDown()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00252">wGui::CMenu::OnMouseButtonDown()</a>, <a class="el" href="wg__window_8cpp-source.html#l00223">SetNewParent()</a>, <a class="el" href="wg__window_8cpp-source.html#l00151">SetVisible()</a>, <a class="el" href="wg__window_8cpp-source.html#l00077">SetWindowRect()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00341">wGui::CMenu::ShowActivePopup()</a>, and <a class="el" href="wg__dropdown_8cpp-source.html#l00151">wGui::CDropDown::ShowListBox()</a>. </td> </tr></table><a name="a7" doxytag="wGui::CWindow::GetBGColor"></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 <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> wGui::CWindow::GetBGColor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Retrieve a window's background color <dl compact><dt><b>Returns: </b></dt><dd>A <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> object that represents the background color </dl><p>Definition at line <a class="el" href="wg__window_8h-source.html#l00081">81</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>. </td> </tr></table><a name="a17" doxytag="wGui::CWindow::GetClassName"></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 const std::string& wGui::CWindow::GetClassName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return the classname for the object <dl compact><dt><b>Returns: </b></dt><dd>The classname of the object </dl><p>Definition at line <a class="el" href="wg__window_8h-source.html#l00127">127</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#l00212">m_sClassName</a>. </td> </tr></table><a name="a5" doxytag="wGui::CWindow::GetClientRect"></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"> <a class="el" href="classwGui_1_1CRect.html">CRect</a> wGui::CWindow::GetClientRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The ClientRect describes the internal area of the control By default, this is initialized to the value of the WindowRect The ClientRect is useful for windows that will contain other windows Internally it's represented via the window's coordinates <dl compact><dt><b>Returns: </b></dt><dd>The client area <a class="el" href="classwGui_1_1CRect.html">CRect</a> </dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00096">96</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00103">wGui::CRect::BottomRight()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00129">wGui::CRect::ClipTo()</a>, <a class="el" href="wg__window_8h-source.html#l00197">m_ClientRect</a>, <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>, and <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>.<p>Referenced by <a class="el" href="wg__window_8h-source.html#l00111">ClientToScreen()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00035">wGui::CScrollBar::CScrollBar()</a>, <a class="el" href="wg__picture_8cpp-source.html#l00068">wGui::CPicture::Draw()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00116">wGui::CListBox::Draw()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00066">wGui::CPainter::DrawHLine()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00177">wGui::CPainter::DrawPoint()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00122">wGui::CPainter::DrawRect()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00094">wGui::CPainter::DrawVLine()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00202">wGui::CScrollBar::HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00538">wGui::CPopupMenu::HandleMessage()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00215">wGui::CListBox::HandleMessage()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00163">wGui::CFrame::HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00501">wGui::CPopupMenu::OnMouseButtonDown()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00252">wGui::CMenu::OnMouseButtonDown()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00159">wGui::CListBox::OnMouseButtonDown()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00185">wGui::CListBox::OnMouseButtonUp()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00215">wGui::CPainter::ReadPoint()</a>, and <a class="el" href="wg__scrollbar_8cpp-source.html#l00093">wGui::CScrollBar::SetPosition()</a>. </td> </tr></table><a name="a16" doxytag="wGui::CWindow::GetWindowText"></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 std::string wGui::CWindow::GetWindowText </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -