File: vendor.md

package info (click to toggle)
rust-gtk-rs-lgpl-docs 0.1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,788 kB
  • sloc: makefile: 2
file content (5621 lines) | stat: -rw-r--r-- 169,472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
<!-- file * -->
<!-- enum BackgroundPatternType -->
<!-- enum BackgroundPatternType::variant None -->
no pattern
<!-- enum BackgroundPatternType::variant Grid -->
grid pattern

Feature: `v3_16`

<!-- struct Buffer -->


# Implements

[`BufferExt`](trait.BufferExt.html), [`gtk::TextBufferExt`](../gtk/trait.TextBufferExt.html)
<!-- trait BufferExt -->
Trait containing all `Buffer` methods.

# Implementors

[`Buffer`](struct.Buffer.html)
<!-- impl Buffer::fn new -->
Creates a new source buffer.
## `table`
a `gtk::TextTagTable`, or `None` to create a new one.

# Returns

a new source buffer.
<!-- impl Buffer::fn new_with_language -->
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 `BufferExt::set_language`.
## `language`
a `Language`.

# Returns

a new source buffer which will highlight text
according to the highlighting patterns in `language`.
<!-- trait BufferExt::fn backward_iter_to_source_mark -->
Moves `iter` to the position of the previous `Mark` of the given
category. Returns `true` if `iter` was moved. If `category` is NULL, the
previous source mark can be of any category.
## `iter`
an iterator.
## `category`
category to search for, or `None`

# Returns

whether `iter` was moved.
<!-- trait BufferExt::fn begin_not_undoable_action -->
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 `BufferExt::begin_not_undoable_action` /
`BufferExt::end_not_undoable_action` blocks.
<!-- trait BufferExt::fn can_redo -->
Determines whether a source buffer can redo the last action
(i.e. if the last operation was an undo).

# Returns

`true` if a redo is possible.
<!-- trait BufferExt::fn can_undo -->
Determines whether a source buffer can undo the last action.

# Returns

`true` if it's possible to undo the last action.
<!-- trait BufferExt::fn change_case -->
Changes the case of the text between the specified iterators.

Feature: `v3_12`

## `case_type`
how to change the case.
## `start`
a `gtk::TextIter`.
## `end`
a `gtk::TextIter`.
<!-- trait BufferExt::fn create_source_mark -->
Creates a source mark in the `self` of category `category`. A source mark is
a `gtk::TextMark` 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 `gtk::TextMark`, a `Mark` can be anonymous if the
passed `name` is `None`. 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..
## `name`
the name of the mark, or `None`.
## `category`
a string defining the mark category.
## `where_`
location to place the mark.

# Returns

a new `Mark`, owned by the buffer.
<!-- trait BufferExt::fn create_source_tag -->
In short, this is the same function as `gtk::TextBufferExt::create_tag`, but
instead of creating a `gtk::TextTag`, this function creates a `Tag`.

This function creates a `Tag` and adds it to the tag table for
`self`. Equivalent to calling `gtk::TextTag::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 `None`, the tag is anonymous.

If `tag_name` is non-`None`, 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 `gobject::Object::set`.

Feature: `v3_20`

## `tag_name`
name of the new tag, or `None`
## `first_property_name`
name of first property to set, or `None`

# Returns

a new `Tag`.
<!-- trait BufferExt::fn end_not_undoable_action -->
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.
<!-- trait BufferExt::fn ensure_highlight -->
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>`
## `start`
start of the area to highlight.
## `end`
end of the area to highlight.
<!-- trait BufferExt::fn forward_iter_to_source_mark -->
Moves `iter` to the position of the next `Mark` of the given
`category`. Returns `true` if `iter` was moved. If `category` is NULL, the
next source mark can be of any category.
## `iter`
an iterator.
## `category`
category to search for, or `None`

# Returns

whether `iter` was moved.
<!-- trait BufferExt::fn get_context_classes_at_iter -->
Get all defined context classes at `iter`.

See the `Buffer` description for the list of default context classes.
## `iter`
a `gtk::TextIter`.

# Returns

a new `None`
terminated array of context class names.
Use `g_strfreev` to free the array if it is no longer needed.
<!-- trait BufferExt::fn get_highlight_matching_brackets -->
Determines whether bracket match highlighting is activated for the
source buffer.

# Returns

`true` if the source buffer will highlight matching
brackets.
<!-- trait BufferExt::fn get_highlight_syntax -->
Determines whether syntax highlighting is activated in the source
buffer.

# Returns

`true` if syntax highlighting is enabled, `false` otherwise.
<!-- trait BufferExt::fn get_implicit_trailing_newline -->

Feature: `v3_14`


# Returns

whether the `self` has an implicit trailing newline.
<!-- trait BufferExt::fn get_language -->
Returns the `Language` associated with the buffer,
see `BufferExt::set_language`. The returned object should not be
unreferenced by the user.

# Returns

the `Language` associated
with the buffer, or `None`.
<!-- trait BufferExt::fn get_max_undo_levels -->
Determines the number of undo levels the buffer will track for buffer edits.

# Returns

the maximum number of possible undo levels or -1 if no limit is set.
<!-- trait BufferExt::fn get_source_marks_at_iter -->
Returns the list of marks of the given category at `iter`. If `category`
is `None` it returns all marks at `iter`.
## `iter`
an iterator.
## `category`
category to search for, or `None`

# Returns


a newly allocated `glib::SList`.
<!-- trait BufferExt::fn get_source_marks_at_line -->
Returns the list of marks of the given category at `line`.
If `category` is `None`, all marks at `line` are returned.
## `line`
a line number.
## `category`
category to search for, or `None`

# Returns


a newly allocated `glib::SList`.
<!-- trait BufferExt::fn get_style_scheme -->
Returns the `StyleScheme` associated with the buffer,
see `BufferExt::set_style_scheme`.
The returned object should not be unreferenced by the user.

# Returns

the `StyleScheme`
associated with the buffer, or `None`.
<!-- trait BufferExt::fn get_undo_manager -->
Returns the `UndoManager` associated with the buffer,
see `BufferExt::set_undo_manager`. The returned object should not be
unreferenced by the user.

# Returns

the `UndoManager` associated
with the buffer, or `None`.
<!-- trait BufferExt::fn iter_backward_to_context_class_toggle -->
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 `Buffer` description for the list of default context classes.
## `iter`
a `gtk::TextIter`.
## `context_class`
the context class.

# Returns

whether we found a context class toggle before `iter`
<!-- trait BufferExt::fn iter_forward_to_context_class_toggle -->
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 `Buffer` description for the list of default context classes.
## `iter`
a `gtk::TextIter`.
## `context_class`
the context class.

# Returns

whether we found a context class toggle after `iter`
<!-- trait BufferExt::fn iter_has_context_class -->
Check if the class `context_class` is set on `iter`.

See the `Buffer` description for the list of default context classes.
## `iter`
a `gtk::TextIter`.
## `context_class`
class to search for.

# Returns

whether `iter` has the context class.
<!-- trait BufferExt::fn join_lines -->
Joins the lines of text between the specified iterators.

Feature: `v3_16`

## `start`
a `gtk::TextIter`.
## `end`
a `gtk::TextIter`.
<!-- trait BufferExt::fn redo -->
Redoes the last undo operation. Use `BufferExt::can_redo`
to check whether a call to this function will have any effect.

This function emits the `Buffer::redo` signal.
<!-- trait BufferExt::fn remove_source_marks -->
Remove all marks of `category` between `start` and `end` from the buffer.
If `category` is NULL, all marks in the range will be removed.
## `start`
a `gtk::TextIter`.
## `end`
a `gtk::TextIter`.
## `category`
category to search for, or `None`.
<!-- trait BufferExt::fn set_highlight_matching_brackets -->
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.
## `highlight`
`true` if you want matching brackets highlighted.
<!-- trait BufferExt::fn set_highlight_syntax -->
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
`BufferExt::set_language`.

If `highlight` is `false`, syntax highlighting is disabled and all the
`gtk::TextTag` objects that have been added by the syntax highlighting engine
are removed from the buffer.
## `highlight`
`true` to enable syntax highlighting, `false` to disable it.
<!-- trait BufferExt::fn set_implicit_trailing_newline -->
Sets whether the `self` has an implicit trailing newline.

If an explicit trailing newline is present in a `gtk::TextBuffer`, `gtk::TextView`
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 `FileLoader` loads the content of a file into the `self`,
 the trailing newline (if present in the file) is not inserted into the
 `self`.
 - when a `FileSaver` saves the content of the `self` 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 `self`, and the `self`'s
content is not modified when saved into a file.

Feature: `v3_14`

## `implicit_trailing_newline`
the new value.
<!-- trait BufferExt::fn set_language -->
Associates a `Language` with the buffer.

Note that a `Language` affects not only the syntax highlighting, but
also the [context classes][context-classes]. If you want to disable just the
syntax highlighting, see `BufferExt::set_highlight_syntax`.

The buffer holds a reference to `language`.
## `language`
a `Language` to set, or `None`.
<!-- trait BufferExt::fn set_max_undo_levels -->
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, the undo/redo is unlimited.

If `max_undo_levels` is 0, the undo/redo is disabled.
## `max_undo_levels`
the desired maximum number of undo levels.
<!-- trait BufferExt::fn set_style_scheme -->
Sets a `StyleScheme` to be used by the buffer and the view.

Note that a `StyleScheme` affects not only the syntax highlighting,
but also other `View` features such as highlighting the current line,
matching brackets, the line numbers, etc.

Instead of setting a `None` `scheme`, it is better to disable syntax
highlighting with `BufferExt::set_highlight_syntax`, and setting the
`StyleScheme` with the "classic" or "tango" ID, because those two
style schemes follow more closely the GTK+ theme (for example for the
background color).

The buffer holds a reference to `scheme`.
## `scheme`
a `StyleScheme` or `None`.
<!-- trait BufferExt::fn set_undo_manager -->
Set the buffer undo manager. If `manager` is `None` the default undo manager
will be set.
## `manager`
A `UndoManager` or `None`.
<!-- trait BufferExt::fn sort_lines -->
Sort the lines of text between the specified iterators.

Feature: `v3_18`

## `start`
a `gtk::TextIter`.
## `end`
a `gtk::TextIter`.
## `flags`
`SortFlags` specifying how the sort should behave
## `column`
sort considering the text starting at the given column
<!-- trait BufferExt::fn undo -->
Undoes the last user action which modified the buffer. Use
`BufferExt::can_undo` to check whether a call to this
function will have any effect.

This function emits the `Buffer::undo` signal.
<!-- trait BufferExt::fn connect_bracket_matched -->
`iter` is set to a valid iterator pointing to the matching bracket
if `state` is `BracketMatchType::Found`. Otherwise `iter` is
meaningless.

The signal is emitted only when the `state` changes, typically when
the cursor moves.

A use-case for this signal is to show messages in a `gtk::Statusbar`.
## `iter`
if found, the location of the matching bracket.
## `state`
state of bracket matching.
<!-- trait BufferExt::fn connect_highlight_updated -->
The ::highlight-updated signal is emitted when the syntax
highlighting and [context classes][context-classes] are updated in a
certain region of the `buffer`.
## `start`
the start of the updated region
## `end`
the end of the updated region
<!-- trait BufferExt::fn connect_redo -->
The ::redo signal is emitted to redo the last undo operation.
<!-- trait BufferExt::fn connect_source_mark_updated -->
The ::source-mark-updated signal is emitted each time
a mark is added to, moved or removed from the `buffer`.
## `mark`
the `Mark`
<!-- trait BufferExt::fn connect_undo -->
The ::undo signal is emitted to undo the last user action which
modified the buffer.
<!-- trait BufferExt::fn get_property_highlight_matching_brackets -->
Whether to highlight matching brackets in the buffer.
<!-- trait BufferExt::fn set_property_highlight_matching_brackets -->
Whether to highlight matching brackets in the buffer.
<!-- trait BufferExt::fn get_property_highlight_syntax -->
Whether to highlight syntax in the buffer.
<!-- trait BufferExt::fn set_property_highlight_syntax -->
Whether to highlight syntax in the buffer.
<!-- trait BufferExt::fn get_property_implicit_trailing_newline -->
Whether the buffer has an implicit trailing newline. See
`BufferExt::set_implicit_trailing_newline`.

Feature: `v3_14`

<!-- trait BufferExt::fn set_property_implicit_trailing_newline -->
Whether the buffer has an implicit trailing newline. See
`BufferExt::set_implicit_trailing_newline`.

Feature: `v3_14`

<!-- trait BufferExt::fn get_property_max_undo_levels -->
Number of undo levels for the buffer. -1 means no limit. This property
will only affect the default undo manager.
<!-- trait BufferExt::fn set_property_max_undo_levels -->
Number of undo levels for the buffer. -1 means no limit. This property
will only affect the default undo manager.
<!-- trait BufferExt::fn get_property_style_scheme -->
Style scheme. It contains styles for syntax highlighting, optionally
foreground, background, cursor color, current line color, and matching
brackets style.
<!-- trait BufferExt::fn set_property_style_scheme -->
Style scheme. It contains styles for syntax highlighting, optionally
foreground, background, cursor color, current line color, and matching
brackets style.
<!-- enum ChangeCaseType -->
<!-- enum ChangeCaseType::variant Lower -->
change case to lowercase.
<!-- enum ChangeCaseType::variant Upper -->
change case to uppercase.
<!-- enum ChangeCaseType::variant Toggle -->
toggle case of each character.
<!-- enum ChangeCaseType::variant Title -->
capitalize each word.

Feature: `v3_12`

<!-- struct Completion -->


# Implements

[`CompletionExt`](trait.CompletionExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html)
<!-- trait CompletionExt -->
Trait containing all `Completion` methods.

# Implementors

[`Completion`](struct.Completion.html)
<!-- trait CompletionExt::fn add_provider -->
Add a new `CompletionProvider` to the completion object. This will
add a reference `provider`, so make sure to unref your own copy when you
no longer need it.
## `provider`
a `CompletionProvider`.

# Returns

`true` if `provider` was successfully added, otherwise if `error`
 is provided, it will be set with the error and `false` is returned.
<!-- trait CompletionExt::fn block_interactive -->
Block interactive completion. This can be used to disable interactive
completion when inserting or deleting text from the buffer associated with
the completion. Use `CompletionExt::unblock_interactive` to enable
interactive completion again.

This function may be called multiple times. It will continue to block
interactive completion until `CompletionExt::unblock_interactive`
has been called the same number of times.
<!-- trait CompletionExt::fn create_context -->
Create a new `CompletionContext` for `self`. The position where
the completion occurs can be specified by `position`. If `position` is `None`,
the current cursor position will be used.
## `position`
a `gtk::TextIter`, or `None`.

# Returns

a new `CompletionContext`.
The reference being returned is a 'floating' reference,
so if you invoke `CompletionExt::show` with this context
you don't need to unref it.
<!-- trait CompletionExt::fn get_info_window -->
The info widget is the window where the completion displays optional extra
information of the proposal.

# Returns

The `CompletionInfo` window
 associated with `self`.
<!-- trait CompletionExt::fn get_providers -->
Get list of providers registered on `self`. The returned list is owned
by the completion and should not be freed.

# Returns


list of `CompletionProvider`.
<!-- trait CompletionExt::fn get_view -->
The `View` associated with `self`, or `None` if the view has been
destroyed.

# Returns

The `View` associated with
`self`, or `None`.
<!-- trait CompletionExt::fn hide -->
Hides the completion if it is active (visible).
<!-- trait CompletionExt::fn move_window -->
Move the completion window to a specific iter.

# Deprecated since 3.8

Use `CompletionProvider::get_start_iter` instead.
## `iter`
a `gtk::TextIter`.
<!-- trait CompletionExt::fn remove_provider -->
Remove `provider` from the completion.
## `provider`
a `CompletionProvider`.

# Returns

`true` if `provider` was successfully removed, otherwise if `error`
 is provided, it will be set with the error and `false` is returned.
<!-- trait CompletionExt::fn show -->
Starts a new completion with the specified `CompletionContext` and
a list of potential candidate providers for completion.

It can be convenient for showing a completion on-the-fly, without the need to
add or remove providers to the `Completion`.

Another solution is to add providers with
`CompletionExt::add_provider`, and implement
`CompletionProvider::match` for each provider.
## `providers`

a list of `CompletionProvider`, or `None`.
## `context`
The `CompletionContext`
with which to start the completion.

# Returns

`true` if it was possible to the show completion window.
<!-- trait CompletionExt::fn unblock_interactive -->
Unblock interactive completion. This can be used after using
`CompletionExt::block_interactive` to enable interactive completion
again.
<!-- trait CompletionExt::fn connect_activate_proposal -->
The `Completion::activate-proposal` signal is a
keybinding signal which gets emitted when the user initiates
a proposal activation.

Applications should not connect to it, but may emit it with
`g_signal_emit_by_name` if they need to control the proposal
activation programmatically.
<!-- trait CompletionExt::fn connect_hide -->
Emitted when the completion window is hidden. The default handler
will actually hide the window.
<!-- trait CompletionExt::fn connect_move_cursor -->
The `Completion::move-cursor` signal is a keybinding
signal which gets emitted when the user initiates a cursor
movement.

The `<keycap>`Up`</keycap>`, `<keycap>`Down`</keycap>`,
`<keycap>`PageUp`</keycap>`, `<keycap>`PageDown`</keycap>`,
`<keycap>`Home`</keycap>` and `<keycap>`End`</keycap>` keys are bound to the
normal behavior expected by those keys.

When `step` is equal to `gtk::ScrollStep::Pages`, the page size is defined by
the `Completion:proposal-page-size` property. It is used for
the `<keycap>`PageDown`</keycap>` and `<keycap>`PageUp`</keycap>` keys.

Applications should not connect to it, but may emit it with
`g_signal_emit_by_name` if they need to control the cursor
programmatically.
## `step`
The `gtk::ScrollStep` by which to move the cursor
## `num`
The amount of steps to move the cursor
<!-- trait CompletionExt::fn connect_move_page -->
The `Completion::move-page` signal is a keybinding
signal which gets emitted when the user initiates a page
movement (i.e. switches between provider pages).

`<keycombo>``<keycap>`Control`</keycap>``<keycap>`Left`</keycap>``</keycombo>`
is for going to the previous provider.
`<keycombo>``<keycap>`Control`</keycap>``<keycap>`Right`</keycap>``</keycombo>`
is for going to the next provider.
`<keycombo>``<keycap>`Control`</keycap>``<keycap>`Home`</keycap>``</keycombo>`
is for displaying all the providers.
`<keycombo>``<keycap>`Control`</keycap>``<keycap>`End`</keycap>``</keycombo>`
is for going to the last provider.

When `step` is equal to `gtk::ScrollStep::Pages`, the page size is defined by
the `Completion:provider-page-size` property.

