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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(
    clippy::approx_constant,
    clippy::type_complexity,
    clippy::unreadable_literal
)]

extern crate glib_sys as glib;
extern crate libc;

#[allow(unused_imports)]
use libc::{
    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
    intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
};

#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};

pub const G_TYPE_INVALID: GType = 0 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_NONE: GType = 1 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_INTERFACE: GType = 2 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_CHAR: GType = 3 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_UCHAR: GType = 4 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_BOOLEAN: GType = 5 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_INT: GType = 6 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_UINT: GType = 7 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_LONG: GType = 8 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_ULONG: GType = 9 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_INT64: GType = 10 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_UINT64: GType = 11 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_ENUM: GType = 12 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_FLAGS: GType = 13 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_FLOAT: GType = 14 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_DOUBLE: GType = 15 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_STRING: GType = 16 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_POINTER: GType = 17 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_BOXED: GType = 18 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_PARAM: GType = 19 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_OBJECT: GType = 20 << G_TYPE_FUNDAMENTAL_SHIFT;
pub const G_TYPE_VARIANT: GType = 21 << G_TYPE_FUNDAMENTAL_SHIFT;

// Aliases
pub type GSignalCMarshaller = GClosureMarshal;

// Constants
pub const G_PARAM_MASK: c_int = 255;
pub const G_PARAM_STATIC_STRINGS: c_int = 224;
pub const G_PARAM_USER_SHIFT: c_int = 8;
pub const G_SIGNAL_FLAGS_MASK: c_int = 511;
pub const G_SIGNAL_MATCH_MASK: c_int = 63;
pub const G_TYPE_FLAG_RESERVED_ID_BIT: GType = 1;
pub const G_TYPE_FUNDAMENTAL_MAX: c_int = 255;
pub const G_TYPE_FUNDAMENTAL_SHIFT: c_int = 2;
pub const G_TYPE_RESERVED_BSE_FIRST: c_int = 32;
pub const G_TYPE_RESERVED_BSE_LAST: c_int = 48;
pub const G_TYPE_RESERVED_GLIB_FIRST: c_int = 22;
pub const G_TYPE_RESERVED_GLIB_LAST: c_int = 31;
pub const G_TYPE_RESERVED_USER_FIRST: c_int = 49;
pub const G_VALUE_NOCOPY_CONTENTS: c_int = 134217728;

// Flags
pub type GBindingFlags = c_uint;
pub const G_BINDING_DEFAULT: GBindingFlags = 0;
pub const G_BINDING_BIDIRECTIONAL: GBindingFlags = 1;
pub const G_BINDING_SYNC_CREATE: GBindingFlags = 2;
pub const G_BINDING_INVERT_BOOLEAN: GBindingFlags = 4;

pub type GConnectFlags = c_uint;
pub const G_CONNECT_AFTER: GConnectFlags = 1;
pub const G_CONNECT_SWAPPED: GConnectFlags = 2;

pub type GParamFlags = c_uint;
pub const G_PARAM_READABLE: GParamFlags = 1;
pub const G_PARAM_WRITABLE: GParamFlags = 2;
pub const G_PARAM_READWRITE: GParamFlags = 3;
pub const G_PARAM_CONSTRUCT: GParamFlags = 4;
pub const G_PARAM_CONSTRUCT_ONLY: GParamFlags = 8;
pub const G_PARAM_LAX_VALIDATION: GParamFlags = 16;
pub const G_PARAM_STATIC_NAME: GParamFlags = 32;
pub const G_PARAM_PRIVATE: GParamFlags = 32;
pub const G_PARAM_STATIC_NICK: GParamFlags = 64;
pub const G_PARAM_STATIC_BLURB: GParamFlags = 128;
pub const G_PARAM_EXPLICIT_NOTIFY: GParamFlags = 1073741824;
pub const G_PARAM_DEPRECATED: GParamFlags = 2147483648;

pub type GSignalFlags = c_uint;
pub const G_SIGNAL_RUN_FIRST: GSignalFlags = 1;
pub const G_SIGNAL_RUN_LAST: GSignalFlags = 2;
pub const G_SIGNAL_RUN_CLEANUP: GSignalFlags = 4;
pub const G_SIGNAL_NO_RECURSE: GSignalFlags = 8;
pub const G_SIGNAL_DETAILED: GSignalFlags = 16;
pub const G_SIGNAL_ACTION: GSignalFlags = 32;
pub const G_SIGNAL_NO_HOOKS: GSignalFlags = 64;
pub const G_SIGNAL_MUST_COLLECT: GSignalFlags = 128;
pub const G_SIGNAL_DEPRECATED: GSignalFlags = 256;

pub type GSignalMatchType = c_uint;
pub const G_SIGNAL_MATCH_ID: GSignalMatchType = 1;
pub const G_SIGNAL_MATCH_DETAIL: GSignalMatchType = 2;
pub const G_SIGNAL_MATCH_CLOSURE: GSignalMatchType = 4;
pub const G_SIGNAL_MATCH_FUNC: GSignalMatchType = 8;
pub const G_SIGNAL_MATCH_DATA: GSignalMatchType = 16;
pub const G_SIGNAL_MATCH_UNBLOCKED: GSignalMatchType = 32;

pub type GTypeDebugFlags = c_uint;
pub const G_TYPE_DEBUG_NONE: GTypeDebugFlags = 0;
pub const G_TYPE_DEBUG_OBJECTS: GTypeDebugFlags = 1;
pub const G_TYPE_DEBUG_SIGNALS: GTypeDebugFlags = 2;
pub const G_TYPE_DEBUG_INSTANCE_COUNT: GTypeDebugFlags = 4;
pub const G_TYPE_DEBUG_MASK: GTypeDebugFlags = 7;

pub type GTypeFlags = c_uint;
pub const G_TYPE_FLAG_ABSTRACT: GTypeFlags = 16;
pub const G_TYPE_FLAG_VALUE_ABSTRACT: GTypeFlags = 32;

pub type GTypeFundamentalFlags = c_uint;
pub const G_TYPE_FLAG_CLASSED: GTypeFundamentalFlags = 1;
pub const G_TYPE_FLAG_INSTANTIATABLE: GTypeFundamentalFlags = 2;
pub const G_TYPE_FLAG_DERIVABLE: GTypeFundamentalFlags = 4;
pub const G_TYPE_FLAG_DEEP_DERIVABLE: GTypeFundamentalFlags = 8;

// Unions
#[repr(C)]
pub struct GTypeCValue(c_void);

impl ::std::fmt::Debug for GTypeCValue {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeCValue @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub union GValue_data {
    pub v_int: c_int,
    pub v_uint: c_uint,
    pub v_long: c_long,
    pub v_ulong: c_ulong,
    pub v_int64: i64,
    pub v_uint64: u64,
    pub v_float: c_float,
    pub v_double: c_double,
    pub v_pointer: gpointer,
}

impl ::std::fmt::Debug for GValue_data {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GValue_data @ {:?}", self as *const _))
            .field("v_int", unsafe { &self.v_int })
            .field("v_uint", unsafe { &self.v_uint })
            .field("v_long", unsafe { &self.v_long })
            .field("v_ulong", unsafe { &self.v_ulong })
            .field("v_int64", unsafe { &self.v_int64 })
            .field("v_uint64", unsafe { &self.v_uint64 })
            .field("v_float", unsafe { &self.v_float })
            .field("v_double", unsafe { &self.v_double })
            .field("v_pointer", unsafe { &self.v_pointer })
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub union GWeakRef_priv {
    pub p: gpointer,
}

impl ::std::fmt::Debug for GWeakRef_priv {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GWeakRef_priv @ {:?}", self as *const _))
            .field("p", unsafe { &self.p })
            .finish()
    }
}

// Callbacks
pub type GBaseFinalizeFunc = Option<unsafe extern "C" fn(gpointer)>;
pub type GBaseInitFunc = Option<unsafe extern "C" fn(gpointer)>;
pub type GBindingTransformFunc =
    Option<unsafe extern "C" fn(*mut GBinding, *const GValue, *mut GValue, gpointer) -> gboolean>;
pub type GBoxedCopyFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>;
pub type GBoxedFreeFunc = Option<unsafe extern "C" fn(gpointer)>;
pub type GCallback = Option<unsafe extern "C" fn()>;
pub type GClassFinalizeFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
pub type GClassInitFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
pub type GClosureMarshal = Option<
    unsafe extern "C" fn(*mut GClosure, *mut GValue, c_uint, *const GValue, gpointer, gpointer),
>;
pub type GClosureNotify = Option<unsafe extern "C" fn(gpointer, *mut GClosure)>;
pub type GInstanceInitFunc = Option<unsafe extern "C" fn(*mut GTypeInstance, gpointer)>;
pub type GInterfaceFinalizeFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
pub type GInterfaceInitFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
pub type GObjectFinalizeFunc = Option<unsafe extern "C" fn(*mut GObject)>;
pub type GObjectGetPropertyFunc =
    Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut GValue, *mut GParamSpec)>;
pub type GObjectSetPropertyFunc =
    Option<unsafe extern "C" fn(*mut GObject, c_uint, *const GValue, *mut GParamSpec)>;
pub type GSignalAccumulator = Option<
    unsafe extern "C" fn(
        *mut GSignalInvocationHint,
        *mut GValue,
        *const GValue,
        gpointer,
    ) -> gboolean,
>;
pub type GSignalEmissionHook = Option<
    unsafe extern "C" fn(*mut GSignalInvocationHint, c_uint, *const GValue, gpointer) -> gboolean,
