This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGtkSource-5.gir
18268 lines (17927 loc) · 835 KB
/
GtkSource-5.gir
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
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="Gtk" version="4.0"/>
<package name="gtksourceview-5"/>
<c:include name="gtksourceview/gtksource.h"/>
<namespace name="GtkSource"
version="5"
shared-library="libgtksourceview-5.so.0"
c:identifier-prefixes="GtkSource"
c:symbol-prefixes="gtk_source">
<enumeration name="BackgroundPatternType"
version="3.16"
glib:type-name="GtkSourceBackgroundPatternType"
glib:get-type="gtk_source_background_pattern_type_get_type"
c:type="GtkSourceBackgroundPatternType">
<member name="none"
value="0"
c:identifier="GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE"
glib:nick="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourceview.h"
line="71">no pattern</doc>
</member>
<member name="grid"
value="1"
c:identifier="GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID"
glib:nick="grid">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourceview.h"
line="72">grid pattern</doc>
</member>
</enumeration>
<enumeration name="BracketMatchType"
glib:type-name="GtkSourceBracketMatchType"
glib:get-type="gtk_source_bracket_match_type_get_type"
c:type="GtkSourceBracketMatchType">
<member name="none"
value="0"
c:identifier="GTK_SOURCE_BRACKET_MATCH_NONE"
glib:nick="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.h"
line="43">there is no bracket to match.</doc>
</member>
<member name="out_of_range"
value="1"
c:identifier="GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE"
glib:nick="out-of-range">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.h"
line="44">matching a bracket
failed because the maximum range was reached.</doc>
</member>
<member name="not_found"
value="2"
c:identifier="GTK_SOURCE_BRACKET_MATCH_NOT_FOUND"
glib:nick="not-found">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.h"
line="46">a matching bracket was not found.</doc>
</member>
<member name="found"
value="3"
c:identifier="GTK_SOURCE_BRACKET_MATCH_FOUND"
glib:nick="found">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.h"
line="47">a matching bracket was found.</doc>
</member>
</enumeration>
<class name="Buffer"
c:symbol-prefix="buffer"
c:type="GtkSourceBuffer"
parent="Gtk.TextBuffer"
glib:type-name="GtkSourceBuffer"
glib:get-type="gtk_source_buffer_get_type"
glib:type-struct="BufferClass">
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="102"/>
<constructor name="new" c:identifier="gtk_source_buffer_new">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="611">Creates a new source buffer.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="105"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="617">a new source buffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</return-value>
<parameters>
<parameter name="table"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="613">a #GtkTextTagTable, or %NULL to create a new one.</doc>
<type name="Gtk.TextTagTable" c:type="GtkTextTagTable*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_language"
c:identifier="gtk_source_buffer_new_with_language">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="629">Creates a new source buffer using the highlighting patterns in
@language. This is equivalent to creating a new source buffer with
a new tag table and then calling gtk_source_buffer_set_language().</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="107"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="637">a new source buffer which will highlight text
according to the highlighting patterns in @language.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</return-value>
<parameters>
<parameter name="language" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="631">a #GtkSourceLanguage.</doc>
<type name="Language" c:type="GtkSourceLanguage*"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="bracket_matched">
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="96"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="state" transfer-ownership="none">
<type name="BracketMatchType" c:type="GtkSourceBracketMatchType"/>
</parameter>
</parameters>
</virtual-method>
<method name="backward_iter_to_source_mark"
c:identifier="gtk_source_buffer_backward_iter_to_source_mark"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1906">Moves @iter to the position of the previous #GtkSourceMark of the given
category. Returns %TRUE if @iter was moved. If @category is NULL, the
previous source mark can be of any category.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="142"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1916">whether @iter was moved.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1908">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1909">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1910">category to search for, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="change_case"
c:identifier="gtk_source_buffer_change_case"
version="3.12">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2480">Changes the case of the text between the specified iterators.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="174"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2482">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="case_type" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2483">how to change the case.</doc>
<type name="ChangeCaseType" c:type="GtkSourceChangeCaseType"/>
</parameter>
<parameter name="start" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2484">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2485">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="create_source_mark"
c:identifier="gtk_source_buffer_create_source_mark"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1766">Creates a source mark in the @buffer of category @category. A source mark is
a #GtkTextMark but organised into categories. Depending on the category
a pixbuf can be specified that will be displayed along the line of the mark.
Like a #GtkTextMark, a #GtkSourceMark can be anonymous if the
passed @name is %NULL. Also, the buffer owns the marks so you
shouldn't unreference it.
Marks always have left gravity and are moved to the beginning of
the line when the user deletes the line they were in.
Typical uses for a source mark are bookmarks, breakpoints, current
executing instruction indication in a source file, etc..</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="133"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1787">a new #GtkSourceMark, owned by the buffer.</doc>
<type name="Mark" c:type="GtkSourceMark*"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1768">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="name"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1769">the name of the mark, or %NULL.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1770">a string defining the mark category.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="where" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1771">location to place the mark.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="create_source_tag"
c:identifier="gtk_source_buffer_create_source_tag"
version="3.20"
introspectable="0">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2992">In short, this is the same function as gtk_text_buffer_create_tag(), but
instead of creating a #GtkTextTag, this function creates a #GtkSourceTag.
This function creates a #GtkSourceTag and adds it to the tag table for
@buffer. Equivalent to calling gtk_text_tag_new() and then adding the tag to
the buffer’s tag table. The returned tag is owned by the buffer’s tag table,
so the ref count will be equal to one.
If @tag_name is %NULL, the tag is anonymous.
If @tag_name is non-%NULL, a tag called @tag_name must not already
exist in the tag table for this buffer.
The @first_property_name argument and subsequent arguments are a list
of properties to set on the tag, as with g_object_set().</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="194"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="3015">a new #GtkSourceTag.</doc>
<type name="Gtk.TextTag" c:type="GtkTextTag*"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2994">a #GtkSourceBuffer</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="tag_name"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2995">name of the new tag, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="first_property_name"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2996">name of first property to set, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2997">%NULL-terminated list of property names and values</doc>
<varargs/>
</parameter>
</parameters>
</method>
<method name="ensure_highlight"
c:identifier="gtk_source_buffer_ensure_highlight">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1604">Forces buffer to analyze and highlight the given area synchronously.
<note>
<para>
This is a potentially slow operation and should be used only
when you need to make sure that some text not currently
visible is highlighted, for instance before printing.
</para>
</note></doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="129"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1606">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="start" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1607">start of the area to highlight.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1608">end of the area to highlight.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="forward_iter_to_source_mark"
c:identifier="gtk_source_buffer_forward_iter_to_source_mark"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1872">Moves @iter to the position of the next #GtkSourceMark of the given
@category. Returns %TRUE if @iter was moved. If @category is NULL, the
next source mark can be of any category.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="138"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1882">whether @iter was moved.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1874">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1875">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1876">category to search for, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_context_classes_at_iter"
c:identifier="gtk_source_buffer_get_context_classes_at_iter"
version="2.10">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2129">Get all defined context classes at @iter.
See the #GtkSourceBuffer description for the list of default context classes.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="163"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2138">a new %NULL
terminated array of context class names.
Use g_strfreev() to free the array if it is no longer needed.</doc>
<array c:type="gchar**">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2131">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2132">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="get_highlight_matching_brackets"
c:identifier="gtk_source_buffer_get_highlight_matching_brackets">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1359">Determines whether bracket match highlighting is activated for the
source buffer.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="114"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1366">%TRUE if the source buffer will highlight matching
brackets.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1361">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_highlight_syntax"
c:identifier="gtk_source_buffer_get_highlight_syntax">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1409">Determines whether syntax highlighting is activated in the source
buffer.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="109"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1416">%TRUE if syntax highlighting is enabled, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1411">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_implicit_trailing_newline"
c:identifier="gtk_source_buffer_get_implicit_trailing_newline"
version="3.14">
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="192"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2979">whether the @buffer has an implicit trailing newline.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2977">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_language"
c:identifier="gtk_source_buffer_get_language">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1516">Returns the #GtkSourceLanguage associated with the buffer,
see gtk_source_buffer_set_language(). The returned object should not be
unreferenced by the user.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="119"/>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1524">the #GtkSourceLanguage associated
with the buffer, or %NULL.</doc>
<type name="Language" c:type="GtkSourceLanguage*"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1518">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_source_marks_at_iter"
c:identifier="gtk_source_buffer_get_source_marks_at_iter"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1940">Returns the list of marks of the given category at @iter. If @category
is %NULL it returns all marks at @iter.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="146"/>
<return-value transfer-ownership="container">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1949">
a newly allocated #GSList.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="Mark"/>
</type>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1942">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1943">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1944">category to search for, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_source_marks_at_line"
c:identifier="gtk_source_buffer_get_source_marks_at_line"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1974">Returns the list of marks of the given category at @line.
If @category is %NULL, all marks at @line are returned.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="150"/>
<return-value transfer-ownership="container">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1983">
a newly allocated #GSList.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="Mark"/>
</type>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1976">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="line" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1977">a line number.</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="category"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1978">category to search for, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_style_scheme"
c:identifier="gtk_source_buffer_get_style_scheme">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1670">Returns the #GtkSourceStyleScheme associated with the buffer,
see gtk_source_buffer_set_style_scheme().
The returned object should not be unreferenced by the user.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="124"/>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1678">the #GtkSourceStyleScheme
associated with the buffer, or %NULL.</doc>
<type name="StyleScheme" c:type="GtkSourceStyleScheme*"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1672">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
</parameters>
</method>
<method name="iter_backward_to_context_class_toggle"
c:identifier="gtk_source_buffer_iter_backward_to_context_class_toggle"
version="2.10">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2222">Moves backward to the next toggle (on or off) of the context class. If no
matching context class toggles are found, returns %FALSE, otherwise %TRUE.
Does not return toggles located at @iter, only toggles after @iter. Sets
@iter to the location of the toggle, or to the end of the buffer if no
toggle is found.
See the #GtkSourceBuffer description for the list of default context classes.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="170"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2236">whether we found a context class toggle before @iter</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2224">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2225">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2226">the context class.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="iter_forward_to_context_class_toggle"
c:identifier="gtk_source_buffer_iter_forward_to_context_class_toggle"
version="2.10">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2183">Moves forward to the next toggle (on or off) of the context class. If no
matching context class toggles are found, returns %FALSE, otherwise %TRUE.
Does not return toggles located at @iter, only toggles after @iter. Sets
@iter to the location of the toggle, or to the end of the buffer if no
toggle is found.
See the #GtkSourceBuffer description for the list of default context classes.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="166"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2197">whether we found a context class toggle after @iter</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2185">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2186">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2187">the context class.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="iter_has_context_class"
c:identifier="gtk_source_buffer_iter_has_context_class"
version="2.10">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2095">Check if the class @context_class is set on @iter.
See the #GtkSourceBuffer description for the list of default context classes.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="159"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2105">whether @iter has the context class.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2097">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2098">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2099">class to search for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="join_lines"
c:identifier="gtk_source_buffer_join_lines"
version="3.16">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2566">Joins the lines of text between the specified iterators.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="179"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2568">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="start" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2569">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2570">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="remove_source_marks"
c:identifier="gtk_source_buffer_remove_source_marks"
version="2.2">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2020">Remove all marks of @category between @start and @end from the buffer.
If @category is NULL, all marks in the range will be removed.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="154"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2022">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="start" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2023">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2024">a #GtkTextIter.</doc>
<type name="Gtk.TextIter" c:type="const GtkTextIter*"/>
</parameter>
<parameter name="category"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2025">category to search for, or %NULL.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_highlight_matching_brackets"
c:identifier="gtk_source_buffer_set_highlight_matching_brackets">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1379">Controls the bracket match highlighting function in the buffer. If
activated, when you position your cursor over a bracket character
(a parenthesis, a square bracket, etc.) the matching opening or
closing bracket character will be highlighted.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="116"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1381">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="highlight" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1382">%TRUE if you want matching brackets highlighted.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_highlight_syntax"
c:identifier="gtk_source_buffer_set_highlight_syntax">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1428">Controls whether syntax is highlighted in the buffer.
If @highlight is %TRUE, the text will be highlighted according to the syntax
patterns specified in the #GtkSourceLanguage set with
gtk_source_buffer_set_language().
If @highlight is %FALSE, syntax highlighting is disabled and all the
#GtkTextTag objects that have been added by the syntax highlighting engine
are removed from the buffer.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="111"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1430">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="highlight" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1431">%TRUE to enable syntax highlighting, %FALSE to disable it.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_implicit_trailing_newline"
c:identifier="gtk_source_buffer_set_implicit_trailing_newline"
version="3.14">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2935">Sets whether the @buffer has an implicit trailing newline.
If an explicit trailing newline is present in a #GtkTextBuffer, #GtkTextView
shows it as an empty line. This is generally not what the user expects.
If @implicit_trailing_newline is %TRUE (the default value):
- when a #GtkSourceFileLoader loads the content of a file into the @buffer,
the trailing newline (if present in the file) is not inserted into the
@buffer.
- when a #GtkSourceFileSaver saves the content of the @buffer into a file, a
trailing newline is added to the file.
On the other hand, if @implicit_trailing_newline is %FALSE, the file's
content is not modified when loaded into the @buffer, and the @buffer's
content is not modified when saved into a file.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="189"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2937">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="implicit_trailing_newline"
transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="2938">the new value.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_language"
c:identifier="gtk_source_buffer_set_language">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1460">Associates a #GtkSourceLanguage with the buffer.
Note that a #GtkSourceLanguage affects not only the syntax highlighting, but
also the [context classes][context-classes]. If you want to disable just the
syntax highlighting, see gtk_source_buffer_set_highlight_syntax().
The buffer holds a reference to @language.</doc>
<source-position filename="../gtksourceview/gtksourcebuffer.h"
line="121"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="buffer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1462">a #GtkSourceBuffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</instance-parameter>
<parameter name="language"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve"
filename="../gtksourceview/gtksourcebuffer.c"
line="1463">a #GtkSourceLanguage to set, or %NULL.</doc>