Applications should not connect to it, but may emit it with
`g_signal_emit_by_name` if they need to control the page selection
programmatically.
## `step`
The `gtk::ScrollStep` by which to move the page
## `num`
The amount of steps to move the page
<!-- trait CompletionExt::fn connect_populate_context -->
Emitted just before starting to populate the completion with providers.
You can use this signal to add additional attributes in the context.
## `context`
The `CompletionContext` for the current completion
<!-- trait CompletionExt::fn connect_show -->
Emitted when the completion window is shown. The default handler
will actually show the window.
<!-- trait CompletionExt::fn get_property_accelerators -->
Number of keyboard accelerators to show for the first proposals. For
example, to activate the first proposal, the user can press
`<keycombo>``<keycap>`Alt`</keycap>``<keycap>`1`</keycap>``</keycombo>`.
<!-- trait CompletionExt::fn set_property_accelerators -->
Number of keyboard accelerators to show for the first proposals. For
example, to activate the first proposal, the user can press
`<keycombo>``<keycap>`Alt`</keycap>``<keycap>`1`</keycap>``</keycombo>`.
<!-- trait CompletionExt::fn get_property_auto_complete_delay -->
Determines the popup delay (in milliseconds) at which the completion
will be shown for interactive completion.
<!-- trait CompletionExt::fn set_property_auto_complete_delay -->
Determines the popup delay (in milliseconds) at which the completion
will be shown for interactive completion.
<!-- trait CompletionExt::fn get_property_proposal_page_size -->
The scroll page size of the proposals in the completion window. In
other words, when `<keycap>`PageDown`</keycap>` or
`<keycap>`PageUp`</keycap>` is pressed, the selected
proposal becomes the one which is located one page size backward or
forward.

See also the `Completion::move-cursor` signal.
<!-- trait CompletionExt::fn set_property_proposal_page_size -->
The scroll page size of the proposals in the completion window. In
other words, when `<keycap>`PageDown`</keycap>` or
`<keycap>`PageUp`</keycap>` is pressed, the selected
proposal becomes the one which is located one page size backward or
forward.

See also the `Completion::move-cursor` signal.
<!-- trait CompletionExt::fn get_property_provider_page_size -->
The scroll page size of the provider pages in the completion window.

See the `Completion::move-page` signal.
<!-- trait CompletionExt::fn set_property_provider_page_size -->
The scroll page size of the provider pages in the completion window.

See the `Completion::move-page` signal.
<!-- trait CompletionExt::fn get_property_remember_info_visibility -->
Determines whether the visibility of the info window should be
saved when the completion is hidden, and restored when the completion
is shown again.
<!-- trait CompletionExt::fn set_property_remember_info_visibility -->
Determines whether the visibility of the info window should be
saved when the completion is hidden, and restored when the completion
is shown again.
<!-- trait CompletionExt::fn get_property_select_on_show -->
Determines whether the first proposal should be selected when the
completion is first shown.
<!-- trait CompletionExt::fn set_property_select_on_show -->
Determines whether the first proposal should be selected when the
completion is first shown.
<!-- trait CompletionExt::fn get_property_show_headers -->
Determines whether provider headers should be shown in the proposal
list. It can be useful to disable when there is only one provider.
<!-- trait CompletionExt::fn set_property_show_headers -->
Determines whether provider headers should be shown in the proposal
list. It can be useful to disable when there is only one provider.
<!-- trait CompletionExt::fn get_property_show_icons -->
Determines whether provider and proposal icons should be shown in
the completion popup.
<!-- trait CompletionExt::fn set_property_show_icons -->
Determines whether provider and proposal icons should be shown in
the completion popup.
<!-- trait CompletionExt::fn get_property_view -->
The `View` bound to the completion object.
<!-- trait CompletionExt::fn set_property_view -->
The `View` bound to the completion object.
<!-- struct CompletionContext -->


# Implements

[`CompletionContextExt`](trait.CompletionContextExt.html)
<!-- trait CompletionContextExt -->
Trait containing all `CompletionContext` methods.

# Implementors

[`CompletionContext`](struct.CompletionContext.html)
<!-- trait CompletionContextExt::fn add_proposals -->
Providers can use this function to add proposals to the completion. They
can do so asynchronously by means of the `finished` argument. Providers must
ensure that they always call this function with `finished` set to `true`
once each population (even if no proposals need to be added).
Population occurs when the `CompletionProvider::populate`
function is called.
## `provider`
a `CompletionProvider`.
## `proposals`
The list of proposals to add.
## `finished`
Whether the provider is finished adding proposals.
<!-- trait CompletionContextExt::fn get_activation -->
Get the context activation.

# Returns

The context activation.
<!-- trait CompletionContextExt::fn get_iter -->
Get the iter at which the completion was invoked. Providers can use this
to determine how and if to match proposals.
## `iter`
a `gtk::TextIter`.

# Returns

`true` if `iter` is correctly set, `false` otherwise.
<!-- trait CompletionContextExt::fn connect_cancelled -->
Emitted when the current population of proposals has been cancelled.
Providers adding proposals asynchronously should connect to this signal
to know when to cancel running proposal queries.
<!-- trait CompletionContextExt::fn get_property_activation -->
The completion activation
<!-- trait CompletionContextExt::fn set_property_activation -->
The completion activation
<!-- trait CompletionContextExt::fn get_property_completion -->
The `Completion` associated with the context.
<!-- trait CompletionContextExt::fn set_property_completion -->
The `Completion` associated with the context.
<!-- trait CompletionContextExt::fn get_property_iter -->
The `gtk::TextIter` at which the completion is invoked.
<!-- trait CompletionContextExt::fn set_property_iter -->
The `gtk::TextIter` at which the completion is invoked.
<!-- struct CompletionInfo -->


# Implements

[`CompletionInfoExt`](trait.CompletionInfoExt.html), [`gtk::WindowExt`](../gtk/trait.WindowExt.html), [`gtk::BinExt`](../gtk/trait.BinExt.html), [`gtk::ContainerExt`](../gtk/trait.ContainerExt.html), [`gtk::WidgetExt`](../gtk/trait.WidgetExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html)
<!-- trait CompletionInfoExt -->
Trait containing all `CompletionInfo` methods.

# Implementors

[`CompletionInfo`](struct.CompletionInfo.html)
<!-- impl CompletionInfo::fn new -->

# Returns

a new `CompletionInfo`.
<!-- trait CompletionInfoExt::fn get_widget -->
Get the current content widget.

# Deprecated since 3.8

Use `gtk::BinExt::get_child` instead.

# Returns

The current content widget.
<!-- trait CompletionInfoExt::fn move_to_iter -->
Moves the `CompletionInfo` to `iter`. If `iter` is `None` `self` is
moved to the cursor position. Moving will respect the `gdk::Gravity` setting
of the info window and will ensure the line at `iter` is not occluded by
the window.
## `view`
a `gtk::TextView` on which the info window should be positioned.
## `iter`
a `gtk::TextIter`.
<!-- trait CompletionInfoExt::fn set_widget -->
Sets the content widget of the info window. See that the previous widget will
lose a reference and it can be destroyed, so if you do not want this to
happen you must use `gobject::Object::ref` before calling this method.

# Deprecated since 3.8

Use `gtk::ContainerExt::add` instead. If there is already a child
widget, remove it with `gtk::ContainerExt::remove`.
## `widget`
a `gtk::Widget`.
<!-- trait CompletionInfoExt::fn connect_before_show -->
This signal is emitted before any "show" management. You can connect
to this signal if you want to change some properties or position
before the real "show".

# Deprecated since 3.10

This signal should not be used.
<!-- struct CompletionItem -->


# Implements

[`CompletionItemExt`](trait.CompletionItemExt.html), [`CompletionProposalExt`](trait.CompletionProposalExt.html)
<!-- trait CompletionItemExt -->
Trait containing all `CompletionItem` methods.

# Implementors

[`CompletionItem`](struct.CompletionItem.html)
<!-- impl CompletionItem::fn new -->
Create a new `CompletionItem` with label `label`, icon `icon` and
extra information `info`. Both `icon` and `info` can be `None` in which case
there will be no icon shown and no extra information available.

# Deprecated since 3.24

Use `CompletionItem::new2` instead.
## `label`
The item label.
## `text`
The item text.
## `icon`
The item icon.
## `info`
The item extra information.

# Returns

a new `CompletionItem`.
<!-- impl CompletionItem::fn new_from_stock -->
Creates a new `CompletionItem` from a stock item. If `label` is `None`,
the stock label will be used.

# Deprecated since 3.10

Use `CompletionItem::new2` instead.
## `label`
The item label.
## `text`
The item text.
## `stock`
The stock icon.
## `info`
The item extra information.

# Returns

a new `CompletionItem`.
<!-- impl CompletionItem::fn new_with_markup -->
Create a new `CompletionItem` with markup label `markup`, icon
`icon` and extra information `info`. Both `icon` and `info` can be `None` in
which case there will be no icon shown and no extra information available.

# Deprecated since 3.24

Use `CompletionItem::new2` instead.
## `markup`
The item markup label.
## `text`
The item text.
## `icon`
The item icon.
## `info`
The item extra information.

# Returns

a new `CompletionItem`.
<!-- impl CompletionItem::fn new2 -->
Creates a new `CompletionItem`. The desired properties need to be set
afterwards.

Feature: `v3_24`


# Returns

a new `CompletionItem`.
<!-- trait CompletionItemExt::fn set_gicon -->

Feature: `v3_24`

## `gicon`
the `gio::Icon`, or `None`.
<!-- trait CompletionItemExt::fn set_icon -->

Feature: `v3_24`

## `icon`
the `gdk_pixbuf::Pixbuf`, or `None`.
<!-- trait CompletionItemExt::fn set_icon_name -->

Feature: `v3_24`

## `icon_name`
the icon name, or `None`.
<!-- trait CompletionItemExt::fn set_info -->

Feature: `v3_24`

## `info`
the info, or `None`.
<!-- trait CompletionItemExt::fn set_label -->

Feature: `v3_24`

## `label`
the label, or `None`.
<!-- trait CompletionItemExt::fn set_markup -->

Feature: `v3_24`

## `markup`
the markup, or `None`.
<!-- trait CompletionItemExt::fn set_text -->

Feature: `v3_24`

## `text`
the text, or `None`.
<!-- trait CompletionItemExt::fn get_property_gicon -->
The `gio::Icon` for the icon to be shown for this proposal.

Feature: `v3_18`

<!-- trait CompletionItemExt::fn set_property_gicon -->
The `gio::Icon` for the icon to be shown for this proposal.

Feature: `v3_18`

<!-- trait CompletionItemExt::fn get_property_icon -->
The `gdk_pixbuf::Pixbuf` for the icon to be shown for this proposal.
<!-- trait CompletionItemExt::fn set_property_icon -->
The `gdk_pixbuf::Pixbuf` for the icon to be shown for this proposal.
<!-- trait CompletionItemExt::fn get_property_icon_name -->
The icon name for the icon to be shown for this proposal.

Feature: `v3_18`

<!-- trait CompletionItemExt::fn set_property_icon_name -->
The icon name for the icon to be shown for this proposal.

Feature: `v3_18`

<!-- trait CompletionItemExt::fn get_property_info -->
Optional extra information to be shown for this proposal.
<!-- trait CompletionItemExt::fn set_property_info -->
Optional extra information to be shown for this proposal.
<!-- trait CompletionItemExt::fn get_property_label -->
Label to be shown for this proposal.
<!-- trait CompletionItemExt::fn set_property_label -->
Label to be shown for this proposal.
<!-- trait CompletionItemExt::fn get_property_markup -->
Label with markup to be shown for this proposal.
<!-- trait CompletionItemExt::fn set_property_markup -->
Label with markup to be shown for this proposal.
<!-- trait CompletionItemExt::fn get_property_text -->
Proposal text.
<!-- trait CompletionItemExt::fn set_property_text -->
Proposal text.
<!-- struct CompletionProposal -->


# Implements

[`CompletionProposalExt`](trait.CompletionProposalExt.html)
<!-- trait CompletionProposalExt -->
Trait containing all `CompletionProposal` methods.

# Implementors

[`CompletionItem`](struct.CompletionItem.html), [`CompletionProposal`](struct.CompletionProposal.html)
<!-- trait CompletionProposalExt::fn changed -->
Emits the "changed" signal on `self`. This should be called by
implementations whenever the name, icon or info of the proposal has
changed.
<!-- trait CompletionProposalExt::fn equal -->
Get whether two proposal objects are the same. This is used to (together
with `CompletionProposal::hash`) to match proposals in the
completion model. By default, it uses direct equality (`g_direct_equal`).
## `other`
a `CompletionProposal`.

# Returns

`true` if `self` and `object` are the same proposal
<!-- trait CompletionProposalExt::fn get_gicon -->
Gets the `gio::Icon` for the icon of `self`.

Feature: `v3_18`


# Returns

A `gio::Icon` with the icon of `self`.
<!-- trait CompletionProposalExt::fn get_icon -->
Gets the `gdk_pixbuf::Pixbuf` for the icon of `self`.

# Returns

A `gdk_pixbuf::Pixbuf` with the icon of `self`.
<!-- trait CompletionProposalExt::fn get_icon_name -->
Gets the icon name of `self`.

Feature: `v3_18`


# Returns

The icon name of `self`.
<!-- trait CompletionProposalExt::fn get_info -->
Gets extra information associated to the proposal. This information will be
used to present the user with extra, detailed information about the
selected proposal. The returned string must be freed with `g_free`.

# Returns

a newly-allocated string containing
extra information of `self` or `None` if no extra information is associated
to `self`.
<!-- trait CompletionProposalExt::fn get_label -->
Gets the label of `self`. The label is shown in the list of proposals as
plain text. If you need any markup (such as bold or italic text), you have
to implement `CompletionProposal::get_markup`. The returned string
must be freed with `g_free`.

# Returns

a new string containing the label of `self`.
<!-- trait CompletionProposalExt::fn get_markup -->
Gets the label of `self` with markup. The label is shown in the list of
proposals and may contain markup. This will be used instead of
`CompletionProposal::get_label` if implemented. The returned string
must be freed with `g_free`.

# Returns

a new string containing the label of `self` with markup.
<!-- trait CompletionProposalExt::fn get_text -->
Gets the text of `self`. The text that is inserted into
the text buffer when the proposal is activated by the default activation.
You are free to implement a custom activation handler in the provider and
not implement this function. For more information, see
`CompletionProvider::activate_proposal`. The returned string must
be freed with `g_free`.

# Returns

a new string containing the text of `self`.
<!-- trait CompletionProposalExt::fn hash -->
Get the hash value of `self`. This is used to (together with
`CompletionProposal::equal`) to match proposals in the completion
model. By default, it uses a direct hash (`g_direct_hash`).

# Returns

The hash value of `self`.
<!-- trait CompletionProposalExt::fn connect_changed -->
Emitted when the proposal has changed. The completion popup
will react to this by updating the shown information.
<!-- struct CompletionProvider -->


# Implements

[`CompletionProviderExt`](trait.CompletionProviderExt.html)
<!-- trait CompletionProviderExt -->
Trait containing all `CompletionProvider` methods.

# Implementors

[`CompletionProvider`](struct.CompletionProvider.html), [`CompletionWords`](struct.CompletionWords.html)
<!-- trait CompletionProviderExt::fn activate_proposal -->
Activate `proposal` at `iter`. When this functions returns `false`, the default
activation of `proposal` will take place which replaces the word at `iter`
with the text of `proposal` (see `CompletionProposal::get_text`).

Here is how the default activation selects the boundaries of the word to
replace. The end of the word is `iter`. For the start of the word, it depends
on whether a start iter is defined for `proposal` (see
`CompletionProvider::get_start_iter`). If a start iter is defined,
the start of the word is the start iter. Else, the word (as long as possible)
will contain only alphanumerical and the "_" characters.
## `proposal`
a `CompletionProposal`.
## `iter`
a `gtk::TextIter`.

# Returns

`true` to indicate that the proposal activation has been handled,
 `false` otherwise.
<!-- trait CompletionProviderExt::fn get_activation -->
Get with what kind of activation the provider should be activated.

# Returns

a combination of `CompletionActivation`.
<!-- trait CompletionProviderExt::fn get_gicon -->
Gets the `gio::Icon` for the icon of `self`.

Feature: `v3_18`


# Returns

The icon to be used for the provider,
 or `None` if the provider does not have a special icon.
<!-- trait CompletionProviderExt::fn get_icon -->
Get the `gdk_pixbuf::Pixbuf` for the icon of the `self`.

# Returns

The icon to be used for the provider,
 or `None` if the provider does not have a special icon.
<!-- trait CompletionProviderExt::fn get_icon_name -->
Gets the icon name of `self`.

Feature: `v3_18`


# Returns

The icon name to be used for the provider,
 or `None` if the provider does not have a special icon.
<!-- trait CompletionProviderExt::fn get_info_widget -->
Get a customized info widget to show extra information of a proposal.
This allows for customized widgets on a proposal basis, although in general
providers will have the same custom widget for all their proposals and
`proposal` can be ignored. The implementation of this function is optional.

If this function is not implemented, the default widget is a `gtk::Label`. The
return value of `CompletionProposal::get_info` is used as the
content of the `gtk::Label`.

`<note>`
 `<para>`
 If implemented, `CompletionProvider::update_info`
 `<emphasis>`must`</emphasis>` also be implemented.
 `</para>`
`</note>`
## `proposal`
a currently selected `CompletionProposal`.

# Returns

a custom `gtk::Widget` to show extra
information about `proposal`, or `None` if the provider does not have a special
info widget.
<!-- trait CompletionProviderExt::fn get_interactive_delay -->
Get the delay in milliseconds before starting interactive completion for
this provider. A value of -1 indicates to use the default value as set
by the `Completion:auto-complete-delay` property.

# Returns

the interactive delay in milliseconds.
<!-- trait CompletionProviderExt::fn get_name -->
Get the name of the provider. This should be a translatable name for
display to the user. For example: _("Document word completion provider"). The
returned string must be freed with `g_free`.

# Returns

a new string containing the name of the provider.
<!-- trait CompletionProviderExt::fn get_priority -->
Get the provider priority. The priority determines the order in which
proposals appear in the completion popup. Higher priorities are sorted
before lower priorities. The default priority is 0.

# Returns

the provider priority.
<!-- trait CompletionProviderExt::fn get_start_iter -->
Get the `gtk::TextIter` at which the completion for `proposal` starts. When
implemented, this information is used to position the completion window
accordingly when a proposal is selected in the completion window. The
`proposal` text inside the completion window is aligned on `iter`.

If this function is not implemented, the word boundary is taken to position
the completion window. See `CompletionProvider::activate_proposal`
for an explanation on the word boundaries.

When the `proposal` is activated, the default handler uses `iter` as the start
of the word to replace. See
`CompletionProvider::activate_proposal` for more information.
## `context`
a `CompletionContext`.
## `proposal`
a `CompletionProposal`.
## `iter`
a `gtk::TextIter`.

# Returns

`true` if `iter` was set for `proposal`, `false` otherwise.
<!-- trait CompletionProviderExt::fn match -->
Get whether the provider match the context of completion detailed in
`context`.
## `context`
a `CompletionContext`.

# Returns

`true` if `self` matches the completion context, `false` otherwise.
<!-- trait CompletionProviderExt::fn populate -->
Populate `context` with proposals from `self` added with the
`CompletionContextExt::add_proposals` function.
## `context`
a `CompletionContext`.
<!-- trait CompletionProviderExt::fn update_info -->
Update extra information shown in `info` for `proposal`.