>;
pub type GToggleNotify = Option<unsafe extern "C" fn(gpointer, *mut GObject, gboolean)>;
pub type GTypeClassCacheFunc = Option<unsafe extern "C" fn(gpointer, *mut GTypeClass) -> gboolean>;
pub type GTypeInterfaceCheckFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
pub type GTypePluginCompleteInterfaceInfo =
    Option<unsafe extern "C" fn(*mut GTypePlugin, GType, GType, *mut GInterfaceInfo)>;
pub type GTypePluginCompleteTypeInfo =
    Option<unsafe extern "C" fn(*mut GTypePlugin, GType, *mut GTypeInfo, *mut GTypeValueTable)>;
pub type GTypePluginUnuse = Option<unsafe extern "C" fn(*mut GTypePlugin)>;
pub type GTypePluginUse = Option<unsafe extern "C" fn(*mut GTypePlugin)>;
//pub type GVaClosureMarshal = Option<unsafe extern "C" fn(*mut GClosure, *mut GValue, gpointer, /*Unimplemented*/va_list, gpointer, c_int, *mut GType)>;
pub type GValueTransform = Option<unsafe extern "C" fn(*const GValue, *mut GValue)>;
pub type GWeakNotify = Option<unsafe extern "C" fn(gpointer, *mut GObject)>;

// Records
#[repr(C)]
pub struct GCClosure {
    _truncated_record_marker: c_void,
    // /*Ignored*/field closure has incomplete type
}

impl ::std::fmt::Debug for GCClosure {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GCClosure @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
pub struct GClosure {
    pub ref_count: c_uint,
    _truncated_record_marker: c_void,
    // field meta_marshal_nouse has incomplete type
}

impl ::std::fmt::Debug for GClosure {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GClosure @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GClosureNotifyData {
    pub data: gpointer,
    pub notify: GClosureNotify,
}

impl ::std::fmt::Debug for GClosureNotifyData {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GClosureNotifyData @ {:?}", self as *const _))
            .field("data", &self.data)
            .field("notify", &self.notify)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GEnumClass {
    pub g_type_class: GTypeClass,
    pub minimum: c_int,
    pub maximum: c_int,
    pub n_values: c_uint,
    pub values: *mut GEnumValue,
}

impl ::std::fmt::Debug for GEnumClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GEnumClass @ {:?}", self as *const _))
            .field("g_type_class", &self.g_type_class)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("n_values", &self.n_values)
            .field("values", &self.values)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GEnumValue {
    pub value: c_int,
    pub value_name: *const c_char,
    pub value_nick: *const c_char,
}

impl ::std::fmt::Debug for GEnumValue {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GEnumValue @ {:?}", self as *const _))
            .field("value", &self.value)
            .field("value_name", &self.value_name)
            .field("value_nick", &self.value_nick)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GFlagsClass {
    pub g_type_class: GTypeClass,
    pub mask: c_uint,
    pub n_values: c_uint,
    pub values: *mut GFlagsValue,
}

impl ::std::fmt::Debug for GFlagsClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GFlagsClass @ {:?}", self as *const _))
            .field("g_type_class", &self.g_type_class)
            .field("mask", &self.mask)
            .field("n_values", &self.n_values)
            .field("values", &self.values)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GFlagsValue {
    pub value: c_uint,
    pub value_name: *const c_char,
    pub value_nick: *const c_char,
}

impl ::std::fmt::Debug for GFlagsValue {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GFlagsValue @ {:?}", self as *const _))
            .field("value", &self.value)
            .field("value_name", &self.value_name)
            .field("value_nick", &self.value_nick)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GInitiallyUnownedClass {
    pub g_type_class: GTypeClass,
    pub construct_properties: *mut glib::GSList,
    pub constructor:
        Option<unsafe extern "C" fn(GType, c_uint, *mut GObjectConstructParam) -> *mut GObject>,
    pub set_property:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut GValue, *mut GParamSpec)>,
    pub get_property:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut GValue, *mut GParamSpec)>,
    pub dispose: Option<unsafe extern "C" fn(*mut GObject)>,
    pub finalize: Option<unsafe extern "C" fn(*mut GObject)>,
    pub dispatch_properties_changed:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut *mut GParamSpec)>,
    pub notify: Option<unsafe extern "C" fn(*mut GObject, *mut GParamSpec)>,
    pub constructed: Option<unsafe extern "C" fn(*mut GObject)>,
    pub flags: size_t,
    pub pdummy: [gpointer; 6],
}

impl ::std::fmt::Debug for GInitiallyUnownedClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GInitiallyUnownedClass @ {:?}", self as *const _))
            .field("g_type_class", &self.g_type_class)
            .field("constructor", &self.constructor)
            .field("set_property", &self.set_property)
            .field("get_property", &self.get_property)
            .field("dispose", &self.dispose)
            .field("finalize", &self.finalize)
            .field(
                "dispatch_properties_changed",
                &self.dispatch_properties_changed,
            )
            .field("notify", &self.notify)
            .field("constructed", &self.constructed)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GInterfaceInfo {
    pub interface_init: GInterfaceInitFunc,
    pub interface_finalize: GInterfaceFinalizeFunc,
    pub interface_data: gpointer,
}

impl ::std::fmt::Debug for GInterfaceInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GInterfaceInfo @ {:?}", self as *const _))
            .field("interface_init", &self.interface_init)
            .field("interface_finalize", &self.interface_finalize)
            .field("interface_data", &self.interface_data)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GObjectClass {
    pub g_type_class: GTypeClass,
    pub construct_properties: *mut glib::GSList,
    pub constructor:
        Option<unsafe extern "C" fn(GType, c_uint, *mut GObjectConstructParam) -> *mut GObject>,
    pub set_property:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut GValue, *mut GParamSpec)>,
    pub get_property:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut GValue, *mut GParamSpec)>,
    pub dispose: Option<unsafe extern "C" fn(*mut GObject)>,
    pub finalize: Option<unsafe extern "C" fn(*mut GObject)>,
    pub dispatch_properties_changed:
        Option<unsafe extern "C" fn(*mut GObject, c_uint, *mut *mut GParamSpec)>,
    pub notify: Option<unsafe extern "C" fn(*mut GObject, *mut GParamSpec)>,
    pub constructed: Option<unsafe extern "C" fn(*mut GObject)>,
    pub flags: size_t,
    pub pdummy: [gpointer; 6],
}

impl ::std::fmt::Debug for GObjectClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GObjectClass @ {:?}", self as *const _))
            .field("g_type_class", &self.g_type_class)
            .field("constructor", &self.constructor)
            .field("set_property", &self.set_property)
            .field("get_property", &self.get_property)
            .field("dispose", &self.dispose)
            .field("finalize", &self.finalize)
            .field(
                "dispatch_properties_changed",
                &self.dispatch_properties_changed,
            )
            .field("notify", &self.notify)
            .field("constructed", &self.constructed)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GObjectConstructParam {
    pub pspec: *mut GParamSpec,
    pub value: *mut GValue,
}

impl ::std::fmt::Debug for GObjectConstructParam {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GObjectConstructParam @ {:?}", self as *const _))
            .field("pspec", &self.pspec)
            .field("value", &self.value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecClass {
    pub g_type_class: GTypeClass,
    pub value_type: GType,
    pub finalize: Option<unsafe extern "C" fn(*mut GParamSpec)>,
    pub value_set_default: Option<unsafe extern "C" fn(*mut GParamSpec, *mut GValue)>,
    pub value_validate: Option<unsafe extern "C" fn(*mut GParamSpec, *mut GValue) -> gboolean>,
    pub values_cmp:
        Option<unsafe extern "C" fn(*mut GParamSpec, *const GValue, *const GValue) -> c_int>,
    pub dummy: [gpointer; 4],
}

impl ::std::fmt::Debug for GParamSpecClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecClass @ {:?}", self as *const _))
            .field("g_type_class", &self.g_type_class)
            .field("value_type", &self.value_type)
            .field("finalize", &self.finalize)
            .field("value_set_default", &self.value_set_default)
            .field("value_validate", &self.value_validate)
            .field("values_cmp", &self.values_cmp)
            .finish()
    }
}

#[repr(C)]
pub struct _GParamSpecPool(c_void);

pub type GParamSpecPool = *mut _GParamSpecPool;

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecTypeInfo {
    pub instance_size: u16,
    pub n_preallocs: u16,
    pub instance_init: Option<unsafe extern "C" fn(*mut GParamSpec)>,
    pub value_type: GType,
    pub finalize: Option<unsafe extern "C" fn(*mut GParamSpec)>,
    pub value_set_default: Option<unsafe extern "C" fn(*mut GParamSpec, *mut GValue)>,
    pub value_validate: Option<unsafe extern "C" fn(*mut GParamSpec, *mut GValue) -> gboolean>,
    pub values_cmp:
        Option<unsafe extern "C" fn(*mut GParamSpec, *const GValue, *const GValue) -> c_int>,
}

impl ::std::fmt::Debug for GParamSpecTypeInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecTypeInfo @ {:?}", self as *const _))
            .field("instance_size", &self.instance_size)
            .field("n_preallocs", &self.n_preallocs)
            .field("instance_init", &self.instance_init)
            .field("value_type", &self.value_type)
            .field("finalize", &self.finalize)
            .field("value_set_default", &self.value_set_default)
            .field("value_validate", &self.value_validate)
            .field("values_cmp", &self.values_cmp)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParameter {
    pub name: *const c_char,
    pub value: GValue,
}

