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

📄 classwgui_1_1cpainter.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <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>Draw a horizontal line <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>xStart</em>&nbsp;</td><td>The start position of the line </td></tr><tr><td valign=top><em>xEnd</em>&nbsp;</td><td>The end position of the line </td></tr><tr><td valign=top><em>y</em>&nbsp;</td><td>The vertical location of the line </td></tr><tr><td valign=top><em>LineColor</em>&nbsp;</td><td>The color of the line </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00066">66</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__painter_8h-source.html#l00129">m_pSurface</a>, <a class="el" href="wg__painter_8h-source.html#l00130">m_pWindow</a>, <a class="el" href="wg__color_8h-source.html#l00059">wGui::CRGBColor::SDLColor()</a>, <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</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__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__frame_8cpp-source.html#l00075">wGui::CFrame::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>, and <a class="el" href="wg__painter_8cpp-source.html#l00122">DrawRect()</a>.    </td>  </tr></table><a name="a6" doxytag="wGui::CPainter::DrawLine"></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::CPainter::DrawLine </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="mdname" nowrap>&nbsp; <em>StartPoint</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>EndPoint</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>LineColor</em> = DEFAULT_LINE_COLOR</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>Draw a line between two points <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>StartPoint</em>&nbsp;</td><td>The beginning point of the line </td></tr><tr><td valign=top><em>EndPoint</em>&nbsp;</td><td>The end point of the line </td></tr><tr><td valign=top><em>LineColor</em>&nbsp;</td><td>The color to use for drawing the line </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00146">146</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="wg__painter_8cpp-source.html#l00177">DrawPoint()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00094">DrawVLine()</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__checkbox_8cpp-source.html#l00061">wGui::CCheckBox::Draw()</a>.    </td>  </tr></table><a name="a7" doxytag="wGui::CPainter::DrawPoint"></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::CPainter::DrawPoint </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="mdname" nowrap>&nbsp; <em>Point</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>PointColor</em> = DEFAULT_LINE_COLOR</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>Draw a pixel <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em>&nbsp;</td><td>The location of the pixel to set </td></tr><tr><td valign=top><em>PointColor</em>&nbsp;</td><td>The color to set the pixel to </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00177">177</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00252">LockSurface()</a>, <a class="el" href="wg__painter_8h-source.html#l00129">m_pSurface</a>, <a class="el" href="wg__painter_8h-source.html#l00130">m_pWindow</a>, <a class="el" href="wg__painter_8cpp-source.html#l00277">MixColor()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00215">ReadPoint()</a>, <a class="el" href="wg__color_8h-source.html#l00059">wGui::CRGBColor::SDLColor()</a>, <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00268">UnlockSurface()</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__painter_8cpp-source.html#l00146">DrawLine()</a>, and <a class="el" href="wg__painter_8cpp-source.html#l00306">ReplaceColor()</a>.    </td>  </tr></table><a name="a5" doxytag="wGui::CPainter::DrawRect"></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::CPainter::DrawRect </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>bool&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bFilled</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>BorderColor</em> = DEFAULT_LINE_COLOR, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>FillColor</em> = DEFAULT_FG_COLOR</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>Draw a rectangle <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 describes the rectangle </td></tr><tr><td valign=top><em>bFilled</em>&nbsp;</td><td>If true, rectangle will be filled with the FillColor, otherwise only the border is drawn </td></tr><tr><td valign=top><em>BorderColor</em>&nbsp;</td><td>The color for the border </td></tr><tr><td valign=top><em>FillColor</em>&nbsp;</td><td>The color to fill the rectangle with </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00122">122</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="wg__rect_8h-source.html#l00091">wGui::CRect::Bottom()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00129">wGui::CRect::ClipTo()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00066">DrawHLine()</a>, <a class="el" href="wg__painter_8cpp-source.html#l00094">DrawVLine()</a>, <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00090">wGui::CRect::Grow()</a>, <a class="el" href="wg__rect_8h-source.html#l00085">wGui::CRect::Left()</a>, <a class="el" href="wg__painter_8h-source.html#l00129">m_pSurface</a>, <a class="el" href="wg__painter_8h-source.html#l00130">m_pWindow</a>, <a class="el" href="wg__rect_8h-source.html#l00088">wGui::CRect::Right()</a>, <a class="el" href="wg__color_8h-source.html#l00059">wGui::CRGBColor::SDLColor()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00038">wGui::CRect::SDLRect()</a>, <a class="el" href="wg__rect_8h-source.html#l00082">wGui::CRect::Top()</a>, and <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>.<p>Referenced by <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__picture_8cpp-source.html#l00068">wGui::CPicture::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__groupbox_8cpp-source.html#l00061">wGui::CGroupBox::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__window_8cpp-source.html#l00173">wGui::CWindow::DrawBG()</a>, and <a class="el" href="wg__frame_8cpp-source.html#l00163">wGui::CFrame::HandleMessage()</a>.    </td>  </tr></table><a name="a4" doxytag="wGui::CPainter::DrawVLine"></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::CPainter::DrawVLine </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>yStart</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>yEnd</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>

⌨️ 快捷键说明

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