File: gtktext.defs

package info (click to toggle)
rep-gtk 1:0.90.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 824 kB
  • sloc: sh: 3,452; ansic: 3,402; lisp: 1,218; makefile: 96
file content (957 lines) | stat: -rw-r--r-- 18,857 bytes parent folder | download | duplicates (2)
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
;; -*- lisp -*-

(define-object GtkTextBuffer (GObject))
(define-object GtkTextMark (GObject))
(define-object GtkTextTag (GObject))
(define-object GtkTextTagTable (GObject))

(define-boxed GtkTextIter
  (copy gtk_text_iter_copy)
  (free gtk_text_iter_free))

(define-object GtkTextMark (GObject))

(define-object GtkTextView (GtkContainer))

(define-flags GtkTextSearchFlags
  (visible-only GTK_TEXT_SEARCH_VISIBLE_ONLY)
  (text-only GTK_TEXT_SEARCH_TEXT_ONLY))

(define-enum GtkTextWindowType
  (private GTK_TEXT_WINDOW_PRIVATE)
  (widget GTK_TEXT_WINDOW_WIDGET)
  (text GTK_TEXT_WINDOW_TEXT)
  (left GTK_TEXT_WINDOW_LEFT)
  (right GTK_TEXT_WINDOW_RIGHT)
  (top GTK_TEXT_WINDOW_TOP)
  (bottom GTK_TEXT_WINDOW_BOTTOM))

;; TextMark

(define-func gtk_text_mark_set_visible
  none
  ((GtkTextMark mark)
   (bool setting)))

(define-func gtk_text_mark_get_visible
  bool
  ((GtkTextMark mark)))

(define-func gtk_text_mark_get_name
  static_string
  ((GtkTextMark mark)))

(define-func gtk_text_mark_get_deleted
  bool
  ((GtkTextMark mark)))

(define-func gtk_text_mark_get_buffer
  GtkTextBuffer
  ((GtkTextMark mark)))

(define-func gtk_text_mark_get_left_gravity
  bool
  ((GtkTextMark mark)))

;; TextTag

(define-func gtk_text_tag_new
  GtkTextTag
  ((string name)))

(define-func gtk_text_tag_get_priority
  int
  ((GtkTextTag tag)))

(define-func gtk_text_tag_set_priority
  none
  ((GtkTextTag tag)
   (int priority)))

(define-func gtk_text_tag_event
  bool
  ((GtkTextTag tag)
   (GObject event_object)
   (GdkEvent event)
   (GtkTextIter iter)))

;; XXX text_attributes foo?

;; TextTagTable

(define-func gtk_text_tag_table_new
  GtkTextTagTable
  ())

(define-func gtk_text_tag_table_add
  none
  ((GtkTextTagTable table)
   (GtkTextTag tag)))

(define-func gtk_text_tag_table_remove
  none
  ((GtkTextTagTable table)
   (GtkTextTag tag)))

(define-func gtk_text_tag_table_lookup
  GtkTextTag
  ((GtkTextTagTable table)
   (string name)))

;; XXX foreach

(define-func gtk_text_tag_table_get_size
  int
  ((GtkTextTagTable table)))

;; TextIter

;; not in the usual API, defined locally
(define-func gtk_text_iter_new
  GtkTextIter
  ())

