Sophie

Sophie

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

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


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_GlyphBuffer::justify_left - 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_GlyphBuffer::justify_left</h1>
<p>  Rejustifies lines in the GlyphBuffer to the left.</p>
<pre>
	void justify_left(
		int left = 0);

	void justify_left(
		Range range, int left = 0);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>range</i></dt><dd>The subsection of the glyphs vector to change, which is expanded out both ways to contain at least one line.</dd>
<dt><i>left</i></dt><dd>The x coordinate of the vertical line that text should be moved up against.</dd>
</dl>
<p><b>Detailed description:</b></p>  <p> The CL_GlyphBuffer's contents (the glyphs vector, the font markers map, and the effects maps),
  if any, must not have been created/altered by anything but CL_Font::draw_to_gb() or CL_TextStyler::draw_to_gb()
  or the CL_GlyphBuffer justification functions or using CL_GlyphBuffer::remove to take glyphs off the end
  for this method to work.</p>
  <p> To preserve indentation, this method takes into account whitespace (glyphs not provided by the font) when justifying.</p>
<p><b>See also:</b></p>
<p><a href="CL_TextStyler.html">CL_TextStyler</a> | <a href="CL_Font.html">CL_Font</a> | <a href="CL_GlyphBuffer.html">CL_GlyphBuffer</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 -->