This file is indexed.

/usr/share/doc/libjuce/apiref/classTextLayout.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: TextLayout Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classTextLayout-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">TextLayout Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A Pre-formatted piece of text, which may contain multiple fonts and colours.  
 <a href="classTextLayout.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout_1_1Glyph.html">Glyph</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A positioned glyph.  <a href="classTextLayout_1_1Glyph.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout_1_1Line.html">Line</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A line containing a sequence of glyph-runs.  <a href="classTextLayout_1_1Line.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout_1_1Run.html">Run</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A sequence of glyphs with a common font and colour.  <a href="classTextLayout_1_1Run.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad3d06a6b81095f80ab31f0beecf706fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#ad3d06a6b81095f80ab31f0beecf706fe">TextLayout</a> ()</td></tr>
<tr class="memdesc:ad3d06a6b81095f80ab31f0beecf706fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty layout.  <a href="#ad3d06a6b81095f80ab31f0beecf706fe">More...</a><br /></td></tr>
<tr class="separator:ad3d06a6b81095f80ab31f0beecf706fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98abb8c75101bef8c14ee7d521cff350"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a98abb8c75101bef8c14ee7d521cff350">TextLayout</a> (const <a class="el" href="classTextLayout.html">TextLayout</a> &amp;)</td></tr>
<tr class="separator:a98abb8c75101bef8c14ee7d521cff350"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3aea2bf39a2d713120ada2be59ea280"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTextLayout.html">TextLayout</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#af3aea2bf39a2d713120ada2be59ea280">operator=</a> (const <a class="el" href="classTextLayout.html">TextLayout</a> &amp;)</td></tr>
<tr class="separator:af3aea2bf39a2d713120ada2be59ea280"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4279899e7cd3226a9bf86c56c01ae2d1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a4279899e7cd3226a9bf86c56c01ae2d1">TextLayout</a> (<a class="el" href="classTextLayout.html">TextLayout</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:a4279899e7cd3226a9bf86c56c01ae2d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82bead7d274b6ca17e6c26da5adbc3bf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTextLayout.html">TextLayout</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a82bead7d274b6ca17e6c26da5adbc3bf">operator=</a> (<a class="el" href="classTextLayout.html">TextLayout</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:a82bead7d274b6ca17e6c26da5adbc3bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bbf2978fd2447c09adb2438185edd45"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a2bbf2978fd2447c09adb2438185edd45">~TextLayout</a> ()</td></tr>
<tr class="memdesc:a2bbf2978fd2447c09adb2438185edd45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a2bbf2978fd2447c09adb2438185edd45">More...</a><br /></td></tr>
<tr class="separator:a2bbf2978fd2447c09adb2438185edd45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fbd9c422236db032f9cda335601580a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a2fbd9c422236db032f9cda335601580a">createLayout</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;, float maxWidth)</td></tr>
<tr class="memdesc:a2fbd9c422236db032f9cda335601580a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a layout from the given attributed string.  <a href="#a2fbd9c422236db032f9cda335601580a">More...</a><br /></td></tr>
<tr class="separator:a2fbd9c422236db032f9cda335601580a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad72b38ed441ea86b75f9242eaeb9c823"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#ad72b38ed441ea86b75f9242eaeb9c823">createLayout</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;, float maxWidth, float maxHeight)</td></tr>
<tr class="memdesc:ad72b38ed441ea86b75f9242eaeb9c823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a layout from the given attributed string, given some size constraints.  <a href="#ad72b38ed441ea86b75f9242eaeb9c823">More...</a><br /></td></tr>
<tr class="separator:ad72b38ed441ea86b75f9242eaeb9c823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eed3f8e1452cec1b549c5980cb469fb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a0eed3f8e1452cec1b549c5980cb469fb">createLayoutWithBalancedLineLengths</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;, float maxWidth)</td></tr>
<tr class="memdesc:a0eed3f8e1452cec1b549c5980cb469fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a layout, attempting to choose a width which results in lines of a similar length.  <a href="#a0eed3f8e1452cec1b549c5980cb469fb">More...</a><br /></td></tr>
<tr class="separator:a0eed3f8e1452cec1b549c5980cb469fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9131016504a854ef22cc827662b776b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#aa9131016504a854ef22cc827662b776b">createLayoutWithBalancedLineLengths</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;, float maxWidth, float maxHeight)</td></tr>
<tr class="memdesc:aa9131016504a854ef22cc827662b776b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a layout, attempting to choose a width which results in lines of a similar length.  <a href="#aa9131016504a854ef22cc827662b776b">More...</a><br /></td></tr>
<tr class="separator:aa9131016504a854ef22cc827662b776b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a092f92341aba6aebfd7bfb61211e7a38"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a092f92341aba6aebfd7bfb61211e7a38">draw</a> (<a class="el" href="classGraphics.html">Graphics</a> &amp;, const <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; &amp;area) const</td></tr>
<tr class="memdesc:a092f92341aba6aebfd7bfb61211e7a38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the layout within the specified area.  <a href="#a092f92341aba6aebfd7bfb61211e7a38">More...</a><br /></td></tr>
<tr class="separator:a092f92341aba6aebfd7bfb61211e7a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae206340e3734f0f9aa5f5b5f3f81c68"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#aae206340e3734f0f9aa5f5b5f3f81c68">getWidth</a> () const noexcept</td></tr>
<tr class="memdesc:aae206340e3734f0f9aa5f5b5f3f81c68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximum width of the content.  <a href="#aae206340e3734f0f9aa5f5b5f3f81c68">More...</a><br /></td></tr>
<tr class="separator:aae206340e3734f0f9aa5f5b5f3f81c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4364d09c1a3518cd35761df3d9ebebe"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#af4364d09c1a3518cd35761df3d9ebebe">getHeight</a> () const noexcept</td></tr>
<tr class="memdesc:af4364d09c1a3518cd35761df3d9ebebe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximum height of the content.  <a href="#af4364d09c1a3518cd35761df3d9ebebe">More...</a><br /></td></tr>
<tr class="separator:af4364d09c1a3518cd35761df3d9ebebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87cf3ad96a71fcfb49a349bc54a5f0ec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a87cf3ad96a71fcfb49a349bc54a5f0ec">getNumLines</a> () const noexcept</td></tr>
<tr class="memdesc:a87cf3ad96a71fcfb49a349bc54a5f0ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of lines in the layout.  <a href="#a87cf3ad96a71fcfb49a349bc54a5f0ec">More...</a><br /></td></tr>
<tr class="separator:a87cf3ad96a71fcfb49a349bc54a5f0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeecbf9d9b3a17e21d34a536c3a36c357"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTextLayout_1_1Line.html">Line</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#aeecbf9d9b3a17e21d34a536c3a36c357">getLine</a> (int index) const</td></tr>
<tr class="memdesc:aeecbf9d9b3a17e21d34a536c3a36c357"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns one of the lines.  <a href="#aeecbf9d9b3a17e21d34a536c3a36c357">More...</a><br /></td></tr>
<tr class="separator:aeecbf9d9b3a17e21d34a536c3a36c357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a662a71df817d68a7cf748ce6a056f8d5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a662a71df817d68a7cf748ce6a056f8d5">addLine</a> (<a class="el" href="classTextLayout_1_1Line.html">Line</a> *)</td></tr>
<tr class="memdesc:a662a71df817d68a7cf748ce6a056f8d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a line to the layout.  <a href="#a662a71df817d68a7cf748ce6a056f8d5">More...</a><br /></td></tr>
<tr class="separator:a662a71df817d68a7cf748ce6a056f8d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a569592a231fae556bca49c195294a25b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLayout.html#a569592a231fae556bca49c195294a25b">ensureStorageAllocated</a> (int numLinesNeeded)</td></tr>
<tr class="memdesc:a569592a231fae556bca49c195294a25b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pre-allocates space for the specified number of lines.  <a href="#a569592a231fae556bca49c195294a25b">More...</a><br /></td></tr>
<tr class="separator:a569592a231fae556bca49c195294a25b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Pre-formatted piece of text, which may contain multiple fonts and colours. </p>
<p>A <a class="el" href="classTextLayout.html" title="A Pre-formatted piece of text, which may contain multiple fonts and colours. ">TextLayout</a> is created from an <a class="el" href="classAttributedString.html" title="A text string with a set of colour/font settings that are associated with sub-ranges of the text...">AttributedString</a>, and once created can be quickly drawn into a <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> context.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributedString.html" title="A text string with a set of colour/font settings that are associated with sub-ranges of the text...">AttributedString</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad3d06a6b81095f80ab31f0beecf706fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3d06a6b81095f80ab31f0beecf706fe">&sect;&nbsp;</a></span>TextLayout() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TextLayout::TextLayout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an empty layout. </p>
<p>Having created a <a class="el" href="classTextLayout.html" title="A Pre-formatted piece of text, which may contain multiple fonts and colours. ">TextLayout</a>, you can populate it using <a class="el" href="classTextLayout.html#a2fbd9c422236db032f9cda335601580a" title="Creates a layout from the given attributed string. ">createLayout()</a> or <a class="el" href="classTextLayout.html#a0eed3f8e1452cec1b549c5980cb469fb" title="Creates a layout, attempting to choose a width which results in lines of a similar length...">createLayoutWithBalancedLineLengths()</a>. </p>

