implemented textwidth calculation
removed all the glutBitmap references by the Font instance recreated documentation + widget screenshots git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2230 8e941d3f-bd1b-0410-a28a-d453659cc2b4
@ -27,6 +27,11 @@
|
||||
<td></td>
|
||||
<td><p><a href="../glfreetype/tglfreetypefont.print.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.print.html'; return false;">Print</a></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p> </p></td>
|
||||
<td></td>
|
||||
<td><p><a href="../glfreetype/tglfreetypefont.textwidth.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.textwidth.html'; return false;">TextWidth</a></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -23,6 +23,11 @@
|
||||
<td><p></p></td>
|
||||
<td nowrap="nowrap"><p><a href="../glfreetype/tglfreetypefont.print.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.print.html'; return false;">Print</a> (<a href="../glfreetype/tglfreetypefont.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.html'; return false;">TGLFreeTypeFont</a>)</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p> </p></td>
|
||||
<td><p></p></td>
|
||||
<td nowrap="nowrap"><p><a href="../glfreetype/tglfreetypefont.textwidth.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.textwidth.html'; return false;">TextWidth</a> (<a href="../glfreetype/tglfreetypefont.html" onClick="opener.location.href = '../glfreetype/tglfreetypefont.html'; return false;">TGLFreeTypeFont</a>)</p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.Clean</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 28</p>
|
||||
<p>Source position: glfreetype.pas line 31</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">procedure</span> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>Clean<span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.Height</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 19</p>
|
||||
<p>Source position: glfreetype.pas line 22</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>Height<span class="sym">: </span>Cardinal<span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<p>[<a href="../glfreetype/tglfreetypefont-1.html" onClick="window.open('../glfreetype/tglfreetypefont-1.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Properties</a> (<a href="../glfreetype/tglfreetypefont-2.html" onClick="window.open('../glfreetype/tglfreetypefont-2.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../glfreetype/tglfreetypefont-3.html" onClick="window.open('../glfreetype/tglfreetypefont-3.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Methods</a> (<a href="../glfreetype/tglfreetypefont-4.html" onClick="window.open('../glfreetype/tglfreetypefont-4.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../glfreetype/tglfreetypefont-5.html" onClick="window.open('../glfreetype/tglfreetypefont-5.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Events</a> (<a href="../glfreetype/tglfreetypefont-6.html" onClick="window.open('../glfreetype/tglfreetypefont-6.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] </p>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 18</p>
|
||||
<p>Source position: glfreetype.pas line 21</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">type</span> TGLFreeTypeFont <span class="sym">=</span> <span class="kw">object</span></span></tt></p></td>
|
||||
@ -41,6 +41,9 @@
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">procedure </span><a href="../glfreetype/tglfreetypefont.print.html">Print</a><span class="sym">();</span></span></tt></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">function </span><a href="../glfreetype/tglfreetypefont.textwidth.html">TextWidth</a><span class="sym">();</span></span></tt></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">end</span><span class="sym">;</span></span></tt></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.Init</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 25</p>
|
||||
<p>Source position: glfreetype.pas line 28</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">procedure</span> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>Init<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.list_base</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 21</p>
|
||||
<p>Source position: glfreetype.pas line 24</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>list_base<span class="sym">: </span>GLuint<span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.Print</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 33</p>
|
||||
<p>Source position: glfreetype.pas line 36</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">procedure</span> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>Print<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>TGLFreeTypeFont.textures</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: glfreetype.pas line 20</p>
|
||||
<p>Source position: glfreetype.pas line 23</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <a href="../glfreetype/tglfreetypefont.html">TGLFreeTypeFont</a><span class="sym">.</span>textures<span class="sym">: </span>pGLuint<span class="sym">;</span></span></tt></p></td>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 1017 B |
@ -3,15 +3,21 @@
|
||||
::a separate file
|
||||
::the crop application is located in ./utils
|
||||
|
||||
crop widget_test.png 7 30 150 70 label.png
|
||||
crop widget_test.png 7 70 170 100 button.png
|
||||
crop widget_test.png 7 100 385 162 checkbutton.bmp
|
||||
crop widget_test.png 7 162 375 222 radiobutton.bmp
|
||||
crop widget_test.png 7 222 120 252 horizontal_slider.png
|
||||
crop widget_test.png 7 252 108 309 listbox.png
|
||||
crop widget_test.png 104 252 233 309 combobox.png
|
||||
crop widget_test.png 7 309 235 340 line_edit.png
|
||||
crop widget_test.png 7 340 242 407 panel.png
|
||||
crop widget_test.png 7 414 242 480 frame.png
|
||||
crop widget_test.png 4 478 74 542 listitem.png
|
||||
crop widget_test.png 4 540 112 649 textureview.bmp
|
||||
crop widget_test.png 7 32 152 79 label.png
|
||||
crop widget_test.png 7 79 182 109 button.png
|
||||
crop widget_test.png 7 121 406 180 checkbutton.bmp
|
||||
crop widget_test.png 7 190 394 251 radiobutton.bmp
|
||||
crop widget_test.png 7 249 117 279 horizontal_slider.png
|
||||
crop widget_test.png 7 279 118 348 listbox.png
|
||||
crop widget_test.png 116 279 255 348 combobox.png
|
||||
crop widget_test.png 7 348 235 383 line_edit.png
|
||||
crop widget_test.png 7 383 262 458 panel.png
|
||||
crop widget_test.png 7 458 262 537 frame.png
|
||||
crop widget_test.png 4 537 75 618 listitem.png
|
||||
crop widget_test.png 4 615 114 724 textureview.bmp
|
||||
|
||||
del checkbutton.bmp
|
||||
del radiobutton.bmp
|
||||
del textureview.bmp
|
||||
|
||||
ren *.bmp *.png
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 34 KiB |
@ -16,7 +16,7 @@
|
||||
<h1>cBase</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 19</p>
|
||||
<p>Source position: nvglwidgets.pas line 21</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cBase <span class="sym">=</span> <span class="num">0</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cBool</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 20</p>
|
||||
<p>Source position: nvglwidgets.pas line 22</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cBool <span class="sym">=</span> <span class="num">4</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cFont</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 22</p>
|
||||
<p>Source position: nvglwidgets.pas line 24</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cFont <span class="sym">=</span> <span class="num">12</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cFontBack</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 23</p>
|
||||
<p>Source position: nvglwidgets.pas line 25</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cFontBack <span class="sym">=</span> <span class="num">16</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cNbColors</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 25</p>
|
||||
<p>Source position: nvglwidgets.pas line 27</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cNbColors <span class="sym">=</span> <span class="num">24</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cOutline</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 21</p>
|
||||
<p>Source position: nvglwidgets.pas line 23</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cOutline <span class="sym">=</span> <span class="num">8</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cTexViewWidgetFSSource</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 96</p>
|
||||
<p>Source position: nvglwidgets.pas line 98</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cTexViewWidgetFSSource <span class="sym">=</span> <span class="str">'#version 120'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform float mipLevel /*= 0*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform float texelScale /*= 1.0*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform float texelOffset /*= 0.0*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform ivec4 texelSwizzling /*= ivec4( 0, 1, 2, 3)*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform sampler2D samp;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'void main()'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'{'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' vec4 texel;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' if (mipLevel > 0)'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' texel = texture2DLod( samp, gl_TexCoord[0].xy, mipLevel);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' else'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' texel = texture2D( samp, gl_TexCoord[0].xy);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' texel = texel * texelScale + texelOffset;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor = texel.x * vec4( texelSwizzling.x == 0, texelSwizzling.y == 0, texelSwizzling.z == 0, texelSwizzling.w == 0 );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor += texel.y * vec4( texelSwizzling.x == 1, texelSwizzling.y == 1, texelSwizzling.z == 1, texelSwizzling.w == 1 );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor += texel.z * vec4( texelSwizzling.x == 2, texelSwizzling.y == 2, texelSwizzling.z == 2, texelSwizzling.w == 2 );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor += texel.w * vec4( texelSwizzling.x == 3, texelSwizzling.y == 3, texelSwizzling.z == 3, texelSwizzling.w == 3 );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'}'</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cTranslucent</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 24</p>
|
||||
<p>Source position: nvglwidgets.pas line 26</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cTranslucent <span class="sym">=</span> <span class="num">20</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cWidgetFSSource</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 76</p>
|
||||
<p>Source position: nvglwidgets.pas line 78</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cWidgetFSSource <span class="sym">=</span> <span class="str">'#version 120'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform vec4 fillColor /*= vec4( 1.0, 0.0,0.0,1.0)*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform vec4 borderColor /*= vec4( 1.0, 1.0,1.0,1.0)*/;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'uniform vec2 zones;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'void main()'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'{'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float doTurn = float(gl_TexCoord[0].y > 0);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float radiusOffset = doTurn * abs( gl_TexCoord[0].z );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float turnDir = sign( gl_TexCoord[0].z );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' vec2 uv = vec2(gl_TexCoord[0].x + turnDir*radiusOffset, gl_TexCoord[0].y);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float l = abs( length(uv) - radiusOffset );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float a = clamp( l - zones.x, 0.0, 2.0);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' float b = clamp( l - zones.y, 0.0, 2.0);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' b = exp2(-2.0*b*b);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor = ( fillColor * b + (1.0-b)*borderColor );'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_FragColor.a *= exp2(-2.0*a*a);'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'}'</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>cWidgetVSSource</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 66</p>
|
||||
<p>Source position: nvglwidgets.pas line 68</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">const</span> cWidgetVSSource <span class="sym">=</span> <span class="str">'#version 120'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">'void main()'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'{'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="str">' gl_TexCoord[0] = gl_MultiTexCoord0;'</span> <span class="sym">+</span> LineEnding <span class="sym">+</span> <span class="chr">'}'</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter._begin</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 129</p>
|
||||
<p>Source position: nvglwidgets.pas line 131</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>_begin<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter._end</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 130</p>
|
||||
<p>Source position: nvglwidgets.pas line 132</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>_end<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.Create</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 126</p>
|
||||
<p>Source position: nvglwidgets.pas line 128</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">constructor</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>Create<span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,10 +16,10 @@
|
||||
<h1>GLUIPainter.Destroy</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 127</p>
|
||||
<p>Source position: nvglwidgets.pas line 129</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">destructor</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>Destroy<span class="sym">;</span></span></tt></p></td>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">destructor</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>Destroy<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawBoolFrame</h1>
|
||||
<p>Draw bool frame primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 184</p>
|
||||
<p>Source position: nvglwidgets.pas line 186</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawBoolFrame<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawButton</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 139</p>
|
||||
<p>Source position: nvglwidgets.pas line 141</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawButton<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawCheckButton</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 142</p>
|
||||
<p>Source position: nvglwidgets.pas line 144</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawCheckButton<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawCircle</h1>
|
||||
<p>Draw circle primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 189</p>
|
||||
<p>Source position: nvglwidgets.pas line 191</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawCircle<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawComboBox</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 158</p>
|
||||
<p>Source position: nvglwidgets.pas line 160</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawComboBox<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawComboOptions</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 159</p>
|
||||
<p>Source position: nvglwidgets.pas line 161</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawComboOptions<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawDebugRect</h1>
|
||||
<p>Draw a rectangle for debugging purposes</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 179</p>
|
||||
<p>Source position: nvglwidgets.pas line 181</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawDebugRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawDownArrow</h1>
|
||||
<p>Draw down arrow primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 192</p>
|
||||
<p>Source position: nvglwidgets.pas line 194</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawDownArrow<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawHorizontalSlider</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 148</p>
|
||||
<p>Source position: nvglwidgets.pas line 150</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawHorizontalSlider<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawLabel</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 136</p>
|
||||
<p>Source position: nvglwidgets.pas line 138</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawLabel<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawLineEdit</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 162</p>
|
||||
<p>Source position: nvglwidgets.pas line 164</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawLineEdit<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawListBox</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 154</p>
|
||||
<p>Source position: nvglwidgets.pas line 156</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawListBox<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawListItem</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 151</p>
|
||||
<p>Source position: nvglwidgets.pas line 153</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawListItem<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawMinus</h1>
|
||||
<p>Draw minus primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 190</p>
|
||||
<p>Source position: nvglwidgets.pas line 192</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawMinus<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawPanel</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 165</p>
|
||||
<p>Source position: nvglwidgets.pas line 167</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawPanel<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawPlus</h1>
|
||||
<p>Draw plus primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 191</p>
|
||||
<p>Source position: nvglwidgets.pas line 193</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawPlus<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawRadioButton</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 145</p>
|
||||
<p>Source position: nvglwidgets.pas line 147</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawRadioButton<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawRect</h1>
|
||||
<p>Draw rectangle primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 186</p>
|
||||
<p>Source position: nvglwidgets.pas line 188</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawRoundedRect</h1>
|
||||
<p>Draw rouded rectangle primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 187</p>
|
||||
<p>Source position: nvglwidgets.pas line 189</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawRoundedRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawRoundedRectOutline</h1>
|
||||
<p>Draw rouded rectangle outline primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 188</p>
|
||||
<p>Source position: nvglwidgets.pas line 190</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawRoundedRectOutline<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawString</h1>
|
||||
<p>Draw multi-line text primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 185</p>
|
||||
<p>Source position: nvglwidgets.pas line 187</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawString<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawText</h1>
|
||||
<p>Draw text with rectangle primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 182</p>
|
||||
<p>Source position: nvglwidgets.pas line 184</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawText<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawTextureView</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 168</p>
|
||||
<p>Source position: nvglwidgets.pas line 170</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawTextureView<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.drawUpArrow</h1>
|
||||
<p>Draw up arrow primitive</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 193</p>
|
||||
<p>Source position: nvglwidgets.pas line 195</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>drawUpArrow<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getButtonRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 138</p>
|
||||
<p>Source position: nvglwidgets.pas line 140</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getButtonRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getCanvasMargin</h1>
|
||||
<p>Evaluate canvas margin</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 171</p>
|
||||
<p>Source position: nvglwidgets.pas line 173</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getCanvasMargin<span class="sym">: </span>Integer<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getCanvasSpace</h1>
|
||||
<p>Evaluate canvas space</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 172</p>
|
||||
<p>Source position: nvglwidgets.pas line 174</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getCanvasSpace<span class="sym">: </span>Integer<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getCheckRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 141</p>
|
||||
<p>Source position: nvglwidgets.pas line 143</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getCheckRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getComboOptionsRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 157</p>
|
||||
<p>Source position: nvglwidgets.pas line 159</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getComboOptionsRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getComboRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 156</p>
|
||||
<p>Source position: nvglwidgets.pas line 158</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getComboRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getFontHeight</h1>
|
||||
<p>Evaluate font height</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 173</p>
|
||||
<p>Source position: nvglwidgets.pas line 175</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getFontHeight<span class="sym">: </span>Integer<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getHorizontalSliderRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 147</p>
|
||||
<p>Source position: nvglwidgets.pas line 149</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getHorizontalSliderRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getItemRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 150</p>
|
||||
<p>Source position: nvglwidgets.pas line 152</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getItemRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getLabelRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 135</p>
|
||||
<p>Source position: nvglwidgets.pas line 137</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getLabelRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getLineEditRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 161</p>
|
||||
<p>Source position: nvglwidgets.pas line 163</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getLineEditRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getListRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 153</p>
|
||||
<p>Source position: nvglwidgets.pas line 155</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getListRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getPanelRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 164</p>
|
||||
<p>Source position: nvglwidgets.pas line 166</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getPanelRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getPickedCharNb</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 177</p>
|
||||
<p>Source position: nvglwidgets.pas line 179</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getPickedCharNb<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getRadioRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 144</p>
|
||||
<p>Source position: nvglwidgets.pas line 146</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getRadioRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getTextLineWidth</h1>
|
||||
<p>Evaluate text width</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 174</p>
|
||||
<p>Source position: nvglwidgets.pas line 176</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getTextLineWidth<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getTextLineWidthAt</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 176</p>
|
||||
<p>Source position: nvglwidgets.pas line 178</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getTextLineWidthAt<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getTextSize</h1>
|
||||
<p>Evaluate text size</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 175</p>
|
||||
<p>Source position: nvglwidgets.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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getTextSize<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.getTextureViewRect</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 167</p>
|
||||
<p>Source position: nvglwidgets.pas line 169</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="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>getTextureViewRect<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<p>[<a href="../nvglwidgets/gluipainter-1.html" onClick="window.open('../nvglwidgets/gluipainter-1.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Properties</a> (<a href="../nvglwidgets/gluipainter-2.html" onClick="window.open('../nvglwidgets/gluipainter-2.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../nvglwidgets/gluipainter-3.html" onClick="window.open('../nvglwidgets/gluipainter-3.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Methods</a> (<a href="../nvglwidgets/gluipainter-4.html" onClick="window.open('../nvglwidgets/gluipainter-4.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../nvglwidgets/gluipainter-5.html" onClick="window.open('../nvglwidgets/gluipainter-5.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Events</a> (<a href="../nvglwidgets/gluipainter-6.html" onClick="window.open('../nvglwidgets/gluipainter-6.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] </p>
|
||||
<p>OpenGL painter class</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 123</p>
|
||||
<p>Source position: nvglwidgets.pas line 125</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">type</span> GLUIPainter <span class="sym">=</span> <span class="kw">class</span><span class="sym">(</span><a href="../nvwidgets/uipainter.html">UIPainter</a><span class="sym">)</span></span></tt></p></td>
|
||||
@ -29,7 +29,7 @@
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">constructor </span><a href="../nvglwidgets/gluipainter.create.html">Create</a><span class="sym">;</span></span></tt></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">destructor </span><a href="../nvglwidgets/gluipainter.destroy.html">Destroy</a><span class="sym">;</span></span></tt></p></td>
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">destructor </span><a href="../nvglwidgets/gluipainter.destroy.html">Destroy</a><span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><p><tt><span class="code"> <span class="kw">procedure </span><a href="../nvglwidgets/gluipainter._begin.html">_begin</a><span class="sym">();</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>GLUIPainter.init</h1>
|
||||
<p>Initialization method of the painter class</p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvglwidgets.pas line 195</p>
|
||||
<p>Source position: nvglwidgets.pas line 197</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvglwidgets/gluipainter.html">GLUIPainter</a><span class="sym">.</span>init<span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>CompileASMShader</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvshaderutils.pas line 20</p>
|
||||
<p>Source position: nvshaderutils.pas line 22</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">function</span> CompileASMShader<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>CompileASMShaderFromFile</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvshaderutils.pas line 21</p>
|
||||
<p>Source position: nvshaderutils.pas line 23</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">function</span> CompileASMShaderFromFile<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>CompileGLSLShader</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvshaderutils.pas line 16</p>
|
||||
<p>Source position: nvshaderutils.pas line 18</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">function</span> CompileGLSLShader<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<h1>CompileGLSLShaderFromFile</h1>
|
||||
<p></p>
|
||||
<h2>Declaration</h2>
|
||||
<p>Source position: nvshaderutils.pas line 17</p>
|
||||
<p>Source position: nvshaderutils.pas line 19</p>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><p><tt><span class="code"><span class="kw">function</span> CompileGLSLShaderFromFile<span class="sym">(</span></span></tt></p></td>
|
||||
|
@ -15,6 +15,9 @@ uses
|
||||
//This holds all of the information related to any
|
||||
//freetype font that we want to create.
|
||||
type
|
||||
|
||||
{ TGLFreeTypeFont }
|
||||
|
||||
TGLFreeTypeFont = object
|
||||
Height: cardinal; //< Holds the height of the font.
|
||||
textures: pGLuint; //< Holds the texture id's
|
||||
@ -31,6 +34,8 @@ type
|
||||
//out text at window coordinates x, y, using the font ft_font.
|
||||
//The current modelview matrix will also be applied to the text.
|
||||
procedure Print(x, y: double; Text: string);
|
||||
|
||||
function TextWidth(const Text: string): integer;
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -38,6 +43,10 @@ implementation
|
||||
const
|
||||
CHAR_NUM = 255;
|
||||
|
||||
var
|
||||
//this is the cached advance of each glyph in pixels
|
||||
glyphadvance: array[0..CHAR_NUM - 1] of LongInt;
|
||||
|
||||
//This function gets the first power of 2 >= the
|
||||
//int that we pass it.
|
||||
function next_p2(a: integer): integer; inline;
|
||||
@ -169,8 +178,8 @@ begin
|
||||
glTranslatef(face^.glyph^.advance.x shr 6, 0, 0);
|
||||
|
||||
//increment the raster position as if we were a bitmap font.
|
||||
//(only needed if you want to calculate text length)
|
||||
glBitmap(0, 0, 0, 0, face^.glyph^.advance.x shr 6, 0, nil);
|
||||
//(needed if you want to calculate text length)
|
||||
glyphadvance[Ord(ch)] := face^.glyph^.advance.x shr 6;
|
||||
|
||||
//Finish the display list
|
||||
glEndList;
|
||||
@ -263,9 +272,9 @@ var
|
||||
font: GLuint;
|
||||
modelview_matrix: array [0..15] of double;
|
||||
begin
|
||||
//We want a coordinate system where things coresponding to window pixels.
|
||||
pushScreenCoordinateMatrix;
|
||||
|
||||
//We want a coordinate system where things coresponding to window pixels.
|
||||
font := list_base;
|
||||
|
||||
//Results Are Stored In Text
|
||||
@ -303,5 +312,14 @@ begin
|
||||
pop_projection_matrix;
|
||||
end;
|
||||
|
||||
function TGLFreeTypeFont.TextWidth(const Text: string): integer;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
Result := 0;
|
||||
for i := 1 to Length(Text) do
|
||||
Result += glyphadvance[Ord(Text[i])];
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
@ -797,20 +797,12 @@ end;
|
||||
|
||||
function GLUIPainter.getFontHeight: integer;
|
||||
begin
|
||||
Result := Font.Height;
|
||||
exit;
|
||||
Result := 12 + 4;
|
||||
Result := Font.Height + 4;
|
||||
end;
|
||||
|
||||
function GLUIPainter.getTextLineWidth(const Text: string): integer;
|
||||
var
|
||||
w: integer = 0;
|
||||
i: integer;
|
||||
begin
|
||||
for i := 1 to Length(Text) do
|
||||
w := w + glutBitmapWidth(GLUT_BITMAP_HELVETICA_12, Ord(Text[i]));
|
||||
|
||||
Result := w + 2;
|
||||
Result := Font.TextWidth(Text) + 2;
|
||||
end;
|
||||
|
||||
function GLUIPainter.getTextSize(const Text: string; out nbLines: integer): integer;
|
||||
@ -842,7 +834,7 @@ begin
|
||||
for i := 0 to charNb - 1 do
|
||||
begin
|
||||
if (Text[i] <> #13) and (Text[i + 1] <> #10) then
|
||||
w := w + glutBitmapWidth(GLUT_BITMAP_HELVETICA_12, Ord(Text[i]))
|
||||
w := w + Font.TextWidth(Text[i])
|
||||
else
|
||||
begin
|
||||
Result := w + 1;
|
||||
@ -870,7 +862,7 @@ begin
|
||||
i := 0;
|
||||
while (i <= Length(Text)) and (Text[i] <> #13) and (Text[i + 1] <> #10) do
|
||||
begin
|
||||
w := w + glutBitmapWidth(GLUT_BITMAP_HELVETICA_12, Ord(Text[i]));
|
||||
w := w + Font.TextWidth(Text[i]);
|
||||
if at.x < w then
|
||||
begin
|
||||
Result := i - textstart;
|
||||
@ -933,7 +925,7 @@ end;
|
||||
|
||||
procedure GLUIPainter.drawString(x: integer; y: integer; Text: string; nbLines: integer);
|
||||
begin
|
||||
Font.Print(x, y, Text);
|
||||
Font.Print(x, y + 2, Text);
|
||||
end;
|
||||
|
||||
procedure GLUIPainter.drawRect(aRect: Rect; fillColorId: integer; borderColorId: integer);
|
||||
|