`<note>`
 `<para>`
 This function `<emphasis>`must`</emphasis>` be implemented when
 `CompletionProvider::get_info_widget` is implemented.
 `</para>`
`</note>`
## `proposal`
a `CompletionProposal`.
## `info`
a `CompletionInfo`.
<!-- struct CompletionWords -->


# Implements

[`CompletionWordsExt`](trait.CompletionWordsExt.html), [`CompletionProviderExt`](trait.CompletionProviderExt.html)
<!-- trait CompletionWordsExt -->
Trait containing all `CompletionWords` methods.

# Implementors

[`CompletionWords`](struct.CompletionWords.html)
<!-- impl CompletionWords::fn new -->
## `name`
The name for the provider, or `None`.
## `icon`
A specific icon for the provider, or `None`.

# Returns

a new `CompletionWords` provider
<!-- trait CompletionWordsExt::fn register -->
Registers `buffer` in the `self` provider.
## `buffer`
a `gtk::TextBuffer`
<!-- trait CompletionWordsExt::fn unregister -->
Unregisters `buffer` from the `self` provider.
## `buffer`
a `gtk::TextBuffer`
<!-- trait CompletionWordsExt::fn get_property_activation -->
The type of activation.

Feature: `v3_10`

<!-- trait CompletionWordsExt::fn set_property_activation -->
The type of activation.

Feature: `v3_10`

<!-- enum CompressionType -->
<!-- enum CompressionType::variant None -->
plain text.
<!-- enum CompressionType::variant Gzip -->
gzip compression.

Feature: `v3_14`

<!-- struct Encoding -->

Feature: `v3_14`
<!-- impl Encoding::fn copy -->
Used by language bindings.

Feature: `v3_14`


# Returns

a copy of `self`.
<!-- impl Encoding::fn free -->
Used by language bindings.

Feature: `v3_14`

<!-- impl Encoding::fn get_charset -->
Gets the character set of the `Encoding`, such as "UTF-8" or
"ISO-8859-1".

Feature: `v3_14`


# Returns

the character set of the `Encoding`.
<!-- impl Encoding::fn get_name -->
Gets the name of the `Encoding` such as "Unicode" or "Western".

Feature: `v3_14`


# Returns

the name of the `Encoding`.
<!-- impl Encoding::fn to_string -->

Feature: `v3_14`


# Returns

a string representation. Free with `g_free` when no longer needed.
<!-- impl Encoding::fn get_all -->
Gets all encodings.

Feature: `v3_14`


# Returns

a list of
all `Encoding`'s. Free with `glib::SList::free`.
<!-- impl Encoding::fn get_current -->
Gets the `Encoding` for the current locale. See also `g_get_charset`.

Feature: `v3_14`


# Returns

the current locale encoding.
<!-- impl Encoding::fn get_default_candidates -->
Gets the list of default candidate encodings to try when loading a file. See
`FileLoader::set_candidate_encodings`.

This function returns a different list depending on the current locale (i.e.
language, country and default encoding). The UTF-8 encoding and the current
locale encoding are guaranteed to be present in the returned list.

Feature: `v3_18`


# Returns

the list of
default candidate encodings. Free with `glib::SList::free`.
<!-- impl Encoding::fn get_from_charset -->
Gets a `Encoding` from a character set such as "UTF-8" or
"ISO-8859-1".

Feature: `v3_14`

## `charset`
a character set.

# Returns

the corresponding `Encoding`, or `None`
if not found.
<!-- impl Encoding::fn get_utf8 -->

Feature: `v3_14`


# Returns

the UTF-8 encoding.
<!-- struct File -->


Feature: `v3_14`

# Implements

[`FileExt`](trait.FileExt.html)
<!-- trait FileExt -->
Trait containing all `File` methods.

Feature: `v3_14`

# Implementors

[`File`](struct.File.html)
<!-- impl File::fn new -->

Feature: `v3_14`


# Returns

a new `File` object.
<!-- trait FileExt::fn check_file_on_disk -->
Checks synchronously the file on disk, to know whether the file is externally
modified, or has been deleted, and whether the file is read-only.

`File` doesn't create a `gio::FileMonitor` to track those properties, so
this function needs to be called instead. Creating lots of `gio::FileMonitor`'s
would take lots of resources.

Since this function is synchronous, it is advised to call it only on local
files. See `FileExt::is_local`.

Feature: `v3_18`

<!-- trait FileExt::fn get_compression_type -->

Feature: `v3_14`


# Returns

the compression type.
<!-- trait FileExt::fn get_encoding -->
The encoding is initially `None`. After a successful file loading or saving
operation, the encoding is non-`None`.

Feature: `v3_14`


# Returns

the character encoding.
<!-- trait FileExt::fn get_location -->

Feature: `v3_14`


# Returns

the `gio::File`.
<!-- trait FileExt::fn get_newline_type -->

Feature: `v3_14`


# Returns

the newline type.
<!-- trait FileExt::fn is_deleted -->
Returns whether the file has been deleted. If the
`File:location` is `None`, returns `false`.

To have an up-to-date value, you must first call
`FileExt::check_file_on_disk`.

Feature: `v3_18`


# Returns

whether the file has been deleted.
<!-- trait FileExt::fn is_externally_modified -->
Returns whether the file is externally modified. If the
`File:location` is `None`, returns `false`.

To have an up-to-date value, you must first call
`FileExt::check_file_on_disk`.

Feature: `v3_18`


# Returns

whether the file is externally modified.
<!-- trait FileExt::fn is_local -->
Returns whether the file is local. If the `File:location` is `None`,
returns `false`.

Feature: `v3_18`


# Returns

whether the file is local.
<!-- trait FileExt::fn is_readonly -->
Returns whether the file is read-only. If the
`File:location` is `None`, returns `false`.

To have an up-to-date value, you must first call
`FileExt::check_file_on_disk`.

Feature: `v3_18`


# Returns

whether the file is read-only.
<!-- trait FileExt::fn set_location -->
Sets the location.

Feature: `v3_14`

## `location`
the new `gio::File`, or `None`.
<!-- trait FileExt::fn set_mount_operation_factory -->
Sets a ``GtkSourceMountOperationFactory`` function that will be called when a
`gio::MountOperation` must be created. This is useful for creating a
`gtk::MountOperation` with the parent `gtk::Window`.

If a mount operation factory isn't set, `gio::MountOperation::new` will be
called.

Feature: `v3_14`

## `callback`
a ``GtkSourceMountOperationFactory`` to call when a
 `gio::MountOperation` is needed.
## `user_data`
the data to pass to the `callback` function.
## `notify`
function to call on `user_data` when the `callback` is no
 longer needed, or `None`.
<!-- trait FileExt::fn get_property_compression_type -->
The compression type.

Feature: `v3_14`

<!-- trait FileExt::fn get_property_encoding -->
The character encoding, initially `None`. After a successful file
loading or saving operation, the encoding is non-`None`.

Feature: `v3_14`

<!-- trait FileExt::fn get_property_location -->
The location.

Feature: `v3_14`

<!-- trait FileExt::fn set_property_location -->
The location.

Feature: `v3_14`

<!-- trait FileExt::fn get_property_newline_type -->
The line ending type.

Feature: `v3_14`

<!-- trait FileExt::fn get_property_read_only -->
Whether the file is read-only or not. The value of this property is
not updated automatically (there is no file monitors).

Feature: `v3_18`

<!-- struct FileLoader -->


Feature: `v3_14`

# Implements

[`FileLoaderExt`](trait.FileLoaderExt.html)
<!-- trait FileLoaderExt -->
Trait containing all `FileLoader` methods.

Feature: `v3_14`

# Implementors

[`FileLoader`](struct.FileLoader.html)
<!-- impl FileLoader::fn new -->
Creates a new `FileLoader` object. The contents is read from the
`File`'s location. If not already done, call
`FileExt::set_location` before calling this constructor. The previous
location is anyway not needed, because as soon as the file loading begins,
the `buffer` is emptied.

Feature: `v3_14`

## `buffer`
the `Buffer` to load the contents into.
## `file`
the `File`.

# Returns

a new `FileLoader` object.
<!-- impl FileLoader::fn new_from_stream -->
Creates a new `FileLoader` object. The contents is read from `stream`.

Feature: `v3_14`

## `buffer`
the `Buffer` to load the contents into.
## `file`
the `File`.
## `stream`
the `gio::InputStream` to load, e.g. stdin.

# Returns

a new `FileLoader` object.
<!-- trait FileLoaderExt::fn get_buffer -->

Feature: `v3_14`


# Returns

the `Buffer` to load the contents into.
<!-- trait FileLoaderExt::fn get_compression_type -->

Feature: `v3_14`


# Returns

the detected compression type.
<!-- trait FileLoaderExt::fn get_encoding -->

Feature: `v3_14`


# Returns

the detected file encoding.
<!-- trait FileLoaderExt::fn get_file -->

Feature: `v3_14`


# Returns

the `File`.
<!-- trait FileLoaderExt::fn get_input_stream -->

Feature: `v3_14`


# Returns

the `gio::InputStream` to load, or `None`
if a `gio::File` is used.
<!-- trait FileLoaderExt::fn get_location -->

Feature: `v3_14`


# Returns

the `gio::File` to load, or `None`
if an input stream is used.
<!-- trait FileLoaderExt::fn get_newline_type -->

Feature: `v3_14`


# Returns

the detected newline type.
<!-- trait FileLoaderExt::fn load_async -->
Loads asynchronously the file or input stream contents into the
`Buffer`. See the `gio::AsyncResult` documentation to know how to use this
function.

Feature: `v3_14`

## `io_priority`
the I/O priority of the request. E.g. `G_PRIORITY_LOW`,
 `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
## `cancellable`
optional `gio::Cancellable` object, `None` to ignore.
## `progress_callback`
function to call back with
 progress information, or `None` if progress information is not needed.
## `progress_callback_data`
user data to pass to `progress_callback`.
## `progress_callback_notify`
function to call on
 `progress_callback_data` when the `progress_callback` is no longer needed, or
 `None`.
## `callback`
a `GAsyncReadyCallback` to call when the request is
 satisfied.
## `user_data`
user data to pass to `callback`.
<!-- trait FileLoaderExt::fn load_finish -->
Finishes a file loading started with `FileLoaderExt::load_async`.

If the contents has been loaded, the following `File` properties will
be updated: the location, the encoding, the newline type and the compression
type.

Feature: `v3_14`

## `result`
a `gio::AsyncResult`.

# Returns

whether the contents has been loaded successfully.
<!-- trait FileLoaderExt::fn set_candidate_encodings -->
Sets the candidate encodings for the file loading. The encodings are tried in
the same order as the list.

For convenience, `candidate_encodings` can contain duplicates. Only the first
occurrence of a duplicated encoding is kept in the list.

By default the candidate encodings are (in that order in the list):
1. If set, the `File`'s encoding as returned by
`FileExt::get_encoding`.
2. The default candidates as returned by
`Encoding::get_default_candidates`.

Feature: `v3_14`

## `candidate_encodings`
a list of
 `Encoding`<!-- -->s.
<!-- trait FileLoaderExt::fn get_property_buffer -->
The `Buffer` to load the contents into. The
`FileLoader` object has a weak reference to the buffer.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn set_property_buffer -->
The `Buffer` to load the contents into. The
`FileLoader` object has a weak reference to the buffer.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn get_property_file -->
The `File`. The `FileLoader` object has a weak
reference to the file.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn set_property_file -->
The `File`. The `FileLoader` object has a weak
reference to the file.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn get_property_input_stream -->
The `gio::InputStream` to load. Useful for reading stdin. If this property
is set, the `FileLoader:location` property is ignored.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn set_property_input_stream -->
The `gio::InputStream` to load. Useful for reading stdin. If this property
is set, the `FileLoader:location` property is ignored.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn get_property_location -->
The `gio::File` to load. If the `FileLoader:input-stream` is
`None`, by default the location is taken from the `File` at
construction time.

Feature: `v3_14`

<!-- trait FileLoaderExt::fn set_property_location -->
The `gio::File` to load. If the `FileLoader:input-stream` is
`None`, by default the location is taken from the `File` at
construction time.

Feature: `v3_14`

<!-- struct FileSaver -->


Feature: `v3_14`

# Implements

[`FileSaverExt`](trait.FileSaverExt.html)
<!-- trait FileSaverExt -->
Trait containing all `FileSaver` methods.

Feature: `v3_14`

# Implementors

[`FileSaver`](struct.FileSaver.html)
<!-- impl FileSaver::fn new -->
Creates a new `FileSaver` object. The `buffer` will be saved to the
`File`'s location.

This constructor is suitable for a simple "save" operation, when the `file`
already contains a non-`None` `File:location`.

Feature: `v3_14`

## `buffer`
the `Buffer` to save.
## `file`
the `File`.

# Returns

a new `FileSaver` object.
<!-- impl FileSaver::fn new_with_target -->
Creates a new `FileSaver` object with a target location. When the
file saving is finished successfully, `target_location` is set to the `file`'s
`File:location` property. If an error occurs, the previous valid
location is still available in `File`.

This constructor is suitable for a "save as" operation, or for saving a new
buffer for the first time.

Feature: `v3_14`

## `buffer`
the `Buffer` to save.
## `file`
the `File`.
## `target_location`
the `gio::File` where to save the buffer to.

# Returns

a new `FileSaver` object.
<!-- trait FileSaverExt::fn get_buffer -->

Feature: `v3_14`


# Returns

the `Buffer` to save.
<!-- trait FileSaverExt::fn get_compression_type -->

Feature: `v3_14`


# Returns

the compression type.
<!-- trait FileSaverExt::fn get_encoding -->

Feature: `v3_14`


# Returns

the encoding.
<!-- trait FileSaverExt::fn get_file -->

Feature: `v3_14`


# Returns

the `File`.
<!-- trait FileSaverExt::fn get_flags -->

Feature: `v3_14`


# Returns

the flags.
<!-- trait FileSaverExt::fn get_location -->

Feature: `v3_14`


# Returns

the `gio::File` where to save the buffer to.
<!-- trait FileSaverExt::fn get_newline_type -->

Feature: `v3_14`


# Returns

the newline type.
<!-- trait FileSaverExt::fn save_async -->
Saves asynchronously the buffer into the file. See the `gio::AsyncResult`
documentation to know how to use this function.

Feature: `v3_14`

## `io_priority`
the I/O priority of the request. E.g. `G_PRIORITY_LOW`,
 `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
## `cancellable`
optional `gio::Cancellable` object, `None` to ignore.
## `progress_callback`
function to call back with
 progress information, or `None` if progress information is not needed.
## `progress_callback_data`
user data to pass to `progress_callback`.
## `progress_callback_notify`
function to call on
 `progress_callback_data` when the `progress_callback` is no longer needed, or
 `None`.
## `callback`
a `GAsyncReadyCallback` to call when the request is
 satisfied.
## `user_data`
user data to pass to `callback`.
<!-- trait FileSaverExt::fn save_finish -->
Finishes a file saving started with `FileSaverExt::save_async`.

If the file has been saved successfully, the following `File`
properties will be updated: the location, the encoding, the newline type and
the compression type.

Since the 3.20 version, `gtk::TextBufferExt::set_modified` is called with `false`
if the file has been saved successfully.

Feature: `v3_14`

## `result`
a `gio::AsyncResult`.

# Returns

whether the file was saved successfully.
<!-- trait FileSaverExt::fn set_compression_type -->
Sets the compression type. By default the compression type is taken from the
`File`.

Feature: `v3_14`

## `compression_type`
the new compression type.
<!-- trait FileSaverExt::fn set_encoding -->
Sets the encoding. If `encoding` is `None`, the UTF-8 encoding will be set.
By default the encoding is taken from the `File`.

Feature: `v3_14`

## `encoding`
the new encoding, or `None` for UTF-8.
<!-- trait FileSaverExt::fn set_flags -->

Feature: `v3_14`

## `flags`
the new flags.
<!-- trait FileSaverExt::fn set_newline_type -->
Sets the newline type. By default the newline type is taken from the
`File`.

Feature: `v3_14`

## `newline_type`
the new newline type.
<!-- trait FileSaverExt::fn get_property_buffer -->
The `Buffer` to save. The `FileSaver` object has a
weak reference to the buffer.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_buffer -->
The `Buffer` to save. The `FileSaver` object has a
weak reference to the buffer.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_compression_type -->
The compression type.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_compression_type -->
The compression type.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_encoding -->
The file's encoding.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_encoding -->
The file's encoding.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_file -->
The `File`. The `FileSaver` object has a weak
reference to the file.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_file -->
The `File`. The `FileSaver` object has a weak
reference to the file.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_flags -->
File saving flags.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_flags -->
File saving flags.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_location -->
The `gio::File` where to save the buffer. By default the location is taken
from the `File` at construction time.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_location -->
The `gio::File` where to save the buffer. By default the location is taken
from the `File` at construction time.

Feature: `v3_14`

<!-- trait FileSaverExt::fn get_property_newline_type -->
The newline type.

Feature: `v3_14`

<!-- trait FileSaverExt::fn set_property_newline_type -->
The newline type.

Feature: `v3_14`

<!-- struct Gutter -->


# Implements

[`GutterExt`](trait.GutterExt.html)
<!-- trait GutterExt -->
Trait containing all `Gutter` methods.

# Implementors

[`Gutter`](struct.Gutter.html)
<!-- trait GutterExt::fn get_padding -->

# Deprecated since 3.12

Use `GutterRendererExt::get_padding` instead.
<!-- trait GutterExt::fn get_renderer_at_pos -->
Finds the `GutterRenderer` at (x, y).
## `x`
The x position to get identified.
## `y`
The y position to get identified.

# Returns

the renderer at (x, y) or `None`.
<!-- trait GutterExt::fn get_view -->

Feature: `v3_24`


# Returns

the associated `View`.
<!-- trait GutterExt::fn get_window -->
Get the `gdk::Window` of the gutter. The window will only be available when the
gutter has at least one, non-zero width, cell renderer packed.

# Deprecated since 3.12

Use `gtk::TextViewExt::get_window` instead.

# Returns

the `gdk::Window` of the gutter, or `None`
if the gutter has no window.
<!-- trait GutterExt::fn get_window_type -->

Feature: `v3_24`


# Returns

the `gtk::TextWindowType` of `self`.
<!-- trait GutterExt::fn insert -->
Insert `renderer` into the gutter. If `renderer` is yet unowned then gutter
claims its ownership. Otherwise just increases renderer's reference count.
`renderer` cannot be already inserted to another gutter.
## `renderer`
a gutter renderer (must inherit from `GutterRenderer`).
## `position`
the renderer position.

# Returns

`true` if operation succeeded. Otherwise `false`.
<!-- trait GutterExt::fn queue_draw -->
Invalidates the drawable area of the gutter. You can use this to force a
redraw of the gutter if something has changed and needs to be redrawn.
<!-- trait GutterExt::fn remove -->
Removes `renderer` from `self`.
## `renderer`
a `GutterRenderer`.
<!-- trait GutterExt::fn reorder -->
Reorders `renderer` in `self` to new `position`.
## `renderer`
a `gtk::CellRenderer`.
## `position`
the new renderer position.
<!-- trait GutterExt::fn set_padding -->

# Deprecated since 3.12

