/usr/share/gtk-doc/html/libinftextgtk-0.6/InfTextGtkBuffer.html is in libinfinity-0.6-doc 0.6.7-1build1.
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 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfTextGtkBuffer: libinftextgtk-0.6 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="libinftextgtk-0.6 Reference Manual">
<link rel="up" href="ch01.html" title="libinftextgtk API">
<link rel="prev" href="ch01.html" title="libinftextgtk API">
<link rel="next" href="InfTextGtkView.html" title="InfTextGtkView">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#InfTextGtkBuffer.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#InfTextGtkBuffer.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
<a href="#InfTextGtkBuffer.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#InfTextGtkBuffer.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="InfTextGtkView.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="InfTextGtkBuffer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="InfTextGtkBuffer.top_of_page"></a>InfTextGtkBuffer</span></h2>
<p>InfTextGtkBuffer — Synchronizing a text session with a <span class="type">GtkTextBuffer</span></p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="InfTextGtkBuffer.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Unstable"><span class="acronym">Unstable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="returnvalue">InfTextGtkBuffer</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-new" title="inf_text_gtk_buffer_new ()">inf_text_gtk_buffer_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GtkTextBuffer</span> *
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-text-buffer" title="inf_text_gtk_buffer_get_text_buffer ()">inf_text_gtk_buffer_get_text_buffer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-active-user" title="inf_text_gtk_buffer_set_active_user ()">inf_text_gtk_buffer_set_active_user</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-active-user" title="inf_text_gtk_buffer_get_active_user ()">inf_text_gtk_buffer_get_active_user</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-author" title="inf_text_gtk_buffer_get_author ()">inf_text_gtk_buffer_get_author</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-user-for-tag" title="inf_text_gtk_buffer_get_user_for_tag ()">inf_text_gtk_buffer_get_user_for_tag</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-is-author-toggle" title="inf_text_gtk_buffer_is_author_toggle ()">inf_text_gtk_buffer_is_author_toggle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-forward-to-author-toggle" title="inf_text_gtk_buffer_forward_to_author_toggle ()">inf_text_gtk_buffer_forward_to_author_toggle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-backward-to-author-toggle" title="inf_text_gtk_buffer_backward_to_author_toggle ()">inf_text_gtk_buffer_backward_to_author_toggle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-wake-on-cursor-movement" title="inf_text_gtk_buffer_set_wake_on_cursor_movement ()">inf_text_gtk_buffer_set_wake_on_cursor_movement</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-wake-on-cursor-movement" title="inf_text_gtk_buffer_get_wake_on_cursor_movement ()">inf_text_gtk_buffer_get_wake_on_cursor_movement</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-ensure-author-tags-priority" title="inf_text_gtk_buffer_ensure_author_tags_priority ()">inf_text_gtk_buffer_ensure_author_tags_priority</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-saturation-value" title="inf_text_gtk_buffer_set_saturation_value ()">inf_text_gtk_buffer_set_saturation_value</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-fade" title="inf_text_gtk_buffer_set_fade ()">inf_text_gtk_buffer_set_fade</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-saturation" title="inf_text_gtk_buffer_get_saturation ()">inf_text_gtk_buffer_get_saturation</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-value" title="inf_text_gtk_buffer_get_value ()">inf_text_gtk_buffer_get_value</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-show-user-colors" title="inf_text_gtk_buffer_set_show_user_colors ()">inf_text_gtk_buffer_set_show_user_colors</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-get-show-user-colors" title="inf_text_gtk_buffer_get_show_user_colors ()">inf_text_gtk_buffer_get_show_user_colors</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-show-user-colors" title="inf_text_gtk_buffer_show_user_colors ()">inf_text_gtk_buffer_show_user_colors</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> *</td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--active-user" title="The “active-user” property">active-user</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gdouble</span></td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--alpha" title="The “alpha” property">alpha</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GdkColor</span> *</td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--background" title="The “background” property">background</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GtkTextBuffer</span> *</td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--buffer" title="The “buffer” property">buffer</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gdouble</span></td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--saturation" title="The “saturation” property">saturation</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--show-user-colors" title="The “show-user-colors” property">show-user-colors</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="../libinfinity-0.6/InfUserTable.html"><span class="type">InfUserTable</span></a> *</td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--user-table" title="The “user-table” property">user-table</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gdouble</span></td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--value" title="The “value” property">value</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer--wake-on-cursor-movement" title="The “wake-on-cursor-movement” property">wake-on-cursor-movement</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBuffer-struct" title="struct InfTextGtkBuffer">InfTextGtkBuffer</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="InfTextGtkBuffer.html#InfTextGtkBufferClass" title="struct InfTextGtkBufferClass">InfTextGtkBufferClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> GObject
<span class="lineart">╰──</span> InfTextGtkBuffer
</pre>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
InfTextGtkBuffer implements
<a href="../libinfinity-0.6/InfBuffer.html">InfBuffer</a> and <a href="../libinftext-0.6/InfTextBuffer.html">InfTextBuffer</a>.</p>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libinftextgtk/inf-text-gtk-buffer.h>
</pre>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.description"></a><h2>Description</h2>
<p><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> is an implementation of the <a href="../libinftext-0.6/InfTextBuffer.html"><span class="type">InfTextBuffer</span></a> interface. It
can therefore be used as a backend for <a href="../libinftext-0.6/libinftext-0.6-inf-text-session.html#InfTextSession"><span class="type">InfTextSession</span></a>s to store
their text. The buffer is implemented by using a <span class="type">GtkTextBuffer</span> as
storage. This way the text document can be displayed using a <span class="type">GtkTextView</span>
such that only one copy of the text is held in memory, which is used both
by the user interface toolkit and the text synchronization functionality.</p>
<p>If external changes are made to the <span class="type">GtkTextBuffer</span>, for example by a user
typing into a <span class="type">GtkTextView</span>, then the text is synchronized to other
participants of the session. For this purpose,
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-active-user" title="inf_text_gtk_buffer_set_active_user ()"><code class="function">inf_text_gtk_buffer_set_active_user()</code></a> should be called with a user that
was previously joined into the session using <a href="../libinfinity-0.6/InfSessionProxy.html#inf-session-proxy-join-user"><code class="function">inf_session_proxy_join_user()</code></a>.
If there is no local user in the session, no modifications to the buffer
must be made because they cannot be synchronized to other participants.</p>
<p>This class also takes care of setting background colors for the text to
indicate which user wrote what text, by adding corresponding
<span class="type">GtkTextTag</span>s to the document. The function
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-show-user-colors" title="inf_text_gtk_buffer_set_show_user_colors ()"><code class="function">inf_text_gtk_buffer_set_show_user_colors()</code></a> to turn on or off the colored
background. Even if background coloring is turned off, the text is still
tagged according to the authorship, so that coloring can be turned on at a
later point or so that the authorship can still be queried for other means,
such as in a "blame" kind of functionality.</p>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="inf-text-gtk-buffer-new"></a><h3>inf_text_gtk_buffer_new ()</h3>
<pre class="programlisting"><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="returnvalue">InfTextGtkBuffer</span></a> *
inf_text_gtk_buffer_new (<em class="parameter"><code><span class="type">GtkTextBuffer</span> *buffer</code></em>,
<em class="parameter"><code><a href="../libinfinity-0.6/InfUserTable.html"><span class="type">InfUserTable</span></a> *user_table</code></em>);</pre>
<p>Creates a new <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> wrapping <em class="parameter"><code>buffer</code></em>
. It implements the
<a href="../libinftext-0.6/InfTextBuffer.html"><span class="type">InfTextBuffer</span></a> interface by using <em class="parameter"><code>buffer</code></em>
to store the text. User colors
are read from the users from <em class="parameter"><code>user_table</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.2.11.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>The underlaying <span class="type">GtkTextBuffer</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_table</p></td>
<td class="parameter_description"><p>The <a href="../libinfinity-0.6/InfUserTable.html"><span class="type">InfUserTable</span></a> containing the participating users.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.2.6"></a><h4>Returns</h4>
<p> A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-text-buffer"></a><h3>inf_text_gtk_buffer_get_text_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkTextBuffer</span> *
inf_text_gtk_buffer_get_text_buffer (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns the underlaying <span class="type">GtkTextBuffer</span>.</p>
<div class="refsect3">
<a name="id-1.2.2.11.3.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.3.6"></a><h4>Returns</h4>
<p> A <span class="type">GtkTextBuffer</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-set-active-user"></a><h3>inf_text_gtk_buffer_set_active_user ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_set_active_user (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> *user</code></em>);</pre>
<p>Sets the active user for <em class="parameter"><code>buffer</code></em>
. The active user is the user by which
edits not issued through the <a href="../libinftext-0.6/InfTextBuffer.html"><span class="type">InfTextBuffer</span></a> interface are performed (for
example, edits by the user when the underlaying buffer is displayed in
a <span class="type">GtkTextView</span>).</p>
<p>Note that such modifications should not be performed when no active user is
set. Note also the active user must be available and have the
<a href="../libinfinity-0.6/InfUser.html#INF-USER-LOCAL:CAPS"><code class="literal">INF_USER_LOCAL</code></a> flag set.</p>
<div class="refsect3">
<a name="id-1.2.2.11.4.6"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user</p></td>
<td class="parameter_description"><p>A <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-active-user"></a><h3>inf_text_gtk_buffer_get_active_user ()</h3>
<pre class="programlisting"><a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
inf_text_gtk_buffer_get_active_user (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns the current active user for <em class="parameter"><code>buffer</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.2.11.5.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.5.6"></a><h4>Returns</h4>
<p> A <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-author"></a><h3>inf_text_gtk_buffer_get_author ()</h3>
<pre class="programlisting"><a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
inf_text_gtk_buffer_get_author (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">GtkTextIter</span> *location</code></em>);</pre>
<p>Returns the <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> which wrote the character at <em class="parameter"><code>location</code></em>
. If there
is no such user, then <code class="literal">NULL</code> is returned.</p>
<div class="refsect3">
<a name="id-1.2.2.11.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>location</p></td>
<td class="parameter_description"><p>A <span class="type">GtkTextIter</span> which is not the end iterator.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.6.6"></a><h4>Returns</h4>
<p> A <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-user-for-tag"></a><h3>inf_text_gtk_buffer_get_user_for_tag ()</h3>
<pre class="programlisting"><a href="../libinftext-0.6/InfTextUser.html"><span class="returnvalue">InfTextUser</span></a> *
inf_text_gtk_buffer_get_user_for_tag (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">GtkTextTag</span> *tag</code></em>);</pre>
<p>If <em class="parameter"><code>tag</code></em>
is an author tag, i.e. used by <em class="parameter"><code>buffer</code></em>
to mark text that a certain
user has written, then this function returns the <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> whose text is
marked by <em class="parameter"><code>tag</code></em>
. If <em class="parameter"><code>tag</code></em>
is not an author tag then the function returns
<code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="id-1.2.2.11.7.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>tag</p></td>
<td class="parameter_description"><p>A <span class="type">GtkTextTag</span> from <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span>'s tag table.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.7.6"></a><h4>Returns</h4>
<p> A <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-is-author-toggle"></a><h3>inf_text_gtk_buffer_is_author_toggle ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_text_gtk_buffer_is_author_toggle (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code>const <span class="type">GtkTextIter</span> *iter</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_on</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_off</code></em>);</pre>
<p>This function returns <code class="literal">TRUE</code> if the author of the text in <em class="parameter"><code>buffer</code></em>
changes
at <em class="parameter"><code>iter</code></em>
, or <code class="literal">FALSE</code> otherwise. If it returns <code class="literal">TRUE</code>, then the user who
authored the text to the right hand side of <em class="parameter"><code>iter</code></em>
is stored in <em class="parameter"><code>user_on</code></em>
(if
non-<code class="literal">NULL</code>) and the author of the text to the left hand side of <em class="parameter"><code>iter</code></em>
is
stored in <em class="parameter"><code>user_off</code></em>
(if non-<code class="literal">NULL</code>). Both can also be set to <code class="literal">NULL</code> if there
is unowned text in the buffer or if <em class="parameter"><code>iter</code></em>
is at the start or end of the
buffer.</p>
<div class="refsect3">
<a name="id-1.2.2.11.8.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iter</p></td>
<td class="parameter_description"><p>A <span class="type">GtkTextIter</span> pointing into <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_on</p></td>
<td class="parameter_description"><p>A location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_off</p></td>
<td class="parameter_description"><p>Another location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.8.6"></a><h4>Returns</h4>
<p> Whether text attribution changes at <em class="parameter"><code>iter</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-forward-to-author-toggle"></a><h3>inf_text_gtk_buffer_forward_to_author_toggle ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_text_gtk_buffer_forward_to_author_toggle
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">GtkTextIter</span> *iter</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_on</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_off</code></em>);</pre>
<p>Moves <em class="parameter"><code>iter</code></em>
to the next point in <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span> where
the text has been written by another user. If <em class="parameter"><code>iter</code></em>
points to the end of
the buffer, then the function does nothing and returns <code class="literal">FALSE</code>. Otherwise
it returns <code class="literal">TRUE</code> and sets <em class="parameter"><code>user_on</code></em>
to the user which has written the text
on the right hand side of the location <em class="parameter"><code>iter</code></em>
has been moved to (if
non-<code class="literal">NULL</code>) and <em class="parameter"><code>user_off</code></em>
to the user which has written the left hand side
of the location <em class="parameter"><code>iter</code></em>
has been moved to.</p>
<div class="refsect3">
<a name="id-1.2.2.11.9.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iter</p></td>
<td class="parameter_description"><p>A <span class="type">GtkTextIter</span> pointing into <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_on</p></td>
<td class="parameter_description"><p>A location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_off</p></td>
<td class="parameter_description"><p>Another location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.9.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
was moved, or <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-backward-to-author-toggle"></a><h3>inf_text_gtk_buffer_backward_to_author_toggle ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_text_gtk_buffer_backward_to_author_toggle
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">GtkTextIter</span> *iter</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_on</code></em>,
<em class="parameter"><code><a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> **user_off</code></em>);</pre>
<p>Moves <em class="parameter"><code>iter</code></em>
to the previous point in <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span>
where the text has been written by another user. If <em class="parameter"><code>iter</code></em>
points to the
beginning of the buffer, then the function does nothing and returns <code class="literal">FALSE</code>.
Otherwise it returns <code class="literal">TRUE</code> and sets <em class="parameter"><code>user_on</code></em>
to the user which has written
the text on the right hand side of the location <em class="parameter"><code>iter</code></em>
has been moved to (if
non-<code class="literal">NULL</code>) and <em class="parameter"><code>user_off</code></em>
to the user which has written the left hand side
of the location <em class="parameter"><code>iter</code></em>
has been moved to.</p>
<div class="refsect3">
<a name="id-1.2.2.11.10.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iter</p></td>
<td class="parameter_description"><p>A <span class="type">GtkTextIter</span> pointing into <em class="parameter"><code>buffer</code></em>
's underlying <span class="type">GtkTextBuffer</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_on</p></td>
<td class="parameter_description"><p>A location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_off</p></td>
<td class="parameter_description"><p>Another location to store a <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a>, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.10.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
was moved, or <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-set-wake-on-cursor-movement"></a><h3>inf_text_gtk_buffer_set_wake_on_cursor_movement ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_set_wake_on_cursor_movement
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> wake</code></em>);</pre>
<p>This function spcecifies whether movement of the insertion point or
selection bound of the underlying text buffer causes the active user
(see <a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-active-user" title="inf_text_gtk_buffer_set_active_user ()"><code class="function">inf_text_gtk_buffer_set_active_user()</code></a>) to become active when its
status is <a href="../libinfinity-0.6/InfUser.html#INF-USER-INACTIVE:CAPS"><code class="literal">INF_USER_INACTIVE</code></a>.</p>
<p>If <em class="parameter"><code>wake</code></em>
is <code class="literal">TRUE</code>, then the user status changes to <a href="../libinfinity-0.6/InfUser.html#INF-USER-ACTIVE:CAPS"><code class="literal">INF_USER_ACTIVE</code></a>
in that case. If <em class="parameter"><code>wake</code></em>
is <code class="literal">FALSE</code>, then the user status stays
<a href="../libinfinity-0.6/InfUser.html#INF-USER-INACTIVE:CAPS"><code class="literal">INF_USER_INACTIVE</code></a>, and its caret-position and selection-length
properties will be no longer be synchronized to the buffer marks until
the user is set active again.</p>
<div class="refsect3">
<a name="id-1.2.2.11.11.6"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>wake</p></td>
<td class="parameter_description"><p>Whether to make inactive users active on cursor movement.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-wake-on-cursor-movement"></a><h3>inf_text_gtk_buffer_get_wake_on_cursor_movement ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_text_gtk_buffer_get_wake_on_cursor_movement
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns whether movement of the insertion point or selection bound of the
underlying text buffer causes whether the active user (see
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-active-user" title="inf_text_gtk_buffer_set_active_user ()"><code class="function">inf_text_gtk_buffer_set_active_user()</code></a>) to become active when its status
is <a href="../libinfinity-0.6/InfUser.html#INF-USER-INACTIVE:CAPS"><code class="literal">INF_USER_INACTIVE</code></a>. See also
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-set-wake-on-cursor-movement" title="inf_text_gtk_buffer_set_wake_on_cursor_movement ()"><code class="function">inf_text_gtk_buffer_set_wake_on_cursor_movement()</code></a>.</p>
<div class="refsect3">
<a name="id-1.2.2.11.12.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.12.6"></a><h4>Returns</h4>
<p> Whether to make inactive users active when the insertion mark
is moved.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-ensure-author-tags-priority"></a><h3>inf_text_gtk_buffer_ensure_author_tags_priority ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_ensure_author_tags_priority
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Ensures that all author tags have the lowest priority of all tags in the
underlying <span class="type">GtkTextBuffer</span>'s tag table. Normally you do not need to use
this function if you do not set the priority for your tags explicitely.
However, if you do (or are forced to do, because you are using a library
that does this, such as GtkSourceView), then you can call this function
afterwards to make sure all the user tags have the lowest priority.</p>
<div class="refsect3">
<a name="id-1.2.2.11.13.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-set-saturation-value"></a><h3>inf_text_gtk_buffer_set_saturation_value ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_set_saturation_value
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);</pre>
<p>Sets the saturation and value to use for user colors in a HSV color model.
The hue is defined by each user's individual color. The reason why S and V
are set locally the same for all users is that they can be adjusted
depending on one's theme: Dark themes want dark user colors, bright themes
want bright ones.</p>
<div class="refsect3">
<a name="id-1.2.2.11.14.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>saturation</p></td>
<td class="parameter_description"><p>Saturation to use for user colors.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>Value to use for user colors.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-set-fade"></a><h3>inf_text_gtk_buffer_set_fade ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_set_fade (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>,
<em class="parameter"><code>const <span class="type">GdkColor</span> *background</code></em>);</pre>
<p>This functions can be used to mix the user background color with another
background color, <em class="parameter"><code>background</code></em>
. Usually <em class="parameter"><code>background</code></em>
is meant to be set to
the background color of the <span class="type">GtkTextView</span> showing the buffer.</p>
<p>An <em class="parameter"><code>alpha</code></em>
value of 1.0 means to fully show the user background color, a
value of 0.0 means to show the given background color. Values inbetween
interpolate linearly between the two colors in RGB color space.</p>
<p>The default value for <em class="parameter"><code>alpha</code></em>
is 1.0.</p>
<div class="refsect3">
<a name="id-1.2.2.11.15.7"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>alpha</p></td>
<td class="parameter_description"><p>An alpha value between 0.0 and 1.0.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>background</p></td>
<td class="parameter_description"><p>The background color of the text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-saturation"></a><h3>inf_text_gtk_buffer_get_saturation ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
inf_text_gtk_buffer_get_saturation (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns the saturation part of the HSV user color.</p>
<div class="refsect3">
<a name="id-1.2.2.11.16.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.16.6"></a><h4>Returns</h4>
<p> The saturation used for user colors.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-value"></a><h3>inf_text_gtk_buffer_get_value ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
inf_text_gtk_buffer_get_value (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns the value part of the HSV user color.</p>
<div class="refsect3">
<a name="id-1.2.2.11.17.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.17.6"></a><h4>Returns</h4>
<p> The value used for user colors.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-set-show-user-colors"></a><h3>inf_text_gtk_buffer_set_show_user_colors ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_set_show_user_colors
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> show</code></em>);</pre>
<p>If <em class="parameter"><code>show</code></em>
is <code class="literal">TRUE</code> (the default), then the user color is used as background
for newly written text by that user. Otherwise, newly written text has no
background color.</p>
<p>Note that this setting is for newly written text only. If you want to show
or hide user colors for existing text use
<a class="link" href="InfTextGtkBuffer.html#inf-text-gtk-buffer-show-user-colors" title="inf_text_gtk_buffer_show_user_colors ()"><code class="function">inf_text_gtk_buffer_show_user_colors()</code></a>.</p>
<div class="refsect3">
<a name="id-1.2.2.11.18.6"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>show</p></td>
<td class="parameter_description"><p>Whether to show user colors or not.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-get-show-user-colors"></a><h3>inf_text_gtk_buffer_get_show_user_colors ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_text_gtk_buffer_get_show_user_colors
(<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>);</pre>
<p>Returns whether newly written text is attributed with the author's user
color or not.</p>
<div class="refsect3">
<a name="id-1.2.2.11.19.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.11.19.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if user color is applied to newly written text, or <code class="literal">FALSE</code>
otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-gtk-buffer-show-user-colors"></a><h3>inf_text_gtk_buffer_show_user_colors ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_text_gtk_buffer_show_user_colors (<em class="parameter"><code><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> *buffer</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> show</code></em>,
<em class="parameter"><code><span class="type">GtkTextIter</span> *start</code></em>,
<em class="parameter"><code><span class="type">GtkTextIter</span> *end</code></em>);</pre>
<p>If <em class="parameter"><code>show</code></em>
is <code class="literal">FALSE</code>, then don't show user colors (which user wrote what
text) as the background of the text, in the range from <em class="parameter"><code>start</code></em>
to <em class="parameter"><code>end</code></em>
.
If <em class="parameter"><code>show</code></em>
is <code class="literal">TRUE</code>, show user colors if they have previously been hidden
via a call to this function with <em class="parameter"><code>show</code></em>
being <code class="literal">FALSE</code>.</p>
<div class="refsect3">
<a name="id-1.2.2.11.20.5"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>show</p></td>
<td class="parameter_description"><p>Whether to show or hide user colors.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>start</p></td>
<td class="parameter_description"><p>Beginning of the range for which to show or hide user colors.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>end</p></td>
<td class="parameter_description"><p>End of the range for which to show or hide user colors.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="InfTextGtkBuffer-struct"></a><h3>struct InfTextGtkBuffer</h3>
<pre class="programlisting">struct InfTextGtkBuffer;</pre>
<p><a class="link" href="InfTextGtkBuffer.html" title="InfTextGtkBuffer"><span class="type">InfTextGtkBuffer</span></a> is an opaque data type. You should only access it via the
public API functions.</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBufferClass"></a><h3>struct InfTextGtkBufferClass</h3>
<pre class="programlisting">struct InfTextGtkBufferClass {
};
</pre>
<p>This structure does not contain any public fields.</p>
</div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="InfTextGtkBuffer--active-user"></a><h3>The <code class="literal">“active-user”</code> property</h3>
<pre class="programlisting"> “active-user” <a href="../libinftext-0.6/InfTextUser.html"><span class="type">InfTextUser</span></a> *</pre>
<p>The user currently inserting text locally.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--alpha"></a><h3>The <code class="literal">“alpha”</code> property</h3>
<pre class="programlisting"> “alpha” <span class="type">gdouble</span></pre>
<p>The translucency of the user color.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--background"></a><h3>The <code class="literal">“background”</code> property</h3>
<pre class="programlisting"> “background” <span class="type">GdkColor</span> *</pre>
<p>The global background color.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--buffer"></a><h3>The <code class="literal">“buffer”</code> property</h3>
<pre class="programlisting"> “buffer” <span class="type">GtkTextBuffer</span> *</pre>
<p>The underlaying GtkTextBuffer.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--saturation"></a><h3>The <code class="literal">“saturation”</code> property</h3>
<pre class="programlisting"> “saturation” <span class="type">gdouble</span></pre>
<p>Saturation of user colors in a HSV color model.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.35</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--show-user-colors"></a><h3>The <code class="literal">“show-user-colors”</code> property</h3>
<pre class="programlisting"> “show-user-colors” <span class="type">gboolean</span></pre>
<p>Whether to show user colors initially for newly written text.</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--user-table"></a><h3>The <code class="literal">“user-table”</code> property</h3>
<pre class="programlisting"> “user-table” <a href="../libinfinity-0.6/InfUserTable.html"><span class="type">InfUserTable</span></a> *</pre>
<p>A user table of the participating users.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--value"></a><h3>The <code class="literal">“value”</code> property</h3>
<pre class="programlisting"> “value” <span class="type">gdouble</span></pre>
<p>Value of user colors in a HSV color model.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextGtkBuffer--wake-on-cursor-movement"></a><h3>The <code class="literal">“wake-on-cursor-movement”</code> property</h3>
<pre class="programlisting"> “wake-on-cursor-movement” <span class="type">gboolean</span></pre>
<p>Whether to make inactive users active when the insertion mark in the TextBuffer moves.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="InfTextGtkBuffer.see-also"></a><h2>See Also</h2>
<p><a href="../libinftext-0.6/InfTextBuffer.html"><span class="type">InfTextBuffer</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|