(define-func gtk_text_iter_get_offset
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_line
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_line_offset
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_line_index
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_visible_line_offset
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_visible_line_index
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_char
  char
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_slice
  string
  ((GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_iter_get_text
  string
  ((GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_iter_get_visible_slice
  string
  ((GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_iter_get_visible_text
  string
  ((GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_iter_get_pixbuf
  GdkPixbuf
  ((GtkTextIter iter)))

;; XXX get_marks, get_child_anchor, get_toggle_tags

(define-func gtk_text_iter_begins_tag
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

(define-func gtk_text_iter_ends_tag
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

(define-func gtk_text_iter_toggles_tag
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

(define-func gtk_text_iter_has_tag
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

;; XXX get_tags

(define-func gtk_text_iter_editable
  bool
  ((GtkTextIter iter)
   (bool default_setting)))

(define-func gtk_text_iter_can_insert
  bool
  ((GtkTextIter iter)
   (bool default_editability)))

(define-func gtk_text_iter_starts_word
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_ends_word
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_inside_word
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_starts_sentence
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_ends_sentence
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_inside_sentence
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_starts_line
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_ends_line
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_is_cursor_position
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_chars_in_line
  int
  ((GtkTextIter iter)))

(define-func gtk_text_iter_get_bytes_in_line
  int
  ((GtkTextIter iter)))

;; XXX get_attributes, get_language

(define-func gtk_text_iter_is_end
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_is_start
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_char
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_backward_char
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_chars
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_backward_chars
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_forward_line
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_backward_line
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_lines
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_backward_lines
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_forward_word_end
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_backward_word_start
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_word_ends
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_backward_sentence_starts
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_forward_sentence_end
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_backward_sentence_start
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_sentence_ends
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_backward_sentence_starts
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_forward_cursor_position
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_backward_cursor_position
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_cursor_positions
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_backward_cursor_positions
  bool
  ((GtkTextIter iter)
   (int count)))

(define-func gtk_text_iter_set_offset
  none
  ((GtkTextIter iter)
   (int char_offsets)))

(define-func gtk_text_iter_set_line
  none
  ((GtkTextIter iter)
   (int line_number)))

(define-func gtk_text_iter_set_line_offset
  none
  ((GtkTextIter iter)
   (int line_offset)))

(define-func gtk_text_iter_set_line_index
  none
  ((GtkTextIter iter)
   (int line_index)))

(define-func gtk_text_iter_forward_to_end
  none
  ((GtkTextIter iter)))

(define-func gtk_text_iter_forward_to_line_end
  bool
  ((GtkTextIter iter)))

(define-func gtk_text_iter_set_visible_line_offset
  none
  ((GtkTextIter iter)
   (int char_on_line)))

(define-func gtk_text_iter_set_visible_line_index
  none
  ((GtkTextIter iter)
   (int byte_on_line)))

(define-func gtk_text_iter_forward_to_tag_toggle
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

(define-func gtk_text_iter_backward_to_tag_toggle
  bool
  ((GtkTextIter iter)
   (GtkTextTag tag)))

;; XXX {forward,backward}_find_char

(define-func gtk_text_iter_forward_search
  bool
  ((GtkTextIter iter)
   (string str)
   (GtkTextSearchFlags flags)
   (GtkTextIter match_start)
   (GtkTextIter match_end)
   (GtkTextIter limit)))

(define-func gtk_text_iter_backward_search
  bool
  ((GtkTextIter iter)
   (string str)
   (GtkTextSearchFlags flags)
   (GtkTextIter match_start)
   (GtkTextIter match_end)
   (GtkTextIter limit)))

(define-func gtk_text_iter_equal
  bool
  ((GtkTextIter lhs)
   (GtkTextIter rhs)))

(define-func gtk_text_iter_compare
  int
  ((GtkTextIter lhs)
   (GtkTextIter rhs)))

(define-func gtk_text_iter_in_range
  bool
  ((GtkTextIter iter)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_iter_order
  none
  ((GtkTextIter first)
   (GtkTextIter second)))

;; TextBuffer

(define-func gtk_text_buffer_new
  GtkTextBuffer
  ((GtkTextTagTable table (null-ok))))

(define-func gtk_text_buffer_get_line_count
  int
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_get_char_count
  int
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_set_text
  none
  ((GtkTextBuffer buffer)
   (string text)
   (int len (= "-1"))))

(define-func gtk_text_buffer_insert
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (string text)
   (int len (= "-1"))))

(define-func gtk_text_buffer_insert_at_cursor
  none
  ((GtkTextBuffer buffer)
   (string text)
   (int len (= "-1"))))

(define-func gtk_text_buffer_insert_interactive
  bool
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (string text)
   (int len (= "-1"))
   (bool default_editable)))

(define-func gtk_text_buffer_insert_interactive_at_cursor
  bool
  ((GtkTextBuffer buffer)
   (string text)
   (int len (= "-1"))
   (bool default_editable)))

(define-func gtk_text_buffer_insert_range
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_insert_range_interactive
  bool
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (GtkTextIter start)
   (GtkTextIter end)
   (bool default_editable)))

;; XXX insert_with_tags

(define-func gtk_text_buffer_delete
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_delete_interactive
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)
   (bool default_editable)))

(define-func gtk_text_buffer_get_text
  string
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)
   (bool include_hidden_chars)))

(define-func gtk_text_buffer_get_slice
  string
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)
   (bool include_hidden_chars)))

(define-func gtk_text_buffer_insert_pixbuf
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (GdkPixbuf pixbuf)))

;; XXX {insert,create}_child_anchor

(define-func gtk_text_buffer_create_mark
  GtkTextMark
  ((GtkTextBuffer buffer)
   (string mark_name)
   (GtkTextIter where)
   (bool left_gravity)))

(define-func gtk_text_buffer_move_mark
  none
  ((GtkTextBuffer buffer)
   (GtkTextMark mark)
   (GtkTextIter where)))

(define-func gtk_text_buffer_delete_mark
  none
  ((GtkTextBuffer buffer)
   (GtkTextMark mark)))

(define-func gtk_text_buffer_get_mark
  GtkTextMark
  ((GtkTextBuffer buffer)
   (string name)))

(define-func gtk_text_buffer_move_mark_by_name
  none
  ((GtkTextBuffer buffer)
   (string name)
   (GtkTextIter where)))

(define-func gtk_text_buffer_delete_mark_by_name
  none
  ((GtkTextBuffer buffer)
   (string name)))

(define-func gtk_text_buffer_get_insert
  GtkTextMark
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_get_selection_bound
  GtkTextMark
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_place_cursor
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter where)))

(define-func gtk_text_buffer_apply_tag
  none
  ((GtkTextBuffer buffer)
   (GtkTextTag tag)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_remove_tag
  none
  ((GtkTextBuffer buffer)
   (GtkTextTag tag)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_apply_tag_by_name
  none
  ((GtkTextBuffer buffer)
   (string name)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_remove_tag_by_name
  none
  ((GtkTextBuffer buffer)
   (string name)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_remove_all_tags
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)))

;; XXX create_tag

(define-func gtk_text_buffer_get_iter_at_line_offset
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (int line_number)
   (int char_offset)))

(define-func gtk_text_buffer_get_iter_at_line_index
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (int line_number)
   (int byte_index)))

(define-func gtk_text_buffer_get_iter_at_offset
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (int char_offset)))

(define-func gtk_text_buffer_get_iter_at_line
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (int line_number)))