Use `GutterRendererExt::set_padding` instead.
<!-- trait GutterExt::fn get_property_view -->
The `View` of the gutter.
<!-- trait GutterExt::fn set_property_view -->
The `View` of the gutter.
<!-- trait GutterExt::fn get_property_window_type -->
The text window type on which the window is placed.
<!-- trait GutterExt::fn set_property_window_type -->
The text window type on which the window is placed.
<!-- trait GutterExt::fn get_property_xpad -->
The x-padding.

# Deprecated since 3.12

Use the `GutterRenderer`'s
`GutterRenderer:xpad` property instead.
<!-- trait GutterExt::fn set_property_xpad -->
The x-padding.

# Deprecated since 3.12

Use the `GutterRenderer`'s
`GutterRenderer:xpad` property instead.
<!-- trait GutterExt::fn get_property_ypad -->
The y-padding.

# Deprecated since 3.12

Use the `GutterRenderer`'s
`GutterRenderer:ypad` property instead.
<!-- trait GutterExt::fn set_property_ypad -->
The y-padding.

# Deprecated since 3.12

Use the `GutterRenderer`'s
`GutterRenderer:ypad` property instead.
<!-- struct GutterRenderer -->


# Implements

[`GutterRendererExt`](trait.GutterRendererExt.html)
<!-- trait GutterRendererExt -->
Trait containing all `GutterRenderer` methods.

# Implementors

[`GutterRendererPixbuf`](struct.GutterRendererPixbuf.html), [`GutterRendererText`](struct.GutterRendererText.html), [`GutterRenderer`](struct.GutterRenderer.html)
<!-- trait GutterRendererExt::fn activate -->
Emits the `GutterRenderer::activate` signal of the renderer. This is
called from `Gutter` and should never have to be called manually.
## `iter`
a `gtk::TextIter` at the start of the line where the renderer is activated
## `area`
a `gdk::Rectangle` of the cell area where the renderer is activated
## `event`
the event that triggered the activation
<!-- trait GutterRendererExt::fn begin -->
Called when drawing a region begins. The region to be drawn is indicated
by `start` and `end`. The purpose is to allow the implementation to precompute
some state before the draw method is called for each cell.
## `cr`
a `cairo::Context`
## `background_area`
a `gdk::Rectangle`
## `cell_area`
a `gdk::Rectangle`
## `start`
a `gtk::TextIter`
## `end`
a `gtk::TextIter`
<!-- trait GutterRendererExt::fn draw -->
Main renderering method. Implementations should implement this method to draw
onto the cairo context. The `background_area` indicates the total area of the
cell to be drawn. The `cell_area` indicates the area where content can be
drawn (text, images, etc).

The `background_area` is the `cell_area` plus the padding on each side (two
times the `GutterRenderer:xpad` horizontally and two times the
`GutterRenderer:ypad` vertically, so that the `cell_area` is centered
inside `background_area`).

The `state` argument indicates the current state of the renderer and should
be taken into account to properly draw the different possible states
(cursor, prelit, selected) if appropriate.
## `cr`
the cairo render context
## `background_area`
a `gdk::Rectangle` indicating the total area to be drawn
## `cell_area`
a `gdk::Rectangle` indicating the area to draw content
## `start`
a `gtk::TextIter`
## `end`
a `gtk::TextIter`
## `state`
a `GutterRendererState`
<!-- trait GutterRendererExt::fn end -->
Called when drawing a region of lines has ended.
<!-- trait GutterRendererExt::fn get_alignment -->
Get the x-alignment and y-alignment of the gutter renderer.
## `xalign`
return location for the x-alignment,
 or `None` to ignore.
## `yalign`
return location for the y-alignment,
 or `None` to ignore.
<!-- trait GutterRendererExt::fn get_alignment_mode -->
Get the alignment mode. The alignment mode describes the manner in which the
renderer is aligned (see :xalign and :yalign).

# Returns

a `GutterRendererAlignmentMode`
<!-- trait GutterRendererExt::fn get_background -->
Get the background color of the renderer.
## `color`
return value for a `gdk::RGBA`

# Returns

`true` if the background color is set, `false` otherwise
<!-- trait GutterRendererExt::fn get_padding -->
Get the x-padding and y-padding of the gutter renderer.
## `xpad`
return location for the x-padding,
 or `None` to ignore.
## `ypad`
return location for the y-padding,
 or `None` to ignore.
<!-- trait GutterRendererExt::fn get_size -->
Get the size of the renderer.

# Returns

the size of the renderer.
<!-- trait GutterRendererExt::fn get_view -->
Get the view associated to the gutter renderer

# Returns

a `gtk::TextView`
<!-- trait GutterRendererExt::fn get_visible -->
Get whether the gutter renderer is visible.

# Returns

`true` if the renderer is visible, `false` otherwise
<!-- trait GutterRendererExt::fn get_window_type -->
Get the `gtk::TextWindowType` associated with the gutter renderer.

# Returns

a `gtk::TextWindowType`
<!-- trait GutterRendererExt::fn query_activatable -->
Get whether the renderer is activatable at the location in `event`. This is
called from `Gutter` to determine whether a renderer is activatable
using the mouse pointer.
## `iter`
a `gtk::TextIter` at the start of the line to be activated
## `area`
a `gdk::Rectangle` of the cell area to be activated
## `event`
the event that triggered the query

# Returns

`true` if the renderer can be activated, `false` otherwise
<!-- trait GutterRendererExt::fn query_data -->
Emit the `GutterRenderer::query-data` signal. This function is called
to query for data just before rendering a cell. This is called from the
`Gutter`. Implementations can override the default signal handler or
can connect a signal handler externally to the
`GutterRenderer::query-data` signal.
## `start`
a `gtk::TextIter`.
## `end`
a `gtk::TextIter`.
## `state`
a `GutterRendererState`.
<!-- trait GutterRendererExt::fn query_tooltip -->
Emits the `GutterRenderer::query-tooltip` signal. This function is
called from `Gutter`. Implementations can override the default signal
handler or can connect to the signal externally.
## `iter`
a `gtk::TextIter`.
## `area`
a `gdk::Rectangle`.
## `x`
The x position of the tooltip.
## `y`
The y position of the tooltip.
## `tooltip`
a `gtk::Tooltip`.

# Returns

`true` if the tooltip has been set, `false` otherwise
<!-- trait GutterRendererExt::fn queue_draw -->
Emits the `GutterRenderer::queue-draw` signal of the renderer. Call
this from an implementation to inform that the renderer has changed such that
it needs to redraw.
<!-- trait GutterRendererExt::fn set_alignment -->
Set the alignment of the gutter renderer. Both `xalign` and `yalign` can be
-1, which means the values will not be changed (this allows changing only
one of the values).

`xalign` is the horizontal alignment. Set to 0 for a left alignment. 1 for a
right alignment. And 0.5 for centering the cells. `yalign` is the vertical
alignment. Set to 0 for a top alignment. 1 for a bottom alignment.
## `xalign`
the x-alignment
## `yalign`
the y-alignment
<!-- trait GutterRendererExt::fn set_alignment_mode -->
Set the alignment mode. The alignment mode describes the manner in which the
renderer is aligned (see :xalign and :yalign).
## `mode`
a `GutterRendererAlignmentMode`
<!-- trait GutterRendererExt::fn set_background -->
Set the background color of the renderer. If `color` is set to `None`, the
renderer will not have a background color.
## `color`
a `gdk::RGBA` or `None`
<!-- trait GutterRendererExt::fn set_padding -->
Set the padding of the gutter renderer. Both `xpad` and `ypad` can be
-1, which means the values will not be changed (this allows changing only
one of the values).

`xpad` is the left and right padding. `ypad` is the top and bottom padding.
## `xpad`
the x-padding
## `ypad`
the y-padding
<!-- trait GutterRendererExt::fn set_size -->
Sets the size of the renderer. A value of -1 specifies that the size
is to be determined dynamically.
## `size`
the size
<!-- trait GutterRendererExt::fn set_visible -->
Set whether the gutter renderer is visible.
## `visible`
the visibility
<!-- trait GutterRendererExt::fn connect_activate -->
The ::activate signal is emitted when the renderer is
activated.
## `iter`
a `gtk::TextIter`
## `area`
a `gdk::Rectangle`
## `event`
the event that caused the activation
<!-- trait GutterRendererExt::fn connect_query_activatable -->
The ::query-activatable signal is emitted when the renderer
can possibly be activated.
## `iter`
a `gtk::TextIter`
## `area`
a `gdk::Rectangle`
## `event`
the ``GdkEvent`` that is causing the activatable query
<!-- trait GutterRendererExt::fn connect_query_data -->
The ::query-data signal is emitted when the renderer needs
to be filled with data just before a cell is drawn. This can
be used by general renderer implementations to allow render
data to be filled in externally.
## `start`
a `gtk::TextIter`
## `end`
a `gtk::TextIter`
## `state`
the renderer state
<!-- trait GutterRendererExt::fn connect_query_tooltip -->
The ::query-tooltip signal is emitted when the renderer can
show a tooltip.
## `iter`
a `gtk::TextIter`
## `area`
a `gdk::Rectangle`
## `x`
the x position (in window coordinates)
## `y`
the y position (in window coordinates)
## `tooltip`
a `gtk::Tooltip`
<!-- trait GutterRendererExt::fn connect_queue_draw -->
The ::queue-draw signal is emitted when the renderer needs
to be redrawn. Use `GutterRendererExt::queue_draw`
to emit this signal from an implementation of the
`GutterRenderer` interface.
<!-- trait GutterRendererExt::fn get_property_alignment_mode -->
The alignment mode of the renderer. This can be used to indicate
that in the case a cell spans multiple lines (due to text wrapping)
the alignment should work on either the full cell, the first line
or the last line.
<!-- trait GutterRendererExt::fn set_property_alignment_mode -->
The alignment mode of the renderer. This can be used to indicate
that in the case a cell spans multiple lines (due to text wrapping)
the alignment should work on either the full cell, the first line
or the last line.
<!-- trait GutterRendererExt::fn get_property_view -->
The view on which the renderer is placed.
<!-- trait GutterRendererExt::fn get_property_visible -->
The visibility of the renderer.
<!-- trait GutterRendererExt::fn set_property_visible -->
The visibility of the renderer.
<!-- trait GutterRendererExt::fn get_property_window_type -->
The window type of the view on which the renderer is placed (left,
or right).
<!-- trait GutterRendererExt::fn get_property_xalign -->
The horizontal alignment of the renderer. Set to 0 for a left
alignment. 1 for a right alignment. And 0.5 for centering the cells.
A value lower than 0 doesn't modify the alignment.
<!-- trait GutterRendererExt::fn set_property_xalign -->
The horizontal alignment of the renderer. Set to 0 for a left
alignment. 1 for a right alignment. And 0.5 for centering the cells.
A value lower than 0 doesn't modify the alignment.
<!-- trait GutterRendererExt::fn get_property_xpad -->
The left and right padding of the renderer.
<!-- trait GutterRendererExt::fn set_property_xpad -->
The left and right padding of the renderer.
<!-- trait GutterRendererExt::fn get_property_yalign -->
The vertical alignment of the renderer. Set to 0 for a top
alignment. 1 for a bottom alignment. And 0.5 for centering the cells.
A value lower than 0 doesn't modify the alignment.
<!-- trait GutterRendererExt::fn set_property_yalign -->
The vertical alignment of the renderer. Set to 0 for a top
alignment. 1 for a bottom alignment. And 0.5 for centering the cells.
A value lower than 0 doesn't modify the alignment.
<!-- trait GutterRendererExt::fn get_property_ypad -->
The top and bottom padding of the renderer.
<!-- trait GutterRendererExt::fn set_property_ypad -->
The top and bottom padding of the renderer.
<!-- enum GutterRendererAlignmentMode -->
The alignment mode of the renderer, when a cell spans multiple lines (due to
text wrapping).
<!-- enum GutterRendererAlignmentMode::variant Cell -->
The full cell.
<!-- enum GutterRendererAlignmentMode::variant First -->
The first line.
<!-- enum GutterRendererAlignmentMode::variant Last -->
The last line.
<!-- struct GutterRendererPixbuf -->


# Implements

[`GutterRendererPixbufExt`](trait.GutterRendererPixbufExt.html), [`GutterRendererExt`](trait.GutterRendererExt.html)
<!-- trait GutterRendererPixbufExt -->
Trait containing all `GutterRendererPixbuf` methods.

# Implementors

[`GutterRendererPixbuf`](struct.GutterRendererPixbuf.html)
<!-- impl GutterRendererPixbuf::fn new -->
Create a new `GutterRendererPixbuf`.

# Returns

A `GutterRenderer`
<!-- trait GutterRendererPixbufExt::fn get_gicon -->
Get the gicon of the renderer

# Returns

a `gio::Icon`
<!-- trait GutterRendererPixbufExt::fn get_pixbuf -->
Get the pixbuf of the renderer.

# Returns

a `gdk_pixbuf::Pixbuf`
<!-- trait GutterRendererPixbufExt::fn get_stock_id -->

# Deprecated since 3.10

Don't use this function.

# Returns

the stock id.
<!-- trait GutterRendererPixbufExt::fn set_gicon -->
## `icon`
the icon, or `None`.
<!-- trait GutterRendererPixbufExt::fn set_icon_name -->
## `icon_name`
the icon name, or `None`.
<!-- trait GutterRendererPixbufExt::fn set_pixbuf -->
## `pixbuf`
the pixbuf, or `None`.
<!-- trait GutterRendererPixbufExt::fn set_stock_id -->

# Deprecated since 3.10

Don't use this function.
## `stock_id`
the stock id
<!-- trait GutterRendererPixbufExt::fn get_property_stock_id -->
The stock id.

# Deprecated since 3.10

Don't use this property.
<!-- trait GutterRendererPixbufExt::fn set_property_stock_id -->
The stock id.

# Deprecated since 3.10

Don't use this property.
<!-- struct GutterRendererText -->


# Implements

[`GutterRendererTextExt`](trait.GutterRendererTextExt.html), [`GutterRendererExt`](trait.GutterRendererExt.html)
<!-- trait GutterRendererTextExt -->
Trait containing all `GutterRendererText` methods.

# Implementors

[`GutterRendererText`](struct.GutterRendererText.html)
<!-- impl GutterRendererText::fn new -->
Create a new `GutterRendererText`.

# Returns

A `GutterRenderer`
<!-- trait GutterRendererTextExt::fn measure -->
Measures the text provided using the pango layout used by the
`GutterRendererText`.
## `text`
the text to measure.
## `width`
location to store the width of the text in pixels,
 or `None`.
## `height`
location to store the height of the text in
 pixels, or `None`.
<!-- trait GutterRendererTextExt::fn measure_markup -->
Measures the pango markup provided using the pango layout used by the
`GutterRendererText`.
## `markup`
the pango markup to measure.
## `width`
location to store the width of the text in pixels,
 or `None`.
## `height`
location to store the height of the text in
 pixels, or `None`.
<!-- struct Language -->


# Implements

[`LanguageExt`](trait.LanguageExt.html)
<!-- trait LanguageExt -->
Trait containing all `Language` methods.

# Implementors

[`Language`](struct.Language.html)
<!-- trait LanguageExt::fn get_globs -->
Returns the globs associated to this language. This is just
an utility wrapper around `LanguageExt::get_metadata` to
retrieve the "globs" metadata property and split it into an array.

# Returns


a newly-allocated `None` terminated array containing the globs or `None`
if no globs are found.
The returned array must be freed with `g_strfreev`.
<!-- trait LanguageExt::fn get_hidden -->
Returns whether the language should be hidden from the user.

# Returns

`true` if the language should be hidden, `false` otherwise.
<!-- trait LanguageExt::fn get_id -->
Returns the ID of the language. The ID is not locale-dependent.
The returned string is owned by `self` and should not be freed
or modified.

# Returns

the ID of `self`.
<!-- trait LanguageExt::fn get_metadata -->
## `name`
metadata property name.

# Returns

value of property `name` stored in
the metadata of `self` or `None` if language does not contain the
specified metadata property.
The returned string is owned by `self` and should not be freed
or modified.
<!-- trait LanguageExt::fn get_mime_types -->
Returns the mime types associated to this language. This is just
an utility wrapper around `LanguageExt::get_metadata` to
retrieve the "mimetypes" metadata property and split it into an
array.

# Returns


a newly-allocated `None` terminated array containing the mime types
or `None` if no mime types are found.
The returned array must be freed with `g_strfreev`.
<!-- trait LanguageExt::fn get_name -->
Returns the localized name of the language.
The returned string is owned by `self` and should not be freed
or modified.

# Returns

the name of `self`.
<!-- trait LanguageExt::fn get_section -->
Returns the localized section of the language.
Each language belong to a section (ex. HTML belogs to the
Markup section).
The returned string is owned by `self` and should not be freed
or modified.

# Returns

the section of `self`.
<!-- trait LanguageExt::fn get_style_fallback -->
Returns the ID of the style to use if the specified `style_id`
is not present in the current style scheme.

Feature: `v3_4`

## `style_id`
a style ID.

# Returns

the ID of the style to use if the
specified `style_id` is not present in the current style scheme or `None`
if the style has no fallback defined.
The returned string is owned by the `self` and must not be modified.
<!-- trait LanguageExt::fn get_style_ids -->
Returns the ids of the styles defined by this `self`.

# Returns


a newly-allocated `None` terminated array containing ids of the
styles defined by this `self` or `None` if no style is defined.
The returned array must be freed with `g_strfreev`.
<!-- trait LanguageExt::fn get_style_name -->
Returns the name of the style with ID `style_id` defined by this `self`.
## `style_id`
a style ID.

# Returns

the name of the style with ID `style_id`
defined by this `self` or `None` if the style has no name or there is no
style with ID `style_id` defined by this `self`.
The returned string is owned by the `self` and must not be modified.
<!-- struct LanguageManager -->


# Implements

[`LanguageManagerExt`](trait.LanguageManagerExt.html)
<!-- trait LanguageManagerExt -->
Trait containing all `LanguageManager` methods.

# Implementors

[`LanguageManager`](struct.LanguageManager.html)
<!-- impl LanguageManager::fn new -->
Creates a new language manager. If you do not need more than one language
manager or a private language manager instance then use
`LanguageManager::get_default` instead.

# Returns

a new `LanguageManager`.
<!-- impl LanguageManager::fn get_default -->
Returns the default `LanguageManager` instance.

# Returns

a `LanguageManager`.
Return value is owned by `View` library and must not be unref'ed.
<!-- trait LanguageManagerExt::fn get_language -->
Gets the `Language` identified by the given `id` in the language
manager.
## `id`
a language id.

# Returns

a `Language`, or `None`
if there is no language identified by the given `id`. Return value is
owned by `self` and should not be freed.
<!-- trait LanguageManagerExt::fn get_language_ids -->
Returns the ids of the available languages.

# Returns


a `None`-terminated array of strings containing the ids of the available
languages or `None` if no language is available.
The array is sorted alphabetically according to the language name.
The array is owned by `self` and must not be modified.
<!-- trait LanguageManagerExt::fn get_search_path -->
Gets the list directories where `self` looks for language files.

# Returns

