Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 936

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_Font::bounding_rect - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_Font::bounding_rect</h1>
<p>  Calculate the rectangle that would be occupied by a draw operation.</p>
<pre>
	CL_Rect bounding_rect(
		int x, int y, const std::string& str);

	CL_Rect bounding_rect(
		CL_Rect dest, const std::string& str);

	CL_Rect bounding_rect(
		int x, int y, std::string::const_iterator start, std::string::const_iterator end);

	CL_Rect bounding_rect(
		CL_Rect dest, std::string::const_iterator start, std::string::const_iterator end);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>str</i></dt><dd>The input string to process.</dd>
<dt><i>start</i></dt><dd>String position to begin processing at, inclusive.</dd>
<dt><i>end</i></dt><dd>String position to end processing at, exclusive.</dd>
<dt><i>x, y</i></dt><dd>Anchor position to simulate draw at. Actual position depends on the alignment mode.</dd>
<dt><i>dest</i></dt><dd>Rectangle to draw text in. The text will be word-wrapped against delimiters to fit inside the rectangle.</dd>
</dl>
<p><b>Detailed description:</b></p>  <p> You can specify a dest rectangle with a width or height of zero or less to disable word wrapping
  or height truncating, respectively. </p>
<p><b>See also:</b></p>
<p><a href="CL_Font.html">CL_Font</a> | <a href="CL_Rect.html">CL_Rect</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->