</div>
</div>
<a id="a98abb8c75101bef8c14ee7d521cff350"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98abb8c75101bef8c14ee7d521cff350">&sect;&nbsp;</a></span>TextLayout() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TextLayout::TextLayout </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTextLayout.html">TextLayout</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4279899e7cd3226a9bf86c56c01ae2d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4279899e7cd3226a9bf86c56c01ae2d1">&sect;&nbsp;</a></span>TextLayout() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TextLayout::TextLayout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTextLayout.html">TextLayout</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2bbf2978fd2447c09adb2438185edd45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bbf2978fd2447c09adb2438185edd45">&sect;&nbsp;</a></span>~TextLayout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TextLayout::~TextLayout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af3aea2bf39a2d713120ada2be59ea280"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3aea2bf39a2d713120ada2be59ea280">&sect;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTextLayout.html">TextLayout</a>&amp; TextLayout::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTextLayout.html">TextLayout</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a82bead7d274b6ca17e6c26da5adbc3bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82bead7d274b6ca17e6c26da5adbc3bf">&sect;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTextLayout.html">TextLayout</a>&amp; TextLayout::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTextLayout.html">TextLayout</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2fbd9c422236db032f9cda335601580a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fbd9c422236db032f9cda335601580a">&sect;&nbsp;</a></span>createLayout() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::createLayout </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxWidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a layout from the given attributed string. </p>
<p>This will replace any data that is currently stored in the layout. </p>