(define-func gtk_text_buffer_get_start_iter
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)))

(define-func gtk_text_buffer_get_end_iter
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)))

(define-func gtk_text_buffer_get_bounds
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_get_iter_at_mark
  none
  ((GtkTextBuffer buffer)
   (GtkTextIter iter)
   (GtkTextMark mark)))

;; XXX get_iter_at_child_anchor

(define-func gtk_text_buffer_get_modified
  bool
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_set_modified
  none
  ((GtkTextBuffer buffer)
   (bool setting)))

;; XXX GtkClipboard?
;(define-func gtk_text_buffer_add_selection_clipboard
;  none
;  ((GtkTextBuffer buffer)
;   (GtkClipboard clipboard)))
;
;(define-func gtk_text_buffer_remove_selection_clipboard
;  none
;  ((GtkTextBuffer buffer)
;   (GtkClipboard clipboard)))
;
;(define-func gtk_text_buffer_cut_clipboard
;  none
;  ((GtkTextBuffer buffer)
;   (GtkClipboard clipboard)
;   (bool default_editable)))
;
;(define-func gtk_text_buffer_copy_clipboard
;  none
;  ((GtkTextBuffer buffer)
;   (GtkClipboard clipboard)))
;
;(define-func gtk_text_buffer_paste_clipboard
;  none
;  ((GtkTextBuffer buffer)
;   (GtkClipboard clipboard)
;   (GtkTextIter override_location (null-ok))
;   (bool default_editable)))

(define-func gtk_text_buffer_get_selection_bounds
  bool
  ((GtkTextBuffer buffer)
   (GtkTextIter start)
   (GtkTextIter end)))

(define-func gtk_text_buffer_delete_selection
  bool
  ((GtkTextBuffer buffer)
   (bool interactive)
   (bool default_editable)))

(define-func gtk_text_buffer_begin_user_action
  none
  ((GtkTextBuffer buffer)))

(define-func gtk_text_buffer_end_user_action
  none
  ((GtkTextBuffer buffer)))

;; TextView

(define-func gtk_text_view_new
  GtkWidget
  ())

(define-func gtk_text_view_new_with_buffer
  GtkWidget
  ((GtkTextBuffer buffer)))

(define-func gtk_text_view_set_buffer
  none
  ((GtkTextView view)
   (GtkTextBuffer buffer)))

(define-func gtk_text_view_get_buffer
  GtkTextBuffer
  ((GtkTextView view)))

(define-func gtk_text_view_scroll_to_iter
  bool
  ((GtkTextView view)
   (GtkTextIter iter)
   (double within_margin)
   (bool use_align)
   (double xalign)
   (double yalign)))