`None`-terminated array
containg a list of language files directories.
The array is owned by `self` and must not be modified.
<!-- trait LanguageManagerExt::fn guess_language -->
Picks a `Language` for given file name and content type,
according to the information in lang files. Either `filename` or
`content_type` may be `None`. This function can be used as follows:

`<informalexample>``<programlisting>`
 `Language` *lang;
 lang = gtk_source_language_manager_guess_language (filename, NULL);
 gtk_source_buffer_set_language (buffer, lang);
`</programlisting>``</informalexample>`

or

`<informalexample>``<programlisting>`
 `Language` *lang = NULL;
 gboolean result_uncertain;
 gchar *content_type;

 content_type = g_content_type_guess (filename, NULL, 0, &result_uncertain);
 if (result_uncertain)
 {
 g_free (content_type);
 content_type = NULL;
 }

 lang = gtk_source_language_manager_guess_language (manager, filename, content_type);
 gtk_source_buffer_set_language (buffer, lang);

 g_free (content_type);
`</programlisting>``</informalexample>`

etc. Use `LanguageExt::get_mime_types` and `LanguageExt::get_globs`
if you need full control over file -> language mapping.
## `filename`
a filename in Glib filename encoding, or `None`.
## `content_type`
a content type (as in GIO API), or `None`.

# Returns

a `Language`, or `None` if there
is no suitable language for given `filename` and/or `content_type`. Return
value is owned by `self` and should not be freed.
<!-- trait LanguageManagerExt::fn set_search_path -->
Sets the list of directories where the `self` looks for
language files.
If `dirs` is `None`, the search path is reset to default.

`<note>`
 `<para>`
 At the moment this function can be called only before the
 language files are loaded for the first time. In practice
 to set a custom search path for a `LanguageManager`,
 you have to call this function right after creating it.
 `</para>`
`</note>`
## `dirs`

a `None`-terminated array of strings or `None`.
<!-- struct Map -->


Feature: `v3_18`

# Implements

[`MapExt`](trait.MapExt.html), [`ViewExt`](trait.ViewExt.html), [`gtk::TextViewExt`](../gtk/trait.TextViewExt.html), [`gtk::ContainerExt`](../gtk/trait.ContainerExt.html), [`gtk::WidgetExt`](../gtk/trait.WidgetExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html), [`gtk::ScrollableExt`](../gtk/trait.ScrollableExt.html)
<!-- trait MapExt -->
Trait containing all `Map` methods.

Feature: `v3_18`

# Implementors

[`Map`](struct.Map.html)
<!-- impl Map::fn new -->
Creates a new `Map`.

Feature: `v3_18`


# Returns

a new `Map`.
<!-- trait MapExt::fn get_view -->
Gets the `Map:view` property, which is the view this widget is mapping.

Feature: `v3_18`


# Returns

a `View` or `None`.
<!-- trait MapExt::fn set_view -->
Sets the view that `self` will be doing the mapping to.

Feature: `v3_18`

## `view`
a `View`
<!-- struct Mark -->


# Implements

[`MarkExt`](trait.MarkExt.html), [`gtk::TextMarkExt`](../gtk/trait.TextMarkExt.html)
<!-- trait MarkExt -->
Trait containing all `Mark` methods.

# Implementors

[`Mark`](struct.Mark.html)
<!-- impl Mark::fn new -->
Creates a text mark. Add it to a buffer using `gtk::TextBufferExt::add_mark`.
If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
by name using `gtk::TextBufferExt::get_mark`.
Normally marks are created using the utility function
`BufferExt::create_source_mark`.
## `name`
Name of the `Mark`, can be NULL when not using a name
## `category`
is used to classify marks according to common characteristics
(e.g. all the marks representing a bookmark could belong to the "bookmark"
category, or all the marks representing a compilation error could belong to
"error" category).

# Returns

a new `Mark` that can be added using `gtk::TextBufferExt::add_mark`.
<!-- trait MarkExt::fn get_category -->
Returns the mark category.

# Returns

the category of the `Mark`.
<!-- trait MarkExt::fn next -->
Returns the next `Mark` in the buffer or `None` if the mark
was not added to a buffer. If there is no next mark, `None` will be returned.

If `category` is `None`, looks for marks of any category.
## `category`
a string specifying the mark category, or `None`.

# Returns

the next `Mark`, or `None`.
<!-- trait MarkExt::fn prev -->
Returns the previous `Mark` in the buffer or `None` if the mark
was not added to a buffer. If there is no previous mark, `None` is returned.

If `category` is `None`, looks for marks of any category
## `category`
a string specifying the mark category, or `None`.

# Returns

the previous `Mark`, or `None`.
<!-- trait MarkExt::fn get_property_category -->
The category of the `Mark`, classifies the mark and controls
which pixbuf is used and with which priority it is drawn.
<!-- trait MarkExt::fn set_property_category -->
The category of the `Mark`, classifies the mark and controls
which pixbuf is used and with which priority it is drawn.
<!-- struct MarkAttributes -->


# Implements

[`MarkAttributesExt`](trait.MarkAttributesExt.html)
<!-- trait MarkAttributesExt -->
Trait containing all `MarkAttributes` methods.

# Implementors

[`MarkAttributes`](struct.MarkAttributes.html)
<!-- impl MarkAttributes::fn new -->
Creates a new source mark attributes.

# Returns

a new source mark attributes.
<!-- trait MarkAttributesExt::fn get_background -->
Stores background color in `background`.
## `background`
a `gdk::RGBA`.

# Returns

whether background color for `self` was set.
<!-- trait MarkAttributesExt::fn get_gicon -->
Gets a `gio::Icon` to be used as a base for rendered icon. Note that the icon can
be `None` if it wasn't set earlier.

# Returns

An icon. The icon belongs to `self` and should
not be unreffed.
<!-- trait MarkAttributesExt::fn get_icon_name -->
Gets a name of an icon to be used as a base for rendered icon. Note that the
icon name can be `None` if it wasn't set earlier.

# Returns

An icon name. The string belongs to `self` and
should not be freed.
<!-- trait MarkAttributesExt::fn get_pixbuf -->
Gets a `gdk_pixbuf::Pixbuf` to be used as a base for rendered icon. Note that the
pixbuf can be `None` if it wasn't set earlier.

# Returns

A pixbuf. The pixbuf belongs to `self` and
should not be unreffed.
<!-- trait MarkAttributesExt::fn get_stock_id -->
Gets a stock id of an icon used by this attributes. Note that the stock id can
be `None` if it wasn't set earlier.

# Deprecated since 3.10

Don't use this function.

# Returns

Stock id. Returned string is owned by `self` and
shouldn't be freed.
<!-- trait MarkAttributesExt::fn get_tooltip_markup -->
Queries for a tooltip by emitting
a `MarkAttributes::query-tooltip-markup` signal. The tooltip may contain
a markup.
## `mark`
a `Mark`.

# Returns

A tooltip. The returned string should be freed by
using `g_free` when done with it.
<!-- trait MarkAttributesExt::fn get_tooltip_text -->
Queries for a tooltip by emitting
a `MarkAttributes::query-tooltip-text` signal. The tooltip is a plain
text.
## `mark`
a `Mark`.

# Returns

A tooltip. The returned string should be freed by
using `g_free` when done with it.
<!-- trait MarkAttributesExt::fn render_icon -->
Renders an icon of given size. The base of the icon is set by the last call
to one of: `MarkAttributesExt::set_pixbuf`,
`MarkAttributesExt::set_gicon`,
`MarkAttributesExt::set_icon_name` or
`MarkAttributesExt::set_stock_id`. `size` cannot be lower than 1.
## `widget`
widget of which style settings may be used.
## `size`
size of the rendered icon.

# Returns

A rendered pixbuf. The pixbuf belongs to `self`
and should not be unreffed.
<!-- trait MarkAttributesExt::fn set_background -->
Sets background color to the one given in `background`.
## `background`
a `gdk::RGBA`.
<!-- trait MarkAttributesExt::fn set_gicon -->
Sets an icon to be used as a base for rendered icon.
## `gicon`
a `gio::Icon` to be used.
<!-- trait MarkAttributesExt::fn set_icon_name -->
Sets a name of an icon to be used as a base for rendered icon.
## `icon_name`
name of an icon to be used.
<!-- trait MarkAttributesExt::fn set_pixbuf -->
Sets a pixbuf to be used as a base for rendered icon.
## `pixbuf`
a `gdk_pixbuf::Pixbuf` to be used.
<!-- trait MarkAttributesExt::fn set_stock_id -->
Sets stock id to be used as a base for rendered icon.

# Deprecated since 3.10

Don't use this function.
## `stock_id`
a stock id.
<!-- trait MarkAttributesExt::fn connect_query_tooltip_markup -->
The code should connect to this signal to provide a tooltip for given
`mark`. The tooltip can contain a markup.
## `mark`
The `Mark`.

# Returns

A tooltip. The string should be freed with
`g_free` when done with it.
<!-- trait MarkAttributesExt::fn connect_query_tooltip_text -->
The code should connect to this signal to provide a tooltip for given
`mark`. The tooltip should be just a plain text.
## `mark`
The `Mark`.

# Returns

A tooltip. The string should be freed with
`g_free` when done with it.
<!-- trait MarkAttributesExt::fn get_property_background -->
A color used for background of a line.
<!-- trait MarkAttributesExt::fn set_property_background -->
A color used for background of a line.
<!-- trait MarkAttributesExt::fn get_property_gicon -->
A `gio::Icon` that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn set_property_gicon -->
A `gio::Icon` that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn get_property_icon_name -->
An icon name that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn set_property_icon_name -->
An icon name that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn get_property_pixbuf -->
A `gdk_pixbuf::Pixbuf` that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn set_property_pixbuf -->
A `gdk_pixbuf::Pixbuf` that may be a base of a rendered icon.
<!-- trait MarkAttributesExt::fn get_property_stock_id -->
A stock id that may be a base of a rendered icon.

# Deprecated since 3.10

Don't use this property.
<!-- trait MarkAttributesExt::fn set_property_stock_id -->
A stock id that may be a base of a rendered icon.

# Deprecated since 3.10

Don't use this property.
<!-- enum NewlineType -->
<!-- enum NewlineType::variant Lf -->
line feed, used on UNIX.
<!-- enum NewlineType::variant Cr -->
carriage return, used on Mac.
<!-- enum NewlineType::variant CrLf -->
carriage return followed by a line feed, used
 on Windows.

Feature: `v3_14`

<!-- struct PrintCompositor -->


# Implements

[`PrintCompositorExt`](trait.PrintCompositorExt.html)
<!-- trait PrintCompositorExt -->
Trait containing all `PrintCompositor` methods.

# Implementors

[`PrintCompositor`](struct.PrintCompositor.html)
<!-- impl PrintCompositor::fn new -->
Creates a new print compositor that can be used to print `buffer`.
## `buffer`
the `Buffer` to print.

# Returns

a new print compositor object.
<!-- impl PrintCompositor::fn new_from_view -->
Creates a new print compositor that can be used to print the buffer
associated with `view`.
This constructor sets some configuration properties to make the
printed output match `view` as much as possible. The properties set are
`PrintCompositor:tab-width`, `PrintCompositor:highlight-syntax`,
`PrintCompositor:wrap-mode`, `PrintCompositor:body-font-name` and
`PrintCompositor:print-line-numbers`.
## `view`
a `View` to get configuration from.

# Returns

a new print compositor object.
<!-- trait PrintCompositorExt::fn draw_page -->
Draw page `page_nr` for printing on the the Cairo context encapsuled in `context`.

This method has been designed to be called in the handler of the `gtk::PrintOperation::draw_page` signal
as shown in the following example:

`<informalexample>``<programlisting>`
// Signal handler for the `gtk::PrintOperation`::draw_page signal

static void
draw_page (`gtk::PrintOperation` *operation,
 `gtk::PrintContext` *context,
 gint page_nr,
 gpointer user_data)
{
 `PrintCompositor` *compositor;

 compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);

 gtk_source_print_compositor_draw_page (compositor,
 context,
 page_nr);
}
`</programlisting>``</informalexample>`
## `context`
the `gtk::PrintContext` encapsulating the context information that is required when
 drawing the page for printing.
## `page_nr`
the number of the page to print.
<!-- trait PrintCompositorExt::fn get_body_font_name -->
Returns the name of the font used to print the text body. The returned string
must be freed with `g_free`.

# Returns

a new string containing the name of the font used to print the
text body.
<!-- trait PrintCompositorExt::fn get_bottom_margin -->
Gets the bottom margin in units of `unit`.
## `unit`
the unit for the return value.

# Returns

the bottom margin.
<!-- trait PrintCompositorExt::fn get_buffer -->
Gets the `Buffer` associated with the compositor. The returned
object reference is owned by the compositor object and
should not be unreferenced.

# Returns

the `Buffer` associated with the compositor.
<!-- trait PrintCompositorExt::fn get_footer_font_name -->
Returns the name of the font used to print the page footer.
The returned string must be freed with `g_free`.

# Returns

a new string containing the name of the font used to print
the page footer.
<!-- trait PrintCompositorExt::fn get_header_font_name -->
Returns the name of the font used to print the page header.
The returned string must be freed with `g_free`.

# Returns

a new string containing the name of the font used to print
the page header.
<!-- trait PrintCompositorExt::fn get_highlight_syntax -->
Determines whether the printed text will be highlighted according to the
buffer rules. Note that highlighting will happen
only if the buffer to print has highlighting activated.

# Returns

`true` if the printed output will be highlighted.
<!-- trait PrintCompositorExt::fn get_left_margin -->
Gets the left margin in units of `unit`.
## `unit`
the unit for the return value.

# Returns

the left margin
<!-- trait PrintCompositorExt::fn get_line_numbers_font_name -->
Returns the name of the font used to print line numbers on the left margin.
The returned string must be freed with `g_free`.

# Returns

a new string containing the name of the font used to print
line numbers on the left margin.
<!-- trait PrintCompositorExt::fn get_n_pages -->
Returns the number of pages in the document or `<code>`-1`</code>` if the
document has not been completely paginated.

# Returns

the number of pages in the document or `<code>`-1`</code>` if the
document has not been completely paginated.
<!-- trait PrintCompositorExt::fn get_pagination_progress -->
Returns the current fraction of the document pagination that has been completed.

# Returns

a fraction from 0.0 to 1.0 inclusive.
<!-- trait PrintCompositorExt::fn get_print_footer -->
Determines if a footer is set to be printed for each page. A
footer will be printed if this function returns `true`
`<emphasis>`and`</emphasis>` some format strings have been specified
with `PrintCompositorExt::set_footer_format`.

# Returns

`true` if the footer is set to be printed.
<!-- trait PrintCompositorExt::fn get_print_header -->
Determines if a header is set to be printed for each page. A
header will be printed if this function returns `true`
`<emphasis>`and`</emphasis>` some format strings have been specified
with `PrintCompositorExt::set_header_format`.

# Returns

`true` if the header is set to be printed.
<!-- trait PrintCompositorExt::fn get_print_line_numbers -->
Returns the interval used for line number printing. If the
value is 0, no line numbers will be printed. The default value is
1 (i.e. numbers printed in all lines).

# Returns

the interval of printed line numbers.
<!-- trait PrintCompositorExt::fn get_right_margin -->
Gets the right margin in units of `unit`.
## `unit`
the unit for the return value.

# Returns

the right margin.
<!-- trait PrintCompositorExt::fn get_tab_width -->
Returns the width of tabulation in characters for printed text.

# Returns

width of tab.
<!-- trait PrintCompositorExt::fn get_top_margin -->
Gets the top margin in units of `unit`.
## `unit`
the unit for the return value.

# Returns

the top margin.
<!-- trait PrintCompositorExt::fn get_wrap_mode -->
Gets the line wrapping mode for the printed text.

# Returns

the line wrap mode.
<!-- trait PrintCompositorExt::fn paginate -->
Paginate the document associated with the `self`.

In order to support non-blocking pagination, document is paginated in small chunks.
Each time `PrintCompositorExt::paginate` is invoked, a chunk of the document
is paginated. To paginate the entire document, `PrintCompositorExt::paginate`
must be invoked multiple times.
It returns `true` if the document has been completely paginated, otherwise it returns `false`.

This method has been designed to be invoked in the handler of the `gtk::PrintOperation::paginate` signal,
as shown in the following example:

`<informalexample>``<programlisting>`
// Signal handler for the `gtk::PrintOperation`::paginate signal

static gboolean
paginate (`gtk::PrintOperation` *operation,
 `gtk::PrintContext` *context,
 gpointer user_data)
{
 `PrintCompositor` *compositor;

 compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);

 if (gtk_source_print_compositor_paginate (compositor, context))
 {
 gint n_pages;

 n_pages = gtk_source_print_compositor_get_n_pages (compositor);
 gtk_print_operation_set_n_pages (operation, n_pages);

 return TRUE;
 }

 return FALSE;
}
`</programlisting>``</informalexample>`

If you don't need to do pagination in chunks, you can simply do it all in the
`gtk::PrintOperation::begin-print` handler, and set the number of pages from there, like
in the following example:

`<informalexample>``<programlisting>`
// Signal handler for the `gtk::PrintOperation`::begin-print signal

static void
begin_print (`gtk::PrintOperation` *operation,
 `gtk::PrintContext` *context,
 gpointer user_data)
{
 `PrintCompositor` *compositor;
 gint n_pages;

 compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);

 while (!gtk_source_print_compositor_paginate (compositor, context));

 n_pages = gtk_source_print_compositor_get_n_pages (compositor);
 gtk_print_operation_set_n_pages (operation, n_pages);
}
`</programlisting>``</informalexample>`
## `context`
the `gtk::PrintContext` whose parameters (e.g. paper size, print margins, etc.)
are used by the the `self` to paginate the document.

# Returns

`true` if the document has been completely paginated, `false` otherwise.
<!-- trait PrintCompositorExt::fn set_body_font_name -->
Sets the default font for the printed text.

`font_name` should be a
string representation of a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `font_name`
the name of the default font for the body text.
<!-- trait PrintCompositorExt::fn set_bottom_margin -->
Sets the bottom margin used by `self`.
## `margin`
the new bottom margin in units of `unit`.
## `unit`
the units for `margin`.
<!-- trait PrintCompositorExt::fn set_footer_font_name -->
Sets the font for printing the page footer. If
`None` is supplied, the default font (i.e. the one being used for the
text) will be used instead.

`font_name` should be a
string representation of a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `font_name`
the name of the font for the footer text, or `None`.
<!-- trait PrintCompositorExt::fn set_footer_format -->
See `PrintCompositorExt::set_header_format` for more information
about the parameters.
## `separator`
`true` if you want a separator line to be printed.
## `left`
a format string to print on the left of the footer.
## `center`
a format string to print on the center of the footer.
## `right`
a format string to print on the right of the footer.
<!-- trait PrintCompositorExt::fn set_header_font_name -->
Sets the font for printing the page header. If
`None` is supplied, the default font (i.e. the one being used for the
text) will be used instead.

`font_name` should be a
string representation of a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `font_name`
the name of the font for header text, or `None`.
<!-- trait PrintCompositorExt::fn set_header_format -->
Sets strftime like header format strings, to be printed on the
left, center and right of the top of each page. The strings may
include strftime(3) codes which will be expanded at print time.
A subset of `strftime` codes are accepted, see `glib::DateTime::format`
for more details on the accepted format specifiers.
Additionally the following format specifiers are accepted:
- `N`: the page number
- `Q`: the page count.