</div>
</div>
<a id="ad72b38ed441ea86b75f9242eaeb9c823"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad72b38ed441ea86b75f9242eaeb9c823">&sect;&nbsp;</a></span>createLayout() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::createLayout </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxHeight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a layout from the given attributed string, given some size constraints. </p>
<p>This will replace any data that is currently stored in the layout. </p>

</div>
</div>
<a id="a0eed3f8e1452cec1b549c5980cb469fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0eed3f8e1452cec1b549c5980cb469fb">&sect;&nbsp;</a></span>createLayoutWithBalancedLineLengths() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::createLayoutWithBalancedLineLengths </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxWidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a layout, attempting to choose a width which results in lines of a similar length. </p>
<p>This will be slower than the normal createLayout method, but produces a tidier result. </p>

</div>
</div>
<a id="aa9131016504a854ef22cc827662b776b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9131016504a854ef22cc827662b776b">&sect;&nbsp;</a></span>createLayoutWithBalancedLineLengths() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::createLayoutWithBalancedLineLengths </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxHeight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a layout, attempting to choose a width which results in lines of a similar length. </p>
<p>This will be slower than the normal createLayout method, but produces a tidier result. </p>

</div>
</div>
<a id="a092f92341aba6aebfd7bfb61211e7a38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a092f92341aba6aebfd7bfb61211e7a38">&sect;&nbsp;</a></span>draw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::draw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>area</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws the layout within the specified area. </p>
<p>The position of the text within the rectangle is controlled by the justification flags set in the original <a class="el" href="classAttributedString.html" title="A text string with a set of colour/font settings that are associated with sub-ranges of the text...">AttributedString</a> that was used to create this layout. </p>

</div>
</div>
<a id="aae206340e3734f0f9aa5f5b5f3f81c68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae206340e3734f0f9aa5f5b5f3f81c68">&sect;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float TextLayout::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the maximum width of the content. </p>

</div>
</div>
<a id="af4364d09c1a3518cd35761df3d9ebebe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4364d09c1a3518cd35761df3d9ebebe">&sect;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float TextLayout::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the maximum height of the content. </p>

</div>
</div>
<a id="a87cf3ad96a71fcfb49a349bc54a5f0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87cf3ad96a71fcfb49a349bc54a5f0ec">&sect;&nbsp;</a></span>getNumLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int TextLayout::getNumLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of lines in the layout. </p>

<p>References <a class="el" href="juce__LeakedObjectDetector_8h.html#ab3639a79598b35f2116f4572af0d93f1">JUCE_LEAK_DETECTOR</a>.</p>

</div>
</div>
<a id="aeecbf9d9b3a17e21d34a536c3a36c357"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeecbf9d9b3a17e21d34a536c3a36c357">&sect;&nbsp;</a></span>getLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTextLayout_1_1Line.html">Line</a>&amp; TextLayout::getLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns one of the lines. </p>

</div>
</div>
<a id="a662a71df817d68a7cf748ce6a056f8d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a662a71df817d68a7cf748ce6a056f8d5">&sect;&nbsp;</a></span>addLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::addLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTextLayout_1_1Line.html">Line</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a line to the layout. </p>
<p>The layout will take ownership of this line object and will delete it when it is no longer needed. </p>

</div>
</div>
<a id="a569592a231fae556bca49c195294a25b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a569592a231fae556bca49c195294a25b">&sect;&nbsp;</a></span>ensureStorageAllocated()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TextLayout::ensureStorageAllocated </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numLinesNeeded</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pre-allocates space for the specified number of lines. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__TextLayout_8h.html">juce_TextLayout.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>