/usr/share/doc/libjuce/apiref/classAttributedString.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 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 | <!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: AttributedString 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> |
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="classAttributedString-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">AttributedString Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A text string with a set of colour/font settings that are associated with sub-ranges of the text.
<a href="classAttributedString.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  </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString_1_1Attribute.html">Attribute</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">An attribute that has been applied to a range of characters in 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>. <a href="classAttributedString_1_1Attribute.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad752f270294ec5b2cef0c80863ee3a3c"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">WordWrap</a> { <a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3cab41c5fa578ffbd8a4b8a5fbc013beae3">none</a>,
<a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3ca924856fd52e5a980cae23a0a35a7bad8">byWord</a>,
<a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3ca904d4c7342693028735ff39b6b6a01af">byChar</a>
}<tr class="memdesc:ad752f270294ec5b2cef0c80863ee3a3c"><td class="mdescLeft"> </td><td class="mdescRight">Types of word-wrap behaviour. <a href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ad752f270294ec5b2cef0c80863ee3a3c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a254fea6774b4e74f786cc5ad3abac400"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">ReadingDirection</a> { <a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400ab64fe4e1ad4457691eabf047b0b48c89">natural</a>,
<a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400a0ea06be4944f880c21db20dd073a979e">leftToRight</a>,
<a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400a455f62330ea6e3aca5353d09216fff72">rightToLeft</a>
}<tr class="memdesc:a254fea6774b4e74f786cc5ad3abac400"><td class="mdescLeft"> </td><td class="mdescRight">Types of reading direction that can be used. <a href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a254fea6774b4e74f786cc5ad3abac400"><td class="memSeparator" colspan="2"> </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:a24596825a1c8f87bbe4c9b3570078492"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a24596825a1c8f87bbe4c9b3570078492">AttributedString</a> ()</td></tr>
<tr class="memdesc:a24596825a1c8f87bbe4c9b3570078492"><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty attributed string. <a href="#a24596825a1c8f87bbe4c9b3570078492">More...</a><br /></td></tr>
<tr class="separator:a24596825a1c8f87bbe4c9b3570078492"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ce2248c52eb21973432bdff993fcf8f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a8ce2248c52eb21973432bdff993fcf8f">AttributedString</a> (const <a class="el" href="classString.html">String</a> &text)</td></tr>
<tr class="memdesc:a8ce2248c52eb21973432bdff993fcf8f"><td class="mdescLeft"> </td><td class="mdescRight">Creates an attributed string with the given text. <a href="#a8ce2248c52eb21973432bdff993fcf8f">More...</a><br /></td></tr>
<tr class="separator:a8ce2248c52eb21973432bdff993fcf8f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab37ff7db7a9607cc8c3eab38cf353152"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#ab37ff7db7a9607cc8c3eab38cf353152">AttributedString</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &)</td></tr>
<tr class="separator:ab37ff7db7a9607cc8c3eab38cf353152"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a12309a78f10f53a2c127fa7007f4d622"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAttributedString.html">AttributedString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a12309a78f10f53a2c127fa7007f4d622">operator=</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &)</td></tr>
<tr class="separator:a12309a78f10f53a2c127fa7007f4d622"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a59bcad183ee8e544c5087702d10ff809"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a59bcad183ee8e544c5087702d10ff809">AttributedString</a> (<a class="el" href="classAttributedString.html">AttributedString</a> &&) noexcept</td></tr>
<tr class="separator:a59bcad183ee8e544c5087702d10ff809"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a42260a061dc906774cd7bcca178e7139"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAttributedString.html">AttributedString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a42260a061dc906774cd7bcca178e7139">operator=</a> (<a class="el" href="classAttributedString.html">AttributedString</a> &&) noexcept</td></tr>
<tr class="separator:a42260a061dc906774cd7bcca178e7139"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa3421fc9e455bf25778e9398beb6ceef"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#aa3421fc9e455bf25778e9398beb6ceef">~AttributedString</a> () noexcept</td></tr>
<tr class="memdesc:aa3421fc9e455bf25778e9398beb6ceef"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aa3421fc9e455bf25778e9398beb6ceef">More...</a><br /></td></tr>
<tr class="separator:aa3421fc9e455bf25778e9398beb6ceef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aab56aed8c3543c0c2ea49aa5a020166e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classString.html">String</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#aab56aed8c3543c0c2ea49aa5a020166e">getText</a> () const noexcept</td></tr>
<tr class="memdesc:aab56aed8c3543c0c2ea49aa5a020166e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the complete text of this attributed string. <a href="#aab56aed8c3543c0c2ea49aa5a020166e">More...</a><br /></td></tr>
<tr class="separator:aab56aed8c3543c0c2ea49aa5a020166e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a998c643b1311fa75b80e93d4d02a012b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a998c643b1311fa75b80e93d4d02a012b">setText</a> (const <a class="el" href="classString.html">String</a> &newText)</td></tr>
<tr class="memdesc:a998c643b1311fa75b80e93d4d02a012b"><td class="mdescLeft"> </td><td class="mdescRight">Replaces all the text. <a href="#a998c643b1311fa75b80e93d4d02a012b">More...</a><br /></td></tr>
<tr class="separator:a998c643b1311fa75b80e93d4d02a012b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1755f63ee5d540df2aa64d7697ff0ef8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a1755f63ee5d540df2aa64d7697ff0ef8">append</a> (const <a class="el" href="classString.html">String</a> &textToAppend)</td></tr>
<tr class="memdesc:a1755f63ee5d540df2aa64d7697ff0ef8"><td class="mdescLeft"> </td><td class="mdescRight">Appends some text (with a default font and colour). <a href="#a1755f63ee5d540df2aa64d7697ff0ef8">More...</a><br /></td></tr>
<tr class="separator:a1755f63ee5d540df2aa64d7697ff0ef8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ebdcf2fc784b20ba80b30e3f973820f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a1ebdcf2fc784b20ba80b30e3f973820f">append</a> (const <a class="el" href="classString.html">String</a> &textToAppend, const <a class="el" href="classFont.html">Font</a> &font)</td></tr>
<tr class="memdesc:a1ebdcf2fc784b20ba80b30e3f973820f"><td class="mdescLeft"> </td><td class="mdescRight">Appends some text, with a specified font, and the default colour (black). <a href="#a1ebdcf2fc784b20ba80b30e3f973820f">More...</a><br /></td></tr>
<tr class="separator:a1ebdcf2fc784b20ba80b30e3f973820f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a33b4e8e68669b4c72e9deeda35ccb7d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a33b4e8e68669b4c72e9deeda35ccb7d0">append</a> (const <a class="el" href="classString.html">String</a> &textToAppend, <a class="el" href="classColour.html">Colour</a> colour)</td></tr>
<tr class="memdesc:a33b4e8e68669b4c72e9deeda35ccb7d0"><td class="mdescLeft"> </td><td class="mdescRight">Appends some text, with a specified colour, and the default font. <a href="#a33b4e8e68669b4c72e9deeda35ccb7d0">More...</a><br /></td></tr>
<tr class="separator:a33b4e8e68669b4c72e9deeda35ccb7d0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab835b8818a4905e1af576b3e99a13a53"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#ab835b8818a4905e1af576b3e99a13a53">append</a> (const <a class="el" href="classString.html">String</a> &textToAppend, const <a class="el" href="classFont.html">Font</a> &font, <a class="el" href="classColour.html">Colour</a> colour)</td></tr>
<tr class="memdesc:ab835b8818a4905e1af576b3e99a13a53"><td class="mdescLeft"> </td><td class="mdescRight">Appends some text, with a specified font and colour. <a href="#ab835b8818a4905e1af576b3e99a13a53">More...</a><br /></td></tr>
<tr class="separator:ab835b8818a4905e1af576b3e99a13a53"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acc8257dab05c592118659e1a80594338"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#acc8257dab05c592118659e1a80594338">append</a> (const <a class="el" href="classAttributedString.html">AttributedString</a> &other)</td></tr>
<tr class="memdesc:acc8257dab05c592118659e1a80594338"><td class="mdescLeft"> </td><td class="mdescRight">Appends another <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> to this one. <a href="#acc8257dab05c592118659e1a80594338">More...</a><br /></td></tr>
<tr class="separator:acc8257dab05c592118659e1a80594338"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff77725b28cb06f1ddb0b3b38ad7c076"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#aff77725b28cb06f1ddb0b3b38ad7c076">clear</a> ()</td></tr>
<tr class="memdesc:aff77725b28cb06f1ddb0b3b38ad7c076"><td class="mdescLeft"> </td><td class="mdescRight">Resets the string, clearing all text and attributes. <a href="#aff77725b28cb06f1ddb0b3b38ad7c076">More...</a><br /></td></tr>
<tr class="separator:aff77725b28cb06f1ddb0b3b38ad7c076"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2befaf1fec54e78f844f034986f5f6f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a2befaf1fec54e78f844f034986f5f6f8">draw</a> (<a class="el" href="classGraphics.html">Graphics</a> &g, const <a class="el" href="classRectangle.html">Rectangle</a>< float > &area) const</td></tr>
<tr class="memdesc:a2befaf1fec54e78f844f034986f5f6f8"><td class="mdescLeft"> </td><td class="mdescRight">Draws this string within the given area. <a href="#a2befaf1fec54e78f844f034986f5f6f8">More...</a><br /></td></tr>
<tr class="separator:a2befaf1fec54e78f844f034986f5f6f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1b0acb2b269ddbd80c90f61acf623838"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classJustification.html">Justification</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a1b0acb2b269ddbd80c90f61acf623838">getJustification</a> () const noexcept</td></tr>
<tr class="memdesc:a1b0acb2b269ddbd80c90f61acf623838"><td class="mdescLeft"> </td><td class="mdescRight">Returns the justification that should be used for laying-out the text. <a href="#a1b0acb2b269ddbd80c90f61acf623838">More...</a><br /></td></tr>
<tr class="separator:a1b0acb2b269ddbd80c90f61acf623838"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af23239716a8ccd36a6e25315afcce470"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#af23239716a8ccd36a6e25315afcce470">setJustification</a> (<a class="el" href="classJustification.html">Justification</a> newJustification) noexcept</td></tr>
<tr class="memdesc:af23239716a8ccd36a6e25315afcce470"><td class="mdescLeft"> </td><td class="mdescRight">Sets the justification that should be used for laying-out the text. <a href="#af23239716a8ccd36a6e25315afcce470">More...</a><br /></td></tr>
<tr class="separator:af23239716a8ccd36a6e25315afcce470"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a23e8be5dbf974f725584726b30e0f615"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">WordWrap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a23e8be5dbf974f725584726b30e0f615">getWordWrap</a> () const noexcept</td></tr>
<tr class="memdesc:a23e8be5dbf974f725584726b30e0f615"><td class="mdescLeft"> </td><td class="mdescRight">Returns the word-wrapping behaviour. <a href="#a23e8be5dbf974f725584726b30e0f615">More...</a><br /></td></tr>
<tr class="separator:a23e8be5dbf974f725584726b30e0f615"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab986ab6a8a0a0aff7d7701c5b6c25572"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#ab986ab6a8a0a0aff7d7701c5b6c25572">setWordWrap</a> (<a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">WordWrap</a> newWordWrap) noexcept</td></tr>
<tr class="memdesc:ab986ab6a8a0a0aff7d7701c5b6c25572"><td class="mdescLeft"> </td><td class="mdescRight">Sets the word-wrapping behaviour. <a href="#ab986ab6a8a0a0aff7d7701c5b6c25572">More...</a><br /></td></tr>
<tr class="separator:ab986ab6a8a0a0aff7d7701c5b6c25572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afb961e08dfe858d3a104fedf84922bb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">ReadingDirection</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#afb961e08dfe858d3a104fedf84922bb9">getReadingDirection</a> () const noexcept</td></tr>
<tr class="memdesc:afb961e08dfe858d3a104fedf84922bb9"><td class="mdescLeft"> </td><td class="mdescRight">Returns the reading direction for the text. <a href="#afb961e08dfe858d3a104fedf84922bb9">More...</a><br /></td></tr>
<tr class="separator:afb961e08dfe858d3a104fedf84922bb9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96ba8ec9194f937c568bcaa990c1ca55"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a96ba8ec9194f937c568bcaa990c1ca55">setReadingDirection</a> (<a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">ReadingDirection</a> newReadingDirection) noexcept</td></tr>
<tr class="memdesc:a96ba8ec9194f937c568bcaa990c1ca55"><td class="mdescLeft"> </td><td class="mdescRight">Sets the reading direction that should be used for the text. <a href="#a96ba8ec9194f937c568bcaa990c1ca55">More...</a><br /></td></tr>
<tr class="separator:a96ba8ec9194f937c568bcaa990c1ca55"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96e27f2bd7835dc334776e595e515864"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a96e27f2bd7835dc334776e595e515864">getLineSpacing</a> () const noexcept</td></tr>
<tr class="memdesc:a96e27f2bd7835dc334776e595e515864"><td class="mdescLeft"> </td><td class="mdescRight">Returns the extra line-spacing distance. <a href="#a96e27f2bd7835dc334776e595e515864">More...</a><br /></td></tr>
<tr class="separator:a96e27f2bd7835dc334776e595e515864"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0506d7b2000aaebd5873ea23eca6ae6a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a0506d7b2000aaebd5873ea23eca6ae6a">setLineSpacing</a> (float newLineSpacing) noexcept</td></tr>
<tr class="memdesc:a0506d7b2000aaebd5873ea23eca6ae6a"><td class="mdescLeft"> </td><td class="mdescRight">Sets an extra line-spacing distance. <a href="#a0506d7b2000aaebd5873ea23eca6ae6a">More...</a><br /></td></tr>
<tr class="separator:a0506d7b2000aaebd5873ea23eca6ae6a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac4df137b8bb82c878daeeba7d9a07182"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#ac4df137b8bb82c878daeeba7d9a07182">getNumAttributes</a> () const noexcept</td></tr>
<tr class="memdesc:ac4df137b8bb82c878daeeba7d9a07182"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of attributes that have been added to this string. <a href="#ac4df137b8bb82c878daeeba7d9a07182">More...</a><br /></td></tr>
<tr class="separator:ac4df137b8bb82c878daeeba7d9a07182"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a32a624d6b3e6f41c11c517f0d81a0d7a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classAttributedString_1_1Attribute.html">Attribute</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a32a624d6b3e6f41c11c517f0d81a0d7a">getAttribute</a> (int index) const noexcept</td></tr>
<tr class="memdesc:a32a624d6b3e6f41c11c517f0d81a0d7a"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the string's attributes. <a href="#a32a624d6b3e6f41c11c517f0d81a0d7a">More...</a><br /></td></tr>
<tr class="separator:a32a624d6b3e6f41c11c517f0d81a0d7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a45e37afd0bfe64cf411a755ea35b20f7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a45e37afd0bfe64cf411a755ea35b20f7">setColour</a> (<a class="el" href="classRange.html">Range</a>< int > range, <a class="el" href="classColour.html">Colour</a> colour)</td></tr>
<tr class="memdesc:a45e37afd0bfe64cf411a755ea35b20f7"><td class="mdescLeft"> </td><td class="mdescRight">Adds a colour attribute for the specified range. <a href="#a45e37afd0bfe64cf411a755ea35b20f7">More...</a><br /></td></tr>
<tr class="separator:a45e37afd0bfe64cf411a755ea35b20f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa6b48a7f26887847de2e10dec1d917db"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#aa6b48a7f26887847de2e10dec1d917db">setColour</a> (<a class="el" href="classColour.html">Colour</a> colour)</td></tr>
<tr class="memdesc:aa6b48a7f26887847de2e10dec1d917db"><td class="mdescLeft"> </td><td class="mdescRight">Removes all existing colour attributes, and applies this colour to the whole string. <a href="#aa6b48a7f26887847de2e10dec1d917db">More...</a><br /></td></tr>
<tr class="separator:aa6b48a7f26887847de2e10dec1d917db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4fd29f067fe86b25049fdbc8df663686"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a4fd29f067fe86b25049fdbc8df663686">setFont</a> (<a class="el" href="classRange.html">Range</a>< int > range, const <a class="el" href="classFont.html">Font</a> &font)</td></tr>
<tr class="memdesc:a4fd29f067fe86b25049fdbc8df663686"><td class="mdescLeft"> </td><td class="mdescRight">Adds a font attribute for the specified range. <a href="#a4fd29f067fe86b25049fdbc8df663686">More...</a><br /></td></tr>
<tr class="separator:a4fd29f067fe86b25049fdbc8df663686"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5731aaf784c8e48015c79574cd1a578e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributedString.html#a5731aaf784c8e48015c79574cd1a578e">setFont</a> (const <a class="el" href="classFont.html">Font</a> &font)</td></tr>
<tr class="memdesc:a5731aaf784c8e48015c79574cd1a578e"><td class="mdescLeft"> </td><td class="mdescRight">Removes all existing font attributes, and applies this font to the whole string. <a href="#a5731aaf784c8e48015c79574cd1a578e">More...</a><br /></td></tr>
<tr class="separator:a5731aaf784c8e48015c79574cd1a578e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A text string with a set of colour/font settings that are associated with sub-ranges of the text. </p>
<p>An attributed string lets you create a string with varied fonts, colours, word-wrapping, layout, etc., and draw it using <a class="el" href="classAttributedString.html#a2befaf1fec54e78f844f034986f5f6f8" title="Draws this string within the given area. ">AttributedString::draw()</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classTextLayout.html" title="A Pre-formatted piece of text, which may contain multiple fonts and colours. ">TextLayout</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ad752f270294ec5b2cef0c80863ee3a3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad752f270294ec5b2cef0c80863ee3a3c">§ </a></span>WordWrap</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">AttributedString::WordWrap</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Types of word-wrap behaviour. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributedString.html#a23e8be5dbf974f725584726b30e0f615" title="Returns the word-wrapping behaviour. ">getWordWrap</a>, <a class="el" href="classAttributedString.html#ab986ab6a8a0a0aff7d7701c5b6c25572" title="Sets the word-wrapping behaviour. ">setWordWrap</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ad752f270294ec5b2cef0c80863ee3a3cab41c5fa578ffbd8a4b8a5fbc013beae3"></a>none </td><td class="fielddoc"><p>No word-wrapping: lines extend indefinitely. </p>
</td></tr>
<tr><td class="fieldname"><a id="ad752f270294ec5b2cef0c80863ee3a3ca924856fd52e5a980cae23a0a35a7bad8"></a>byWord </td><td class="fielddoc"><p>Lines are wrapped on a word boundary. </p>
</td></tr>
<tr><td class="fieldname"><a id="ad752f270294ec5b2cef0c80863ee3a3ca904d4c7342693028735ff39b6b6a01af"></a>byChar </td><td class="fielddoc"><p>Lines are wrapped on a character boundary. </p>
</td></tr>
</table>
</div>
</div>
<a id="a254fea6774b4e74f786cc5ad3abac400"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a254fea6774b4e74f786cc5ad3abac400">§ </a></span>ReadingDirection</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">AttributedString::ReadingDirection</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Types of reading direction that can be used. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributedString.html#afb961e08dfe858d3a104fedf84922bb9" title="Returns the reading direction for the text. ">getReadingDirection</a>, <a class="el" href="classAttributedString.html#a96ba8ec9194f937c568bcaa990c1ca55" title="Sets the reading direction that should be used for the text. ">setReadingDirection</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a254fea6774b4e74f786cc5ad3abac400ab64fe4e1ad4457691eabf047b0b48c89"></a>natural </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a254fea6774b4e74f786cc5ad3abac400a0ea06be4944f880c21db20dd073a979e"></a>leftToRight </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a254fea6774b4e74f786cc5ad3abac400a455f62330ea6e3aca5353d09216fff72"></a>rightToLeft </td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a24596825a1c8f87bbe4c9b3570078492"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24596825a1c8f87bbe4c9b3570078492">§ </a></span>AttributedString() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">AttributedString::AttributedString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an empty attributed string. </p>
</div>
</div>
<a id="a8ce2248c52eb21973432bdff993fcf8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ce2248c52eb21973432bdff993fcf8f">§ </a></span>AttributedString() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">AttributedString::AttributedString </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>text</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an attributed string with the given text. </p>
</div>
</div>
<a id="ab37ff7db7a9607cc8c3eab38cf353152"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab37ff7db7a9607cc8c3eab38cf353152">§ </a></span>AttributedString() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">AttributedString::AttributedString </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a59bcad183ee8e544c5087702d10ff809"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59bcad183ee8e544c5087702d10ff809">§ </a></span>AttributedString() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">AttributedString::AttributedString </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classAttributedString.html">AttributedString</a> && </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="aa3421fc9e455bf25778e9398beb6ceef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3421fc9e455bf25778e9398beb6ceef">§ </a></span>~AttributedString()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">AttributedString::~AttributedString </td>
<td>(</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">
<p>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a12309a78f10f53a2c127fa7007f4d622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12309a78f10f53a2c127fa7007f4d622">§ </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="classAttributedString.html">AttributedString</a>& AttributedString::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a42260a061dc906774cd7bcca178e7139"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42260a061dc906774cd7bcca178e7139">§ </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="classAttributedString.html">AttributedString</a>& AttributedString::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classAttributedString.html">AttributedString</a> && </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="aab56aed8c3543c0c2ea49aa5a020166e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab56aed8c3543c0c2ea49aa5a020166e">§ </a></span>getText()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classString.html">String</a>& AttributedString::getText </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 complete text of this attributed string. </p>
</div>
</div>
<a id="a998c643b1311fa75b80e93d4d02a012b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a998c643b1311fa75b80e93d4d02a012b">§ </a></span>setText()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>newText</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replaces all the text. </p>
<p>This will change the text, but won't affect any of the colour or font attributes that have been added. </p>
</div>
</div>
<a id="a1755f63ee5d540df2aa64d7697ff0ef8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1755f63ee5d540df2aa64d7697ff0ef8">§ </a></span>append() <span class="overload">[1/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::append </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>textToAppend</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Appends some text (with a default font and colour). </p>
</div>
</div>
<a id="a1ebdcf2fc784b20ba80b30e3f973820f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ebdcf2fc784b20ba80b30e3f973820f">§ </a></span>append() <span class="overload">[2/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::append </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>textToAppend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classFont.html">Font</a> & </td>
<td class="paramname"><em>font</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Appends some text, with a specified font, and the default colour (black). </p>
</div>
</div>
<a id="a33b4e8e68669b4c72e9deeda35ccb7d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33b4e8e68669b4c72e9deeda35ccb7d0">§ </a></span>append() <span class="overload">[3/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::append </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>textToAppend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classColour.html">Colour</a> </td>
<td class="paramname"><em>colour</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Appends some text, with a specified colour, and the default font. </p>
</div>
</div>
<a id="ab835b8818a4905e1af576b3e99a13a53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab835b8818a4905e1af576b3e99a13a53">§ </a></span>append() <span class="overload">[4/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::append </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>textToAppend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classFont.html">Font</a> & </td>
<td class="paramname"><em>font</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classColour.html">Colour</a> </td>
<td class="paramname"><em>colour</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Appends some text, with a specified font and colour. </p>
</div>
</div>
<a id="acc8257dab05c592118659e1a80594338"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc8257dab05c592118659e1a80594338">§ </a></span>append() <span class="overload">[5/5]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::append </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classAttributedString.html">AttributedString</a> & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Appends another <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> to this one. </p>
<p>Note that this will only append the text, fonts, and colours - it won't copy any other properties such as justification, line-spacing, etc from the other object. </p>
</div>
</div>
<a id="aff77725b28cb06f1ddb0b3b38ad7c076"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff77725b28cb06f1ddb0b3b38ad7c076">§ </a></span>clear()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Resets the string, clearing all text and attributes. </p>
<p>Note that this won't affect global settings like the justification type, word-wrap mode, etc. </p>
</div>
</div>
<a id="a2befaf1fec54e78f844f034986f5f6f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2befaf1fec54e78f844f034986f5f6f8">§ </a></span>draw()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::draw </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classGraphics.html">Graphics</a> & </td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>< float > & </td>
<td class="paramname"><em>area</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Draws this string within the given area. </p>
<p>The layout of the string within the rectangle is controlled by the justification value passed to <a class="el" href="classAttributedString.html#af23239716a8ccd36a6e25315afcce470" title="Sets the justification that should be used for laying-out the text. ">setJustification()</a>. </p>
</div>
</div>
<a id="a1b0acb2b269ddbd80c90f61acf623838"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b0acb2b269ddbd80c90f61acf623838">§ </a></span>getJustification()</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="classJustification.html">Justification</a> AttributedString::getJustification </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 justification that should be used for laying-out the text. </p>
<p>This may include both vertical and horizontal flags. </p>
</div>
</div>
<a id="af23239716a8ccd36a6e25315afcce470"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af23239716a8ccd36a6e25315afcce470">§ </a></span>setJustification()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setJustification </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classJustification.html">Justification</a> </td>
<td class="paramname"><em>newJustification</em></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">
<p>Sets the justification that should be used for laying-out the text. </p>
<p>This may include both vertical and horizontal flags. </p>
</div>
</div>
<a id="a23e8be5dbf974f725584726b30e0f615"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23e8be5dbf974f725584726b30e0f615">§ </a></span>getWordWrap()</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="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">WordWrap</a> AttributedString::getWordWrap </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 word-wrapping behaviour. </p>
</div>
</div>
<a id="ab986ab6a8a0a0aff7d7701c5b6c25572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab986ab6a8a0a0aff7d7701c5b6c25572">§ </a></span>setWordWrap()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setWordWrap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classAttributedString.html#ad752f270294ec5b2cef0c80863ee3a3c">WordWrap</a> </td>
<td class="paramname"><em>newWordWrap</em></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">
<p>Sets the word-wrapping behaviour. </p>
</div>
</div>
<a id="afb961e08dfe858d3a104fedf84922bb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb961e08dfe858d3a104fedf84922bb9">§ </a></span>getReadingDirection()</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="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">ReadingDirection</a> AttributedString::getReadingDirection </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 reading direction for the text. </p>
</div>
</div>
<a id="a96ba8ec9194f937c568bcaa990c1ca55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96ba8ec9194f937c568bcaa990c1ca55">§ </a></span>setReadingDirection()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setReadingDirection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classAttributedString.html#a254fea6774b4e74f786cc5ad3abac400">ReadingDirection</a> </td>
<td class="paramname"><em>newReadingDirection</em></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">
<p>Sets the reading direction that should be used for the text. </p>
</div>
</div>
<a id="a96e27f2bd7835dc334776e595e515864"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96e27f2bd7835dc334776e595e515864">§ </a></span>getLineSpacing()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float AttributedString::getLineSpacing </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 extra line-spacing distance. </p>
</div>
</div>
<a id="a0506d7b2000aaebd5873ea23eca6ae6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0506d7b2000aaebd5873ea23eca6ae6a">§ </a></span>setLineSpacing()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setLineSpacing </td>
<td>(</td>
<td class="paramtype">float </td>
<td class="paramname"><em>newLineSpacing</em></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">
<p>Sets an extra line-spacing distance. </p>
</div>
</div>
<a id="ac4df137b8bb82c878daeeba7d9a07182"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4df137b8bb82c878daeeba7d9a07182">§ </a></span>getNumAttributes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int AttributedString::getNumAttributes </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 attributes that have been added to this string. </p>
</div>
</div>
<a id="a32a624d6b3e6f41c11c517f0d81a0d7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32a624d6b3e6f41c11c517f0d81a0d7a">§ </a></span>getAttribute()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classAttributedString_1_1Attribute.html">Attribute</a>& AttributedString::getAttribute </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em></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 one of the string's attributes. </p>
<p>The index provided must be less than <a class="el" href="classAttributedString.html#ac4df137b8bb82c878daeeba7d9a07182" title="Returns the number of attributes that have been added to this string. ">getNumAttributes()</a>, and >= 0. </p>
<p>References <a class="el" href="juce__LeakedObjectDetector_8h.html#ab3639a79598b35f2116f4572af0d93f1">JUCE_LEAK_DETECTOR</a>.</p>
</div>
</div>
<a id="a45e37afd0bfe64cf411a755ea35b20f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45e37afd0bfe64cf411a755ea35b20f7">§ </a></span>setColour() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setColour </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRange.html">Range</a>< int > </td>
<td class="paramname"><em>range</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classColour.html">Colour</a> </td>
<td class="paramname"><em>colour</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a colour attribute for the specified range. </p>
</div>
</div>
<a id="aa6b48a7f26887847de2e10dec1d917db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6b48a7f26887847de2e10dec1d917db">§ </a></span>setColour() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setColour </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classColour.html">Colour</a> </td>
<td class="paramname"><em>colour</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes all existing colour attributes, and applies this colour to the whole string. </p>
</div>
</div>
<a id="a4fd29f067fe86b25049fdbc8df663686"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fd29f067fe86b25049fdbc8df663686">§ </a></span>setFont() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setFont </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRange.html">Range</a>< int > </td>
<td class="paramname"><em>range</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classFont.html">Font</a> & </td>
<td class="paramname"><em>font</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a font attribute for the specified range. </p>
</div>
</div>
<a id="a5731aaf784c8e48015c79574cd1a578e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5731aaf784c8e48015c79574cd1a578e">§ </a></span>setFont() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AttributedString::setFont </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classFont.html">Font</a> & </td>
<td class="paramname"><em>font</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes all existing font attributes, and applies this font to the whole string. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__AttributedString_8h.html">juce_AttributedString.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|