`separator` specifies if a solid line should be drawn to separate
the header from the document text.

If `None` is given for any of the three arguments, that particular
string will not be printed.

For the header to be printed, in
addition to specifying format strings, you need to enable header
printing with `PrintCompositorExt::set_print_header`.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `separator`
`true` if you want a separator line to be printed.
## `left`
a format string to print on the left of the header.
## `center`
a format string to print on the center of the header.
## `right`
a format string to print on the right of the header.
<!-- trait PrintCompositorExt::fn set_highlight_syntax -->
Sets whether the printed text will be highlighted according to the
buffer rules. Both color and font style are applied.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `highlight`
whether syntax should be highlighted.
<!-- trait PrintCompositorExt::fn set_left_margin -->
Sets the left margin used by `self`.
## `margin`
the new left margin in units of `unit`.
## `unit`
the units for `margin`.
<!-- trait PrintCompositorExt::fn set_line_numbers_font_name -->
Sets the font for printing line numbers on the left margin. If
`None` is supplied, the default font (i.e. the one being used for the
text) will be used instead.

`font_name` should be a
string representation of a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `font_name`
the name of the font for line numbers, or `None`.
<!-- trait PrintCompositorExt::fn set_print_footer -->
Sets whether you want to print a footer in each page. The
footer consists of three pieces of text and an optional line
separator, configurable with
`PrintCompositorExt::set_footer_format`.

Note that by default the footer format is unspecified, and if it's
empty it will not be printed, regardless of this setting.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `print`
`true` if you want the footer to be printed.
<!-- trait PrintCompositorExt::fn set_print_header -->
Sets whether you want to print a header in each page. The
header consists of three pieces of text and an optional line
separator, configurable with
`PrintCompositorExt::set_header_format`.

Note that by default the header format is unspecified, and if it's
empty it will not be printed, regardless of this setting.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `print`
`true` if you want the header to be printed.
<!-- trait PrintCompositorExt::fn set_print_line_numbers -->
Sets the interval for printed line numbers. If `interval` is 0 no
numbers will be printed. If greater than 0, a number will be
printed every `interval` lines (i.e. 1 will print all line numbers).

Maximum accepted value for `interval` is 100.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `interval`
interval for printed line numbers.
<!-- trait PrintCompositorExt::fn set_right_margin -->
Sets the right margin used by `self`.
## `margin`
the new right margin in units of `unit`.
## `unit`
the units for `margin`.
<!-- trait PrintCompositorExt::fn set_tab_width -->
Sets the width of tabulation in characters for printed text.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `width`
width of tab in characters.
<!-- trait PrintCompositorExt::fn set_top_margin -->
Sets the top margin used by `self`.
## `margin`
the new top margin in units of `unit`
## `unit`
the units for `margin`
<!-- trait PrintCompositorExt::fn set_wrap_mode -->
Sets the line wrapping mode for the printed text.

This function cannot be called anymore after the first call to the
`PrintCompositorExt::paginate` function.
## `wrap_mode`
a `gtk::WrapMode`.
<!-- trait PrintCompositorExt::fn get_property_body_font_name -->
Name of the font used for the text body.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_body_font_name -->
Name of the font used for the text body.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_buffer -->
The `Buffer` object to print.
<!-- trait PrintCompositorExt::fn set_property_buffer -->
The `Buffer` object to print.
<!-- trait PrintCompositorExt::fn get_property_footer_font_name -->
Name of the font used to print page footer.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_footer_font_name -->
Name of the font used to print page footer.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_header_font_name -->
Name of the font used to print page header.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_header_font_name -->
Name of the font used to print page header.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_highlight_syntax -->
Whether to print the document with highlighted syntax.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_highlight_syntax -->
Whether to print the document with highlighted syntax.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_line_numbers_font_name -->
Name of the font used to print line numbers on the left margin.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_line_numbers_font_name -->
Name of the font used to print line numbers on the left margin.
If this property is unspecified, the text body font is used.

Accepted values are strings representing a font description Pango can understand.
(e.g. &quot;Monospace 10&quot;). See `pango::FontDescription::from_string`
for a description of the format of the string representation.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_n_pages -->
The number of pages in the document or `<code>`-1`</code>` if the
document has not been completely paginated.
<!-- trait PrintCompositorExt::fn get_property_print_footer -->
Whether to print a footer in each page.

Note that by default the footer format is unspecified, and if it is
unspecified the footer will not be printed, regardless of the value of
this property.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_print_footer -->
Whether to print a footer in each page.

Note that by default the footer format is unspecified, and if it is
unspecified the footer will not be printed, regardless of the value of
this property.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_print_header -->
Whether to print a header in each page.

Note that by default the header format is unspecified, and if it is
unspecified the header will not be printed, regardless of the value of
this property.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_print_header -->
Whether to print a header in each page.

Note that by default the header format is unspecified, and if it is
unspecified the header will not be printed, regardless of the value of
this property.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_print_line_numbers -->
Interval of printed line numbers. If this property is set to 0 no
numbers will be printed. If greater than 0, a number will be
printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_print_line_numbers -->
Interval of printed line numbers. If this property is set to 0 no
numbers will be printed. If greater than 0, a number will be
printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_tab_width -->
Width of a tab character expressed in spaces.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_tab_width -->
Width of a tab character expressed in spaces.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn get_property_wrap_mode -->
Whether to wrap lines never, at word boundaries, or at character boundaries.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- trait PrintCompositorExt::fn set_property_wrap_mode -->
Whether to wrap lines never, at word boundaries, or at character boundaries.

The value of this property cannot be changed anymore after the first
call to the `PrintCompositorExt::paginate` function.
<!-- struct Region -->


Feature: `v3_22`

# Implements

[`RegionExt`](trait.RegionExt.html)
<!-- trait RegionExt -->
Trait containing all `Region` methods.

Feature: `v3_22`

# Implementors

[`Region`](struct.Region.html)
<!-- impl Region::fn new -->

Feature: `v3_22`

## `buffer`
a `gtk::TextBuffer`.

# Returns

a new `Region` object for `buffer`.
<!-- trait RegionExt::fn add_region -->
Adds `region_to_add` to `self`. `region_to_add` is not modified.

Feature: `v3_22`

## `region_to_add`
the `Region` to add to `self`, or `None`.
<!-- trait RegionExt::fn add_subregion -->
Adds the subregion delimited by `_start` and `_end` to `self`.

Feature: `v3_22`

## `_start`
the start of the subregion.
## `_end`
the end of the subregion.
<!-- trait RegionExt::fn get_bounds -->
Gets the `start` and `end` bounds of the `self`.

Feature: `v3_22`

## `start`
iterator to initialize with the start of `self`,
 or `None`.
## `end`
iterator to initialize with the end of `self`,
 or `None`.

# Returns

`true` if `start` and `end` have been set successfully (if non-`None`),
 or `false` if the `self` is empty.
<!-- trait RegionExt::fn get_buffer -->

Feature: `v3_22`


# Returns

the `gtk::TextBuffer`.
<!-- trait RegionExt::fn get_start_region_iter -->
Initializes a `RegionIter` to the first subregion of `self`. If
`self` is empty, `iter` will be initialized to the end iterator.

Feature: `v3_22`

## `iter`
iterator to initialize to the first subregion.
<!-- trait RegionExt::fn intersect_region -->
Returns the intersection between `self` and `region2`. `self` and
`region2` are not modified.

Feature: `v3_22`

## `region2`
a `Region`, or `None`.

# Returns

the intersection as a `Region`
 object.
<!-- trait RegionExt::fn intersect_subregion -->
Returns the intersection between `self` and the subregion delimited by
`_start` and `_end`. `self` is not modified.

Feature: `v3_22`

## `_start`
the start of the subregion.
## `_end`
the end of the subregion.

# Returns

the intersection as a new
 `Region`.
<!-- trait RegionExt::fn is_empty -->
Returns whether the `self` is empty. A `None` `self` is considered empty.

Feature: `v3_22`


# Returns

whether the `self` is empty.
<!-- trait RegionExt::fn subtract_region -->
Subtracts `region_to_subtract` from `self`. `region_to_subtract` is not
modified.

Feature: `v3_22`

## `region_to_subtract`
the `Region` to subtract from
 `self`, or `None`.
<!-- trait RegionExt::fn subtract_subregion -->
Subtracts the subregion delimited by `_start` and `_end` from `self`.

Feature: `v3_22`

## `_start`
the start of the subregion.
## `_end`
the end of the subregion.
<!-- trait RegionExt::fn to_string -->
Gets a string represention of `self`, for debugging purposes.

The returned string contains the character offsets of the subregions. It
doesn't include a newline character at the end of the string.

Feature: `v3_22`


# Returns

a string represention of `self`. Free
 with `g_free` when no longer needed.
<!-- trait RegionExt::fn get_property_buffer -->
The `gtk::TextBuffer`. The `Region` has a weak reference to the
buffer.

Feature: `v3_22`

<!-- trait RegionExt::fn set_property_buffer -->
The `gtk::TextBuffer`. The `Region` has a weak reference to the
buffer.

Feature: `v3_22`

<!-- struct RegionIter -->
`RegionIter` is an opaque datatype; ignore all its fields.
Initialize the iter with `RegionExt::get_start_region_iter`.

Feature: `v3_22`
<!-- impl RegionIter::fn get_subregion -->
Gets the subregion at this iterator.

Feature: `v3_22`

## `start`
iterator to initialize with the subregion start, or `None`.
## `end`
iterator to initialize with the subregion end, or `None`.

# Returns

`true` if `start` and `end` have been set successfully (if non-`None`),
 or `false` if `self` is the end iterator or if the region is empty.
<!-- impl RegionIter::fn is_end -->

Feature: `v3_22`


# Returns

whether `self` is the end iterator.
<!-- impl RegionIter::fn next -->
Moves `self` to the next subregion.

Feature: `v3_22`


# Returns

`true` if `self` moved and is dereferenceable, or `false` if `self` has
 been set to the end iterator.
<!-- struct SearchContext -->


Feature: `v3_10`

# Implements

[`SearchContextExt`](trait.SearchContextExt.html)
<!-- trait SearchContextExt -->
Trait containing all `SearchContext` methods.

Feature: `v3_10`

# Implementors

[`SearchContext`](struct.SearchContext.html)
<!-- impl SearchContext::fn new -->
Creates a new search context, associated with `buffer`, and customized with
`settings`. If `settings` is `None`, a new `SearchSettings` object will
be created, that you can retrieve with
`SearchContextExt::get_settings`.

Feature: `v3_10`

## `buffer`
a `Buffer`.
## `settings`
a `SearchSettings`, or `None`.

# Returns

a new search context.
<!-- trait SearchContextExt::fn backward -->
Synchronous backward search. It is recommended to use the asynchronous
functions instead, to not block the user interface. However, if you are sure
that the `buffer` is small, this function is more convenient to use.

Feature: `v3_10`


# Deprecated since 3.22

Use `SearchContextExt::backward2` instead.
## `iter`
start of search.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn backward2 -->
Synchronous backward search. It is recommended to use the asynchronous
functions instead, to not block the user interface. However, if you are sure
that the `buffer` is small, this function is more convenient to use.

The difference with `SearchContextExt::backward` is that the
`has_wrapped_around` out parameter has been added for convenience.

If the `SearchSettings:wrap-around` property is `false`, this function
doesn't try to wrap around.

The `has_wrapped_around` out parameter is set independently of whether a match
is found. So if this function returns `false`, `has_wrapped_around` will have
the same value as the `SearchSettings:wrap-around` property.

Feature: `v3_22`

## `iter`
start of search.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.
## `has_wrapped_around`
return location to know whether the
 search has wrapped around, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn backward_async -->
The asynchronous version of `SearchContextExt::backward2`.

See the documentation of `SearchContextExt::backward2` for more
details.

See the `gio::AsyncResult` documentation to know how to use this function.

If the operation is cancelled, the `callback` will only be called if
`cancellable` was not `None`. `SearchContextExt::backward_async` takes
ownership of `cancellable`, so you can unref it after calling this function.

Feature: `v3_10`

## `iter`
start of search.
## `cancellable`
a `gio::Cancellable`, or `None`.
## `callback`
a `GAsyncReadyCallback` to call when the operation is finished.
## `user_data`
the data to pass to the `callback` function.
<!-- trait SearchContextExt::fn backward_finish -->
Finishes a backward search started with
`SearchContextExt::backward_async`.

Feature: `v3_10`


# Deprecated since 3.22

Use `SearchContextExt::backward_finish2` instead.
## `result`
a `gio::AsyncResult`.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn backward_finish2 -->
Finishes a backward search started with
`SearchContextExt::backward_async`.

See the documentation of `SearchContextExt::backward2` for more
details.

Feature: `v3_22`

## `result`
a `gio::AsyncResult`.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.
## `has_wrapped_around`
return location to know whether the
 search has wrapped around, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn forward -->
Synchronous forward search. It is recommended to use the asynchronous
functions instead, to not block the user interface. However, if you are sure
that the `buffer` is small, this function is more convenient to use.

Feature: `v3_10`


# Deprecated since 3.22

Use `SearchContextExt::forward2` instead.
## `iter`
start of search.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn forward2 -->
Synchronous forward search. It is recommended to use the asynchronous
functions instead, to not block the user interface. However, if you are sure
that the `buffer` is small, this function is more convenient to use.

The difference with `SearchContextExt::forward` is that the
`has_wrapped_around` out parameter has been added for convenience.

If the `SearchSettings:wrap-around` property is `false`, this function
doesn't try to wrap around.

The `has_wrapped_around` out parameter is set independently of whether a match
is found. So if this function returns `false`, `has_wrapped_around` will have
the same value as the `SearchSettings:wrap-around` property.

Feature: `v3_22`

## `iter`
start of search.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.
## `has_wrapped_around`
return location to know whether the
 search has wrapped around, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn forward_async -->
The asynchronous version of `SearchContextExt::forward2`.

See the documentation of `SearchContextExt::forward2` for more
details.

See the `gio::AsyncResult` documentation to know how to use this function.

If the operation is cancelled, the `callback` will only be called if
`cancellable` was not `None`. `SearchContextExt::forward_async` takes
ownership of `cancellable`, so you can unref it after calling this function.

Feature: `v3_10`

## `iter`
start of search.
## `cancellable`
a `gio::Cancellable`, or `None`.
## `callback`
a `GAsyncReadyCallback` to call when the operation is finished.
## `user_data`
the data to pass to the `callback` function.
<!-- trait SearchContextExt::fn forward_finish -->
Finishes a forward search started with
`SearchContextExt::forward_async`.

Feature: `v3_10`


# Deprecated since 3.22

Use `SearchContextExt::forward_finish2` instead.
## `result`
a `gio::AsyncResult`.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn forward_finish2 -->
Finishes a forward search started with
`SearchContextExt::forward_async`.

See the documentation of `SearchContextExt::forward2` for more
details.

Feature: `v3_22`

## `result`
a `gio::AsyncResult`.
## `match_start`
return location for start of match, or `None`.
## `match_end`
return location for end of match, or `None`.
## `has_wrapped_around`
return location to know whether the
 search has wrapped around, or `None`.

# Returns

whether a match was found.
<!-- trait SearchContextExt::fn get_buffer -->

Feature: `v3_10`


# Returns

the associated buffer.
<!-- trait SearchContextExt::fn get_highlight -->

Feature: `v3_10`


# Returns

whether to highlight the search occurrences.
<!-- trait SearchContextExt::fn get_match_style -->

Feature: `v3_16`


# Returns

the `Style` to apply on search matches.
<!-- trait SearchContextExt::fn get_occurrence_position -->
Gets the position of a search occurrence. If the buffer is not already fully
scanned, the position may be unknown, and -1 is returned. If 0 is returned,
it means that this part of the buffer has already been scanned, and that
`match_start` and `match_end` don't delimit an occurrence.

Feature: `v3_10`

## `match_start`
the start of the occurrence.
## `match_end`
the end of the occurrence.

# Returns

the position of the search occurrence. The first occurrence has the
position 1 (not 0). Returns 0 if `match_start` and `match_end` don't delimit
an occurrence. Returns -1 if the position is not yet known.
<!-- trait SearchContextExt::fn get_occurrences_count -->
Gets the total number of search occurrences. If the buffer is not already
fully scanned, the total number of occurrences is unknown, and -1 is
returned.

Feature: `v3_10`


# Returns

the total number of search occurrences, or -1 if unknown.
<!-- trait SearchContextExt::fn get_regex_error -->
Regular expression patterns must follow certain rules. If
`SearchSettings:search-text` breaks a rule, the error can be retrieved
with this function. The error domain is `G_REGEX_ERROR`.

Free the return value with `glib::Error::free`.

Feature: `v3_10`


# Returns

the `glib::Error`, or `None` if the pattern is valid.
<!-- trait SearchContextExt::fn get_settings -->

Feature: `v3_10`


# Returns

the search settings.
<!-- trait SearchContextExt::fn replace -->
Replaces a search match by another text. If `match_start` and `match_end`
doesn't correspond to a search match, `false` is returned.

For a regular expression replacement, you can check if `replace` is valid by
calling `glib::Regex::check_replacement`. The `replace` text can contain
backreferences; read the `glib::Regex::replace` documentation for more details.

Feature: `v3_10`


# Deprecated since 3.22

Use `SearchContextExt::replace2` instead.
## `match_start`
the start of the match to replace.
## `match_end`
the end of the match to replace.
## `replace`
the replacement text.
## `replace_length`
the length of `replace` in bytes, or -1.

# Returns

whether the match has been replaced.
<!-- trait SearchContextExt::fn replace2 -->
Replaces a search match by another text. If `match_start` and `match_end`
doesn't correspond to a search match, `false` is returned.

Unlike with `SearchContextExt::replace`, the `match_start` and
`match_end` iters are revalidated to point to the replacement text boundaries.

For a regular expression replacement, you can check if `replace` is valid by
calling `glib::Regex::check_replacement`. The `replace` text can contain
backreferences; read the `glib::Regex::replace` documentation for more details.

Feature: `v3_22`

## `match_start`
the start of the match to replace.
## `match_end`
the end of the match to replace.
## `replace`
the replacement text.
## `replace_length`
the length of `replace` in bytes, or -1.

# Returns

whether the match has been replaced.
<!-- trait SearchContextExt::fn replace_all -->
Replaces all search matches by another text. It is a synchronous function, so
it can block the user interface.

For a regular expression replacement, you can check if `replace` is valid by
calling `glib::Regex::check_replacement`. The `replace` text can contain
backreferences; read the `glib::Regex::replace` documentation for more details.

Feature: `v3_10`

## `replace`
the replacement text.
## `replace_length`
the length of `replace` in bytes, or -1.

# Returns

the number of replaced matches.
<!-- trait SearchContextExt::fn set_highlight -->
Enables or disables the search occurrences highlighting.

Feature: `v3_10`

## `highlight`
the setting.
<!-- trait SearchContextExt::fn set_match_style -->
Set the style to apply on search matches. If `match_style` is `None`, default
theme's scheme 'match-style' will be used.
To enable or disable the search highlighting, use
`SearchContextExt::set_highlight`.

