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

📄 classwgui_1_1cpainter.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        </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 vertical line <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>yStart</em>&nbsp;</td><td>The start position of the line </td></tr><tr><td valign=top><em>yEnd</em>&nbsp;</td><td>The end position of the line </td></tr><tr><td valign=top><em>x</em>&nbsp;</td><td>The horizontal 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#l00094">94</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__menu_8cpp-source.html#l00227">wGui::CMenu::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#l00146">DrawLine()</a>, and <a class="el" href="wg__painter_8cpp-source.html#l00122">DrawRect()</a>.    </td>  </tr></table><a name="b2" doxytag="wGui::CPainter::MixColor"></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_1CRGBColor.html">CRGBColor</a> wGui::CPainter::MixColor </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="mdname" nowrap>&nbsp; <em>ColorBase</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>ColorAdd</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Mixes thje two colors based on the painting mode <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ColorBase</em>&nbsp;</td><td>The color to use as the base </td></tr><tr><td valign=top><em>ColorAdd</em>&nbsp;</td><td>The color to add to the base </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> object representing the mixed colors </dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00277">277</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="classwGui_1_1CPainter.html#s6s4">PAINT_AND</a>, <a class="el" href="classwGui_1_1CPainter.html#s6s0">PAINT_IGNORE</a>, <a class="el" href="classwGui_1_1CPainter.html#s6s2">PAINT_NORMAL</a>, <a class="el" href="classwGui_1_1CPainter.html#s6s3">PAINT_OR</a>, <a class="el" href="classwGui_1_1CPainter.html#s6s1">PAINT_REPLACE</a>, and <a class="el" href="classwGui_1_1CPainter.html#s6s5">PAINT_XOR</a>.<p>Referenced by <a class="el" href="wg__painter_8cpp-source.html#l00177">DrawPoint()</a>.    </td>  </tr></table><a name="a8" doxytag="wGui::CPainter::ReadPoint"></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_1CRGBColor.html">CRGBColor</a> wGui::CPainter::ReadPoint </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>Point</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>Get the color of the pixel at the given point <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 read </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> object representing the color of the pixel </dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00215">215</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__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__painter_8cpp-source.html#l00177">DrawPoint()</a>, and <a class="el" href="wg__painter_8cpp-source.html#l00306">ReplaceColor()</a>.    </td>  </tr></table><a name="a9" doxytag="wGui::CPainter::ReplaceColor"></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::ReplaceColor </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="mdname" nowrap>&nbsp; <em>NewColor</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>OldColor</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>Replace all pixels of a certain color with a new color <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>NewColor</em>&nbsp;</td><td>The color value to replace the pixels with </td></tr><tr><td valign=top><em>OldColor</em>&nbsp;</td><td>The color of the pixels to be replaced </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00306">306</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_8h-source.html#l00129">m_pSurface</a>, and <a class="el" href="wg__painter_8cpp-source.html#l00215">ReadPoint()</a>.    </td>  </tr></table><a name="a10" doxytag="wGui::CPainter::TransparentColor"></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::TransparentColor </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>TransparentColor</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>Sets the transparent pixel <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>TransparentColor</em>&nbsp;</td><td>The pixel color to be treated as transparent </td></tr></table></dl><p>Definition at line <a class="el" href="wg__painter_8cpp-source.html#l00322">322</a> of file <a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a>.<p>References <a class="el" href="wg__painter_8h-source.html#l00129">m_pSurface</a>, and <a class="el" href="wg__color_8h-source.html#l00059">wGui::CRGBColor::SDLColor()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__painter_8h-source.html">wg_painter.h</a><li><a class="el" href="wg__painter_8cpp-source.html">wg_painter.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:28 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 + -