This file is indexed.

/usr/share/gtk-doc/html/libinftext-0.5/libinftext-0.5-inf-text-buffer.html is in libinfinity-0.5-doc 0.5.5-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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>inf-text-buffer</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="libinftext-0.5 Reference Manual">
<link rel="up" href="ch01.html" title="libinftext API reference">
<link rel="prev" href="libinftext-0.5-inf-text-session.html" title="InfTextSession">
<link rel="next" href="InfTextUser.html" title="InfTextUser">
<meta name="generator" content="GTK-Doc V1.19 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="libinftext-0.5-inf-text-session.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinftext-0.5 Reference Manual</th>
<td><a accesskey="n" href="InfTextUser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinftext-0.5-inf-text-buffer.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-buffer.description" class="shortcut">Description</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-buffer.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-buffer.prerequisites" class="shortcut">Prerequisites</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-buffer.implementations" class="shortcut">Known Implementations</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-buffer.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="libinftext-0.5-inf-text-buffer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinftext-0.5-inf-text-buffer.top_of_page"></a>inf-text-buffer</span></h2>
<p>inf-text-buffer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libinftext-0.5-inf-text-buffer.synopsis"></a><h2>Synopsis</h2>
<a name="InfTextBuffer"></a><pre class="synopsis">                    <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer-struct" title="InfTextBuffer">InfTextBuffer</a>;
struct              <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIface" title="struct InfTextBufferIface">InfTextBufferIface</a>;
                    <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter">InfTextBufferIter</a>;
