source: trunk/source/interfaces/html/classTextBuffer.html @ 818

Last change on this file since 818 was 571, checked in by garnier, 17 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

  • Property svn:mime-type set to text/html
File size: 31.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>TextBuffer class Reference</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5</head><body>
6<!-- Generated by Doxygen 1.3.4 -->
7<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8<h1>TextBuffer Class Reference</h1><a href="classTextBuffer-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
9<tr><td></td></tr>
10<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
11<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a0">TextBuffer</a> ()</td></tr>
12
13<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a1">~TextBuffer</a> ()</td></tr>
14
15<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a2">GetNumberOfLines</a> ()</td></tr>
16
17<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a3">SetHeightOfPage</a> (int a_height)</td></tr>
18
19<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a4">SetEndOfPage</a> (int a_value)</td></tr>
20
21<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a5">GetEndOfPage</a> ()</td></tr>
22
23<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a6">IncrementEndOfPage</a> ()</td></tr>
24
25<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a7">DecrementEndOfPage</a> ()</td></tr>
26
27<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a8">JumpDownEndOfPage</a> ()</td></tr>
28
29<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a9">JumpUpEndOfPage</a> ()</td></tr>
30
31<tr><td class="memItemLeft" nowrap align=right valign=top>G4bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a10">AppendString</a> (char *a_string)</td></tr>
32
33<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#a11">Draw</a> (HDC a_hdc, RECT *a_rect)</td></tr>
34
35<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
36<tr><td class="memItemLeft" nowrap align=right valign=top>G4String *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r0">lines</a></td></tr>
37
38<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r1">linen</a></td></tr>
39
40<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r2">linei</a></td></tr>
41
42<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r3">endOfPage</a></td></tr>
43
44<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r4">heightOfPage</a></td></tr>
45
46<tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classTextBuffer.html#r5">spaces</a> [256]</td></tr>
47
48</table>
49<hr><h2>Constructor &amp; Destructor Documentation</h2>
50<a class="anchor" name="a0" doxytag="TextBuffer::TextBuffer" ></a><p>
51<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
52  <tr>
53    <td class="mdRow">
54      <table cellpadding="0" cellspacing="0" border="0">
55        <tr>
56          <td class="md" nowrap valign="top"> TextBuffer::TextBuffer </td>
57          <td class="md" valign="top">(&nbsp;</td>
58          <td class="mdname1" valign="top" nowrap>          </td>
59          <td class="md" valign="top">&nbsp;)&nbsp;</td>
60          <td class="md" nowrap></td>
61        </tr>
62
63      </table>
64    </td>
65  </tr>
66</table>
67<table cellspacing=5 cellpadding=0 border=0>
68  <tr>
69    <td>
70      &nbsp;
71    </td>
72    <td>
73
74<p>
75
76<p>
77Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00081">81</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
78<p>
79References <a class="el" href="G4UIWin32_8cc-source.html#l00075">linen</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00074">lines</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00078">spaces</a>.
80<p>
81<div class="fragment"><pre>00082  : <a class="code" href="classTextBuffer.html#r2">linei</a>(0),<a class="code" href="classTextBuffer.html#r1">linen</a>(TEXT_MAX_LINES),<a class="code" href="classTextBuffer.html#r3">endOfPage</a>(0),<a class="code" href="classTextBuffer.html#r4">heightOfPage</a>(12)
8200083 {
8300084   <a class="code" href="classTextBuffer.html#r0">lines</a> = <span class="keyword">new</span> G4String[<a class="code" href="classTextBuffer.html#r1">linen</a>];
8400085   <span class="keywordflow">for</span>(<span class="keywordtype">int</span> count=0;count&lt;256;count++) <a class="code" href="classTextBuffer.html#r5">spaces</a>[count] = <span class="charliteral">' '</span>;
8500086 }
86</pre></div>    </td>
87  </tr>
88</table>
89<a class="anchor" name="a1" doxytag="TextBuffer::~TextBuffer" ></a><p>
90<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
91  <tr>
92    <td class="mdRow">
93      <table cellpadding="0" cellspacing="0" border="0">
94        <tr>
95          <td class="md" nowrap valign="top"> TextBuffer::~<a class="el" href="classTextBuffer.html">TextBuffer</a> </td>
96          <td class="md" valign="top">(&nbsp;</td>
97          <td class="mdname1" valign="top" nowrap>          </td>
98          <td class="md" valign="top">&nbsp;)&nbsp;</td>
99          <td class="md" nowrap></td>
100        </tr>
101
102      </table>
103    </td>
104  </tr>
105</table>
106<table cellspacing=5 cellpadding=0 border=0>
107  <tr>
108    <td>
109      &nbsp;
110    </td>
111    <td>
112
113<p>
114
115<p>
116Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00088">88</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
117<p>
118References <a class="el" href="G4UIWin32_8cc-source.html#l00074">lines</a>.
119<p>
120<div class="fragment"><pre>00089 {
12100090   <span class="keyword">delete</span> [] <a class="code" href="classTextBuffer.html#r0">lines</a>;
12200091 }
123</pre></div>    </td>
124  </tr>
125</table>
126<hr><h2>Member Function Documentation</h2>
127<a class="anchor" name="a10" doxytag="TextBuffer::AppendString" ></a><p>
128<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
129  <tr>
130    <td class="mdRow">
131      <table cellpadding="0" cellspacing="0" border="0">
132        <tr>
133          <td class="md" nowrap valign="top"> G4bool TextBuffer::AppendString </td>
134          <td class="md" valign="top">(&nbsp;</td>
135          <td class="md" nowrap valign="top">char *&nbsp;</td>
136          <td class="mdname1" valign="top" nowrap> <em>a_string</em>          </td>
137          <td class="md" valign="top">&nbsp;)&nbsp;</td>
138          <td class="md" nowrap></td>
139        </tr>
140
141      </table>
142    </td>
143  </tr>
144</table>
145<table cellspacing=5 cellpadding=0 border=0>
146  <tr>
147    <td>
148      &nbsp;
149    </td>
150    <td>
151
152<p>
153
154<p>
155Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00126">126</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
156<p>
157References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00075">linen</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00074">lines</a>.
158<p>
159<div class="fragment"><pre>00127 {
16000128   G4bool value = <span class="keyword">false</span>;
16100129   <span class="keywordflow">if</span>( (a_string==NULL) || (a_string[0]==<span class="charliteral">'\0'</span>) ) <span class="keywordflow">return</span> value;
16200130   <span class="keywordtype">int</span> length = strlen(a_string);
16300131   <span class="keywordflow">if</span>(a_string[length-1]==<span class="charliteral">'\n'</span>) {
16400132     <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>] += a_string;
16500133     <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>] = <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>].strip(G4String::trailing,<span class="charliteral">'\n'</span>);
16600134     <a class="code" href="classTextBuffer.html#r2">linei</a>++;
16700135     value = <span class="keyword">true</span>;
16800136   } <span class="keywordflow">else</span> {
16900137     <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>] += a_string;
17000138   }
17100139   <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r2">linei</a>&gt;=<a class="code" href="classTextBuffer.html#r1">linen</a>) {
17200140     <span class="keywordflow">for</span>(<span class="keywordtype">int</span> count=0;count&lt;<a class="code" href="classTextBuffer.html#r1">linen</a>;count++) {
17300141       <a class="code" href="classTextBuffer.html#r0">lines</a>[count] = <span class="stringliteral">""</span>;
17400142     }
17500143     <a class="code" href="classTextBuffer.html#r2">linei</a> = 0;
17600144   }
17700145   <span class="keywordflow">if</span>(value==<span class="keyword">true</span>) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = <a class="code" href="classTextBuffer.html#r2">linei</a>-1;
17800146   <span class="keywordflow">return</span> value;
17900147 }
180</pre></div>    </td>
181  </tr>
182</table>
183<a class="anchor" name="a7" doxytag="TextBuffer::DecrementEndOfPage" ></a><p>
184<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
185  <tr>
186    <td class="mdRow">
187      <table cellpadding="0" cellspacing="0" border="0">
188        <tr>
189          <td class="md" nowrap valign="top"> void TextBuffer::DecrementEndOfPage </td>
190          <td class="md" valign="top">(&nbsp;</td>
191          <td class="mdname1" valign="top" nowrap>          </td>
192          <td class="md" valign="top">&nbsp;)&nbsp;</td>
193          <td class="md" nowrap></td>
194        </tr>
195
196      </table>
197    </td>
198  </tr>
199</table>
200<table cellspacing=5 cellpadding=0 border=0>
201  <tr>
202    <td>
203      &nbsp;
204    </td>
205    <td>
206
207<p>
208
209<p>
210Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00108">108</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
211<p>
212References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>.
213<p>
214Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
215<p>
216<div class="fragment"><pre>00109 {
21700110   <a class="code" href="classTextBuffer.html#r3">endOfPage</a>--;
21800111   <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>&lt;0) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = 0;
21900112 }
220</pre></div>    </td>
221  </tr>
222</table>
223<a class="anchor" name="a11" doxytag="TextBuffer::Draw" ></a><p>
224<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
225  <tr>
226    <td class="mdRow">
227      <table cellpadding="0" cellspacing="0" border="0">
228        <tr>
229          <td class="md" nowrap valign="top"> void TextBuffer::Draw </td>
230          <td class="md" valign="top">(&nbsp;</td>
231          <td class="md" nowrap valign="top">HDC&nbsp;</td>
232          <td class="mdname" nowrap> <em>a_hdc</em>, </td>
233        </tr>
234        <tr>
235          <td></td>
236          <td></td>
237          <td class="md" nowrap>RECT *&nbsp;</td>
238          <td class="mdname" nowrap> <em>a_rect</em></td>
239        </tr>
240        <tr>
241          <td></td>
242          <td class="md">)&nbsp;</td>
243          <td class="md" colspan="2"></td>
244        </tr>
245
246      </table>
247    </td>
248  </tr>
249</table>
250<table cellspacing=5 cellpadding=0 border=0>
251  <tr>
252    <td>
253      &nbsp;
254    </td>
255    <td>
256
257<p>
258
259<p>
260Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00149">149</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
261<p>
262References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00077">heightOfPage</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00074">lines</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00078">spaces</a>.
263<p>
264Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
265<p>
266<div class="fragment"><pre>00150 {
26700151   TEXTMETRIC tm;
26800152   GetTextMetrics (a_hdc,&amp;tm);
26900153   <span class="keywordtype">short</span> charWidth = (<span class="keywordtype">short</span>)tm.tmAveCharWidth;
27000154   <span class="keywordtype">short</span> charHeight = (<span class="keywordtype">short</span>)(tm.tmHeight + tm.tmExternalLeading);
27100155   <span class="keywordflow">for</span>(<span class="keywordtype">int</span> row=0;row&lt;<a class="code" href="classTextBuffer.html#r4">heightOfPage</a>;row++) {
27200156     <span class="keywordtype">int</span> rowi = <a class="code" href="classTextBuffer.html#r3">endOfPage</a> - row;
27300157     <span class="keywordtype">short</span> y = (<span class="keywordtype">short</span>)(a_rect-&gt;bottom - charHeight * (row + 1));
27400158     <span class="keywordflow">if</span>((rowi&gt;=0)&amp;&amp;(rowi&lt;<a class="code" href="classTextBuffer.html#r2">linei</a>)) {
27500159       TextOut (a_hdc,0,y,(<span class="keywordtype">char</span>*)spaces,256); <span class="comment">//Clear text background first.</span>
27600160       <span class="keyword">const</span> <span class="keywordtype">char</span>* string = <a class="code" href="classTextBuffer.html#r0">lines</a>[rowi].data();
27700161       <span class="keywordflow">if</span>(string!=NULL) {
27800162         TextOut (a_hdc,0,y,(<span class="keywordtype">char</span>*)string,strlen((<span class="keywordtype">char</span>*)string));
27900163       }
28000164     }
28100165   }
28200166 }
283</pre></div>    </td>
284  </tr>
285</table>
286<a class="anchor" name="a5" doxytag="TextBuffer::GetEndOfPage" ></a><p>
287<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
288  <tr>
289    <td class="mdRow">
290      <table cellpadding="0" cellspacing="0" border="0">
291        <tr>
292          <td class="md" nowrap valign="top"> int TextBuffer::GetEndOfPage </td>
293          <td class="md" valign="top">(&nbsp;</td>
294          <td class="mdname1" valign="top" nowrap>          </td>
295          <td class="md" valign="top">&nbsp;)&nbsp;</td>
296          <td class="md" nowrap><code> [inline]</code></td>
297        </tr>
298
299      </table>
300    </td>
301  </tr>
302</table>
303<table cellspacing=5 cellpadding=0 border=0>
304  <tr>
305    <td>
306      &nbsp;
307    </td>
308    <td>
309
310<p>
311
312<p>
313Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00064">64</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
314<p>
315References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>.
316<p>
317Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
318<p>
319<div class="fragment"><pre>00064 { <span class="keywordflow">return</span> <a class="code" href="classTextBuffer.html#r3">endOfPage</a>; }
320</pre></div>    </td>
321  </tr>
322</table>
323<a class="anchor" name="a2" doxytag="TextBuffer::GetNumberOfLines" ></a><p>
324<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
325  <tr>
326    <td class="mdRow">
327      <table cellpadding="0" cellspacing="0" border="0">
328        <tr>
329          <td class="md" nowrap valign="top"> int TextBuffer::GetNumberOfLines </td>
330          <td class="md" valign="top">(&nbsp;</td>
331          <td class="mdname1" valign="top" nowrap>          </td>
332          <td class="md" valign="top">&nbsp;)&nbsp;</td>
333          <td class="md" nowrap><code> [inline]</code></td>
334        </tr>
335
336      </table>
337    </td>
338  </tr>
339</table>
340<table cellspacing=5 cellpadding=0 border=0>
341  <tr>
342    <td>
343      &nbsp;
344    </td>
345    <td>
346
347<p>
348
349<p>
350Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00061">61</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
351<p>
352References <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>.
353<p>
354<div class="fragment"><pre>00061 { <span class="keywordflow">return</span> <a class="code" href="classTextBuffer.html#r2">linei</a>;}
355</pre></div>    </td>
356  </tr>
357</table>
358<a class="anchor" name="a6" doxytag="TextBuffer::IncrementEndOfPage" ></a><p>
359<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
360  <tr>
361    <td class="mdRow">
362      <table cellpadding="0" cellspacing="0" border="0">
363        <tr>
364          <td class="md" nowrap valign="top"> void TextBuffer::IncrementEndOfPage </td>
365          <td class="md" valign="top">(&nbsp;</td>
366          <td class="mdname1" valign="top" nowrap>          </td>
367          <td class="md" valign="top">&nbsp;)&nbsp;</td>
368          <td class="md" nowrap></td>
369        </tr>
370
371      </table>
372    </td>
373  </tr>
374</table>
375<table cellspacing=5 cellpadding=0 border=0>
376  <tr>
377    <td>
378      &nbsp;
379    </td>
380    <td>
381
382<p>
383
384<p>
385Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00102">102</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
386<p>
387References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>.
388<p>
389Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
390<p>
391<div class="fragment"><pre>00103 {
39200104   <a class="code" href="classTextBuffer.html#r3">endOfPage</a>++;
39300105   <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>&gt;=<a class="code" href="classTextBuffer.html#r2">linei</a>) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = <a class="code" href="classTextBuffer.html#r2">linei</a>-1;
39400106 }
395</pre></div>    </td>
396  </tr>
397</table>
398<a class="anchor" name="a8" doxytag="TextBuffer::JumpDownEndOfPage" ></a><p>
399<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
400  <tr>
401    <td class="mdRow">
402      <table cellpadding="0" cellspacing="0" border="0">
403        <tr>
404          <td class="md" nowrap valign="top"> void TextBuffer::JumpDownEndOfPage </td>
405          <td class="md" valign="top">(&nbsp;</td>
406          <td class="mdname1" valign="top" nowrap>          </td>
407          <td class="md" valign="top">&nbsp;)&nbsp;</td>
408          <td class="md" nowrap></td>
409        </tr>
410
411      </table>
412    </td>
413  </tr>
414</table>
415<table cellspacing=5 cellpadding=0 border=0>
416  <tr>
417    <td>
418      &nbsp;
419    </td>
420    <td>
421
422<p>
423
424<p>
425Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00114">114</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
426<p>
427References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00077">heightOfPage</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>.
428<p>
429Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
430<p>
431<div class="fragment"><pre>00115 {
43200116   <a class="code" href="classTextBuffer.html#r3">endOfPage</a> += <a class="code" href="classTextBuffer.html#r4">heightOfPage</a>;
43300117   <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>&gt;=<a class="code" href="classTextBuffer.html#r2">linei</a>) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = <a class="code" href="classTextBuffer.html#r2">linei</a>-1;
43400118 }
435</pre></div>    </td>
436  </tr>
437</table>
438<a class="anchor" name="a9" doxytag="TextBuffer::JumpUpEndOfPage" ></a><p>
439<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
440  <tr>
441    <td class="mdRow">
442      <table cellpadding="0" cellspacing="0" border="0">
443        <tr>
444          <td class="md" nowrap valign="top"> void TextBuffer::JumpUpEndOfPage </td>
445          <td class="md" valign="top">(&nbsp;</td>
446          <td class="mdname1" valign="top" nowrap>          </td>
447          <td class="md" valign="top">&nbsp;)&nbsp;</td>
448          <td class="md" nowrap></td>
449        </tr>
450
451      </table>
452    </td>
453  </tr>
454</table>
455<table cellspacing=5 cellpadding=0 border=0>
456  <tr>
457    <td>
458      &nbsp;
459    </td>
460    <td>
461
462<p>
463
464<p>
465Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00120">120</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
466<p>
467References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00077">heightOfPage</a>.
468<p>
469Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
470<p>
471<div class="fragment"><pre>00121 {
47200122   <a class="code" href="classTextBuffer.html#r3">endOfPage</a> -= <a class="code" href="classTextBuffer.html#r4">heightOfPage</a>;
47300123   <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>&lt;0) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = 0;
47400124 }
475</pre></div>    </td>
476  </tr>
477</table>
478<a class="anchor" name="a4" doxytag="TextBuffer::SetEndOfPage" ></a><p>
479<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
480  <tr>
481    <td class="mdRow">
482      <table cellpadding="0" cellspacing="0" border="0">
483        <tr>
484          <td class="md" nowrap valign="top"> void TextBuffer::SetEndOfPage </td>
485          <td class="md" valign="top">(&nbsp;</td>
486          <td class="md" nowrap valign="top">int&nbsp;</td>
487          <td class="mdname1" valign="top" nowrap> <em>a_value</em>          </td>
488          <td class="md" valign="top">&nbsp;)&nbsp;</td>
489          <td class="md" nowrap></td>
490        </tr>
491
492      </table>
493    </td>
494  </tr>
495</table>
496<table cellspacing=5 cellpadding=0 border=0>
497  <tr>
498    <td>
499      &nbsp;
500    </td>
501    <td>
502
503<p>
504
505<p>
506Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00093">93</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
507<p>
508References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00076">linei</a>.
509<p>
510Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>.
511<p>
512<div class="fragment"><pre>00094 {
51300095   <span class="keywordflow">if</span>( (a_value&lt;0) || (a_value&gt;=<a class="code" href="classTextBuffer.html#r2">linei</a>)) {
51400096     <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = <a class="code" href="classTextBuffer.html#r2">linei</a>-1;
51500097   } <span class="keywordflow">else</span> {
51600098     <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = a_value;
51700099   }
51800100 }
519</pre></div>    </td>
520  </tr>
521</table>
522<a class="anchor" name="a3" doxytag="TextBuffer::SetHeightOfPage" ></a><p>
523<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
524  <tr>
525    <td class="mdRow">
526      <table cellpadding="0" cellspacing="0" border="0">
527        <tr>
528          <td class="md" nowrap valign="top"> void TextBuffer::SetHeightOfPage </td>
529          <td class="md" valign="top">(&nbsp;</td>
530          <td class="md" nowrap valign="top">int&nbsp;</td>
531          <td class="mdname1" valign="top" nowrap> <em>a_height</em>          </td>
532          <td class="md" valign="top">&nbsp;)&nbsp;</td>
533          <td class="md" nowrap><code> [inline]</code></td>
534        </tr>
535
536      </table>
537    </td>
538  </tr>
539</table>
540<table cellspacing=5 cellpadding=0 border=0>
541  <tr>
542    <td>
543      &nbsp;
544    </td>
545    <td>
546
547<p>
548
549<p>
550Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00062">62</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
551<p>
552References <a class="el" href="G4UIWin32_8cc-source.html#l00077">heightOfPage</a>.
553<p>
554<div class="fragment"><pre>00062 { <a class="code" href="classTextBuffer.html#r4">heightOfPage</a> = a_height; }
555</pre></div>    </td>
556  </tr>
557</table>
558<hr><h2>Member Data Documentation</h2>
559<a class="anchor" name="r3" doxytag="TextBuffer::endOfPage" ></a><p>
560<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
561  <tr>
562    <td class="mdRow">
563      <table cellpadding="0" cellspacing="0" border="0">
564        <tr>
565          <td class="md" nowrap valign="top"> int <a class="el" href="classTextBuffer.html#r3">TextBuffer::endOfPage</a><code> [private]</code>
566      </table>
567    </td>
568  </tr>
569</table>
570<table cellspacing=5 cellpadding=0 border=0>
571  <tr>
572    <td>
573      &nbsp;
574    </td>
575    <td>
576
577<p>
578
579<p>
580Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00077">77</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
581<p>
582Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00126">AppendString()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00108">DecrementEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00149">Draw()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00064">GetEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00102">IncrementEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00114">JumpDownEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00120">JumpUpEndOfPage()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00093">SetEndOfPage()</a>.    </td>
583  </tr>
584</table>
585<a class="anchor" name="r4" doxytag="TextBuffer::heightOfPage" ></a><p>
586<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
587  <tr>
588    <td class="mdRow">
589      <table cellpadding="0" cellspacing="0" border="0">
590        <tr>
591          <td class="md" nowrap valign="top"> int <a class="el" href="classTextBuffer.html#r4">TextBuffer::heightOfPage</a><code> [private]</code>
592      </table>
593    </td>
594  </tr>
595</table>
596<table cellspacing=5 cellpadding=0 border=0>
597  <tr>
598    <td>
599      &nbsp;
600    </td>
601    <td>
602
603<p>
604
605<p>
606Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00077">77</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
607<p>
608Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00149">Draw()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00114">JumpDownEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00120">JumpUpEndOfPage()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00062">SetHeightOfPage()</a>.    </td>
609  </tr>
610</table>
611<a class="anchor" name="r2" doxytag="TextBuffer::linei" ></a><p>
612<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
613  <tr>
614    <td class="mdRow">
615      <table cellpadding="0" cellspacing="0" border="0">
616        <tr>
617          <td class="md" nowrap valign="top"> int <a class="el" href="classTextBuffer.html#r2">TextBuffer::linei</a><code> [private]</code>
618      </table>
619    </td>
620  </tr>
621</table>
622<table cellspacing=5 cellpadding=0 border=0>
623  <tr>
624    <td>
625      &nbsp;
626    </td>
627    <td>
628
629<p>
630
631<p>
632Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00076">76</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
633<p>
634Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00126">AppendString()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00149">Draw()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00061">GetNumberOfLines()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00102">IncrementEndOfPage()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00114">JumpDownEndOfPage()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00093">SetEndOfPage()</a>.    </td>
635  </tr>
636</table>
637<a class="anchor" name="r1" doxytag="TextBuffer::linen" ></a><p>
638<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
639  <tr>
640    <td class="mdRow">
641      <table cellpadding="0" cellspacing="0" border="0">
642        <tr>
643          <td class="md" nowrap valign="top"> int <a class="el" href="classTextBuffer.html#r1">TextBuffer::linen</a><code> [private]</code>
644      </table>
645    </td>
646  </tr>
647</table>
648<table cellspacing=5 cellpadding=0 border=0>
649  <tr>
650    <td>
651      &nbsp;
652    </td>
653    <td>
654
655<p>
656
657<p>
658Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00075">75</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
659<p>
660Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00126">AppendString()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00081">TextBuffer()</a>.    </td>
661  </tr>
662</table>
663<a class="anchor" name="r0" doxytag="TextBuffer::lines" ></a><p>
664<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
665  <tr>
666    <td class="mdRow">
667      <table cellpadding="0" cellspacing="0" border="0">
668        <tr>
669          <td class="md" nowrap valign="top"> G4String* <a class="el" href="classTextBuffer.html#r0">TextBuffer::lines</a><code> [private]</code>
670      </table>
671    </td>
672  </tr>
673</table>
674<table cellspacing=5 cellpadding=0 border=0>
675  <tr>
676    <td>
677      &nbsp;
678    </td>
679    <td>
680
681<p>
682
683<p>
684Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00074">74</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
685<p>
686Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00126">AppendString()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00149">Draw()</a>, <a class="el" href="G4UIWin32_8cc-source.html#l00081">TextBuffer()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00088">~TextBuffer()</a>.    </td>
687  </tr>
688</table>
689<a class="anchor" name="r5" doxytag="TextBuffer::spaces" ></a><p>
690<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
691  <tr>
692    <td class="mdRow">
693      <table cellpadding="0" cellspacing="0" border="0">
694        <tr>
695          <td class="md" nowrap valign="top"> char <a class="el" href="classTextBuffer.html#r5">TextBuffer::spaces</a>[256]<code> [private]</code>
696      </table>
697    </td>
698  </tr>
699</table>
700<table cellspacing=5 cellpadding=0 border=0>
701  <tr>
702    <td>
703      &nbsp;
704    </td>
705    <td>
706
707<p>
708
709<p>
710Definition at line <a class="el" href="G4UIWin32_8cc-source.html#l00078">78</a> of file <a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a>.
711<p>
712Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00149">Draw()</a>, and <a class="el" href="G4UIWin32_8cc-source.html#l00081">TextBuffer()</a>.    </td>
713  </tr>
714</table>
715<hr>The documentation for this class was generated from the following file:<ul>
716<li><a class="el" href="G4UIWin32_8cc-source.html">G4UIWin32.cc</a></ul>
717<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:08:08 2007 by
718<a href="http://www.doxygen.org/index.html">
719<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
720</a>1.3.4 </small></address>
721</body>
722</html>
Note: See TracBrowser for help on using the repository browser.