
removed footer date for the time being (to prevent too much changes in documentation) implemented cleaning of GLUT bitmap font lists removed unused function in uicontext class renamed chm file added missing documentation back in nvcontext.xml git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2254 8e941d3f-bd1b-0410-a28a-d453659cc2b4
40 lines
1.9 KiB
HTML
40 lines
1.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
<title>GLUIPainter.getTextSize</title>
|
|
<link rel="stylesheet" href="../fpdoc.css" type="text/css">
|
|
|
|
</head>
|
|
<body>
|
|
<table class="bar" width="100%" border="0" cellpadding="4" cellspacing="0">
|
|
<tr>
|
|
<td><b>[<a href="../nvglpainter/index.html">Overview</a>][<a href="../nvglpainter/index-2.html">Constants</a>][<a href="../nvglpainter/index-4.html">Classes</a>][<a href="../nvglpainter/index-8.html">Index</a>]</b></td>
|
|
<td align="right"><span class="bartitle">Reference for unit 'nvGLPainter' (<a href="../index.html">#nvidia-widgets</a>)</span></td>
|
|
</tr>
|
|
</table>
|
|
<h1>GLUIPainter.getTextSize</h1>
|
|
<p>Evaluate text size</p>
|
|
<h2>Declaration</h2>
|
|
<p>Source position: nvglpainter.pas line 177</p>
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">function</span> <a href="../nvglpainter/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getTextSize<span class="sym">(</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">const </span>Text<span class="sym">: </span><span class="sym">;</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">out </span>nbLines<span class="sym">: </span>Integer</span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"><span class="sym">):</span>Integer<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
|
</tr>
|
|
</table>
|
|
<h2>Function result</h2>
|
|
<p>Text width of widest line</p>
|
|
<h2>Description</h2>
|
|
<p><var>getTextSize</var> evaluates a string, it will calculate the number of lines it consists of and will return the length in pixels of the longest line.</p>
|
|
</body>
|
|
</html>
|