const <span class="returnvalue">gchar</span> *       <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-get-encoding" title="inf_text_buffer_get_encoding ()">inf_text_buffer_get_encoding</a>        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-get-length" title="inf_text_buffer_get_length ()">inf_text_buffer_get_length</a>          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-get-slice" title="inf_text_buffer_get_slice ()">inf_text_buffer_get_slice</a>           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-insert-text" title="inf_text_buffer_insert_text ()">inf_text_buffer_insert_text</a>         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">gconstpointer</span> text</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> bytes</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-insert-chunk" title="inf_text_buffer_insert_chunk ()">inf_text_buffer_insert_chunk</a>        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-erase-text" title="inf_text_buffer_erase_text ()">inf_text_buffer_erase_text</a>          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);
<a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="returnvalue">InfTextBufferIter</span></a> * <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-create-iter" title="inf_text_buffer_create_iter ()">inf_text_buffer_create_iter</a>         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-destroy-iter" title="inf_text_buffer_destroy_iter ()">inf_text_buffer_destroy_iter</a>        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-next" title="inf_text_buffer_iter_next ()">inf_text_buffer_iter_next</a>           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-prev" title="inf_text_buffer_iter_prev ()">inf_text_buffer_iter_prev</a>           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">gpointer</span>            <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-get-text" title="inf_text_buffer_iter_get_text ()">inf_text_buffer_iter_get_text</a>       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-get-length" title="inf_text_buffer_iter_get_length ()">inf_text_buffer_iter_get_length</a>     (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">gsize</span>               <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-get-bytes" title="inf_text_buffer_iter_get_bytes ()">inf_text_buffer_iter_get_bytes</a>      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-iter-get-author" title="inf_text_buffer_iter_get_author ()">inf_text_buffer_iter_get_author</a>     (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-text-inserted" title="inf_text_buffer_text_inserted ()">inf_text_buffer_text_inserted</a>       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-text-erased" title="inf_text_buffer_text_erased ()">inf_text_buffer_text_erased</a>         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GInterface
   +----InfTextBuffer
</pre>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.prerequisites"></a><h2>Prerequisites</h2>
<p>
InfTextBuffer requires
 <a href="../libinfinity-0.5/InfBuffer.html">InfBuffer</a> and  GObject.</p>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.implementations"></a><h2>Known Implementations</h2>
<p>
InfTextBuffer is implemented by
 <a class="link" href="InfTextDefaultBuffer.html" title="InfTextDefaultBuffer">InfTextDefaultBuffer</a>.</p>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer-text-erased" title='The "text-erased" signal'>text-erased</a>"                                    : <code class="literal">Run First</code>
  "<a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer-text-inserted" title='The "text-inserted" signal'>text-inserted</a>"                                  : <code class="literal">Run First</code>
</pre>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="InfTextBuffer-struct"></a><h3>InfTextBuffer</h3>
<pre class="programlisting">typedef struct _InfTextBuffer InfTextBuffer;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextBufferIface"></a><h3>struct InfTextBufferIface</h3>
<pre class="programlisting">struct InfTextBufferIface {
  GTypeInterface parent;

  /* Virtual table */
  const gchar* (*get_encoding)(InfTextBuffer* buffer);

  guint(*get_length)(InfTextBuffer* buffer);

  InfTextChunk*(*get_slice)(InfTextBuffer* buffer,
                            guint pos,
                            guint len);

  void(*insert_text)(InfTextBuffer* buffer,
                     guint pos,
                     InfTextChunk* chunk,
                     InfUser* user);

  void(*erase_text)(InfTextBuffer* buffer,
                    guint pos,
                    guint len,
                    InfUser* user);

  InfTextBufferIter*(*create_iter)(InfTextBuffer* buffer);

  void(*destroy_iter)(InfTextBuffer* buffer,
                      InfTextBufferIter* iter);

  gboolean(*iter_next)(InfTextBuffer* buffer,
                       InfTextBufferIter* iter);
  
  gboolean(*iter_prev)(InfTextBuffer* buffer,
                       InfTextBufferIter* iter);

  gpointer(*iter_get_text)(InfTextBuffer* buffer,
                           InfTextBufferIter* iter);

  guint(*iter_get_length)(InfTextBuffer* buffer,
                          InfTextBufferIter* iter);

  gsize(*iter_get_bytes)(InfTextBuffer* buffer,
                         InfTextBufferIter* iter);

  guint(*iter_get_author)(InfTextBuffer* buffer,
                          InfTextBufferIter* iter);

  /* Signals */
  void(*text_inserted)(InfTextBuffer* buffer,
                       guint pos,
                       InfTextChunk* chunk,
                       InfUser* user);

  void(*text_erased)(InfTextBuffer* buffer,
                     guint pos,
                     InfTextChunk* chunk,
                     InfUser* user);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextBufferIter"></a><h3>InfTextBufferIter</h3>
<pre class="programlisting">typedef struct _InfTextBufferIter InfTextBufferIter;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-get-encoding"></a><h3>inf_text_buffer_get_encoding ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       inf_text_buffer_get_encoding        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Returns the character encoding that the buffer uses. This means that all
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> return values are encoded in this encoding and all
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> parameters are expected to be encoded in that encoding.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The character encoding for <em class="parameter"><code>buffer</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-get-length"></a><h3>inf_text_buffer_get_length ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_buffer_get_length          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Returns the number of characters in <em class="parameter"><code>buffer</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The length of <em class="parameter"><code>buffer</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-get-slice"></a><h3>inf_text_buffer_get_slice ()</h3>
<pre class="programlisting"><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      inf_text_buffer_get_slice           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>);</pre>
<p>
Reads <em class="parameter"><code>len</code></em> characters, starting at <em class="parameter"><code>pos</code></em>, from the buffer, and returns them
as a <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>Character offset of where to start extracting.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>Number of characters to extract.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-insert-text"></a><h3>inf_text_buffer_insert_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_insert_text         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">gconstpointer</span> text</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> bytes</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Inserts <em class="parameter"><code>text</code></em> into <em class="parameter"><code>buffer</code></em> as written by <em class="parameter"><code>author</code></em>. <em class="parameter"><code>text</code></em> must be encoded in
the character encoding of the buffer, see <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-get-encoding" title="inf_text_buffer_get_encoding ()"><code class="function">inf_text_buffer_get_encoding()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>A character offset into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>A pointer to the text to insert.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bytes</code></em> :</span></p></td>
<td>The length (in bytes) of <em class="parameter"><code>text</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>The length (in characters) of <em class="parameter"><code>text</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> that has inserted the new text, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-insert-chunk"></a><h3>inf_text_buffer_insert_chunk ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_insert_chunk        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Inserts a <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> into <em class="parameter"><code>buffer</code></em>. <em class="parameter"><code>user</code></em> must not necessarily be the
author of <em class="parameter"><code>chunk</code></em> (<em class="parameter"><code>chunk</code></em> may even consist of multiple segments). This
happens when undoing a delete operation that erased another user's text.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>A character offset into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> inserting <em class="parameter"><code>chunk</code></em>, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-erase-text"></a><h3>inf_text_buffer_erase_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_erase_text          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> len</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Erases characters from the text buffer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>The position to begin deleting characters from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
<td>The amount of characters to delete.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> that erases the text, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-create-iter"></a><h3>inf_text_buffer_create_iter ()</h3>
<pre class="programlisting"><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="returnvalue">InfTextBufferIter</span></a> * inf_text_buffer_create_iter         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Creates a <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing to the first segment of <em class="parameter"><code>buffer</code></em>.
A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> is used to traverse the buffer contents in steps of
so-called segments each of which is written by the same user. The function
returns <code class="literal">NULL</code> if there are no segments (i.e. the buffer is empty).
</p>
<p>
The iterator stays valid as long as the buffer remains unmodified and
must be freed with <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-destroy-iter" title="inf_text_buffer_destroy_iter ()"><code class="function">inf_text_buffer_destroy_iter()</code></a> before.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> to be freed by
<a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-destroy-iter" title="inf_text_buffer_destroy_iter ()"><code class="function">inf_text_buffer_destroy_iter()</code></a> when done using it, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-destroy-iter"></a><h3>inf_text_buffer_destroy_iter ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_destroy_iter        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Destroys a <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> created by <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-create-iter" title="inf_text_buffer_create_iter ()"><code class="function">inf_text_buffer_create_iter()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-next"></a><h3>inf_text_buffer_iter_next ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_buffer_iter_next           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Moves <em class="parameter"><code>iter</code></em> to point to the next segment in the buffer. If <em class="parameter"><code>iter</code></em> already
points to the last segment, <em class="parameter"><code>iter</code></em> is left unmodified and the function
returns <code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether <em class="parameter"><code>iter</code></em> was moved.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-prev"></a><h3>inf_text_buffer_iter_prev ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_buffer_iter_prev           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Moves <em class="parameter"><code>iter</code></em> to point to the previous segment in the buffer. If <em class="parameter"><code>iter</code></em>
already points to the first segment, <em class="parameter"><code>iter</code></em> is left unmodified and the
function returns <code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether <em class="parameter"><code>iter</code></em> was moved.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-get-text"></a><h3>inf_text_buffer_iter_get_text ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span>            inf_text_buffer_iter_get_text       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Returns the text of the segment <em class="parameter"><code>iter</code></em> points to. It is encoded in
<em class="parameter"><code>buffer</code></em>'s encoding (see <a class="link" href="libinftext-0.5-inf-text-buffer.html#inf-text-buffer-get-encoding" title="inf_text_buffer_get_encoding ()"><code class="function">inf_text_buffer_get_encoding()</code></a>).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The text of the segment <em class="parameter"><code>iter</code></em> points to. Free with <code class="function">g_free()</code>
when done using it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-get-length"></a><h3>inf_text_buffer_iter_get_length ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_buffer_iter_get_length     (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Returns the length of the segment <em class="parameter"><code>iter</code></em> points to, in characters.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of characters of the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-get-bytes"></a><h3>inf_text_buffer_iter_get_bytes ()</h3>
<pre class="programlisting"><span class="returnvalue">gsize</span>               inf_text_buffer_iter_get_bytes      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Returns the length of the segment <em class="parameter"><code>iter</code></em> points to, in bytes.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of bytes of the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-iter-get-author"></a><h3>inf_text_buffer_iter_get_author ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_buffer_iter_get_author     (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> *iter</code></em>);</pre>
<p>
Returns the user ID of the user that has written the segment <em class="parameter"><code>iter</code></em> points
to.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBufferIter" title="InfTextBufferIter"><span class="type">InfTextBufferIter</span></a> pointing into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The user ID of the user that wrote the segment <em class="parameter"><code>iter</code></em> points
to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-text-inserted"></a><h3>inf_text_buffer_text_inserted ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_text_inserted       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Emits the <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer-text-inserted" title='The "text-inserted" signal'><span class="type">"text-inserted"</span></a> signal. This is meant to be used
by interface implementations in their <em class="parameter"><code>insert_text</code></em> function, or when text
was inserted by other means.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>A character offset into <em class="parameter"><code>buffer</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> inserting <em class="parameter"><code>chunk</code></em>, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-buffer-text-erased"></a><h3>inf_text_buffer_text_erased ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_buffer_text_erased         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> pos</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *chunk</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Emits the <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer-text-erased" title='The "text-erased" signal'><span class="type">"text-erased"</span></a> signal. This is meant to be used
by interface implementations in their <em class="parameter"><code>erase_text</code></em> function, or when text
was erased by other means.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>The position to begin deleting characters from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> containing the erased text.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a> that erases the text, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-buffer.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="InfTextBuffer-text-erased"></a><h3>The <code class="literal">"text-erased"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *inftextbuffer,
                                                        <span class="type">guint</span>          arg1,
                                                        <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>  *arg2,
                                                        <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a>       *arg3,
                                                        <span class="type">gpointer</span>       user_data)          : <code class="literal">Run First</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>inftextbuffer</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="InfTextBuffer-text-inserted"></a><h3>The <code class="literal">"text-inserted"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libinftext-0.5-inf-text-buffer.html#InfTextBuffer"><span class="type">InfTextBuffer</span></a> *inftextbuffer,
                                                        <span class="type">guint</span>          arg1,
                                                        <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>  *arg2,
                                                        <a href="../libinfinity-0.5/InfUser.html"><span class="type">InfUser</span></a>       *arg3,
                                                        <span class="type">gpointer</span>       user_data)          : <code class="literal">Run First</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>inftextbuffer</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>