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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File 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> </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> </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 </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 </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 </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 </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 </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 </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 </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 </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 </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 </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 * </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 </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 </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 </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 </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 </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 & 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">( </td> |
---|
58 | <td class="mdname1" valign="top" nowrap> </td> |
---|
59 | <td class="md" valign="top"> ) </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 | |
---|
71 | </td> |
---|
72 | <td> |
---|
73 | |
---|
74 | <p> |
---|
75 | |
---|
76 | <p> |
---|
77 | Definition 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> |
---|
79 | References <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) |
---|
82 | 00083 { |
---|
83 | 00084 <a class="code" href="classTextBuffer.html#r0">lines</a> = <span class="keyword">new</span> G4String[<a class="code" href="classTextBuffer.html#r1">linen</a>]; |
---|
84 | 00085 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> count=0;count<256;count++) <a class="code" href="classTextBuffer.html#r5">spaces</a>[count] = <span class="charliteral">' '</span>; |
---|
85 | 00086 } |
---|
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">( </td> |
---|
97 | <td class="mdname1" valign="top" nowrap> </td> |
---|
98 | <td class="md" valign="top"> ) </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 | |
---|
110 | </td> |
---|
111 | <td> |
---|
112 | |
---|
113 | <p> |
---|
114 | |
---|
115 | <p> |
---|
116 | Definition 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> |
---|
118 | References <a class="el" href="G4UIWin32_8cc-source.html#l00074">lines</a>. |
---|
119 | <p> |
---|
120 | <div class="fragment"><pre>00089 { |
---|
121 | 00090 <span class="keyword">delete</span> [] <a class="code" href="classTextBuffer.html#r0">lines</a>; |
---|
122 | 00091 } |
---|
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">( </td> |
---|
135 | <td class="md" nowrap valign="top">char * </td> |
---|
136 | <td class="mdname1" valign="top" nowrap> <em>a_string</em> </td> |
---|
137 | <td class="md" valign="top"> ) </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 | |
---|
149 | </td> |
---|
150 | <td> |
---|
151 | |
---|
152 | <p> |
---|
153 | |
---|
154 | <p> |
---|
155 | Definition 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> |
---|
157 | References <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 { |
---|
160 | 00128 G4bool value = <span class="keyword">false</span>; |
---|
161 | 00129 <span class="keywordflow">if</span>( (a_string==NULL) || (a_string[0]==<span class="charliteral">'\0'</span>) ) <span class="keywordflow">return</span> value; |
---|
162 | 00130 <span class="keywordtype">int</span> length = strlen(a_string); |
---|
163 | 00131 <span class="keywordflow">if</span>(a_string[length-1]==<span class="charliteral">'\n'</span>) { |
---|
164 | 00132 <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>] += a_string; |
---|
165 | 00133 <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>); |
---|
166 | 00134 <a class="code" href="classTextBuffer.html#r2">linei</a>++; |
---|
167 | 00135 value = <span class="keyword">true</span>; |
---|
168 | 00136 } <span class="keywordflow">else</span> { |
---|
169 | 00137 <a class="code" href="classTextBuffer.html#r0">lines</a>[<a class="code" href="classTextBuffer.html#r2">linei</a>] += a_string; |
---|
170 | 00138 } |
---|
171 | 00139 <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r2">linei</a>>=<a class="code" href="classTextBuffer.html#r1">linen</a>) { |
---|
172 | 00140 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> count=0;count<<a class="code" href="classTextBuffer.html#r1">linen</a>;count++) { |
---|
173 | 00141 <a class="code" href="classTextBuffer.html#r0">lines</a>[count] = <span class="stringliteral">""</span>; |
---|
174 | 00142 } |
---|
175 | 00143 <a class="code" href="classTextBuffer.html#r2">linei</a> = 0; |
---|
176 | 00144 } |
---|
177 | 00145 <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; |
---|
178 | 00146 <span class="keywordflow">return</span> value; |
---|
179 | 00147 } |
---|
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">( </td> |
---|
191 | <td class="mdname1" valign="top" nowrap> </td> |
---|
192 | <td class="md" valign="top"> ) </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 | |
---|
204 | </td> |
---|
205 | <td> |
---|
206 | |
---|
207 | <p> |
---|
208 | |
---|
209 | <p> |
---|
210 | Definition 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> |
---|
212 | References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>. |
---|
213 | <p> |
---|
214 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
215 | <p> |
---|
216 | <div class="fragment"><pre>00109 { |
---|
217 | 00110 <a class="code" href="classTextBuffer.html#r3">endOfPage</a>--; |
---|
218 | 00111 <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a><0) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = 0; |
---|
219 | 00112 } |
---|
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">( </td> |
---|
231 | <td class="md" nowrap valign="top">HDC </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 * </td> |
---|
238 | <td class="mdname" nowrap> <em>a_rect</em></td> |
---|
239 | </tr> |
---|
240 | <tr> |
---|
241 | <td></td> |
---|
242 | <td class="md">) </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 | |
---|
254 | </td> |
---|
255 | <td> |
---|
256 | |
---|
257 | <p> |
---|
258 | |
---|
259 | <p> |
---|
260 | Definition 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> |
---|
262 | References <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> |
---|
264 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
265 | <p> |
---|
266 | <div class="fragment"><pre>00150 { |
---|
267 | 00151 TEXTMETRIC tm; |
---|
268 | 00152 GetTextMetrics (a_hdc,&tm); |
---|
269 | 00153 <span class="keywordtype">short</span> charWidth = (<span class="keywordtype">short</span>)tm.tmAveCharWidth; |
---|
270 | 00154 <span class="keywordtype">short</span> charHeight = (<span class="keywordtype">short</span>)(tm.tmHeight + tm.tmExternalLeading); |
---|
271 | 00155 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> row=0;row<<a class="code" href="classTextBuffer.html#r4">heightOfPage</a>;row++) { |
---|
272 | 00156 <span class="keywordtype">int</span> rowi = <a class="code" href="classTextBuffer.html#r3">endOfPage</a> - row; |
---|
273 | 00157 <span class="keywordtype">short</span> y = (<span class="keywordtype">short</span>)(a_rect->bottom - charHeight * (row + 1)); |
---|
274 | 00158 <span class="keywordflow">if</span>((rowi>=0)&&(rowi<<a class="code" href="classTextBuffer.html#r2">linei</a>)) { |
---|
275 | 00159 TextOut (a_hdc,0,y,(<span class="keywordtype">char</span>*)spaces,256); <span class="comment">//Clear text background first.</span> |
---|
276 | 00160 <span class="keyword">const</span> <span class="keywordtype">char</span>* string = <a class="code" href="classTextBuffer.html#r0">lines</a>[rowi].data(); |
---|
277 | 00161 <span class="keywordflow">if</span>(string!=NULL) { |
---|
278 | 00162 TextOut (a_hdc,0,y,(<span class="keywordtype">char</span>*)string,strlen((<span class="keywordtype">char</span>*)string)); |
---|
279 | 00163 } |
---|
280 | 00164 } |
---|
281 | 00165 } |
---|
282 | 00166 } |
---|
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">( </td> |
---|
294 | <td class="mdname1" valign="top" nowrap> </td> |
---|
295 | <td class="md" valign="top"> ) </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 | |
---|
307 | </td> |
---|
308 | <td> |
---|
309 | |
---|
310 | <p> |
---|
311 | |
---|
312 | <p> |
---|
313 | Definition 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> |
---|
315 | References <a class="el" href="G4UIWin32_8cc-source.html#l00077">endOfPage</a>. |
---|
316 | <p> |
---|
317 | Referenced 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">( </td> |
---|
331 | <td class="mdname1" valign="top" nowrap> </td> |
---|
332 | <td class="md" valign="top"> ) </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 | |
---|
344 | </td> |
---|
345 | <td> |
---|
346 | |
---|
347 | <p> |
---|
348 | |
---|
349 | <p> |
---|
350 | Definition 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> |
---|
352 | References <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">( </td> |
---|
366 | <td class="mdname1" valign="top" nowrap> </td> |
---|
367 | <td class="md" valign="top"> ) </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 | |
---|
379 | </td> |
---|
380 | <td> |
---|
381 | |
---|
382 | <p> |
---|
383 | |
---|
384 | <p> |
---|
385 | Definition 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> |
---|
387 | References <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> |
---|
389 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
390 | <p> |
---|
391 | <div class="fragment"><pre>00103 { |
---|
392 | 00104 <a class="code" href="classTextBuffer.html#r3">endOfPage</a>++; |
---|
393 | 00105 <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>>=<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; |
---|
394 | 00106 } |
---|
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">( </td> |
---|
406 | <td class="mdname1" valign="top" nowrap> </td> |
---|
407 | <td class="md" valign="top"> ) </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 | |
---|
419 | </td> |
---|
420 | <td> |
---|
421 | |
---|
422 | <p> |
---|
423 | |
---|
424 | <p> |
---|
425 | Definition 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> |
---|
427 | References <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> |
---|
429 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
430 | <p> |
---|
431 | <div class="fragment"><pre>00115 { |
---|
432 | 00116 <a class="code" href="classTextBuffer.html#r3">endOfPage</a> += <a class="code" href="classTextBuffer.html#r4">heightOfPage</a>; |
---|
433 | 00117 <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a>>=<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; |
---|
434 | 00118 } |
---|
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">( </td> |
---|
446 | <td class="mdname1" valign="top" nowrap> </td> |
---|
447 | <td class="md" valign="top"> ) </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 | |
---|
459 | </td> |
---|
460 | <td> |
---|
461 | |
---|
462 | <p> |
---|
463 | |
---|
464 | <p> |
---|
465 | Definition 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> |
---|
467 | References <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> |
---|
469 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
470 | <p> |
---|
471 | <div class="fragment"><pre>00121 { |
---|
472 | 00122 <a class="code" href="classTextBuffer.html#r3">endOfPage</a> -= <a class="code" href="classTextBuffer.html#r4">heightOfPage</a>; |
---|
473 | 00123 <span class="keywordflow">if</span>(<a class="code" href="classTextBuffer.html#r3">endOfPage</a><0) <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = 0; |
---|
474 | 00124 } |
---|
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">( </td> |
---|
486 | <td class="md" nowrap valign="top">int </td> |
---|
487 | <td class="mdname1" valign="top" nowrap> <em>a_value</em> </td> |
---|
488 | <td class="md" valign="top"> ) </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 | |
---|
500 | </td> |
---|
501 | <td> |
---|
502 | |
---|
503 | <p> |
---|
504 | |
---|
505 | <p> |
---|
506 | Definition 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> |
---|
508 | References <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> |
---|
510 | Referenced by <a class="el" href="G4UIWin32_8cc-source.html#l00529">G4UIWin32::TextWindowProc()</a>. |
---|
511 | <p> |
---|
512 | <div class="fragment"><pre>00094 { |
---|
513 | 00095 <span class="keywordflow">if</span>( (a_value<0) || (a_value>=<a class="code" href="classTextBuffer.html#r2">linei</a>)) { |
---|
514 | 00096 <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = <a class="code" href="classTextBuffer.html#r2">linei</a>-1; |
---|
515 | 00097 } <span class="keywordflow">else</span> { |
---|
516 | 00098 <a class="code" href="classTextBuffer.html#r3">endOfPage</a> = a_value; |
---|
517 | 00099 } |
---|
518 | 00100 } |
---|
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">( </td> |
---|
530 | <td class="md" nowrap valign="top">int </td> |
---|
531 | <td class="mdname1" valign="top" nowrap> <em>a_height</em> </td> |
---|
532 | <td class="md" valign="top"> ) </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 | |
---|
544 | </td> |
---|
545 | <td> |
---|
546 | |
---|
547 | <p> |
---|
548 | |
---|
549 | <p> |
---|
550 | Definition 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> |
---|
552 | References <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 | |
---|
574 | </td> |
---|
575 | <td> |
---|
576 | |
---|
577 | <p> |
---|
578 | |
---|
579 | <p> |
---|
580 | Definition 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> |
---|
582 | Referenced 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 | |
---|
600 | </td> |
---|
601 | <td> |
---|
602 | |
---|
603 | <p> |
---|
604 | |
---|
605 | <p> |
---|
606 | Definition 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> |
---|
608 | Referenced 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 | |
---|
626 | </td> |
---|
627 | <td> |
---|
628 | |
---|
629 | <p> |
---|
630 | |
---|
631 | <p> |
---|
632 | Definition 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> |
---|
634 | Referenced 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 | |
---|
652 | </td> |
---|
653 | <td> |
---|
654 | |
---|
655 | <p> |
---|
656 | |
---|
657 | <p> |
---|
658 | Definition 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> |
---|
660 | Referenced 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 | |
---|
678 | </td> |
---|
679 | <td> |
---|
680 | |
---|
681 | <p> |
---|
682 | |
---|
683 | <p> |
---|
684 | Definition 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> |
---|
686 | Referenced 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 | |
---|
704 | </td> |
---|
705 | <td> |
---|
706 | |
---|
707 | <p> |
---|
708 | |
---|
709 | <p> |
---|
710 | Definition 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> |
---|
712 | Referenced 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> |
---|