impl ::std::fmt::Debug for GParameter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParameter @ {:?}", self as *const _))
            .field("name", &self.name)
            .field("value", &self.value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GSignalInvocationHint {
    pub signal_id: c_uint,
    pub detail: glib::GQuark,
    pub run_type: GSignalFlags,
}

impl ::std::fmt::Debug for GSignalInvocationHint {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GSignalInvocationHint @ {:?}", self as *const _))
            .field("signal_id", &self.signal_id)
            .field("detail", &self.detail)
            .field("run_type", &self.run_type)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GSignalQuery {
    pub signal_id: c_uint,
    pub signal_name: *const c_char,
    pub itype: GType,
    pub signal_flags: GSignalFlags,
    pub return_type: GType,
    pub n_params: c_uint,
    pub param_types: *const GType,
}

impl ::std::fmt::Debug for GSignalQuery {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GSignalQuery @ {:?}", self as *const _))
            .field("signal_id", &self.signal_id)
            .field("signal_name", &self.signal_name)
            .field("itype", &self.itype)
            .field("signal_flags", &self.signal_flags)
            .field("return_type", &self.return_type)
            .field("n_params", &self.n_params)
            .field("param_types", &self.param_types)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeClass {
    pub g_type: GType,
}

impl ::std::fmt::Debug for GTypeClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeClass @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeFundamentalInfo {
    pub type_flags: GTypeFundamentalFlags,
}

impl ::std::fmt::Debug for GTypeFundamentalInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeFundamentalInfo @ {:?}", self as *const _))
            .field("type_flags", &self.type_flags)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeInfo {
    pub class_size: u16,
    pub base_init: GBaseInitFunc,
    pub base_finalize: GBaseFinalizeFunc,
    pub class_init: GClassInitFunc,
    pub class_finalize: GClassFinalizeFunc,
    pub class_data: gconstpointer,
    pub instance_size: u16,
    pub n_preallocs: u16,
    pub instance_init: GInstanceInitFunc,
    pub value_table: *const GTypeValueTable,
}

impl ::std::fmt::Debug for GTypeInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeInfo @ {:?}", self as *const _))
            .field("class_size", &self.class_size)
            .field("base_init", &self.base_init)
            .field("base_finalize", &self.base_finalize)
            .field("class_init", &self.class_init)
            .field("class_finalize", &self.class_finalize)
            .field("class_data", &self.class_data)
            .field("instance_size", &self.instance_size)
            .field("n_preallocs", &self.n_preallocs)
            .field("instance_init", &self.instance_init)
            .field("value_table", &self.value_table)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeInstance {
    pub g_class: *mut GTypeClass,
}

impl ::std::fmt::Debug for GTypeInstance {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeInstance @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeInterface {
    pub g_type: GType,
    pub g_instance_type: GType,
}

impl ::std::fmt::Debug for GTypeInterface {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeInterface @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeModuleClass {
    pub parent_class: GObjectClass,
    pub load: Option<unsafe extern "C" fn(*mut GTypeModule) -> gboolean>,
    pub unload: Option<unsafe extern "C" fn(*mut GTypeModule)>,
    pub reserved1: Option<unsafe extern "C" fn()>,
    pub reserved2: Option<unsafe extern "C" fn()>,
    pub reserved3: Option<unsafe extern "C" fn()>,
    pub reserved4: Option<unsafe extern "C" fn()>,
}

impl ::std::fmt::Debug for GTypeModuleClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeModuleClass @ {:?}", self as *const _))
            .field("parent_class", &self.parent_class)
            .field("load", &self.load)
            .field("unload", &self.unload)
            .field("reserved1", &self.reserved1)
            .field("reserved2", &self.reserved2)
            .field("reserved3", &self.reserved3)
            .field("reserved4", &self.reserved4)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypePluginClass {
    pub base_iface: GTypeInterface,
    pub use_plugin: GTypePluginUse,
    pub unuse_plugin: GTypePluginUnuse,
    pub complete_type_info: GTypePluginCompleteTypeInfo,
    pub complete_interface_info: GTypePluginCompleteInterfaceInfo,
}

impl ::std::fmt::Debug for GTypePluginClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypePluginClass @ {:?}", self as *const _))
            .field("use_plugin", &self.use_plugin)
            .field("unuse_plugin", &self.unuse_plugin)
            .field("complete_type_info", &self.complete_type_info)
            .field("complete_interface_info", &self.complete_interface_info)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeQuery {
    pub type_: GType,
    pub type_name: *const c_char,
    pub class_size: c_uint,
    pub instance_size: c_uint,
}

impl ::std::fmt::Debug for GTypeQuery {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeQuery @ {:?}", self as *const _))
            .field("type_", &self.type_)
            .field("type_name", &self.type_name)
            .field("class_size", &self.class_size)
            .field("instance_size", &self.instance_size)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeValueTable {
    pub value_init: Option<unsafe extern "C" fn(*mut GValue)>,
    pub value_free: Option<unsafe extern "C" fn(*mut GValue)>,
    pub value_copy: Option<unsafe extern "C" fn(*const GValue, *mut GValue)>,
    pub value_peek_pointer: Option<unsafe extern "C" fn(*const GValue) -> gpointer>,
    pub collect_format: *const c_char,
    pub collect_value: Option<
        unsafe extern "C" fn(*const GValue, c_uint, *mut GTypeCValue, c_uint) -> *mut c_char,
    >,
    pub lcopy_format: *const c_char,
    pub lcopy_value: Option<
        unsafe extern "C" fn(*const GValue, c_uint, *mut GTypeCValue, c_uint) -> *mut c_char,
    >,
}

impl ::std::fmt::Debug for GTypeValueTable {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeValueTable @ {:?}", self as *const _))
            .field("value_init", &self.value_init)
            .field("value_free", &self.value_free)
            .field("value_copy", &self.value_copy)
            .field("value_peek_pointer", &self.value_peek_pointer)
            .field("collect_format", &self.collect_format)
            .field("collect_value", &self.collect_value)
            .field("lcopy_format", &self.lcopy_format)
            .field("lcopy_value", &self.lcopy_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GValue {
    pub g_type: GType,
    pub data: [GValue_data; 2],
}

impl ::std::fmt::Debug for GValue {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GValue @ {:?}", self as *const _))
            .field("data", &self.data)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GValueArray {
    pub n_values: c_uint,
    pub values: *mut GValue,
    pub n_prealloced: c_uint,
}

impl ::std::fmt::Debug for GValueArray {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GValueArray @ {:?}", self as *const _))
            .field("n_values", &self.n_values)
            .field("values", &self.values)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GWeakRef {
    pub priv_: GWeakRef_priv,
}

impl ::std::fmt::Debug for GWeakRef {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GWeakRef @ {:?}", self as *const _))
            .field("priv_", &self.priv_)
            .finish()
    }
}

// Classes
#[repr(C)]
pub struct GBinding(c_void);

impl ::std::fmt::Debug for GBinding {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GBinding @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GInitiallyUnowned {
    pub g_type_instance: GTypeInstance,
    pub ref_count: c_uint,
    pub qdata: *mut glib::GData,
}

impl ::std::fmt::Debug for GInitiallyUnowned {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GInitiallyUnowned @ {:?}", self as *const _))
            .field("g_type_instance", &self.g_type_instance)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GObject {
    pub g_type_instance: GTypeInstance,
    pub ref_count: c_uint,
    pub qdata: *mut glib::GData,
}

impl ::std::fmt::Debug for GObject {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GObject @ {:?}", self as *const _))
            .field("g_type_instance", &self.g_type_instance)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpec {
    pub g_type_instance: GTypeInstance,
    pub name: *const c_char,
    pub flags: GParamFlags,
    pub value_type: GType,
    pub owner_type: GType,
    pub _nick: *mut c_char,
    pub _blurb: *mut c_char,
    pub qdata: *mut glib::GData,
    pub ref_count: c_uint,
    pub param_id: c_uint,
}

impl ::std::fmt::Debug for GParamSpec {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpec @ {:?}", self as *const _))
            .field("g_type_instance", &self.g_type_instance)
            .field("name", &self.name)
            .field("flags", &self.flags)
            .field("value_type", &self.value_type)
            .field("owner_type", &self.owner_type)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecBoolean {
    pub parent_instance: GParamSpec,
    pub default_value: gboolean,
}

impl ::std::fmt::Debug for GParamSpecBoolean {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecBoolean @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecBoxed {
    pub parent_instance: GParamSpec,
}

impl ::std::fmt::Debug for GParamSpecBoxed {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecBoxed @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecChar {
    pub parent_instance: GParamSpec,
    pub minimum: i8,
    pub maximum: i8,
    pub default_value: i8,
}

impl ::std::fmt::Debug for GParamSpecChar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecChar @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecDouble {
    pub parent_instance: GParamSpec,
    pub minimum: c_double,
    pub maximum: c_double,
    pub default_value: c_double,
    pub epsilon: c_double,
}

impl ::std::fmt::Debug for GParamSpecDouble {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecDouble @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .field("epsilon", &self.epsilon)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecEnum {
    pub parent_instance: GParamSpec,
    pub enum_class: *mut GEnumClass,
    pub default_value: c_int,
}

impl ::std::fmt::Debug for GParamSpecEnum {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecEnum @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("enum_class", &self.enum_class)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecFlags {
    pub parent_instance: GParamSpec,
    pub flags_class: *mut GFlagsClass,
    pub default_value: c_uint,
}

impl ::std::fmt::Debug for GParamSpecFlags {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecFlags @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("flags_class", &self.flags_class)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecFloat {
    pub parent_instance: GParamSpec,
    pub minimum: c_float,
    pub maximum: c_float,
    pub default_value: c_float,
    pub epsilon: c_float,
}

impl ::std::fmt::Debug for GParamSpecFloat {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecFloat @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .field("epsilon", &self.epsilon)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecGType {
    pub parent_instance: GParamSpec,
    pub is_a_type: GType,
}

impl ::std::fmt::Debug for GParamSpecGType {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecGType @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("is_a_type", &self.is_a_type)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecInt {
    pub parent_instance: GParamSpec,
    pub minimum: c_int,
    pub maximum: c_int,
    pub default_value: c_int,
}

impl ::std::fmt::Debug for GParamSpecInt {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecInt @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecInt64 {
    pub parent_instance: GParamSpec,
    pub minimum: i64,
    pub maximum: i64,
    pub default_value: i64,
}

impl ::std::fmt::Debug for GParamSpecInt64 {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecInt64 @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecLong {
    pub parent_instance: GParamSpec,
    pub minimum: c_long,
    pub maximum: c_long,
    pub default_value: c_long,
}

impl ::std::fmt::Debug for GParamSpecLong {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecLong @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecObject {
    pub parent_instance: GParamSpec,
}

impl ::std::fmt::Debug for GParamSpecObject {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecObject @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecOverride {
    pub parent_instance: GParamSpec,
    pub overridden: *mut GParamSpec,
}

impl ::std::fmt::Debug for GParamSpecOverride {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecOverride @ {:?}", self as *const _))
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecParam {
    pub parent_instance: GParamSpec,
}

impl ::std::fmt::Debug for GParamSpecParam {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecParam @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecPointer {
    pub parent_instance: GParamSpec,
}

impl ::std::fmt::Debug for GParamSpecPointer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecPointer @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
pub struct GParamSpecString {
    pub parent_instance: GParamSpec,
    pub default_value: *mut c_char,
    pub cset_first: *mut c_char,
    pub cset_nth: *mut c_char,
    pub substitutor: c_char,
    pub null_fold_if_empty: c_uint,
    _truncated_record_marker: c_void,
    // field ensure_non_null has incomplete type
}

impl ::std::fmt::Debug for GParamSpecString {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecString @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("default_value", &self.default_value)
            .field("cset_first", &self.cset_first)
            .field("cset_nth", &self.cset_nth)
            .field("substitutor", &self.substitutor)
            .field("null_fold_if_empty", &self.null_fold_if_empty)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecUChar {
    pub parent_instance: GParamSpec,
    pub minimum: u8,
    pub maximum: u8,
    pub default_value: u8,
}

impl ::std::fmt::Debug for GParamSpecUChar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecUChar @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecUInt {
    pub parent_instance: GParamSpec,
    pub minimum: c_uint,
    pub maximum: c_uint,
    pub default_value: c_uint,
}

impl ::std::fmt::Debug for GParamSpecUInt {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecUInt @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecUInt64 {
    pub parent_instance: GParamSpec,
    pub minimum: u64,
    pub maximum: u64,
    pub default_value: u64,
}

impl ::std::fmt::Debug for GParamSpecUInt64 {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecUInt64 @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecULong {
    pub parent_instance: GParamSpec,
    pub minimum: c_ulong,
    pub maximum: c_ulong,
    pub default_value: c_ulong,
}

impl ::std::fmt::Debug for GParamSpecULong {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecULong @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("minimum", &self.minimum)
            .field("maximum", &self.maximum)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecUnichar {
    pub parent_instance: GParamSpec,
    pub default_value: u32,
}

impl ::std::fmt::Debug for GParamSpecUnichar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecUnichar @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecValueArray {
    pub parent_instance: GParamSpec,
    pub element_spec: *mut GParamSpec,
    pub fixed_n_elements: c_uint,
}

impl ::std::fmt::Debug for GParamSpecValueArray {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecValueArray @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("element_spec", &self.element_spec)
            .field("fixed_n_elements", &self.fixed_n_elements)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GParamSpecVariant {
    pub parent_instance: GParamSpec,
    pub type_: *mut glib::GVariantType,
    pub default_value: *mut glib::GVariant,
    pub padding: [gpointer; 4],
}

impl ::std::fmt::Debug for GParamSpecVariant {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GParamSpecVariant @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("type_", &self.type_)
            .field("default_value", &self.default_value)
            .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GTypeModule {
    pub parent_instance: GObject,
    pub use_count: c_uint,
    pub type_infos: *mut glib::GSList,
    pub interface_infos: *mut glib::GSList,
    pub name: *mut c_char,
}

impl ::std::fmt::Debug for GTypeModule {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GTypeModule @ {:?}", self as *const _))
            .field("parent_instance", &self.parent_instance)
            .field("use_count", &self.use_count)
            .field("type_infos", &self.type_infos)
            .field("interface_infos", &self.interface_infos)
            .field("name", &self.name)
            .finish()
    }
}

// Interfaces
#[repr(C)]
pub struct GTypePlugin(c_void);

impl ::std::fmt::Debug for GTypePlugin {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        write!(f, "GTypePlugin @ {:?}", self as *const _)
    }
}

extern "C" {

    //=========================================================================
    // GBindingFlags
    //=========================================================================
    pub fn g_binding_flags_get_type() -> GType;

    //=========================================================================
    // GCClosure
    //=========================================================================
    pub fn g_cclosure_marshal_BOOLEAN__BOXED_BOXED(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_BOOLEAN__FLAGS(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_BOOLEAN__FLAGSv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_STRING__OBJECT_POINTER(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_STRING__OBJECT_POINTERv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__BOOLEAN(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__BOOLEANv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__BOXED(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__BOXEDv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__CHAR(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__CHARv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__DOUBLE(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__DOUBLEv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__ENUM(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__ENUMv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__FLAGS(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__FLAGSv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__FLOAT(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__FLOATv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__INT(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__INTv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__LONG(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__LONGv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__OBJECT(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__OBJECTv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__PARAM(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__PARAMv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__POINTER(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__POINTERv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__STRING(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__STRINGv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__UCHAR(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__UCHARv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__UINT(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    pub fn g_cclosure_marshal_VOID__UINT_POINTER(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__UINT_POINTERv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    //pub fn g_cclosure_marshal_VOID__UINTv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__ULONG(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__ULONGv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__VARIANT(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__VARIANTv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_VOID__VOID(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_VOID__VOIDv(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_marshal_generic(
        closure: *mut GClosure,
        return_gvalue: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn g_cclosure_marshal_generic_va(closure: *mut GClosure, return_value: *mut GValue, instance: gpointer, args_list: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn g_cclosure_new(
        callback_func: GCallback,
        user_data: gpointer,
        destroy_data: GClosureNotify,
    ) -> *mut GClosure;
    pub fn g_cclosure_new_object(callback_func: GCallback, object: *mut GObject) -> *mut GClosure;
    pub fn g_cclosure_new_object_swap(
        callback_func: GCallback,
        object: *mut GObject,
    ) -> *mut GClosure;
    pub fn g_cclosure_new_swap(
        callback_func: GCallback,
        user_data: gpointer,
        destroy_data: GClosureNotify,
    ) -> *mut GClosure;

    //=========================================================================
    // GClosure
    //=========================================================================
    pub fn g_closure_get_type() -> GType;
    pub fn g_closure_new_object(sizeof_closure: c_uint, object: *mut GObject) -> *mut GClosure;
    pub fn g_closure_new_simple(sizeof_closure: c_uint, data: gpointer) -> *mut GClosure;
    pub fn g_closure_add_finalize_notifier(
        closure: *mut GClosure,
        notify_data: gpointer,
        notify_func: GClosureNotify,
    );
    pub fn g_closure_add_invalidate_notifier(
        closure: *mut GClosure,
        notify_data: gpointer,
        notify_func: GClosureNotify,
    );
    pub fn g_closure_add_marshal_guards(
        closure: *mut GClosure,
        pre_marshal_data: gpointer,
        pre_marshal_notify: GClosureNotify,
        post_marshal_data: gpointer,
        post_marshal_notify: GClosureNotify,
    );
    pub fn g_closure_invalidate(closure: *mut GClosure);
    pub fn g_closure_invoke(
        closure: *mut GClosure,
        return_value: *mut GValue,
        n_param_values: c_uint,
        param_values: *const GValue,
        invocation_hint: gpointer,
    );
    pub fn g_closure_ref(closure: *mut GClosure) -> *mut GClosure;
    pub fn g_closure_remove_finalize_notifier(
        closure: *mut GClosure,
        notify_data: gpointer,
        notify_func: GClosureNotify,
    );
    pub fn g_closure_remove_invalidate_notifier(
        closure: *mut GClosure,
        notify_data: gpointer,
        notify_func: GClosureNotify,
    );
    pub fn g_closure_set_marshal(closure: *mut GClosure, marshal: GClosureMarshal);
    pub fn g_closure_set_meta_marshal(
        closure: *mut GClosure,
        marshal_data: gpointer,
        meta_marshal: GClosureMarshal,
    );
    pub fn g_closure_sink(closure: *mut GClosure);
    pub fn g_closure_unref(closure: *mut GClosure);

    //=========================================================================
    // GObjectClass
    //=========================================================================
    pub fn g_object_class_find_property(
        oclass: *mut GObjectClass,
        property_name: *const c_char,
    ) -> *mut GParamSpec;
    pub fn g_object_class_install_properties(
        oclass: *mut GObjectClass,
        n_pspecs: c_uint,
        pspecs: *mut *mut GParamSpec,
    );
    pub fn g_object_class_install_property(
        oclass: *mut GObjectClass,
        property_id: c_uint,
        pspec: *mut GParamSpec,
    );
    pub fn g_object_class_list_properties(
        oclass: *mut GObjectClass,
        n_properties: *mut c_uint,
    ) -> *mut *mut GParamSpec;
    pub fn g_object_class_override_property(
        oclass: *mut GObjectClass,
        property_id: c_uint,
        name: *const c_char,
    );

    //=========================================================================
    // GParamSpecPool
    //=========================================================================
    pub fn g_param_spec_pool_insert(
        pool: *mut GParamSpecPool,
        pspec: *mut GParamSpec,
        owner_type: GType,
    );
    pub fn g_param_spec_pool_list(
        pool: *mut GParamSpecPool,
        owner_type: GType,
        n_pspecs_p: *mut c_uint,
    ) -> *mut *mut GParamSpec;
    pub fn g_param_spec_pool_list_owned(
        pool: *mut GParamSpecPool,
        owner_type: GType,
    ) -> *mut glib::GList;
    pub fn g_param_spec_pool_lookup(
        pool: *mut GParamSpecPool,
        param_name: *const c_char,
        owner_type: GType,
        walk_ancestors: gboolean,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_pool_remove(pool: *mut GParamSpecPool, pspec: *mut GParamSpec);
    pub fn g_param_spec_pool_new(type_prefixing: gboolean) -> *mut GParamSpecPool;

    //=========================================================================
    // GTypeClass
    //=========================================================================
    pub fn g_type_class_add_private(g_class: gpointer, private_size: size_t);
    pub fn g_type_class_get_instance_private_offset(g_class: gpointer) -> c_int;
    pub fn g_type_class_get_private(klass: *mut GTypeClass, private_type: GType) -> gpointer;
    pub fn g_type_class_peek_parent(g_class: gpointer) -> gpointer;
    pub fn g_type_class_unref(g_class: gpointer);
    pub fn g_type_class_unref_uncached(g_class: gpointer);
    pub fn g_type_class_adjust_private_offset(
        g_class: gpointer,
        private_size_or_offset: *mut c_int,
    );
    pub fn g_type_class_peek(type_: GType) -> gpointer;
    pub fn g_type_class_peek_static(type_: GType) -> gpointer;
    pub fn g_type_class_ref(type_: GType) -> gpointer;

    //=========================================================================
    // GTypeInstance
    //=========================================================================
    pub fn g_type_instance_get_private(
        instance: *mut GTypeInstance,
        private_type: GType,
    ) -> gpointer;

    //=========================================================================
    // GTypeInterface
    //=========================================================================
    pub fn g_type_interface_peek_parent(g_iface: gpointer) -> gpointer;
    pub fn g_type_interface_add_prerequisite(interface_type: GType, prerequisite_type: GType);
    pub fn g_type_interface_get_plugin(
        instance_type: GType,
        interface_type: GType,
    ) -> *mut GTypePlugin;
    pub fn g_type_interface_peek(instance_class: gpointer, iface_type: GType) -> gpointer;
    pub fn g_type_interface_prerequisites(
        interface_type: GType,
        n_prerequisites: *mut c_uint,
    ) -> *mut GType;

    //=========================================================================
    // GTypeValueTable
    //=========================================================================
    pub fn g_type_value_table_peek(type_: GType) -> *mut GTypeValueTable;

    //=========================================================================
    // GValue
    //=========================================================================
    pub fn g_value_get_type() -> GType;
    pub fn g_value_copy(src_value: *const GValue, dest_value: *mut GValue);
    pub fn g_value_dup_boxed(value: *const GValue) -> gpointer;
    pub fn g_value_dup_object(value: *const GValue) -> *mut GObject;
    pub fn g_value_dup_param(value: *const GValue) -> *mut GParamSpec;
    pub fn g_value_dup_string(value: *const GValue) -> *mut c_char;
    pub fn g_value_dup_variant(value: *const GValue) -> *mut glib::GVariant;
    pub fn g_value_fits_pointer(value: *const GValue) -> gboolean;
    pub fn g_value_get_boolean(value: *const GValue) -> gboolean;
    pub fn g_value_get_boxed(value: *const GValue) -> gpointer;
    pub fn g_value_get_char(value: *const GValue) -> c_char;
    pub fn g_value_get_double(value: *const GValue) -> c_double;
    pub fn g_value_get_enum(value: *const GValue) -> c_int;
    pub fn g_value_get_flags(value: *const GValue) -> c_uint;
    pub fn g_value_get_float(value: *const GValue) -> c_float;
    pub fn g_value_get_gtype(value: *const GValue) -> GType;
    pub fn g_value_get_int(value: *const GValue) -> c_int;
    pub fn g_value_get_int64(value: *const GValue) -> i64;
    pub fn g_value_get_long(value: *const GValue) -> c_long;
    pub fn g_value_get_object(value: *const GValue) -> *mut GObject;
    pub fn g_value_get_param(value: *const GValue) -> *mut GParamSpec;
    pub fn g_value_get_pointer(value: *const GValue) -> gpointer;
    pub fn g_value_get_schar(value: *const GValue) -> i8;
    pub fn g_value_get_string(value: *const GValue) -> *const c_char;
    pub fn g_value_get_uchar(value: *const GValue) -> c_uchar;
    pub fn g_value_get_uint(value: *const GValue) -> c_uint;
    pub fn g_value_get_uint64(value: *const GValue) -> u64;
    pub fn g_value_get_ulong(value: *const GValue) -> c_ulong;
    pub fn g_value_get_variant(value: *const GValue) -> *mut glib::GVariant;
    pub fn g_value_init(value: *mut GValue, g_type: GType) -> *mut GValue;
    pub fn g_value_init_from_instance(value: *mut GValue, instance: gpointer);
    pub fn g_value_peek_pointer(value: *const GValue) -> gpointer;
    pub fn g_value_reset(value: *mut GValue) -> *mut GValue;
    pub fn g_value_set_boolean(value: *mut GValue, v_boolean: gboolean);
    pub fn g_value_set_boxed(value: *mut GValue, v_boxed: gconstpointer);
    pub fn g_value_set_boxed_take_ownership(value: *mut GValue, v_boxed: gconstpointer);
    pub fn g_value_set_char(value: *mut GValue, v_char: c_char);
    pub fn g_value_set_double(value: *mut GValue, v_double: c_double);
    pub fn g_value_set_enum(value: *mut GValue, v_enum: c_int);
    pub fn g_value_set_flags(value: *mut GValue, v_flags: c_uint);
    pub fn g_value_set_float(value: *mut GValue, v_float: c_float);
    pub fn g_value_set_gtype(value: *mut GValue, v_gtype: GType);
    pub fn g_value_set_instance(value: *mut GValue, instance: gpointer);
    pub fn g_value_set_int(value: *mut GValue, v_int: c_int);
    pub fn g_value_set_int64(value: *mut GValue, v_int64: i64);
    pub fn g_value_set_long(value: *mut GValue, v_long: c_long);
    pub fn g_value_set_object(value: *mut GValue, v_object: *mut GObject);
    pub fn g_value_set_object_take_ownership(value: *mut GValue, v_object: gpointer);
    pub fn g_value_set_param(value: *mut GValue, param: *mut GParamSpec);
    pub fn g_value_set_param_take_ownership(value: *mut GValue, param: *mut GParamSpec);
    pub fn g_value_set_pointer(value: *mut GValue, v_pointer: gpointer);
    pub fn g_value_set_schar(value: *mut GValue, v_char: i8);
    pub fn g_value_set_static_boxed(value: *mut GValue, v_boxed: gconstpointer);
    pub fn g_value_set_static_string(value: *mut GValue, v_string: *const c_char);
    pub fn g_value_set_string(value: *mut GValue, v_string: *const c_char);
    pub fn g_value_set_string_take_ownership(value: *mut GValue, v_string: *mut c_char);
    pub fn g_value_set_uchar(value: *mut GValue, v_uchar: c_uchar);
    pub fn g_value_set_uint(value: *mut GValue, v_uint: c_uint);
    pub fn g_value_set_uint64(value: *mut GValue, v_uint64: u64);
    pub fn g_value_set_ulong(value: *mut GValue, v_ulong: c_ulong);
    pub fn g_value_set_variant(value: *mut GValue, variant: *mut glib::GVariant);
    pub fn g_value_take_boxed(value: *mut GValue, v_boxed: gconstpointer);
    pub fn g_value_take_object(value: *mut GValue, v_object: gpointer);
    pub fn g_value_take_param(value: *mut GValue, param: *mut GParamSpec);
    pub fn g_value_take_string(value: *mut GValue, v_string: *mut c_char);
    pub fn g_value_take_variant(value: *mut GValue, variant: *mut glib::GVariant);
    pub fn g_value_transform(src_value: *const GValue, dest_value: *mut GValue) -> gboolean;
    pub fn g_value_unset(value: *mut GValue);
    pub fn g_value_register_transform_func(
        src_type: GType,
        dest_type: GType,
        transform_func: GValueTransform,
    );
    pub fn g_value_type_compatible(src_type: GType, dest_type: GType) -> gboolean;
    pub fn g_value_type_transformable(src_type: GType, dest_type: GType) -> gboolean;

    //=========================================================================
    // GValueArray
    //=========================================================================
    pub fn g_value_array_get_type() -> GType;
    pub fn g_value_array_new(n_prealloced: c_uint) -> *mut GValueArray;
    pub fn g_value_array_append(
        value_array: *mut GValueArray,
        value: *const GValue,
    ) -> *mut GValueArray;
    pub fn g_value_array_copy(value_array: *const GValueArray) -> *mut GValueArray;
    pub fn g_value_array_free(value_array: *mut GValueArray);
    pub fn g_value_array_get_nth(value_array: *mut GValueArray, index_: c_uint) -> *mut GValue;
    pub fn g_value_array_insert(
        value_array: *mut GValueArray,
        index_: c_uint,
        value: *const GValue,
    ) -> *mut GValueArray;
    pub fn g_value_array_prepend(
        value_array: *mut GValueArray,
        value: *const GValue,
    ) -> *mut GValueArray;
    pub fn g_value_array_remove(value_array: *mut GValueArray, index_: c_uint) -> *mut GValueArray;
    pub fn g_value_array_sort(
        value_array: *mut GValueArray,
        compare_func: glib::GCompareFunc,
    ) -> *mut GValueArray;
    pub fn g_value_array_sort_with_data(
        value_array: *mut GValueArray,
        compare_func: glib::GCompareDataFunc,
        user_data: gpointer,
    ) -> *mut GValueArray;

    //=========================================================================
    // GWeakRef
    //=========================================================================
    pub fn g_weak_ref_clear(weak_ref: *mut GWeakRef);
    pub fn g_weak_ref_get(weak_ref: *mut GWeakRef) -> *mut GObject;
    pub fn g_weak_ref_init(weak_ref: *mut GWeakRef, object: *mut GObject);
    pub fn g_weak_ref_set(weak_ref: *mut GWeakRef, object: *mut GObject);

    //=========================================================================
    // GBinding
    //=========================================================================
    pub fn g_binding_get_type() -> GType;
    pub fn g_binding_get_flags(binding: *mut GBinding) -> GBindingFlags;
    pub fn g_binding_get_source(binding: *mut GBinding) -> *mut GObject;
    pub fn g_binding_get_source_property(binding: *mut GBinding) -> *const c_char;
    pub fn g_binding_get_target(binding: *mut GBinding) -> *mut GObject;
    pub fn g_binding_get_target_property(binding: *mut GBinding) -> *const c_char;
    pub fn g_binding_unbind(binding: *mut GBinding);

    //=========================================================================
    // GInitiallyUnowned
    //=========================================================================
    pub fn g_initially_unowned_get_type() -> GType;

    //=========================================================================
    // GObject
    //=========================================================================
    pub fn g_object_get_type() -> GType;
    pub fn g_object_new(
        object_type: GType,
        first_property_name: *const c_char,
        ...
    ) -> *mut GObject;
    //pub fn g_object_new_valist(object_type: GType, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list) -> *mut GObject;
    #[cfg(any(feature = "v2_54", feature = "dox"))]
    pub fn g_object_new_with_properties(
        object_type: GType,
        n_properties: c_uint,
        names: *mut *const c_char,
        values: *const GValue,
    ) -> *mut GObject;
    pub fn g_object_newv(
        object_type: GType,
        n_parameters: c_uint,
        parameters: *mut GParameter,
    ) -> *mut GObject;
    pub fn g_object_compat_control(what: size_t, data: gpointer) -> size_t;
    pub fn g_object_interface_find_property(
        g_iface: gpointer,
        property_name: *const c_char,
    ) -> *mut GParamSpec;
    pub fn g_object_interface_install_property(g_iface: gpointer, pspec: *mut GParamSpec);
    pub fn g_object_interface_list_properties(
        g_iface: gpointer,
        n_properties_p: *mut c_uint,
    ) -> *mut *mut GParamSpec;
    pub fn g_object_add_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
    pub fn g_object_add_weak_pointer(object: *mut GObject, weak_pointer_location: *mut gpointer);
    pub fn g_object_bind_property(
        source: *mut GObject,
        source_property: *const c_char,
        target: *mut GObject,
        target_property: *const c_char,
        flags: GBindingFlags,
    ) -> *mut GBinding;
    pub fn g_object_bind_property_full(
        source: *mut GObject,
        source_property: *const c_char,
        target: *mut GObject,
        target_property: *const c_char,
        flags: GBindingFlags,
        transform_to: GBindingTransformFunc,
        transform_from: GBindingTransformFunc,
        user_data: gpointer,
        notify: glib::GDestroyNotify,
    ) -> *mut GBinding;
    pub fn g_object_bind_property_with_closures(
        source: *mut GObject,
        source_property: *const c_char,
        target: *mut GObject,
        target_property: *const c_char,
        flags: GBindingFlags,
        transform_to: *mut GClosure,
        transform_from: *mut GClosure,
    ) -> *mut GBinding;
    pub fn g_object_connect(object: *mut GObject, signal_spec: *const c_char, ...) -> *mut GObject;
    pub fn g_object_disconnect(object: *mut GObject, signal_spec: *const c_char, ...);
    pub fn g_object_dup_data(
        object: *mut GObject,
        key: *const c_char,
        dup_func: glib::GDuplicateFunc,
        user_data: gpointer,
    ) -> gpointer;
    pub fn g_object_dup_qdata(
        object: *mut GObject,
        quark: glib::GQuark,
        dup_func: glib::GDuplicateFunc,
        user_data: gpointer,
    ) -> gpointer;
    pub fn g_object_force_floating(object: *mut GObject);
    pub fn g_object_freeze_notify(object: *mut GObject);
    pub fn g_object_get(object: *mut GObject, first_property_name: *const c_char, ...);
    pub fn g_object_get_data(object: *mut GObject, key: *const c_char) -> gpointer;
    pub fn g_object_get_property(
        object: *mut GObject,
        property_name: *const c_char,
        value: *mut GValue,
    );
    pub fn g_object_get_qdata(object: *mut GObject, quark: glib::GQuark) -> gpointer;
    //pub fn g_object_get_valist(object: *mut GObject, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list);
    #[cfg(any(feature = "v2_54", feature = "dox"))]
    pub fn g_object_getv(
        object: *mut GObject,
        n_properties: c_uint,
        names: *mut *const c_char,
        values: *mut GValue,
    );
    pub fn g_object_is_floating(object: *mut GObject) -> gboolean;
    pub fn g_object_notify(object: *mut GObject, property_name: *const c_char);
    pub fn g_object_notify_by_pspec(object: *mut GObject, pspec: *mut GParamSpec);
    pub fn g_object_ref(object: *mut GObject) -> *mut GObject;
    pub fn g_object_ref_sink(object: *mut GObject) -> *mut GObject;
    pub fn g_object_remove_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
    pub fn g_object_remove_weak_pointer(object: *mut GObject, weak_pointer_location: *mut gpointer);
    pub fn g_object_replace_data(
        object: *mut GObject,
        key: *const c_char,
        oldval: gpointer,
        newval: gpointer,
        destroy: glib::GDestroyNotify,
        old_destroy: *mut glib::GDestroyNotify,
    ) -> gboolean;
    pub fn g_object_replace_qdata(
        object: *mut GObject,
        quark: glib::GQuark,
        oldval: gpointer,
        newval: gpointer,
        destroy: glib::GDestroyNotify,
        old_destroy: *mut glib::GDestroyNotify,
    ) -> gboolean;
    pub fn g_object_run_dispose(object: *mut GObject);
    pub fn g_object_set(object: *mut GObject, first_property_name: *const c_char, ...);
    pub fn g_object_set_data(object: *mut GObject, key: *const c_char, data: gpointer);
    pub fn g_object_set_data_full(
        object: *mut GObject,
        key: *const c_char,
        data: gpointer,
        destroy: glib::GDestroyNotify,
    );
    pub fn g_object_set_property(
        object: *mut GObject,
        property_name: *const c_char,
        value: *const GValue,
    );
    pub fn g_object_set_qdata(object: *mut GObject, quark: glib::GQuark, data: gpointer);
    pub fn g_object_set_qdata_full(
        object: *mut GObject,
        quark: glib::GQuark,
        data: gpointer,
        destroy: glib::GDestroyNotify,
    );
    //pub fn g_object_set_valist(object: *mut GObject, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list);
    #[cfg(any(feature = "v2_54", feature = "dox"))]
    pub fn g_object_setv(
        object: *mut GObject,
        n_properties: c_uint,
        names: *mut *const c_char,
        values: *const GValue,
    );
    pub fn g_object_steal_data(object: *mut GObject, key: *const c_char) -> gpointer;
    pub fn g_object_steal_qdata(object: *mut GObject, quark: glib::GQuark) -> gpointer;
    pub fn g_object_thaw_notify(object: *mut GObject);
    pub fn g_object_unref(object: *mut GObject);
    pub fn g_object_watch_closure(object: *mut GObject, closure: *mut GClosure);
    pub fn g_object_weak_ref(object: *mut GObject, notify: GWeakNotify, data: gpointer);
    pub fn g_object_weak_unref(object: *mut GObject, notify: GWeakNotify, data: gpointer);

    //=========================================================================
    // GParamSpec
    //=========================================================================
    pub fn g_param_spec_internal(
        param_type: GType,
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_get_blurb(pspec: *mut GParamSpec) -> *const c_char;
    pub fn g_param_spec_get_default_value(pspec: *mut GParamSpec) -> *const GValue;
    pub fn g_param_spec_get_name(pspec: *mut GParamSpec) -> *const c_char;
    #[cfg(any(feature = "v2_46", feature = "dox"))]
    pub fn g_param_spec_get_name_quark(pspec: *mut GParamSpec) -> glib::GQuark;
    pub fn g_param_spec_get_nick(pspec: *mut GParamSpec) -> *const c_char;
    pub fn g_param_spec_get_qdata(pspec: *mut GParamSpec, quark: glib::GQuark) -> gpointer;
    pub fn g_param_spec_get_redirect_target(pspec: *mut GParamSpec) -> *mut GParamSpec;
    pub fn g_param_spec_ref(pspec: *mut GParamSpec) -> *mut GParamSpec;
    pub fn g_param_spec_ref_sink(pspec: *mut GParamSpec) -> *mut GParamSpec;
    pub fn g_param_spec_set_qdata(pspec: *mut GParamSpec, quark: glib::GQuark, data: gpointer);
    pub fn g_param_spec_set_qdata_full(
        pspec: *mut GParamSpec,
        quark: glib::GQuark,
        data: gpointer,
        destroy: glib::GDestroyNotify,
    );
    pub fn g_param_spec_sink(pspec: *mut GParamSpec);
    pub fn g_param_spec_steal_qdata(pspec: *mut GParamSpec, quark: glib::GQuark) -> gpointer;
    pub fn g_param_spec_unref(pspec: *mut GParamSpec);

    //=========================================================================
    // GTypeModule
    //=========================================================================
    pub fn g_type_module_get_type() -> GType;
    pub fn g_type_module_add_interface(
        module: *mut GTypeModule,
        instance_type: GType,
        interface_type: GType,
        interface_info: *const GInterfaceInfo,
    );
    pub fn g_type_module_register_enum(
        module: *mut GTypeModule,
        name: *const c_char,
        const_static_values: *const GEnumValue,
    ) -> GType;
    pub fn g_type_module_register_flags(
        module: *mut GTypeModule,
        name: *const c_char,
        const_static_values: *const GFlagsValue,
    ) -> GType;
    pub fn g_type_module_register_type(
        module: *mut GTypeModule,
        parent_type: GType,
        type_name: *const c_char,
        type_info: *const GTypeInfo,
        flags: GTypeFlags,
    ) -> GType;
    pub fn g_type_module_set_name(module: *mut GTypeModule, name: *const c_char);
    pub fn g_type_module_unuse(module: *mut GTypeModule);
    pub fn g_type_module_use(module: *mut GTypeModule) -> gboolean;

    //=========================================================================
    // GTypePlugin
    //=========================================================================
    pub fn g_type_plugin_get_type() -> GType;
    pub fn g_type_plugin_complete_interface_info(
        plugin: *mut GTypePlugin,
        instance_type: GType,
        interface_type: GType,
        info: *mut GInterfaceInfo,
    );
    pub fn g_type_plugin_complete_type_info(
        plugin: *mut GTypePlugin,
        g_type: GType,
        info: *mut GTypeInfo,
        value_table: *mut GTypeValueTable,
    );
    pub fn g_type_plugin_unuse(plugin: *mut GTypePlugin);
    pub fn g_type_plugin_use(plugin: *mut GTypePlugin);

    //=========================================================================
    // Other functions
    //=========================================================================
    pub fn g_boxed_copy(boxed_type: GType, src_boxed: gconstpointer) -> gpointer;
    pub fn g_boxed_free(boxed_type: GType, boxed: gpointer);
    pub fn g_boxed_type_register_static(
        name: *const c_char,
        boxed_copy: GBoxedCopyFunc,
        boxed_free: GBoxedFreeFunc,
    ) -> GType;
    pub fn g_clear_object(object_ptr: *mut *mut GObject);
    #[cfg(any(feature = "v2_62", feature = "dox"))]
    pub fn g_clear_signal_handler(handler_id_ptr: *mut c_ulong, instance: *mut GObject);
    pub fn g_enum_complete_type_info(
        g_enum_type: GType,
        info: *mut GTypeInfo,
        const_values: *const GEnumValue,
    );
    pub fn g_enum_get_value(enum_class: *mut GEnumClass, value: c_int) -> *mut GEnumValue;
    pub fn g_enum_get_value_by_name(
        enum_class: *mut GEnumClass,
        name: *const c_char,
    ) -> *mut GEnumValue;
    pub fn g_enum_get_value_by_nick(
        enum_class: *mut GEnumClass,
        nick: *const c_char,
    ) -> *mut GEnumValue;
    pub fn g_enum_register_static(
        name: *const c_char,
        const_static_values: *const GEnumValue,
    ) -> GType;
    #[cfg(any(feature = "v2_54", feature = "dox"))]
    pub fn g_enum_to_string(g_enum_type: GType, value: c_int) -> *mut c_char;
    pub fn g_flags_complete_type_info(
        g_flags_type: GType,
        info: *mut GTypeInfo,
        const_values: *const GFlagsValue,
    );
    pub fn g_flags_get_first_value(
        flags_class: *mut GFlagsClass,
        value: c_uint,
    ) -> *mut GFlagsValue;
    pub fn g_flags_get_value_by_name(
        flags_class: *mut GFlagsClass,
        name: *const c_char,
    ) -> *mut GFlagsValue;
    pub fn g_flags_get_value_by_nick(
        flags_class: *mut GFlagsClass,
        nick: *const c_char,
    ) -> *mut GFlagsValue;
    pub fn g_flags_register_static(
        name: *const c_char,
        const_static_values: *const GFlagsValue,
    ) -> GType;
    #[cfg(any(feature = "v2_54", feature = "dox"))]
    pub fn g_flags_to_string(flags_type: GType, value: c_uint) -> *mut c_char;
    pub fn g_gtype_get_type() -> GType;
    pub fn g_param_spec_boolean(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        default_value: gboolean,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_boxed(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        boxed_type: GType,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_char(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: i8,
        maximum: i8,
        default_value: i8,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_double(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_double,
        maximum: c_double,
        default_value: c_double,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_enum(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        enum_type: GType,
        default_value: c_int,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_flags(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        flags_type: GType,
        default_value: c_uint,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_float(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_float,
        maximum: c_float,
        default_value: c_float,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_gtype(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        is_a_type: GType,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_int(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_int,
        maximum: c_int,
        default_value: c_int,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_int64(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: i64,
        maximum: i64,
        default_value: i64,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_long(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_long,
        maximum: c_long,
        default_value: c_long,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_object(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        object_type: GType,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_override(
        name: *const c_char,
        overridden: *mut GParamSpec,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_param(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        param_type: GType,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_pointer(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_string(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        default_value: *const c_char,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_uchar(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: u8,
        maximum: u8,
        default_value: u8,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_uint(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_uint,
        maximum: c_uint,
        default_value: c_uint,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_uint64(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: u64,
        maximum: u64,
        default_value: u64,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_ulong(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        minimum: c_ulong,
        maximum: c_ulong,
        default_value: c_ulong,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_unichar(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        default_value: u32,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_value_array(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        element_spec: *mut GParamSpec,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_spec_variant(
        name: *const c_char,
        nick: *const c_char,
        blurb: *const c_char,
        type_: *const glib::GVariantType,
        default_value: *mut glib::GVariant,
        flags: GParamFlags,
    ) -> *mut GParamSpec;
    pub fn g_param_type_register_static(
        name: *const c_char,
        pspec_info: *const GParamSpecTypeInfo,
    ) -> GType;
    pub fn g_param_value_convert(
        pspec: *mut GParamSpec,
        src_value: *const GValue,
        dest_value: *mut GValue,
        strict_validation: gboolean,
    ) -> gboolean;
    pub fn g_param_value_defaults(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean;
    pub fn g_param_value_set_default(pspec: *mut GParamSpec, value: *mut GValue);
    pub fn g_param_value_validate(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean;
    pub fn g_param_values_cmp(
        pspec: *mut GParamSpec,
        value1: *const GValue,
        value2: *const GValue,
    ) -> c_int;
    pub fn g_pointer_type_register_static(name: *const c_char) -> GType;
    pub fn g_signal_accumulator_first_wins(
        ihint: *mut GSignalInvocationHint,
        return_accu: *mut GValue,
        handler_return: *const GValue,
        dummy: gpointer,
    ) -> gboolean;
    pub fn g_signal_accumulator_true_handled(
        ihint: *mut GSignalInvocationHint,
        return_accu: *mut GValue,
        handler_return: *const GValue,
        dummy: gpointer,
    ) -> gboolean;
    pub fn g_signal_add_emission_hook(
        signal_id: c_uint,
        detail: glib::GQuark,
        hook_func: GSignalEmissionHook,
        hook_data: gpointer,
        data_destroy: glib::GDestroyNotify,
    ) -> c_ulong;
    pub fn g_signal_chain_from_overridden(
        instance_and_params: *const GValue,
        return_value: *mut GValue,
    );
    pub fn g_signal_chain_from_overridden_handler(instance: gpointer, ...);
    pub fn g_signal_connect_closure(
        instance: *mut GObject,
        detailed_signal: *const c_char,
        closure: *mut GClosure,
        after: gboolean,
    ) -> c_ulong;
    pub fn g_signal_connect_closure_by_id(
        instance: *mut GObject,
        signal_id: c_uint,
        detail: glib::GQuark,
        closure: *mut GClosure,
        after: gboolean,
    ) -> c_ulong;
    pub fn g_signal_connect_data(
        instance: *mut GObject,
        detailed_signal: *const c_char,
        c_handler: GCallback,
        data: gpointer,
        destroy_data: GClosureNotify,
        connect_flags: GConnectFlags,
    ) -> c_ulong;
    pub fn g_signal_connect_object(
        instance: gpointer,
        detailed_signal: *const c_char,
        c_handler: GCallback,
        gobject: *mut GObject,
        connect_flags: GConnectFlags,
    ) -> c_ulong;
    pub fn g_signal_emit(instance: *mut GObject, signal_id: c_uint, detail: glib::GQuark, ...);
    pub fn g_signal_emit_by_name(instance: *mut GObject, detailed_signal: *const c_char, ...);
    //pub fn g_signal_emit_valist(instance: gpointer, signal_id: c_uint, detail: glib::GQuark, var_args: /*Unimplemented*/va_list);
    pub fn g_signal_emitv(
        instance_and_params: *const GValue,
        signal_id: c_uint,
        detail: glib::GQuark,
        return_value: *mut GValue,
    );
    pub fn g_signal_get_invocation_hint(instance: *mut GObject) -> *mut GSignalInvocationHint;
    pub fn g_signal_handler_block(instance: *mut GObject, handler_id: c_ulong);
    pub fn g_signal_handler_disconnect(instance: *mut GObject, handler_id: c_ulong);
    pub fn g_signal_handler_find(
        instance: *mut GObject,
        mask: GSignalMatchType,
        signal_id: c_uint,
        detail: glib::GQuark,
        closure: *mut GClosure,
        func: gpointer,
        data: gpointer,
    ) -> c_ulong;
    pub fn g_signal_handler_is_connected(instance: *mut GObject, handler_id: c_ulong) -> gboolean;
    pub fn g_signal_handler_unblock(instance: *mut GObject, handler_id: c_ulong);
    pub fn g_signal_handlers_block_matched(
        instance: *mut GObject,
        mask: GSignalMatchType,
        signal_id: c_uint,
        detail: glib::GQuark,
        closure: *mut GClosure,
        func: gpointer,
        data: gpointer,
    ) -> c_uint;
    pub fn g_signal_handlers_destroy(instance: *mut GObject);
    pub fn g_signal_handlers_disconnect_matched(
        instance: *mut GObject,
        mask: GSignalMatchType,
        signal_id: c_uint,
        detail: glib::GQuark,
        closure: *mut GClosure,
        func: gpointer,
        data: gpointer,
    ) -> c_uint;
    pub fn g_signal_handlers_unblock_matched(
        instance: *mut GObject,
        mask: GSignalMatchType,
        signal_id: c_uint,
        detail: glib::GQuark,
        closure: *mut GClosure,
        func: gpointer,
        data: gpointer,
    ) -> c_uint;
    pub fn g_signal_has_handler_pending(
        instance: *mut GObject,
        signal_id: c_uint,
        detail: glib::GQuark,
        may_be_blocked: gboolean,
    ) -> gboolean;
    pub fn g_signal_list_ids(itype: GType, n_ids: *mut c_uint) -> *mut c_uint;
    pub fn g_signal_lookup(name: *const c_char, itype: GType) -> c_uint;
    pub fn g_signal_name(signal_id: c_uint) -> *const c_char;
    pub fn g_signal_new(
        signal_name: *const c_char,
        itype: GType,
        signal_flags: GSignalFlags,
        class_offset: c_uint,
        accumulator: GSignalAccumulator,
        accu_data: gpointer,
        c_marshaller: GSignalCMarshaller,
        return_type: GType,
        n_params: c_uint,
        ...
    ) -> c_uint;
    pub fn g_signal_new_class_handler(
        signal_name: *const c_char,
        itype: GType,
        signal_flags: GSignalFlags,
        class_handler: GCallback,
        accumulator: GSignalAccumulator,
        accu_data: gpointer,
        c_marshaller: GSignalCMarshaller,
        return_type: GType,
        n_params: c_uint,
        ...
    ) -> c_uint;
    //pub fn g_signal_new_valist(signal_name: *const c_char, itype: GType, signal_flags: GSignalFlags, class_closure: *mut GClosure, accumulator: GSignalAccumulator, accu_data: gpointer, c_marshaller: GSignalCMarshaller, return_type: GType, n_params: c_uint, args: /*Unimplemented*/va_list) -> c_uint;
    pub fn g_signal_newv(
        signal_name: *const c_char,
        itype: GType,
        signal_flags: GSignalFlags,
        class_closure: *mut GClosure,
        accumulator: GSignalAccumulator,
        accu_data: gpointer,
        c_marshaller: GSignalCMarshaller,
        return_type: GType,
        n_params: c_uint,
        param_types: *mut GType,
    ) -> c_uint;
    pub fn g_signal_override_class_closure(
        signal_id: c_uint,
        instance_type: GType,
        class_closure: *mut GClosure,
    );
    pub fn g_signal_override_class_handler(
        signal_name: *const c_char,
        instance_type: GType,
        class_handler: GCallback,
    );
    pub fn g_signal_parse_name(
        detailed_signal: *const c_char,
        itype: GType,
        signal_id_p: *mut c_uint,
        detail_p: *mut glib::GQuark,
        force_detail_quark: gboolean,
    ) -> gboolean;
    pub fn g_signal_query(signal_id: c_uint, query: *mut GSignalQuery);
    pub fn g_signal_remove_emission_hook(signal_id: c_uint, hook_id: c_ulong);
    //pub fn g_signal_set_va_marshaller(signal_id: c_uint, instance_type: GType, va_marshaller: /*Ignored*/GSignalCVaMarshaller);
    pub fn g_signal_stop_emission(instance: *mut GObject, signal_id: c_uint, detail: glib::GQuark);
    pub fn g_signal_stop_emission_by_name(instance: *mut GObject, detailed_signal: *const c_char);
    pub fn g_signal_type_cclosure_new(itype: GType, struct_offset: c_uint) -> *mut GClosure;
    pub fn g_source_set_closure(source: *mut glib::GSource, closure: *mut GClosure);
    pub fn g_source_set_dummy_callback(source: *mut glib::GSource);
    pub fn g_strdup_value_contents(value: *const GValue) -> *mut c_char;
    pub fn g_type_add_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
    pub fn g_type_add_class_private(class_type: GType, private_size: size_t);
    pub fn g_type_add_instance_private(class_type: GType, private_size: size_t) -> c_int;
    pub fn g_type_add_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
    pub fn g_type_add_interface_dynamic(
        instance_type: GType,
        interface_type: GType,
        plugin: *mut GTypePlugin,
    );
    pub fn g_type_add_interface_static(
        instance_type: GType,
        interface_type: GType,
        info: *const GInterfaceInfo,
    );
    pub fn g_type_check_class_cast(g_class: *mut GTypeClass, is_a_type: GType) -> *mut GTypeClass;
    pub fn g_type_check_class_is_a(g_class: *mut GTypeClass, is_a_type: GType) -> gboolean;
    pub fn g_type_check_instance(instance: *mut GTypeInstance) -> gboolean;
    pub fn g_type_check_instance_cast(
        instance: *mut GTypeInstance,
        iface_type: GType,
    ) -> *mut GTypeInstance;
    pub fn g_type_check_instance_is_a(instance: *mut GTypeInstance, iface_type: GType) -> gboolean;
    pub fn g_type_check_instance_is_fundamentally_a(
        instance: *mut GTypeInstance,
        fundamental_type: GType,
    ) -> gboolean;
    pub fn g_type_check_is_value_type(type_: GType) -> gboolean;
    pub fn g_type_check_value(value: *const GValue) -> gboolean;
    pub fn g_type_check_value_holds(value: *const GValue, type_: GType) -> gboolean;
    pub fn g_type_children(type_: GType, n_children: *mut c_uint) -> *mut GType;
    pub fn g_type_create_instance(type_: GType) -> *mut GTypeInstance;
    pub fn g_type_default_interface_peek(g_type: GType) -> gpointer;
    pub fn g_type_default_interface_ref(g_type: GType) -> gpointer;
    pub fn g_type_default_interface_unref(g_iface: gpointer);
    pub fn g_type_depth(type_: GType) -> c_uint;
    pub fn g_type_ensure(type_: GType);
    pub fn g_type_free_instance(instance: *mut GTypeInstance);
    pub fn g_type_from_name(name: *const c_char) -> GType;
    pub fn g_type_fundamental(type_id: GType) -> GType;
    pub fn g_type_fundamental_next() -> GType;
    #[cfg(any(feature = "v2_44", feature = "dox"))]
    pub fn g_type_get_instance_count(type_: GType) -> c_int;
    pub fn g_type_get_plugin(type_: GType) -> *mut GTypePlugin;
    pub fn g_type_get_qdata(type_: GType, quark: glib::GQuark) -> gpointer;
    pub fn g_type_get_type_registration_serial() -> c_uint;
    pub fn g_type_init();
    pub fn g_type_init_with_debug_flags(debug_flags: GTypeDebugFlags);
    pub fn g_type_interfaces(type_: GType, n_interfaces: *mut c_uint) -> *mut GType;
    pub fn g_type_is_a(type_: GType, is_a_type: GType) -> gboolean;
    pub fn g_type_name(type_: GType) -> *const c_char;
    pub fn g_type_name_from_class(g_class: *mut GTypeClass) -> *const c_char;
    pub fn g_type_name_from_instance(instance: *mut GTypeInstance) -> *const c_char;
    pub fn g_type_next_base(leaf_type: GType, root_type: GType) -> GType;
    pub fn g_type_parent(type_: GType) -> GType;
    pub fn g_type_qname(type_: GType) -> glib::GQuark;
    pub fn g_type_query(type_: GType, query: *mut GTypeQuery);
    pub fn g_type_register_dynamic(
        parent_type: GType,
        type_name: *const c_char,
        plugin: *mut GTypePlugin,
        flags: GTypeFlags,
    ) -> GType;
    pub fn g_type_register_fundamental(
        type_id: GType,
        type_name: *const c_char,
        info: *const GTypeInfo,
        finfo: *const GTypeFundamentalInfo,
        flags: GTypeFlags,
    ) -> GType;
    pub fn g_type_register_static(
        parent_type: GType,
        type_name: *const c_char,
        info: *const GTypeInfo,
        flags: GTypeFlags,
    ) -> GType;
    pub fn g_type_register_static_simple(
        parent_type: GType,
        type_name: *const c_char,
        class_size: c_uint,
        class_init: GClassInitFunc,
        instance_size: c_uint,
        instance_init: GInstanceInitFunc,
        flags: GTypeFlags,
    ) -> GType;
    pub fn g_type_remove_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
    pub fn g_type_remove_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
    pub fn g_type_set_qdata(type_: GType, quark: glib::GQuark, data: gpointer);
    pub fn g_type_test_flags(type_: GType, flags: c_uint) -> gboolean;

}