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

📄 classwgui_1_1crect.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> wGui::CRect::CRect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const CRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r</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>Copy constructor <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>r</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that thie new <a class="el" href="classwGui_1_1CRect.html">CRect</a> will be copied from </td></tr></table></dl><p>Definition at line <a class="el" href="wg__rect_8h-source.html#l00059">59</a> of file <a class="el" href="wg__rect_8h-source.html">wg_rect.h</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, and <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a31" doxytag="wGui::CRect::ClipTo"></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::CRect::ClipTo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const CRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r</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>Clips the <a class="el" href="classwGui_1_1CRect.html">CRect</a> to fit in another <a class="el" href="classwGui_1_1CRect.html">CRect</a> <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>r</em>&nbsp;</td><td>The <a class="el" href="classwGui_1_1CRect.html">CRect</a> to clip to </td></tr></table></dl><p>Definition at line <a class="el" href="wg__rect_8cpp-source.html#l00129">129</a> of file <a class="el" href="wg__rect_8cpp-source.html">wg_rect.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00091">Bottom()</a>, <a class="el" href="wg__rect_8h-source.html#l00085">Left()</a>, <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>, <a class="el" href="wg__rect_8h-source.html#l00088">Right()</a>, and <a class="el" href="wg__rect_8h-source.html#l00082">Top()</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__listbox_8cpp-source.html#l00116">wGui::CListBox::Draw()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00103">wGui::CEditBox::Draw()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00122">wGui::CPainter::DrawRect()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>.    </td>  </tr></table><a name="a28" doxytag="wGui::CRect::Grow"></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"> CRect &amp; wGui::CRect::Grow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iGrowAmount</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>Grow will increase (or decrease) all of the dimensions by the given amount. This means that for a rect 20 wide by 10 tall, Grow(1) will increase the size to 22 wide, 12 tall. (each side is moved out by 1) <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iGrowAmount</em>&nbsp;</td><td>The amount to grow the <a class="el" href="classwGui_1_1CRect.html">CRect</a>'s dimensions by, negative values can be used to shrink the rect </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A reference to the object </dl><p>Definition at line <a class="el" href="wg__rect_8cpp-source.html#l00090">90</a> of file <a class="el" href="wg__rect_8cpp-source.html">wg_rect.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, and <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>.<p>Referenced by <a class="el" href="wg__editbox_8cpp-source.html#l00036">wGui::CEditBox::CEditBox()</a>, <a class="el" href="wg__groupbox_8cpp-source.html#l00032">wGui::CGroupBox::CGroupBox()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00035">wGui::CListBox::CListBox()</a>, <a class="el" href="wg__picture_8cpp-source.html#l00032">wGui::CPicture::CPicture()</a>, <a class="el" href="wg__tooltip_8cpp-source.html#l00082">wGui::CToolTip::Draw()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00128">wGui::CScrollBar::Draw()</a>, <a class="el" href="wg__progress_8cpp-source.html#l00065">wGui::CProgress::Draw()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00455">wGui::CPopupMenu::Draw()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00227">wGui::CMenu::Draw()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00116">wGui::CListBox::Draw()</a>, <a class="el" href="wg__frame_8cpp-source.html#l00075">wGui::CFrame::Draw()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00103">wGui::CEditBox::Draw()</a>, <a class="el" href="wg__checkbox_8cpp-source.html#l00061">wGui::CCheckBox::Draw()</a>, <a class="el" href="wg__button_8cpp-source.html#l00228">wGui::CPictureButton::Draw()</a>, <a class="el" href="wg__button_8cpp-source.html#l00074">wGui::CButton::Draw()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00122">wGui::CPainter::DrawRect()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00271">wGui::CEditBox::HandleMessage()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00076">wGui::CDropDown::HandleMessage()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00231">wGui::CEditBox::OnMouseButtonDown()</a>, <a class="el" href="wg__picture_8cpp-source.html#l00087">wGui::CPicture::SetWindowRect()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00149">wGui::CListBox::SetWindowRect()</a>, <a class="el" href="wg__groupbox_8cpp-source.html#l00086">wGui::CGroupBox::SetWindowRect()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00595">wGui::CPopupMenu::UpdateCachedRects()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00310">wGui::CMenu::UpdateCachedRects()</a>.    </td>  </tr></table><a name="a32" doxytag="wGui::CRect::HitTest"></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"> unsigned int wGui::CRect::HitTest </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>The HitTest will test to see where a point is in relation to the rect.<p><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em>&nbsp;</td><td>The point to test against the <a class="el" href="classwGui_1_1CRect.html">CRect</a> </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>The appropriate values of the ERelativePosition enum are ORed together </dl><p>Definition at line <a class="el" href="wg__rect_8cpp-source.html#l00167">167</a> of file <a class="el" href="wg__rect_8cpp-source.html">wg_rect.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>, <a class="el" href="classwGui_1_1CRect.html#s5s0">RELPOS_ABOVE</a>, <a class="el" href="classwGui_1_1CRect.html#s5s1">RELPOS_BELOW</a>, <a class="el" href="classwGui_1_1CRect.html#s5s4">RELPOS_INSIDE</a>, <a class="el" href="classwGui_1_1CRect.html#s5s2">RELPOS_LEFT</a>, <a class="el" href="classwGui_1_1CRect.html#s5s3">RELPOS_RIGHT</a>, <a class="el" href="wg__point_8h-source.html#l00064">wGui::CPoint::XPos()</a>, and <a class="el" href="wg__point_8h-source.html#l00067">wGui::CPoint::YPos()</a>.<p>Referenced by <a class="el" href="wg__renderedstring_8cpp-source.html#l00050">wGui::CRenderedString::Draw()</a>, <a class="el" href="wg__view_8cpp-source.html#l00112">wGui::CView::HandleMessage()</a>, <a class="el" href="wg__tooltip_8cpp-source.html#l00101">wGui::CToolTip::HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00538">wGui::CPopupMenu::HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00117">wGui::CMenuBase::HandleMessage()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00271">wGui::CEditBox::HandleMessage()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00076">wGui::CDropDown::HandleMessage()</a>, <a class="el" href="wg__checkbox_8cpp-source.html#l00127">wGui::CCheckBox::HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00441">wGui::CPopupMenu::IsInsideChild()</a>, <a class="el" href="wg__window_8cpp-source.html#l00238">wGui::CWindow::OnMouseButtonDown()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00187">wGui::CScrollBar::OnMouseButtonDown()</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__frame_8cpp-source.html#l00144">wGui::CFrame::OnMouseButtonDown()</a>, <a class="el" href="wg__editbox_8cpp-source.html#l00231">wGui::CEditBox::OnMouseButtonDown()</a>, <a class="el" href="wg__checkbox_8cpp-source.html#l00084">wGui::CCheckBox::OnMouseButtonDown()</a>, <a class="el" href="wg__button_8cpp-source.html#l00118">wGui::CButton::OnMouseButtonDown()</a>, <a class="el" href="wg__window_8cpp-source.html#l00258">wGui::CWindow::OnMouseButtonUp()</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00185">wGui::CListBox::OnMouseButtonUp()</a>, <a class="el" href="wg__checkbox_8cpp-source.html#l00099">wGui::CCheckBox::OnMouseButtonUp()</a>, <a class="el" href="wg__button_8cpp-source.html#l00134">wGui::CButton::OnMouseButtonUp()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00112">Overlaps()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00626">wGui::CPopupMenu::ShowActivePopup()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00341">wGui::CMenu::ShowActivePopup()</a>.    </td>  </tr></table><a name="a29" doxytag="wGui::CRect::Move"></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"> CRect &amp; wGui::CRect::Move </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iOffsetX</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iOffsetY</em></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>Move will move the rect by a offset specified <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iOffsetX</em>&nbsp;</td><td>how many pixel to move on X axis ( + or - ) </td></tr><tr><td valign=top><em>iOffsetY</em>&nbsp;</td><td>how many pixel to move on Y axis ( + or - ) </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A reference to the object </dl><p>Definition at line <a class="el" href="wg__rect_8cpp-source.html#l00101">101</a> of file <a class="el" href="wg__rect_8cpp-source.html">wg_rect.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, and <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>.    </td>  </tr></table><a name="a26" doxytag="wGui::CRect::operator+"></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"> CRect wGui::CRect::operator+ </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Addition operator to add a <a class="el" href="classwGui_1_1CPoint.html">CPoint</a>, will offset the <a class="el" href="classwGui_1_1CRect.html">CRect</a> <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em>&nbsp;</td><td>A point to offset the <a class="el" href="classwGui_1_1CRect.html">CRect</a> by </td></tr></table></dl><p>Definition at line <a class="el" href="wg__rect_8cpp-source.html#l00074">74</a> of file <a class="el" href="wg__rect_8cpp-source.html">wg_rect.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00190">m_Bottom</a>, <a class="el" href="wg__rect_8h-source.html#l00181">m_Left</a>, <a class="el" href="wg__rect_8h-source.html#l00184">m_Right</a>, <a class="el" href="wg__rect_8h-source.html#l00187">m_Top</a>, <a class="el" href="wg__point_8h-source.html#l00064">wGui::CPoint::XPos()</a>, and <a class="el" href="wg__point_8h-source.html#l00067">wGui::CPoint::YPos()</a>.    </td>  </tr></table><a name="a27" doxytag="wGui::CRect::operator-"></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"> CRect wGui::CRect::operator- </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -