-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathGtkSource-2.0.gir
6063 lines (6063 loc) · 272 KB
/
GtkSource-2.0.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.1"
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="Atk" version="1.0"/>
<include name="GLib" version="2.0"/>
<include name="GModule" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gdk" version="2.0"/>
<include name="GdkPixbuf" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Gtk" version="2.0"/>
<include name="Pango" version="1.0"/>
<include name="cairo" version="1.0"/>
<package name="gtksourceview-2.0"/>
<namespace name="GtkSource"
version="2.0"
shared-library="libgtksourceview-2.0.so.0"
c:prefix="GtkSource">
<class name="Buffer"
c:type="GtkSourceBuffer"
parent="Gtk.TextBuffer"
glib:type-name="GtkSourceBuffer"
glib:get-type="gtk_source_buffer_get_type"
glib:type-struct="BufferClass">
<constructor name="new" c:identifier="gtk_source_buffer_new">
<doc xml:whitespace="preserve">Creates a new source buffer.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new source buffer.</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</return-value>
<parameters>
<parameter name="table" transfer-ownership="none">
<doc xml:whitespace="preserve">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:whitespace="preserve">Creates a new source buffer using the highlighting patterns in
a new tag table and then calling gtk_source_buffer_set_language().
according to the highlighting patterns in @language.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new source buffer which will highlight text</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</return-value>
<parameters>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkSourceLanguage.</doc>
<type name="Language" c:type="GtkSourceLanguage*"/>
</parameter>
</parameters>
</constructor>
<method name="get_highlight_syntax"
c:identifier="gtk_source_buffer_get_highlight_syntax">
<doc xml:whitespace="preserve">Determines whether syntax highlighting is activated in the source
buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if syntax highlighting is enabled, %FALSE otherwise.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
</method>
<method name="set_highlight_syntax"
c:identifier="gtk_source_buffer_set_highlight_syntax">
<doc xml:whitespace="preserve">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 language 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>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="highlight" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE to enable syntax highlighting, %FALSE to disable it.</doc>
<type name="boolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="get_highlight_matching_brackets"
c:identifier="gtk_source_buffer_get_highlight_matching_brackets">
<doc xml:whitespace="preserve">Determines whether bracket match highlighting is activated for the
source buffer.
brackets.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the source buffer will highlight matching</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
</method>
<method name="set_highlight_matching_brackets"
c:identifier="gtk_source_buffer_set_highlight_matching_brackets">
<doc xml:whitespace="preserve">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. You can specify the
style with the gtk_source_buffer_set_bracket_match_style()
function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="highlight" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if you want matching brackets highlighted.</doc>
<type name="boolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="get_max_undo_levels"
c:identifier="gtk_source_buffer_get_max_undo_levels">
<doc xml:whitespace="preserve">Determines the number of undo levels the buffer will track for
buffer edits.
-1 if no limit is set.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the maximum number of possible undo levels or</doc>
<type name="int" c:type="gint"/>
</return-value>
</method>
<method name="set_max_undo_levels"
c:identifier="gtk_source_buffer_set_max_undo_levels">
<doc xml:whitespace="preserve">Sets the number of undo levels for user actions the buffer will
track. If the number of user actions exceeds the limit set by this
function, older actions will be discarded.
If @max_undo_levels is -1, no limit is set.
A new action is started whenever the function
gtk_text_buffer_begin_user_action() is called. In general, this
happens whenever the user presses any key which modifies the
buffer, but the undo manager will try to merge similar consecutive
actions, such as multiple character insertions into one action.
But, inserting a newline does start a new action.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="max_undo_levels" transfer-ownership="none">
<doc xml:whitespace="preserve">the desired maximum number of undo levels.</doc>
<type name="int" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="get_language"
c:identifier="gtk_source_buffer_get_language">
<doc xml:whitespace="preserve">Returns the #GtkSourceLanguage associated with the buffer,
see gtk_source_buffer_set_language(). The returned object should not be
unreferenced by the user.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">#GtkSourceLanguage associated with the buffer, or %NULL.</doc>
<type name="Language" c:type="GtkSourceLanguage*"/>
</return-value>
</method>
<method name="set_language"
c:identifier="gtk_source_buffer_set_language">
<doc xml:whitespace="preserve">Associate a #GtkSourceLanguage with the source buffer. If @language is
not-%NULL and syntax highlighting is enabled (see gtk_source_buffer_set_highlight_syntax()),
the syntax patterns defined in @language will be used to highlight the text
contained in the buffer. If @language is %NULL, the text contained in the
buffer is not highlighted.
The buffer holds a reference to @language.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkSourceLanguage to set, or %NULL.</doc>
<type name="Language" c:type="GtkSourceLanguage*"/>
</parameter>
</parameters>
</method>
<method name="can_undo" c:identifier="gtk_source_buffer_can_undo">
<doc xml:whitespace="preserve">Determines whether a source buffer can undo the last action.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if it's possible to undo the last action.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
</method>
<method name="can_redo" c:identifier="gtk_source_buffer_can_redo">
<doc xml:whitespace="preserve">Determines whether a source buffer can redo the last action
(i.e. if the last operation was an undo).</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if a redo is possible.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
</method>
<method name="get_style_scheme"
c:identifier="gtk_source_buffer_get_style_scheme">
<doc xml:whitespace="preserve">Returns the #GtkSourceStyleScheme currently used in @buffer.
gtk_source_buffer_set_style_scheme(), or %NULL.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the #GtkSourceStyleScheme set by</doc>
<type name="StyleScheme" c:type="GtkSourceStyleScheme*"/>
</return-value>
</method>
<method name="set_style_scheme"
c:identifier="gtk_source_buffer_set_style_scheme">
<doc xml:whitespace="preserve">Sets style scheme used by the buffer. If @scheme is %NULL no
style scheme is used.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="scheme" transfer-ownership="none">
<doc xml:whitespace="preserve">style scheme.</doc>
<type name="StyleScheme" c:type="GtkSourceStyleScheme*"/>
</parameter>
</parameters>
</method>
<method name="ensure_highlight"
c:identifier="gtk_source_buffer_ensure_highlight">
<doc xml:whitespace="preserve">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>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="start" transfer-ownership="none">
<doc xml:whitespace="preserve">start of the area to highlight.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:whitespace="preserve">end of the area to highlight.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="undo" c:identifier="gtk_source_buffer_undo">
<doc xml:whitespace="preserve">Undoes the last user action which modified the buffer. Use
gtk_source_buffer_can_undo() to check whether a call to this
function will have any effect.
Actions are defined as groups of operations between a call to
gtk_text_buffer_begin_user_action() and
gtk_text_buffer_end_user_action(), or sequences of similar edits
(inserts or deletes) on the same line.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="redo" c:identifier="gtk_source_buffer_redo">
<doc xml:whitespace="preserve">Redoes the last undo operation. Use gtk_source_buffer_can_redo()
to check whether a call to this function will have any effect.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="begin_not_undoable_action"
c:identifier="gtk_source_buffer_begin_not_undoable_action">
<doc xml:whitespace="preserve">Marks the beginning of a not undoable action on the buffer,
disabling the undo manager. Typically you would call this function
before initially setting the contents of the buffer (e.g. when
loading a file in a text editor).
You may nest gtk_source_buffer_begin_not_undoable_action() /
gtk_source_buffer_end_not_undoable_action() blocks.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="end_not_undoable_action"
c:identifier="gtk_source_buffer_end_not_undoable_action">
<doc xml:whitespace="preserve">Marks the end of a not undoable action on the buffer. When the
last not undoable block is closed through the call to this
function, the list of undo actions is cleared and the undo manager
is re-enabled.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="create_source_mark"
c:identifier="gtk_source_buffer_create_source_mark"
version="2.2">
<doc xml:whitespace="preserve">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>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new #GtkSourceMark, owned by the buffer.</doc>
<type name="Mark" c:type="GtkSourceMark*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">the name of the mark, or %NULL.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">a string defining the mark category.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="where" transfer-ownership="none">
<doc xml:whitespace="preserve">location to place the mark.</doc>
<type name="Gtk.TextIter" c:type="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:whitespace="preserve">Moves @iter to the position of the next #GtkSourceMark of the given
next source mark can be of any category.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">whether iter moved.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">category to search for or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="backward_iter_to_source_mark"
c:identifier="gtk_source_buffer_backward_iter_to_source_mark"
version="2.2">
<doc xml:whitespace="preserve">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>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">whether iter moved.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">category to search for or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</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:whitespace="preserve">Returns the list of marks of the given category at @iter. If @category
is %NULL it returns all marks at @iter.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a newly allocated #GSList.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="any" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">an iterator.</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">category to search for or %NULL</doc>
<type name="utf8" c:type="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:whitespace="preserve">Returns the list of marks of the given category at @line.
If @category is NULL, all marks at @line are returned.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a newly allocated #GSList.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="any" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<parameter name="line" transfer-ownership="none">
<doc xml:whitespace="preserve">a line number.</doc>
<type name="int" c:type="gint"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">category to search for or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_source_marks"
c:identifier="gtk_source_buffer_remove_source_marks"
version="2.2">
<doc xml:whitespace="preserve">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>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="start" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="end" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:whitespace="preserve">category to search for or NULL</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="iter_has_context_class"
c:identifier="gtk_source_buffer_iter_has_context_class"
version="2.10">
<doc xml:whitespace="preserve">Check if the class @context_klass is set on @iter.</doc>
<return-value transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:whitespace="preserve">class to search for</doc>
<type name="utf8" c:type="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:whitespace="preserve">Get all defined context classes at @iter.
#g_strfreev to free the array if it is no longer needed.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new %NULL terminated array of context class names. Use</doc>
<array c:type="gchar**">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</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:whitespace="preserve">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
toggle is found.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">whether we found a context class toggle after @iter</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:whitespace="preserve">the context class</doc>
<type name="utf8" c:type="gchar*"/>
</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:whitespace="preserve">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
toggle is found.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">whether we found a context class toggle before @iter</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="context_class" transfer-ownership="none">
<doc xml:whitespace="preserve">the context class</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_undo_manager"
c:identifier="gtk_source_buffer_get_undo_manager">
<doc xml:whitespace="preserve">Get the undo manager associated with the buffer.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A #GtkSourceUndoManager</doc>
<type name="UndoManager" c:type="GtkSourceUndoManager*"/>
</return-value>
</method>
<method name="set_undo_manager"
c:identifier="gtk_source_buffer_set_undo_manager">
<doc xml:whitespace="preserve">Set the buffer undo manager. If @manager is %NULL the default undo manager
will be set.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<doc xml:whitespace="preserve">A #GtkSourceUndoManager</doc>
<type name="UndoManager" c:type="GtkSourceUndoManager*"/>
</parameter>
</parameters>
</method>
<property name="can-redo" transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="can-undo" transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="highlight-matching-brackets"
writable="1"
transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="highlight-syntax" writable="1" transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="language" writable="1" transfer-ownership="none">
<type name="Language" c:type="GtkSourceLanguage"/>
</property>
<property name="max-undo-levels" writable="1" transfer-ownership="none">
<type name="int" c:type="gint"/>
</property>
<property name="style-scheme" writable="1" transfer-ownership="none">
<type name="StyleScheme" c:type="GtkSourceStyleScheme"/>
</property>
<property name="undo-manager"
writable="1"
construct="1"
transfer-ownership="none">
<type name="UndoManager" c:type="GtkSourceUndoManager"/>
</property>
<field name="parent_instance">
<type name="Gtk.TextBuffer" c:type="GtkTextBuffer"/>
</field>
<field name="priv">
<type name="BufferPrivate" c:type="GtkSourceBufferPrivate*"/>
</field>
<glib:signal name="highlight-updated">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="Gtk.TextIter" c:type="GtkTextIter"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="Gtk.TextIter" c:type="GtkTextIter"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="redo">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="source-mark-updated">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="Gtk.TextMark" c:type="GtkTextMark"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="undo">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
</class>
<record name="BufferClass"
c:type="GtkSourceBufferClass"
glib:is-gtype-struct-for="Buffer">
<field name="parent_class">
<type name="Gtk.TextBufferClass" c:type="GtkTextBufferClass"/>
</field>
<field name="undo">
<callback name="undo" c:type="undo">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="redo">
<callback name="redo" c:type="redo">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="gtk_source_reserved1">
<callback name="gtk_source_reserved1" c:type="_gtk_source_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="gtk_source_reserved2">
<callback name="gtk_source_reserved2" c:type="_gtk_source_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="gtk_source_reserved3">
<callback name="gtk_source_reserved3" c:type="_gtk_source_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="gtk_source_reserved4">
<callback name="gtk_source_reserved4" c:type="_gtk_source_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="BufferPrivate" c:type="GtkSourceBufferPrivate">
</record>
<constant name="COMPLETION_CAPABILITY_AUTOMATIC"
value="standard::automatic">
<type name="utf8"/>
</constant>
<constant name="COMPLETION_CAPABILITY_INTERACTIVE"
value="standard::interactive">
<type name="utf8"/>
</constant>
<class name="Completion"
c:type="GtkSourceCompletion"
parent="Gtk.Object"
glib:type-name="GtkSourceCompletion"
glib:get-type="gtk_source_completion_get_type"
glib:type-struct="CompletionClass">
<constructor name="new" c:identifier="gtk_source_completion_new">
<doc xml:whitespace="preserve">Create a new #GtkSourceCompletion associated with @view.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The new #GtkSourceCompletion.</doc>
<type name="Completion" c:type="GtkSourceCompletion*"/>
</return-value>
<parameters>
<parameter name="source_view" transfer-ownership="none">
<type name="any" c:type="any*"/>
</parameter>
</parameters>
</constructor>
<function name="utils_is_separator"
c:identifier="gtk_source_completion_utils_is_separator">
<doc xml:whitespace="preserve">A separator is a character like (, an space etc. An _ is not a separator</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @ch is a separator</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="ch" transfer-ownership="none">
<doc xml:whitespace="preserve">The character to check</doc>
<type name="GLib.unichar" c:type="gunichar"/>
</parameter>
</parameters>
</function>
<function name="utils_get_word_iter"
c:identifier="gtk_source_completion_utils_get_word_iter">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the current word</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="source_buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">The #GtkSourceBuffer</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
<parameter name="current" transfer-ownership="none">
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="start_word" transfer-ownership="none">
<doc xml:whitespace="preserve">if != NULL then assign it the start position of the word</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="end_word" transfer-ownership="none">
<doc xml:whitespace="preserve">if != NULL then assing it the end position of the word</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</function>
<function name="utils_get_word"
c:identifier="gtk_source_completion_utils_get_word">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the current word</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="text_view" transfer-ownership="none">
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
</parameters>
</function>
<function name="utils_replace_word"
c:identifier="gtk_source_completion_utils_replace_word">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="source_buffer" transfer-ownership="none">
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
<parameter name="iter" transfer-ownership="none">
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
<parameter name="text" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="int" c:type="gint"/>
</parameter>
</parameters>
</function>
<function name="utils_replace_current_word"
c:identifier="gtk_source_completion_utils_replace_current_word">
<doc xml:whitespace="preserve">Replaces the current word in the #GtkSourceBuffer with the new word</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="source_buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">The #GtkSourceBuffer</doc>
<type name="Buffer" c:type="GtkSourceBuffer*"/>
</parameter>
<parameter name="text" transfer-ownership="none">
<doc xml:whitespace="preserve">The text to be inserted instead of the current word</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="int" c:type="gint"/>
</parameter>
</parameters>
</function>
<function name="utils_move_to_iter"
c:identifier="gtk_source_completion_utils_move_to_iter">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="window" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GtkWindow to move</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</parameter>
<parameter name="view" transfer-ownership="none">
<doc xml:whitespace="preserve">the view</doc>
<type name="View" c:type="GtkSourceView*"/>
</parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">the iter to move @window to</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</function>
<function name="utils_move_to_cursor"
c:identifier="gtk_source_completion_utils_move_to_cursor">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="window" transfer-ownership="none">
<type name="Gtk.Window" c:type="GtkWindow*"/>
</parameter>
<parameter name="view" transfer-ownership="none">
<type name="View" c:type="GtkSourceView*"/>
</parameter>
</parameters>
</function>
<virtual-method name="proposal_activated">
<return-value transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="provider" transfer-ownership="none">
<type name="CompletionProvider"
c:type="GtkSourceCompletionProvider*"/>
</parameter>
<parameter name="proposal" transfer-ownership="none">
<type name="CompletionProposal"
c:type="GtkSourceCompletionProposal*"/>
</parameter>
</parameters>
</virtual-method>
<method name="add_provider"
c:identifier="gtk_source_completion_add_provider"
throws="1">
<doc xml:whitespace="preserve">Add a new #GtkSourceCompletionProvider to the completion object. This will
add a reference @provider, so make sure to unref your own copy when you
no longer need it.
is provided, it will be set with the error and %FALSE is returned.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if @provider was successfully added, otherwise if @error</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="provider" transfer-ownership="none">
<doc xml:whitespace="preserve">A #GtkSourceCompletionProvider</doc>
<type name="CompletionProvider"
c:type="GtkSourceCompletionProvider*"/>
</parameter>
</parameters>
</method>
<method name="remove_provider"
c:identifier="gtk_source_completion_remove_provider"
throws="1">
<doc xml:whitespace="preserve">Remove @provider from the completion.
is provided, it will be set with the error and %FALSE is returned.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if @provider was successfully removed, otherwise if @error</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="provider" transfer-ownership="none">
<doc xml:whitespace="preserve">A #GtkSourceCompletionProvider</doc>
<type name="CompletionProvider"
c:type="GtkSourceCompletionProvider*"/>
</parameter>
</parameters>
</method>
<method name="get_providers"
c:identifier="gtk_source_completion_get_providers"
introspectable="0">
<doc xml:whitespace="preserve">Get list of providers registered on @completion. The returned list is owned
by the completion and should not be freed.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">list of #GtkSourceCompletionProvider</doc>
<type name="GLib.List" c:type="GList*">
<type name="any" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="show"
c:identifier="gtk_source_completion_show"
introspectable="0">
<doc xml:whitespace="preserve">Starts a new completion with the specified #GtkSourceCompletionContext and
a list of potential candidate providers for completion.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if it was possible to the show completion window.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="providers" transfer-ownership="none">
<doc xml:whitespace="preserve">A list of #GtkSourceCompletionProvider or %NULL</doc>
<type name="GLib.List" c:type="GList*">
<type name="any" c:type="gpointer"/>
</type>
</parameter>
<parameter name="context" transfer-ownership="none">
<doc xml:whitespace="preserve">The #GtkSourceCompletionContext with which to start the completion</doc>
<type name="CompletionContext"
c:type="GtkSourceCompletionContext*"/>
</parameter>
</parameters>
</method>
<method name="hide" c:identifier="gtk_source_completion_hide">
<doc xml:whitespace="preserve">Hides the completion if it is active (visible).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="get_info_window"
c:identifier="gtk_source_completion_get_info_window">
<doc xml:whitespace="preserve">The info widget is the window where the completion displays optional extra
information of the proposal.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The #GtkSourceCompletionInfo window.</doc>
<type name="CompletionInfo" c:type="GtkSourceCompletionInfo*"/>
</return-value>
</method>
<method name="get_view" c:identifier="gtk_source_completion_get_view">
<doc xml:whitespace="preserve">The #GtkSourceView associated with @completion.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The #GtkSourceView associated with @completion.</doc>
<type name="any" c:type="any*"/>
</return-value>
</method>
<method name="create_context"
c:identifier="gtk_source_completion_create_context">
<doc xml:whitespace="preserve">Create a new #GtkSourceCompletionContext for @completion. The position at
which the completion using the new context will consider completion can
be provider by @position. If @position is %NULL, the current cursor
position will be used.
is a 'floating' reference, so if you invoke #gtk_source_completion_show
with this context you don't need to unref it.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new #GtkSourceCompletionContext. The reference being returned</doc>
<type name="CompletionContext" c:type="GtkSourceCompletionContext*"/>
</return-value>
<parameters>
<parameter name="position" transfer-ownership="none">
<doc xml:whitespace="preserve">A #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="move_window"
c:identifier="gtk_source_completion_move_window">
<doc xml:whitespace="preserve">Move the completion window to a specific iter.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:whitespace="preserve">A #GtkTextIter</doc>
<type name="Gtk.TextIter" c:type="GtkTextIter*"/>
</parameter>
</parameters>
</method>
<method name="block_interactive"
c:identifier="gtk_source_completion_block_interactive">
<doc xml:whitespace="preserve">Block interactive completion. This can be used to disable interactive
completion when inserting or deleting text from the buffer associated with
the completion. Use #gtk_source_completion_unblock_interactive to enable
interactive completion again.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="unblock_interactive"
c:identifier="gtk_source_completion_unblock_interactive">
<doc xml:whitespace="preserve">Unblock interactive completion. This can be used after using
#gtk_source_completion_block_interactive to enable interactive completion
again.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<property name="accelerators"
writable="1"
construct="1"
transfer-ownership="none">
<type name="uint" c:type="guint"/>
</property>
<property name="auto-complete-delay"
writable="1"
construct="1"
transfer-ownership="none">
<type name="uint" c:type="guint"/>
</property>
<property name="proposal-page-size"
writable="1"
construct="1"
transfer-ownership="none">
<type name="uint" c:type="guint"/>
</property>
<property name="provider-page-size"
writable="1"
construct="1"
transfer-ownership="none">
<type name="uint" c:type="guint"/>
</property>
<property name="remember-info-visibility"
writable="1"
construct="1"
transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="select-on-show"
writable="1"
construct="1"
transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="show-headers"
writable="1"
construct="1"
transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</property>
<property name="show-icons"