(define-func gtk_text_view_scroll_to_mark
  none
  ((GtkTextView view)
   (GtkTextMark mark)
   (double within_margin)
   (bool use_align)
   (double xalign)
   (double yalign)))

(define-func gtk_text_view_scroll_mark_onscreen
  none
  ((GtkTextView view)
   (GtkTextMark mark)))

(define-func gtk_text_view_move_mark_onscreen
  bool
  ((GtkTextView view)
   (GtkTextMark mark)))

(define-func gtk_text_view_place_cursor_onscreen
  bool
  ((GtkTextView view)))

;; XXX GdkRectangle?
;(define-func gtk_text_view_get_visible_rect
;  none
;  ((GtkTextView view)
;   (GdkRectangle rect)))

(define-func gtk_text_view_set_cursor_visible
  none
  ((GtkTextView view)
   (bool setting)))

(define-func gtk_text_view_get_cursor_visible
  bool
  ((GtkTextView view)))

;; XXX GdkRectangle?
;(define-func gtk_text_view_get_iter_location
;  none
;  ((GtkTextView view)
;   (GtkTextIter iter)
;   (GdkRectangle location)))

(define-func gtk_text_view_get_iter_at_location
  none
  ((GtkTextView view)
   (GtkTextIter iter)
   (int x)
   (int y)))

;; XXX get_line_yrange, get_line_at_y, buffer_to_window_coords, window_to_buffer_coords

(define-func gtk_text_view_get_window
  GdkWindow
  ((GtkTextView view)
   (GtkTextWindowType type)))

(define-func gtk_text_view_get_window_type
  GtkTextWindowType
  ((GtkTextView view)
   (GdkWindow window)))

(define-func gtk_text_view_set_border_window_size
  none
  ((GtkTextView view)
   (GtkTextWindowType type)
   (int size)))

(define-func gtk_text_view_get_border_window_size
  int
  ((GtkTextView view)
   (GtkTextWindowType type)))

(define-func gtk_text_view_forward_display_line
  bool
  ((GtkTextView view)
   (GtkTextIter iter)))

(define-func gtk_text_view_backward_display_line
  bool
  ((GtkTextView view)
   (GtkTextIter iter)))

(define-func gtk_text_view_forward_display_line_end
  bool
  ((GtkTextView view)
   (GtkTextIter iter)))

(define-func gtk_text_view_backward_display_line_start
  bool
  ((GtkTextView view)
   (GtkTextIter iter)))

(define-func gtk_text_view_starts_display_line
  bool
  ((GtkTextView view)
   (GtkTextIter iter)))

(define-func gtk_text_view_move_visually
  bool
  ((GtkTextView view)
   (GtkTextIter iter)
   (int count)))

;; XXX add_child_at_anchor

(define-func gtk_text_view_add_child_in_window
  none
  ((GtkTextView view)
   (GtkWidget child)
   (GtkTextWindowType which_window)
   (int xpos)
   (int ypos)))

(define-func gtk_text_view_move_child
  none
  ((GtkTextView view)
   (GtkWidget child)
   (int xpos)
   (int ypos)))

(define-func gtk_text_view_set_wrap_mode
  none
  ((GtkTextView view)
   (GtkWrapMode wrap_mode)))

(define-func gtk_text_view_get_wrap_mode
  GtkWrapMode
  ((GtkTextView view)))

(define-func gtk_text_view_set_editable
  none
  ((GtkTextView view)
   (bool setting)))

(define-func gtk_text_view_get_editable
  bool
  ((GtkTextView view)))

(define-func gtk_text_view_set_pixels_above_lines
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_pixels_above_lines
  int
  ((GtkTextView view)))

(define-func gtk_text_view_set_pixels_below_lines
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_pixels_below_lines
  int
  ((GtkTextView view)))

(define-func gtk_text_view_set_pixels_inside_wrap
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_pixels_inside_wrap
  int
  ((GtkTextView view)))

(define-func gtk_text_view_set_justification
  none
  ((GtkTextView view)
   (GtkJustification setting)))

(define-func gtk_text_view_get_justification
  GtkJustification
  ((GtkTextView view)))

(define-func gtk_text_view_set_left_margin
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_left_margin
  int
  ((GtkTextView view)))

(define-func gtk_text_view_set_right_margin
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_right_margin
  int
  ((GtkTextView view)))

(define-func gtk_text_view_set_indent
  none
  ((GtkTextView view)
   (int setting)))

(define-func gtk_text_view_get_indent
  int
  ((GtkTextView view)))

;; XXX set/get_tabs