Feature: `v3_16`

## `match_style`
a `Style`, or `None`.
<!-- trait SearchContextExt::fn set_settings -->
Associate a `SearchSettings` with the search context. If `settings` is
`None`, a new one will be created.

The search context holds a reference to `settings`.

Feature: `v3_10`


# Deprecated since 3.24

The `SearchContext:settings` property will become a
construct-only property in a future version. Create a new
`SearchContext` instead, or change the `SearchSettings`
properties. When the `SearchContext:settings` property will become
construct-only, it will be possible to simplify some code that needed to
listen to the notify::settings signal.
## `settings`
the new `SearchSettings`, or `None`.
<!-- trait SearchContextExt::fn get_property_buffer -->
The `Buffer` associated to the search context.

Feature: `v3_10`

<!-- trait SearchContextExt::fn set_property_buffer -->
The `Buffer` associated to the search context.

Feature: `v3_10`

<!-- trait SearchContextExt::fn get_property_highlight -->
Highlight the search occurrences.

Feature: `v3_10`

<!-- trait SearchContextExt::fn set_property_highlight -->
Highlight the search occurrences.

Feature: `v3_10`

<!-- trait SearchContextExt::fn get_property_match_style -->
A `Style`, or `None` for theme's scheme default style.

Feature: `v3_16`

<!-- trait SearchContextExt::fn set_property_match_style -->
A `Style`, or `None` for theme's scheme default style.

Feature: `v3_16`

<!-- trait SearchContextExt::fn get_property_occurrences_count -->
The total number of search occurrences. If the search is disabled,
the value is 0. If the buffer is not already fully scanned, the value
is -1.

Feature: `v3_10`

<!-- trait SearchContextExt::fn get_property_regex_error -->
If the regex search pattern doesn't follow all the rules, this
property will be set. If the pattern is valid, the value is `None`.

Free with `glib::Error::free`.

Feature: `v3_10`

<!-- trait SearchContextExt::fn get_property_settings -->
The `SearchSettings` associated to the search context.

Feature: `v3_10`

<!-- trait SearchContextExt::fn set_property_settings -->
The `SearchSettings` associated to the search context.

Feature: `v3_10`

<!-- struct SearchSettings -->


Feature: `v3_10`

# Implements

[`SearchSettingsExt`](trait.SearchSettingsExt.html)
<!-- trait SearchSettingsExt -->
Trait containing all `SearchSettings` methods.

Feature: `v3_10`

# Implementors

[`SearchSettings`](struct.SearchSettings.html)
<!-- impl SearchSettings::fn new -->
Creates a new search settings object.

Feature: `v3_10`


# Returns

a new search settings object.
<!-- trait SearchSettingsExt::fn get_at_word_boundaries -->

Feature: `v3_10`


# Returns

whether to search at word boundaries.
<!-- trait SearchSettingsExt::fn get_case_sensitive -->

Feature: `v3_10`


# Returns

whether the search is case sensitive.
<!-- trait SearchSettingsExt::fn get_regex_enabled -->

Feature: `v3_10`


# Returns

whether to search by regular expressions.
<!-- trait SearchSettingsExt::fn get_search_text -->
Gets the text to search. The return value must not be freed.

You may be interested to call `gtk_source_utils_escape_search_text` after
this function.

Feature: `v3_10`


# Returns

the text to search, or `None` if the search is disabled.
<!-- trait SearchSettingsExt::fn get_wrap_around -->

Feature: `v3_10`


# Returns

whether to wrap around the search.
<!-- trait SearchSettingsExt::fn set_at_word_boundaries -->
Change whether the search is done at word boundaries. If `at_word_boundaries`
is `true`, a search match must start and end a word. The match can span
multiple words. See also `gtk::TextIter::starts_word` and
`gtk::TextIter::ends_word`.

Feature: `v3_10`

## `at_word_boundaries`
the setting.
<!-- trait SearchSettingsExt::fn set_case_sensitive -->
Enables or disables the case sensitivity for the search.

Feature: `v3_10`

## `case_sensitive`
the setting.
<!-- trait SearchSettingsExt::fn set_regex_enabled -->
Enables or disables whether to search by regular expressions.
If enabled, the `SearchSettings:search-text` property contains the
pattern of the regular expression.

`SearchContext` uses `glib::Regex` when regex search is enabled. See the
[Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
page in the GLib reference manual.

Feature: `v3_10`

## `regex_enabled`
the setting.
<!-- trait SearchSettingsExt::fn set_search_text -->
Sets the text to search. If `search_text` is `None` or is empty, the search
will be disabled. A copy of `search_text` will be made, so you can safely free
`search_text` after a call to this function.

You may be interested to call `gtk_source_utils_unescape_search_text` before
this function.

Feature: `v3_10`

## `search_text`
the nul-terminated text to search, or `None` to disable the search.
<!-- trait SearchSettingsExt::fn set_wrap_around -->
Enables or disables the wrap around search. If `wrap_around` is `true`, the
forward search continues at the beginning of the buffer if no search
occurrences are found. Similarly, the backward search continues to search at
the end of the buffer.

Feature: `v3_10`

## `wrap_around`
the setting.
<!-- trait SearchSettingsExt::fn get_property_at_word_boundaries -->
If `true`, a search match must start and end a word. The match can
span multiple words.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn set_property_at_word_boundaries -->
If `true`, a search match must start and end a word. The match can
span multiple words.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn get_property_case_sensitive -->
Whether the search is case sensitive.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn set_property_case_sensitive -->
Whether the search is case sensitive.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn get_property_regex_enabled -->
Search by regular expressions with
`SearchSettings:search-text` as the pattern.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn set_property_regex_enabled -->
Search by regular expressions with
`SearchSettings:search-text` as the pattern.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn get_property_search_text -->
A search string, or `None` if the search is disabled. If the regular
expression search is enabled, `SearchSettings:search-text` is
the pattern.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn set_property_search_text -->
A search string, or `None` if the search is disabled. If the regular
expression search is enabled, `SearchSettings:search-text` is
the pattern.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn get_property_wrap_around -->
For a forward search, continue at the beginning of the buffer if no
search occurrence is found. For a backward search, continue at the
end of the buffer.

Feature: `v3_10`

<!-- trait SearchSettingsExt::fn set_property_wrap_around -->
For a forward search, continue at the beginning of the buffer if no
search occurrence is found. For a backward search, continue at the
end of the buffer.

Feature: `v3_10`

<!-- enum SmartHomeEndType -->
<!-- enum SmartHomeEndType::variant Disabled -->
smart-home-end disabled.
<!-- enum SmartHomeEndType::variant Before -->
move to the first/last
non-whitespace character on the first press of the HOME/END keys and
to the beginning/end of the line on the second press.
<!-- enum SmartHomeEndType::variant After -->
move to the beginning/end of the
line on the first press of the HOME/END keys and to the first/last
non-whitespace character on the second press.
<!-- enum SmartHomeEndType::variant Always -->
always move to the first/last
non-whitespace character when the HOME/END keys are pressed.
<!-- struct SpaceDrawer -->


Feature: `v3_24`

# Implements

[`SpaceDrawerExt`](trait.SpaceDrawerExt.html)
<!-- trait SpaceDrawerExt -->
Trait containing all `SpaceDrawer` methods.

Feature: `v3_24`

# Implementors

[`SpaceDrawer`](struct.SpaceDrawer.html)
<!-- impl SpaceDrawer::fn new -->
Creates a new `SpaceDrawer` object. Useful for storing space drawing
settings independently of a `View`.

Feature: `v3_24`


# Returns

a new `SpaceDrawer`.
<!-- trait SpaceDrawerExt::fn bind_matrix_setting -->
Binds the `SpaceDrawer:matrix` property to a `gio::Settings` key.

The `gio::Settings` key must be of the same type as the
`SpaceDrawer:matrix` property, that is, `"au"`.

The `gio::SettingsExt::bind` function cannot be used, because the default GIO
mapping functions don't support `glib::Variant` properties (maybe it will be
supported by a future GIO version, in which case this function can be
deprecated).

Feature: `v3_24`

## `settings`
a `gio::Settings` object.
## `key`
the `settings` key to bind.
## `flags`
flags for the binding.
<!-- trait SpaceDrawerExt::fn get_enable_matrix -->

Feature: `v3_24`


# Returns

whether the `SpaceDrawer:matrix` property is enabled.
<!-- trait SpaceDrawerExt::fn get_matrix -->
Gets the value of the `SpaceDrawer:matrix` property, as a `glib::Variant`.
An empty array can be returned in case the matrix is a zero matrix.

The `SpaceDrawerExt::get_types_for_locations` function may be more
convenient to use.

Feature: `v3_24`


# Returns

the `SpaceDrawer:matrix` value as a new floating `glib::Variant`
 instance.
<!-- trait SpaceDrawerExt::fn get_types_for_locations -->
If only one location is specified, this function returns what kind of
white spaces are drawn at that location. The value is retrieved from the
`SpaceDrawer:matrix` property.

If several locations are specified, this function returns the logical AND for
those locations. Which means that if a certain kind of white space is present
in the return value, then that kind of white space is drawn at all the
specified `locations`.

Feature: `v3_24`

## `locations`
one or several `SpaceLocationFlags`.

# Returns

a combination of `SpaceTypeFlags`.
<!-- trait SpaceDrawerExt::fn set_enable_matrix -->
Sets whether the `SpaceDrawer:matrix` property is enabled.

Feature: `v3_24`

## `enable_matrix`
the new value.
<!-- trait SpaceDrawerExt::fn set_matrix -->
Sets a new value to the `SpaceDrawer:matrix` property, as a
`glib::Variant`. If `matrix` is `None`, then an empty array is set.

If `matrix` is floating, it is consumed.

The `SpaceDrawerExt::set_types_for_locations` function may be more
convenient to use.

Feature: `v3_24`

## `matrix`
the new matrix value, or `None`.
<!-- trait SpaceDrawerExt::fn set_types_for_locations -->
Modifies the `SpaceDrawer:matrix` property at the specified
`locations`.

Feature: `v3_24`

## `locations`
one or several `SpaceLocationFlags`.
## `types`
a combination of `SpaceTypeFlags`.
<!-- trait SpaceDrawerExt::fn get_property_enable_matrix -->
Whether the `SpaceDrawer:matrix` property is enabled.

Feature: `v3_24`

<!-- trait SpaceDrawerExt::fn set_property_enable_matrix -->
Whether the `SpaceDrawer:matrix` property is enabled.

Feature: `v3_24`

<!-- trait SpaceDrawerExt::fn get_property_matrix -->
The :matrix property is a `glib::Variant` property to specify where and
what kind of white spaces to draw.

The `glib::Variant` is of type `"au"`, an array of unsigned integers. Each
integer is a combination of `SpaceTypeFlags`. There is one
integer for each `SpaceLocationFlags`, in the same order as
they are defined in the enum (`SpaceLocationFlags::None` and
`SpaceLocationFlags::All` are not taken into account).

If the array is shorter than the number of locations, then the value
for the missing locations will be `SpaceTypeFlags::None`.

By default, `SpaceTypeFlags::All` is set for all locations.

Feature: `v3_24`

<!-- trait SpaceDrawerExt::fn set_property_matrix -->
The :matrix property is a `glib::Variant` property to specify where and
what kind of white spaces to draw.

The `glib::Variant` is of type `"au"`, an array of unsigned integers. Each
integer is a combination of `SpaceTypeFlags`. There is one
integer for each `SpaceLocationFlags`, in the same order as
they are defined in the enum (`SpaceLocationFlags::None` and
`SpaceLocationFlags::All` are not taken into account).

If the array is shorter than the number of locations, then the value
for the missing locations will be `SpaceTypeFlags::None`.

By default, `SpaceTypeFlags::All` is set for all locations.

Feature: `v3_24`

<!-- struct Style -->

<!-- impl Style::fn apply -->
This function modifies the `gtk::TextTag` properties that are related to the
`Style` properties. Other `gtk::TextTag` properties are left untouched.

If `self` is non-`None`, applies `self` to `tag`.

If `self` is `None`, the related *-set properties of `gtk::TextTag` are set to
`false`.

Feature: `v3_22`

## `tag`
a `gtk::TextTag` to apply styles to.
<!-- impl Style::fn copy -->
Creates a copy of `self`, that is a new `Style` instance which
has the same attributes set.

# Returns

copy of `self`, call `gobject::Object::unref`
when you are done with it.
<!-- impl Style::fn get_property_underline -->

# Deprecated since 3.18

Use pango-underline.
<!-- impl Style::fn set_property_underline -->

# Deprecated since 3.18

Use pango-underline.
<!-- struct StyleScheme -->


# Implements

[`StyleSchemeExt`](trait.StyleSchemeExt.html)
<!-- trait StyleSchemeExt -->
Trait containing all `StyleScheme` methods.

# Implementors

[`StyleScheme`](struct.StyleScheme.html)
<!-- trait StyleSchemeExt::fn get_authors -->

# Returns

a
`None`-terminated array containing the `self` authors or `None` if
no author is specified by the style scheme.
<!-- trait StyleSchemeExt::fn get_description -->

# Returns

`self` description (if defined), or `None`.
<!-- trait StyleSchemeExt::fn get_filename -->

# Returns

`self` file name if the scheme was created
parsing a style scheme file or `None` in the other cases.
<!-- trait StyleSchemeExt::fn get_id -->

# Returns

`self` id.
<!-- trait StyleSchemeExt::fn get_name -->

# Returns

`self` name.
<!-- trait StyleSchemeExt::fn get_style -->
## `style_id`
id of the style to retrieve.

# Returns

style which corresponds to `style_id` in
the `self`, or `None` when no style with this name found. It is owned by
`self` and may not be unref'ed.
<!-- trait StyleSchemeExt::fn get_property_description -->
Style scheme description, a translatable string to present to the user.
<!-- trait StyleSchemeExt::fn get_property_filename -->
Style scheme filename or `None`.
<!-- trait StyleSchemeExt::fn get_property_id -->
Style scheme id, a unique string used to identify the style scheme
in `StyleSchemeManager`.
<!-- trait StyleSchemeExt::fn set_property_id -->
Style scheme id, a unique string used to identify the style scheme
in `StyleSchemeManager`.
<!-- trait StyleSchemeExt::fn get_property_name -->
Style scheme name, a translatable string to present to the user.
<!-- struct StyleSchemeChooser -->


Feature: `v3_16`

# Implements

[`StyleSchemeChooserExt`](trait.StyleSchemeChooserExt.html)
<!-- trait StyleSchemeChooserExt -->
Trait containing all `StyleSchemeChooser` methods.

Feature: `v3_16`

# Implementors

[`StyleSchemeChooserButton`](struct.StyleSchemeChooserButton.html), [`StyleSchemeChooserWidget`](struct.StyleSchemeChooserWidget.html), [`StyleSchemeChooser`](struct.StyleSchemeChooser.html)
<!-- trait StyleSchemeChooserExt::fn get_style_scheme -->
Gets the currently-selected scheme.

Feature: `v3_16`


# Returns

the currently-selected scheme.
<!-- trait StyleSchemeChooserExt::fn set_style_scheme -->
Sets the scheme.

Feature: `v3_16`

## `scheme`
a `StyleScheme`
<!-- trait StyleSchemeChooserExt::fn get_property_style_scheme -->
The :style-scheme property contains the currently selected style
scheme. The property can be set to change
the current selection programmatically.

Feature: `v3_16`

<!-- trait StyleSchemeChooserExt::fn set_property_style_scheme -->
The :style-scheme property contains the currently selected style
scheme. The property can be set to change
the current selection programmatically.

Feature: `v3_16`

<!-- struct StyleSchemeChooserButton -->


Feature: `v3_16`

# Implements

[`gtk::ButtonExt`](../gtk/trait.ButtonExt.html), [`gtk::BinExt`](../gtk/trait.BinExt.html), [`gtk::ContainerExt`](../gtk/trait.ContainerExt.html), [`gtk::WidgetExt`](../gtk/trait.WidgetExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html), [`gtk::ActionableExt`](../gtk/trait.ActionableExt.html), [`StyleSchemeChooserExt`](trait.StyleSchemeChooserExt.html)
<!-- impl StyleSchemeChooserButton::fn new -->
Creates a new `StyleSchemeChooserButton`.

Feature: `v3_16`


# Returns

a new `StyleSchemeChooserButton`.
<!-- struct StyleSchemeChooserWidget -->


Feature: `v3_16`

# Implements

[`gtk::BinExt`](../gtk/trait.BinExt.html), [`gtk::ContainerExt`](../gtk/trait.ContainerExt.html), [`gtk::WidgetExt`](../gtk/trait.WidgetExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html), [`StyleSchemeChooserExt`](trait.StyleSchemeChooserExt.html)
<!-- impl StyleSchemeChooserWidget::fn new -->
Creates a new `StyleSchemeChooserWidget`.

Feature: `v3_16`


# Returns

a new `StyleSchemeChooserWidget`.
<!-- struct StyleSchemeManager -->


# Implements

[`StyleSchemeManagerExt`](trait.StyleSchemeManagerExt.html)
<!-- trait StyleSchemeManagerExt -->
Trait containing all `StyleSchemeManager` methods.

# Implementors

[`StyleSchemeManager`](struct.StyleSchemeManager.html)
<!-- impl StyleSchemeManager::fn new -->
Creates a new style manager. If you do not need more than one style
manager then use `StyleSchemeManager::get_default` instead.

# Returns

a new `StyleSchemeManager`.
<!-- impl StyleSchemeManager::fn get_default -->
Returns the default `StyleSchemeManager` instance.

# Returns

a `StyleSchemeManager`. Return value
is owned by `View` library and must not be unref'ed.
<!-- trait StyleSchemeManagerExt::fn append_search_path -->
Appends `path` to the list of directories where the `self` looks for
style scheme files.
See `StyleSchemeManagerExt::set_search_path` for details.
## `path`
a directory or a filename.
<!-- trait StyleSchemeManagerExt::fn force_rescan -->
Mark any currently cached information about the available style scehems
as invalid. All the available style schemes will be reloaded next time
the `self` is accessed.
<!-- trait StyleSchemeManagerExt::fn get_scheme -->
Looks up style scheme by id.
## `scheme_id`
style scheme id to find.

# Returns

a `StyleScheme` object. Returned value is owned by
`self` and must not be unref'ed.
<!-- trait StyleSchemeManagerExt::fn get_scheme_ids -->
Returns the ids of the available style schemes.

# Returns


a `None`-terminated array of strings containing the ids of the available
style schemes or `None` if no style scheme is available.
The array is sorted alphabetically according to the scheme name.
The array is owned by the `self` and must not be modified.
<!-- trait StyleSchemeManagerExt::fn get_search_path -->
Returns the current search path for the `self`.
See `StyleSchemeManagerExt::set_search_path` for details.

# Returns

a `None`-terminated array
of string containing the search path.
The array is owned by the `self` and must not be modified.
<!-- trait StyleSchemeManagerExt::fn prepend_search_path -->
Prepends `path` to the list of directories where the `self` looks
for style scheme files.
See `StyleSchemeManagerExt::set_search_path` for details.
## `path`
a directory or a filename.
<!-- trait StyleSchemeManagerExt::fn set_search_path -->
Sets the list of directories where the `self` looks for
style scheme files.
If `path` is `None`, the search path is reset to default.
## `path`

