📄 classwgui_1_1crenderedstring.html
字号:
<td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRGBColor.html">CRGBColor</a> & </td> <td class="mdname" nowrap> <em>FontColor</em> = DEFAULT_LINE_COLOR</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Render the string onto the given surface <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pSurface</em> </td><td>A pointer to the surface that will be drawn to </td></tr><tr><td valign=top><em>BoundingRect</em> </td><td>The <a class="el" href="classwGui_1_1CRect.html">CRect</a> to clip the rendered string to </td></tr><tr><td valign=top><em>OriginPoint</em> </td><td>The origin of the string </td></tr><tr><td valign=top><em>FontColor</em> </td><td>The color to draw the string in </td></tr></table></dl><p>Definition at line <a class="el" href="wg__renderedstring_8cpp-source.html#l00050">50</a> of file <a class="el" href="wg__renderedstring_8cpp-source.html">wg_renderedstring.cpp</a>.<p>References <a class="el" href="wg__color_8h-source.html#l00041">wGui::CRGBColor::blue</a>, <a class="el" href="wg__painter_8cpp-source.html#l00177">wGui::CPainter::DrawPoint()</a>, <a class="el" href="wg__renderedstring_8cpp-source.html#l00106">GetMetrics()</a>, <a class="el" href="wg__color_8h-source.html#l00040">wGui::CRGBColor::green</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00103">m_MaskChar</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00101">m_pFontEngine</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00102">m_sString</a>, <a class="el" href="wg__color_8h-source.html#l00039">wGui::CRGBColor::red</a>, and <a class="el" href="wg__fontengine_8cpp-source.html#l00064">wGui::CFontEngine::RenderGlyph()</a>. </td> </tr></table><a name="a3" doxytag="wGui::CRenderedString::GetLength"></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::CRenderedString::GetLength </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the length of the rendered string in characters <dl compact><dt><b>Returns: </b></dt><dd>The length of the string </dl><p>Definition at line <a class="el" href="wg__renderedstring_8h-source.html#l00089">89</a> of file <a class="el" href="wg__renderedstring_8h-source.html">wg_renderedstring.h</a>.<p>References <a class="el" href="wg__renderedstring_8h-source.html#l00102">m_sString</a>. </td> </tr></table><a name="a4" doxytag="wGui::CRenderedString::GetMaxFontHeight"></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::CRenderedString::GetMaxFontHeight </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the maximum height of the font, ASCII characters 0-255 <dl compact><dt><b>Returns: </b></dt><dd>The max height of the font </dl><p>Definition at line <a class="el" href="wg__renderedstring_8cpp-source.html#l00086">86</a> of file <a class="el" href="wg__renderedstring_8cpp-source.html">wg_renderedstring.cpp</a>.<p>References <a class="el" href="wg__fontengine_8cpp-source.html#l00087">wGui::CFontEngine::GetMetrics()</a>, and <a class="el" href="wg__renderedstring_8h-source.html#l00101">m_pFontEngine</a>. </td> </tr></table><a name="a2" doxytag="wGui::CRenderedString::GetMetrics"></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::CRenderedString::GetMetrics </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> * </td> <td class="mdname" nowrap> <em>pBoundedDimensions</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> * </td> <td class="mdname" nowrap> <em>pOriginOffset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::vector< <a class="el" href="classwGui_1_1CRect.html">CRect</a> > * </td> <td class="mdname" nowrap> <em>pCharacterRects</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get some metrics for the rendered string <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pBoundedDimensions</em> </td><td>A pointer to a <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> object that will receive the width and height of the rendered string </td></tr><tr><td valign=top><em>pOriginOffset</em> </td><td>A pointer to a <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> object that will receive the offset of the top left corner of the rendered string from the origin of the string </td></tr><tr><td valign=top><em>pCharacterRects</em> </td><td>A pointer to a <a class="el" href="classwGui_1_1CRect.html">CRect</a> vector that will receive CRects that contain each character. The corrdinates are in reference to the top left corner of the string as a whole </td></tr></table></dl><p>Definition at line <a class="el" href="wg__renderedstring_8cpp-source.html#l00106">106</a> of file <a class="el" href="wg__renderedstring_8cpp-source.html">wg_renderedstring.cpp</a>.<p>References <a class="el" href="wg__fontengine_8cpp-source.html#l00087">wGui::CFontEngine::GetMetrics()</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s8s5">HALIGN_CENTER</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s8s4">HALIGN_LEFT</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s8s6">HALIGN_RIGHT</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00103">m_MaskChar</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00101">m_pFontEngine</a>, <a class="el" href="wg__renderedstring_8h-source.html#l00102">m_sString</a>, <a class="el" href="wg__point_8h-source.html#l00057">wGui::CPoint::SetX()</a>, <a class="el" href="wg__point_8h-source.html#l00061">wGui::CPoint::SetY()</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s7s3">VALIGN_BOTTOM</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s7s1">VALIGN_CENTER</a>, <a class="el" href="classwGui_1_1CRenderedString.html#s7s0">VALIGN_NORMAL</a>, and <a class="el" href="classwGui_1_1CRenderedString.html#s7s2">VALIGN_TOP</a>.<p>Referenced by <a class="el" href="wg__renderedstring_8cpp-source.html#l00050">Draw()</a>. </td> </tr></table><a name="a5" doxytag="wGui::CRenderedString::SetMaskChar"></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::CRenderedString::SetMaskChar </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname1" valign="top" nowrap> <em>MaskChar</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set the mask character <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MaskChar</em> </td><td>Character to use as the mask </td></tr></table></dl><p>Definition at line <a class="el" href="wg__renderedstring_8h-source.html#l00097">97</a> of file <a class="el" href="wg__renderedstring_8h-source.html">wg_renderedstring.h</a>.<p>References <a class="el" href="wg__renderedstring_8h-source.html#l00103">m_MaskChar</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__renderedstring_8h-source.html">wg_renderedstring.h</a><li><a class="el" href="wg__renderedstring_8cpp-source.html">wg_renderedstring.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 + -