<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_GlyphBuffer::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_GlyphBuffer::bounding_rect</h1> <p> Returns the area that would be drawn to if a draw were performed.</p> <pre> CL_Rect bounding_rect( int x = 0, int y = 0, bool ignore_invis = true); CL_Rect bounding_rect( Range range, int x = 0, int y = 0, bool ignore_invis = true); CL_Rect bounding_rect( CL_Rect dest, bool ignore_invis = true); CL_Rect bounding_rect( Range range, CL_Rect dest, bool ignore_invis = true); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>x, y</i></dt><dd>Anchor position to start "drawing" at. Actual rendering position depends on the alignment mode.</dd> <dt><i>dest</i></dt><dd>Rectangle to render glyphs in. The glyphs will be positioned within the rectangle depending on the alignment mode.</dd> <dt><i>range</i></dt><dd>The subsection of the glyphs vector to use.</dd> <dt><i>ignore_invis</i></dt><dd>If true, ignores invisible glyphs (glyphs without an actual visual glyph in the font)</dd> </dl> <p><b>Return value:</b></p> <p>The area into which any pixels would be drawn. If buffer is empty, returns a rectangle with zero size.<br></p> <p><b>See also:</b></p> <p><a href="CL_Rect.html">CL_Rect</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 -->