a `None`-terminated array of strings or `None`.
<!-- struct Tag -->


Feature: `v3_20`

# Implements

[`TagExt`](trait.TagExt.html), [`gtk::TextTagExt`](../gtk/trait.TextTagExt.html)
<!-- trait TagExt -->
Trait containing all `Tag` methods.

Feature: `v3_20`

# Implementors

[`Tag`](struct.Tag.html)
<!-- impl Tag::fn new -->
Creates a `Tag`. Configure the tag using object arguments,
i.e. using `gobject::Object::set`.

For usual cases, `BufferExt::create_source_tag` is more convenient to
use.

Feature: `v3_20`

## `name`
tag name, or `None`.

# Returns

a new `Tag`.
<!-- trait TagExt::fn get_property_draw_spaces -->
Whether to draw white spaces. This property takes precedence over the value
defined by the `SpaceDrawer`'s `SpaceDrawer:matrix` property
(only where the tag is applied).

Setting this property also changes `Tag:draw-spaces-set` to
`true`.

Feature: `v3_20`

<!-- trait TagExt::fn set_property_draw_spaces -->
Whether to draw white spaces. This property takes precedence over the value
defined by the `SpaceDrawer`'s `SpaceDrawer:matrix` property
(only where the tag is applied).

Setting this property also changes `Tag:draw-spaces-set` to
`true`.

Feature: `v3_20`

<!-- trait TagExt::fn get_property_draw_spaces_set -->
Whether the `Tag:draw-spaces` property is set and must be
taken into account.

Feature: `v3_20`

<!-- trait TagExt::fn set_property_draw_spaces_set -->
Whether the `Tag:draw-spaces` property is set and must be
taken into account.

Feature: `v3_20`

<!-- struct UndoManager -->


# Implements

[`UndoManagerExt`](trait.UndoManagerExt.html)
<!-- trait UndoManagerExt -->
Trait containing all `UndoManager` methods.

# Implementors

[`UndoManager`](struct.UndoManager.html)
<!-- trait UndoManagerExt::fn begin_not_undoable_action -->
Begin a not undoable action on the buffer. All changes between this call
and the call to `UndoManager::end_not_undoable_action` cannot
be undone. This function should be re-entrant.
<!-- trait UndoManagerExt::fn can_redo -->
Get whether there are redo operations available.

# Returns

`true` if there are redo operations available, `false` otherwise
<!-- trait UndoManagerExt::fn can_redo_changed -->
Emits the `UndoManager::can-redo-changed` signal.
<!-- trait UndoManagerExt::fn can_undo -->
Get whether there are undo operations available.

# Returns

`true` if there are undo operations available, `false` otherwise
<!-- trait UndoManagerExt::fn can_undo_changed -->
Emits the `UndoManager::can-undo-changed` signal.
<!-- trait UndoManagerExt::fn end_not_undoable_action -->
Ends a not undoable action on the buffer.
<!-- trait UndoManagerExt::fn redo -->
Perform a single redo. Calling this function when there are no redo operations
available is an error. Use `UndoManager::can_redo` to find out
if there are redo operations available.
<!-- trait UndoManagerExt::fn undo -->
Perform a single undo. Calling this function when there are no undo operations
available is an error. Use `UndoManager::can_undo` to find out
if there are undo operations available.
<!-- trait UndoManagerExt::fn connect_can_redo_changed -->
Emitted when the ability to redo has changed.
<!-- trait UndoManagerExt::fn connect_can_undo_changed -->
Emitted when the ability to undo has changed.
<!-- struct View -->


# Implements

[`ViewExt`](trait.ViewExt.html), [`gtk::TextViewExt`](../gtk/trait.TextViewExt.html), [`gtk::ContainerExt`](../gtk/trait.ContainerExt.html), [`gtk::WidgetExt`](../gtk/trait.WidgetExt.html), [`gtk::BuildableExt`](../gtk/trait.BuildableExt.html), [`gtk::ScrollableExt`](../gtk/trait.ScrollableExt.html)
<!-- trait ViewExt -->
Trait containing all `View` methods.

# Implementors

[`Map`](struct.Map.html), [`View`](struct.View.html)
<!-- impl View::fn new -->
Creates a new `View`.

By default, an empty `Buffer` will be lazily created and can be
retrieved with `gtk::TextViewExt::get_buffer`.

If you want to specify your own buffer, either override the
`gtk::TextViewClass` create_buffer factory method, or use
`View::new_with_buffer`.

# Returns

a new `View`.
<!-- impl View::fn new_with_buffer -->
Creates a new `View` widget displaying the buffer
`buffer`. One buffer can be shared among many widgets.
## `buffer`
a `Buffer`.

# Returns

a new `View`.
<!-- trait ViewExt::fn get_auto_indent -->
Returns whether auto-indentation of text is enabled.

# Returns

`true` if auto indentation is enabled.
<!-- trait ViewExt::fn get_background_pattern -->
Returns the `BackgroundPatternType` specifying if and how
the background pattern should be displayed for this `self`.

Feature: `v3_16`


# Returns

the `BackgroundPatternType`.
<!-- trait ViewExt::fn get_completion -->
Gets the `Completion` associated with `self`. The returned object is
guaranteed to be the same for the lifetime of `self`. Each `View`
object has a different `Completion`.

# Returns

the `Completion` associated with `self`.
<!-- trait ViewExt::fn get_draw_spaces -->
Returns the `DrawSpacesFlags` specifying if and how spaces
should be displayed for this `self`.

# Deprecated since 3.24

Use `SpaceDrawerExt::get_types_for_locations`
instead.

# Returns

the `DrawSpacesFlags`, 0 if no spaces should be drawn.
<!-- trait ViewExt::fn get_gutter -->
Returns the `Gutter` object associated with `window_type` for `self`.
Only GTK_TEXT_WINDOW_LEFT and GTK_TEXT_WINDOW_RIGHT are supported,
respectively corresponding to the left and right gutter. The line numbers
and mark category icons are rendered in the left gutter.
## `window_type`
the gutter window type.

# Returns

the `Gutter`.
<!-- trait ViewExt::fn get_highlight_current_line -->
Returns whether the current line is highlighted.

# Returns

`true` if the current line is highlighted.
<!-- trait ViewExt::fn get_indent_on_tab -->
Returns whether when the tab key is pressed the current selection
should get indented instead of replaced with the \t character.

# Returns

`true` if the selection is indented when tab is pressed.
<!-- trait ViewExt::fn get_indent_width -->
Returns the number of spaces to use for each step of indent.
See `ViewExt::set_indent_width` for details.

# Returns

indent width.
<!-- trait ViewExt::fn get_insert_spaces_instead_of_tabs -->
Returns whether when inserting a tabulator character it should
be replaced by a group of space characters.

# Returns

`true` if spaces are inserted instead of tabs.
<!-- trait ViewExt::fn get_mark_attributes -->
Gets attributes and priority for the `category`.
## `category`
the category.
## `priority`
place where priority of the category will be stored.

# Returns

`MarkAttributes` for the `category`.
The object belongs to `self`, so it must not be unreffed.
<!-- trait ViewExt::fn get_right_margin_position -->
Gets the position of the right margin in the given `self`.

# Returns

the position of the right margin.
<!-- trait ViewExt::fn get_show_line_marks -->
Returns whether line marks are displayed beside the text.

# Returns

`true` if the line marks are displayed.
<!-- trait ViewExt::fn get_show_line_numbers -->
Returns whether line numbers are displayed beside the text.

# Returns

`true` if the line numbers are displayed.
<!-- trait ViewExt::fn get_show_right_margin -->
Returns whether a right margin is displayed.

# Returns

`true` if the right margin is shown.
<!-- trait ViewExt::fn get_smart_backspace -->
Returns `true` if pressing the Backspace key will try to delete spaces
up to the previous tab stop.

Feature: `v3_18`


# Returns

`true` if smart Backspace handling is enabled.
<!-- trait ViewExt::fn get_smart_home_end -->
Returns a `SmartHomeEndType` end value specifying
how the cursor will move when HOME and END keys are pressed.

# Returns

a `SmartHomeEndType` value.
<!-- trait ViewExt::fn get_space_drawer -->
Gets the `SpaceDrawer` associated with `self`. The returned object is
guaranteed to be the same for the lifetime of `self`. Each `View`
object has a different `SpaceDrawer`.

Feature: `v3_24`


# Returns

the `SpaceDrawer` associated with `self`.
<!-- trait ViewExt::fn get_tab_width -->
Returns the width of tabulation in characters.

# Returns

width of tab.
<!-- trait ViewExt::fn get_visual_column -->
Determines the visual column at `iter` taking into consideration the
`View:tab-width` of `self`.
## `iter`
a position in `self`.

# Returns

the visual column at `iter`.
<!-- trait ViewExt::fn indent_lines -->
Inserts one indentation level at the beginning of the specified lines. The
empty lines are not indented.

Feature: `v3_16`

## `start`
`gtk::TextIter` of the first line to indent
## `end`
`gtk::TextIter` of the last line to indent
<!-- trait ViewExt::fn set_auto_indent -->
If `true` auto-indentation of text is enabled.

When Enter is pressed to create a new line, the auto-indentation inserts the
same indentation as the previous line. This is `<emphasis>`not`</emphasis>` a
"smart indentation" where an indentation level is added or removed depending
on the context.
## `enable`
whether to enable auto indentation.
<!-- trait ViewExt::fn set_background_pattern -->
Set if and how the background pattern should be displayed.

Feature: `v3_16`

## `background_pattern`
the `BackgroundPatternType`.
<!-- trait ViewExt::fn set_draw_spaces -->
Set if and how the spaces should be visualized. Specifying `flags` as 0 will
disable display of spaces.

For a finer-grained method, there is also the `Tag`'s
`Tag:draw-spaces` property.

# Deprecated since 3.24

Use `SpaceDrawerExt::set_types_for_locations`
instead.
## `flags`
`DrawSpacesFlags` specifing how white spaces should
be displayed
<!-- trait ViewExt::fn set_highlight_current_line -->
If `highlight` is `true` the current line will be highlighted.
## `highlight`
whether to highlight the current line.
<!-- trait ViewExt::fn set_indent_on_tab -->
If `true`, when the tab key is pressed when several lines are selected, the
selected lines are indented of one level instead of being replaced with a \t
character. Shift+Tab unindents the selection.

If the first or last line is not selected completely, it is also indented or
unindented.

When the selection doesn't span several lines, the tab key always replaces
the selection with a normal \t character.
## `enable`
whether to indent a block when tab is pressed.
<!-- trait ViewExt::fn set_indent_width -->
Sets the number of spaces to use for each step of indent when the tab key is
pressed. If `width` is -1, the value of the `View:tab-width` property
will be used.

The `View:indent-width` interacts with the
`View:insert-spaces-instead-of-tabs` property and
`View:tab-width`. An example will be clearer: if the
`View:indent-width` is 4 and
`View:tab-width` is 8 and
`View:insert-spaces-instead-of-tabs` is `false`, then pressing the tab
key at the beginning of a line will insert 4 spaces. So far so good. Pressing
the tab key a second time will remove the 4 spaces and insert a \t character
instead (since `View:tab-width` is 8). On the other hand, if
`View:insert-spaces-instead-of-tabs` is `true`, the second tab key
pressed will insert 4 more spaces for a total of 8 spaces in the
`gtk::TextBuffer`.

The test-widget program (available in the `View` repository) may be
useful to better understand the indentation settings (enable the space
drawing!).
## `width`
indent width in characters.
<!-- trait ViewExt::fn set_insert_spaces_instead_of_tabs -->
If `true` a tab key pressed is replaced by a group of space characters. Of
course it is still possible to insert a real \t programmatically with the
`gtk::TextBuffer` API.
## `enable`
whether to insert spaces instead of tabs.
<!-- trait ViewExt::fn set_mark_attributes -->
Sets attributes and priority for the `category`.
## `category`
the category.
## `attributes`
mark attributes.
## `priority`
priority of the category.
<!-- trait ViewExt::fn set_right_margin_position -->
Sets the position of the right margin in the given `self`.
## `pos`
the width in characters where to position the right margin.
<!-- trait ViewExt::fn set_show_line_marks -->
If `true` line marks will be displayed beside the text.
## `show`
whether line marks should be displayed.
<!-- trait ViewExt::fn set_show_line_numbers -->
If `true` line numbers will be displayed beside the text.
## `show`
whether line numbers should be displayed.
<!-- trait ViewExt::fn set_show_right_margin -->
If `true` a right margin is displayed.
## `show`
whether to show a right margin.
<!-- trait ViewExt::fn set_smart_backspace -->
When set to `true`, pressing the Backspace key will try to delete spaces
up to the previous tab stop.

Feature: `v3_18`

## `smart_backspace`
whether to enable smart Backspace handling.
<!-- trait ViewExt::fn set_smart_home_end -->
Set the desired movement of the cursor when HOME and END keys
are pressed.
## `smart_home_end`
the desired behavior among `SmartHomeEndType`.
<!-- trait ViewExt::fn set_tab_width -->
Sets the width of tabulation in characters. The `gtk::TextBuffer` still contains
\t characters, but they can take a different visual width in a `View`
widget.
## `width`
width of tab in characters.
<!-- trait ViewExt::fn unindent_lines -->
Removes one indentation level at the beginning of the
specified lines.

Feature: `v3_16`

## `start`
`gtk::TextIter` of the first line to indent
## `end`
`gtk::TextIter` of the last line to indent
<!-- trait ViewExt::fn connect_change_case -->
Keybinding signal to change case of the text at the current cursor position.

Feature: `v3_16`

## `case_type`
the case to use
<!-- trait ViewExt::fn connect_change_number -->
Keybinding signal to edit a number at the current cursor position.

Feature: `v3_16`

## `count`
the number to add to the number at the current position
<!-- trait ViewExt::fn connect_join_lines -->
Keybinding signal to join the lines currently selected.

Feature: `v3_16`

<!-- trait ViewExt::fn connect_line_mark_activated -->
Emitted when a line mark has been activated (for instance when there
was a button press in the line marks gutter). You can use `iter` to
determine on which line the activation took place.
## `iter`
a `gtk::TextIter`
## `event`
the ``GdkEvent`` that activated the event
<!-- trait ViewExt::fn connect_move_lines -->
The ::move-lines signal is a keybinding which gets emitted
when the user initiates moving a line. The default binding key
is Alt+Up/Down arrow. And moves the currently selected lines,
or the current line by `count`. For the moment, only
`count` of -1 or 1 is valid.

The `copy` parameter is deprecated, it has never been used by
`View` (the value is always `false`) and was buggy.
## `copy`
`true` if the line should be copied, `false` if it should be
 moved. This parameter is deprecated and will be removed in a later
 version, it should be always `false`.
## `count`
the number of lines to move over. Only 1 and -1 are
 supported.
<!-- trait ViewExt::fn connect_move_to_matching_bracket -->
Keybinding signal to move the cursor to the matching bracket.

Feature: `v3_16`

## `extend_selection`
`true` if the move should extend the selection
<!-- trait ViewExt::fn connect_move_words -->
The ::move-words signal is a keybinding which gets emitted
when the user initiates moving a word. The default binding key
is Alt+Left/Right Arrow and moves the current selection, or the current
word by one word.
## `count`
the number of words to move over
<!-- trait ViewExt::fn connect_show_completion -->
The ::show-completion signal is a key binding signal which gets
emitted when the user requests a completion, by pressing
`<keycombo>``<keycap>`Control`</keycap>``<keycap>`space`</keycap>``</keycombo>`.

This will create a `CompletionContext` with the activation
type as `CompletionActivation::UserRequested`.

Applications should not connect to it, but may emit it with
`g_signal_emit_by_name` if they need to activate the completion by
another means, for example with another key binding or a menu entry.
<!-- trait ViewExt::fn connect_smart_home_end -->
Emitted when a the cursor was moved according to the smart home
end setting. The signal is emitted after the cursor is moved, but
during the `gtk::TextView`::move-cursor action. This can be used to find
out whether the cursor was moved by a normal home/end or by a smart
home/end.
## `iter`
a `gtk::TextIter`
## `count`
the count
<!-- trait ViewExt::fn get_property_background_pattern -->
Draw a specific background pattern on the view.

Feature: `v3_16`

<!-- trait ViewExt::fn set_property_background_pattern -->
Draw a specific background pattern on the view.

Feature: `v3_16`

<!-- trait ViewExt::fn get_property_completion -->
The completion object associated with the view
<!-- trait ViewExt::fn get_property_draw_spaces -->
Set if and how the spaces should be visualized.

For a finer-grained method, there is also the `Tag`'s
`Tag:draw-spaces` property.

# Deprecated since 3.24

Use the `SpaceDrawer:matrix` property
instead.
<!-- trait ViewExt::fn set_property_draw_spaces -->
Set if and how the spaces should be visualized.

For a finer-grained method, there is also the `Tag`'s
`Tag:draw-spaces` property.

# Deprecated since 3.24

Use the `SpaceDrawer:matrix` property
instead.
<!-- trait ViewExt::fn get_property_indent_width -->
Width of an indentation step expressed in number of spaces.
<!-- trait ViewExt::fn set_property_indent_width -->
Width of an indentation step expressed in number of spaces.
<!-- trait ViewExt::fn get_property_right_margin_position -->
Position of the right margin.
<!-- trait ViewExt::fn set_property_right_margin_position -->
Position of the right margin.
<!-- trait ViewExt::fn get_property_show_line_marks -->
Whether to display line mark pixbufs
<!-- trait ViewExt::fn set_property_show_line_marks -->
Whether to display line mark pixbufs
<!-- trait ViewExt::fn get_property_show_line_numbers -->
Whether to display line numbers
<!-- trait ViewExt::fn set_property_show_line_numbers -->
Whether to display line numbers
<!-- trait ViewExt::fn get_property_show_right_margin -->
Whether to display the right margin.
<!-- trait ViewExt::fn set_property_show_right_margin -->
Whether to display the right margin.
<!-- trait ViewExt::fn get_property_smart_backspace -->
Whether smart Backspace should be used.

Feature: `v3_18`

<!-- trait ViewExt::fn set_property_smart_backspace -->
Whether smart Backspace should be used.

Feature: `v3_18`

<!-- trait ViewExt::fn get_property_smart_home_end -->
Set the behavior of the HOME and END keys.
<!-- trait ViewExt::fn set_property_smart_home_end -->
Set the behavior of the HOME and END keys.
<!-- trait ViewExt::fn get_property_space_drawer -->
The `SpaceDrawer` object associated with the view.

Feature: `v3_24`

<!-- trait ViewExt::fn get_property_tab_width -->
Width of a tab character expressed in number of spaces.
<!-- trait ViewExt::fn set_property_tab_width -->
Width of a tab character expressed in number of spaces.
<!-- enum ViewGutterPosition -->
<!-- enum ViewGutterPosition::variant Lines -->
the gutter position of the lines
renderer
<!-- enum ViewGutterPosition::variant Marks -->
the gutter position of the marks
renderer