File: types.d

package info (click to toggle)
gtk-d 3.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,152 kB
  • sloc: javascript: 565; sh: 71; makefile: 25
file content (4209 lines) | stat: -rw-r--r-- 90,651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
/*
 * This file is part of gtkD.
 *
 * gtkD is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version, with
 * some exceptions, please read the COPYING file.
 *
 * gtkD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with gtkD; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
 */

// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage


module gdk.c.types;

public import cairo.c.types;
public import gdkpixbuf.c.types;
public import gio.c.types;
public import glib.c.types;
public import gobject.c.types;
public import pango.c.types;


/**
 * Used to represent native events (XEvents for the X11
 * backend, MSGs for Win32).
 */
public alias void GdkXEvent;

/**
 * Positioning hints for aligning a window relative to a rectangle.
 *
 * These hints determine how the window should be positioned in the case that
 * the window would fall off-screen if placed in its ideal position.
 *
 * For example, %GDK_ANCHOR_FLIP_X will replace %GDK_GRAVITY_NORTH_WEST with
 * %GDK_GRAVITY_NORTH_EAST and vice versa if the window extends beyond the left
 * or right edges of the monitor.
 *
 * If %GDK_ANCHOR_SLIDE_X is set, the window can be shifted horizontally to fit
 * on-screen. If %GDK_ANCHOR_RESIZE_X is set, the window can be shrunken
 * horizontally to fit.
 *
 * In general, when multiple flags are set, flipping should take precedence over
 * sliding, which should take precedence over resizing.
 *
 * Since: 3.22
 */
public enum GdkAnchorHints
{
	/**
	 * allow flipping anchors horizontally
	 */
	FLIP_X = 1,
	/**
	 * allow flipping anchors vertically
	 */
	FLIP_Y = 2,
	/**
	 * allow sliding window horizontally
	 */
	SLIDE_X = 4,
	/**
	 * allow sliding window vertically
	 */
	SLIDE_Y = 8,
	/**
	 * allow resizing window horizontally
	 */
	RESIZE_X = 16,
	/**
	 * allow resizing window vertically
	 */
	RESIZE_Y = 32,
	/**
	 * allow flipping anchors on both axes
	 */
	FLIP = 3,
	/**
	 * allow sliding window on both axes
	 */
	SLIDE = 12,
	/**
	 * allow resizing window on both axes
	 */
	RESIZE = 48,
}
alias GdkAnchorHints AnchorHints;

/**
 * Flags describing the current capabilities of a device/tool.
 *
 * Since: 3.22
 */
public enum GdkAxisFlags
{
	/**
	 * X axis is present
	 */
	X = 2,
	/**
	 * Y axis is present
	 */
	Y = 4,
	/**
	 * Pressure axis is present
	 */
	PRESSURE = 8,
	/**
	 * X tilt axis is present
	 */
	XTILT = 16,
	/**
	 * Y tilt axis is present
	 */
	YTILT = 32,
	/**
	 * Wheel axis is present
	 */
	WHEEL = 64,
	/**
	 * Distance axis is present
	 */
	DISTANCE = 128,
	/**
	 * Z-axis rotation is present
	 */
	ROTATION = 256,
	/**
	 * Slider axis is present
	 */
	SLIDER = 512,
}
alias GdkAxisFlags AxisFlags;

/**
 * An enumeration describing the way in which a device
 * axis (valuator) maps onto the predefined valuator
 * types that GTK+ understands.
 *
 * Note that the X and Y axes are not really needed; pointer devices
 * report their location via the x/y members of events regardless. Whether
 * X and Y are present as axes depends on the GDK backend.
 */
public enum GdkAxisUse
{
	/**
	 * the axis is ignored.
	 */
	IGNORE = 0,
	/**
	 * the axis is used as the x axis.
	 */
	X = 1,
	/**
	 * the axis is used as the y axis.
	 */
	Y = 2,
	/**
	 * the axis is used for pressure information.
	 */
	PRESSURE = 3,
	/**
	 * the axis is used for x tilt information.
	 */
	XTILT = 4,
	/**
	 * the axis is used for y tilt information.
	 */
	YTILT = 5,
	/**
	 * the axis is used for wheel information.
	 */
	WHEEL = 6,
	/**
	 * the axis is used for pen/tablet distance information. (Since: 3.22)
	 */
	DISTANCE = 7,
	/**
	 * the axis is used for pen rotation information. (Since: 3.22)
	 */
	ROTATION = 8,
	/**
	 * the axis is used for pen slider information. (Since: 3.22)
	 */
	SLIDER = 9,
	/**
	 * a constant equal to the numerically highest axis value.
	 */
	LAST = 10,
}
alias GdkAxisUse AxisUse;

/**
 * A set of values describing the possible byte-orders
 * for storing pixel values in memory.
 */
public enum GdkByteOrder
{
	/**
	 * The values are stored with the least-significant byte
	 * first. For instance, the 32-bit value 0xffeecc would be stored
	 * in memory as 0xcc, 0xee, 0xff, 0x00.
	 */
	LSB_FIRST = 0,
	/**
	 * The values are stored with the most-significant byte
	 * first. For instance, the 32-bit value 0xffeecc would be stored
	 * in memory as 0x00, 0xff, 0xee, 0xcc.
	 */
	MSB_FIRST = 1,
}
alias GdkByteOrder ByteOrder;

/**
 * Specifies the crossing mode for #GdkEventCrossing.
 */
public enum GdkCrossingMode
{
	/**
	 * crossing because of pointer motion.
	 */
	NORMAL = 0,
	/**
	 * crossing because a grab is activated.
	 */
	GRAB = 1,
	/**
	 * crossing because a grab is deactivated.
	 */
	UNGRAB = 2,
	/**
	 * crossing because a GTK+ grab is activated.
	 */
	GTK_GRAB = 3,
	/**
	 * crossing because a GTK+ grab is deactivated.
	 */
	GTK_UNGRAB = 4,
	/**
	 * crossing because a GTK+ widget changed
	 * state (e.g. sensitivity).
	 */
	STATE_CHANGED = 5,
	/**
	 * crossing because a touch sequence has begun,
	 * this event is synthetic as the pointer might have not left the window.
	 */
	TOUCH_BEGIN = 6,
	/**
	 * crossing because a touch sequence has ended,
	 * this event is synthetic as the pointer might have not left the window.
	 */
	TOUCH_END = 7,
	/**
	 * crossing because of a device switch (i.e.
	 * a mouse taking control of the pointer after a touch device), this event
	 * is synthetic as the pointer didn’t leave the window.
	 */
	DEVICE_SWITCH = 8,
}
alias GdkCrossingMode CrossingMode;

/**
 * Predefined cursors.
 *
 * Note that these IDs are directly taken from the X cursor font, and many
 * of these cursors are either not useful, or are not available on other platforms.
 *
 * The recommended way to create cursors is to use gdk_cursor_new_from_name().
 */
public enum GdkCursorType
{
	/**
	 * ![](X_cursor.png)
	 */
	X_CURSOR = 0,
	/**
	 * ![](arrow.png)
	 */
	ARROW = 2,
	/**
	 * ![](based_arrow_down.png)
	 */
	BASED_ARROW_DOWN = 4,
	/**
	 * ![](based_arrow_up.png)
	 */
	BASED_ARROW_UP = 6,
	/**
	 * ![](boat.png)
	 */
	BOAT = 8,
	/**
	 * ![](bogosity.png)
	 */
	BOGOSITY = 10,
	/**
	 * ![](bottom_left_corner.png)
	 */
	BOTTOM_LEFT_CORNER = 12,
	/**
	 * ![](bottom_right_corner.png)
	 */
	BOTTOM_RIGHT_CORNER = 14,
	/**
	 * ![](bottom_side.png)
	 */
	BOTTOM_SIDE = 16,
	/**
	 * ![](bottom_tee.png)
	 */
	BOTTOM_TEE = 18,
	/**
	 * ![](box_spiral.png)
	 */
	BOX_SPIRAL = 20,
	/**
	 * ![](center_ptr.png)
	 */
	CENTER_PTR = 22,
	/**
	 * ![](circle.png)
	 */
	CIRCLE = 24,
	/**
	 * ![](clock.png)
	 */
	CLOCK = 26,
	/**
	 * ![](coffee_mug.png)
	 */
	COFFEE_MUG = 28,
	/**
	 * ![](cross.png)
	 */
	CROSS = 30,
	/**
	 * ![](cross_reverse.png)
	 */
	CROSS_REVERSE = 32,
	/**
	 * ![](crosshair.png)
	 */
	CROSSHAIR = 34,
	/**
	 * ![](diamond_cross.png)
	 */
	DIAMOND_CROSS = 36,
	/**
	 * ![](dot.png)
	 */
	DOT = 38,
	/**
	 * ![](dotbox.png)
	 */
	DOTBOX = 40,
	/**
	 * ![](double_arrow.png)
	 */
	DOUBLE_ARROW = 42,
	/**
	 * ![](draft_large.png)
	 */
	DRAFT_LARGE = 44,
	/**
	 * ![](draft_small.png)
	 */
	DRAFT_SMALL = 46,
	/**
	 * ![](draped_box.png)
	 */
	DRAPED_BOX = 48,
	/**
	 * ![](exchange.png)
	 */
	EXCHANGE = 50,
	/**
	 * ![](fleur.png)
	 */
	FLEUR = 52,
	/**
	 * ![](gobbler.png)
	 */
	GOBBLER = 54,
	/**
	 * ![](gumby.png)
	 */
	GUMBY = 56,
	/**
	 * ![](hand1.png)
	 */
	HAND1 = 58,
	/**
	 * ![](hand2.png)
	 */
	HAND2 = 60,
	/**
	 * ![](heart.png)
	 */
	HEART = 62,
	/**
	 * ![](icon.png)
	 */
	ICON = 64,
	/**
	 * ![](iron_cross.png)
	 */
	IRON_CROSS = 66,
	/**
	 * ![](left_ptr.png)
	 */
	LEFT_PTR = 68,
	/**
	 * ![](left_side.png)
	 */
	LEFT_SIDE = 70,
	/**
	 * ![](left_tee.png)
	 */
	LEFT_TEE = 72,
	/**
	 * ![](leftbutton.png)
	 */
	LEFTBUTTON = 74,
	/**
	 * ![](ll_angle.png)
	 */
	LL_ANGLE = 76,
	/**
	 * ![](lr_angle.png)
	 */
	LR_ANGLE = 78,
	/**
	 * ![](man.png)
	 */
	MAN = 80,
	/**
	 * ![](middlebutton.png)
	 */
	MIDDLEBUTTON = 82,
	/**
	 * ![](mouse.png)
	 */
	MOUSE = 84,
	/**
	 * ![](pencil.png)
	 */
	PENCIL = 86,
	/**
	 * ![](pirate.png)
	 */
	PIRATE = 88,
	/**
	 * ![](plus.png)
	 */
	PLUS = 90,
	/**
	 * ![](question_arrow.png)
	 */
	QUESTION_ARROW = 92,
	/**
	 * ![](right_ptr.png)
	 */
	RIGHT_PTR = 94,
	/**
	 * ![](right_side.png)
	 */
	RIGHT_SIDE = 96,
	/**
	 * ![](right_tee.png)
	 */
	RIGHT_TEE = 98,
	/**
	 * ![](rightbutton.png)
	 */
	RIGHTBUTTON = 100,
	/**
	 * ![](rtl_logo.png)
	 */
	RTL_LOGO = 102,
	/**
	 * ![](sailboat.png)
	 */
	SAILBOAT = 104,
	/**
	 * ![](sb_down_arrow.png)
	 */
	SB_DOWN_ARROW = 106,
	/**
	 * ![](sb_h_double_arrow.png)
	 */
	SB_H_DOUBLE_ARROW = 108,
	/**
	 * ![](sb_left_arrow.png)
	 */
	SB_LEFT_ARROW = 110,
	/**
	 * ![](sb_right_arrow.png)
	 */
	SB_RIGHT_ARROW = 112,
	/**
	 * ![](sb_up_arrow.png)
	 */
	SB_UP_ARROW = 114,
	/**
	 * ![](sb_v_double_arrow.png)
	 */
	SB_V_DOUBLE_ARROW = 116,
	/**
	 * ![](shuttle.png)
	 */
	SHUTTLE = 118,
	/**
	 * ![](sizing.png)
	 */
	SIZING = 120,
	/**
	 * ![](spider.png)
	 */
	SPIDER = 122,
	/**
	 * ![](spraycan.png)
	 */
	SPRAYCAN = 124,
	/**
	 * ![](star.png)
	 */
	STAR = 126,
	/**
	 * ![](target.png)
	 */
	TARGET = 128,
	/**
	 * ![](tcross.png)
	 */
	TCROSS = 130,
	/**
	 * ![](top_left_arrow.png)
	 */
	TOP_LEFT_ARROW = 132,
	/**
	 * ![](top_left_corner.png)
	 */
	TOP_LEFT_CORNER = 134,
	/**
	 * ![](top_right_corner.png)
	 */
	TOP_RIGHT_CORNER = 136,
	/**
	 * ![](top_side.png)
	 */
	TOP_SIDE = 138,
	/**
	 * ![](top_tee.png)
	 */
	TOP_TEE = 140,
	/**
	 * ![](trek.png)
	 */
	TREK = 142,
	/**
	 * ![](ul_angle.png)
	 */
	UL_ANGLE = 144,
	/**
	 * ![](umbrella.png)
	 */
	UMBRELLA = 146,
	/**
	 * ![](ur_angle.png)
	 */
	UR_ANGLE = 148,
	/**
	 * ![](watch.png)
	 */
	WATCH = 150,
	/**
	 * ![](xterm.png)
	 */
	XTERM = 152,
	/**
	 * last cursor type
	 */
	LAST_CURSOR = 153,
	/**
	 * Blank cursor. Since 2.16
	 */
	BLANK_CURSOR = -2,
	/**
	 * type of cursors constructed with
	 * gdk_cursor_new_from_pixbuf()
	 */
	CURSOR_IS_PIXMAP = -1,
}
alias GdkCursorType CursorType;

/**
 * A pad feature.
 */
public enum GdkDevicePadFeature
{
	/**
	 * a button
	 */
	BUTTON = 0,
	/**
	 * a ring-shaped interactive area
	 */
	RING = 1,
	/**
	 * a straight interactive area
	 */
	STRIP = 2,
}
alias GdkDevicePadFeature DevicePadFeature;

/**
 * Indicates the specific type of tool being used being a tablet. Such as an
 * airbrush, pencil, etc.
 *
 * Since: 3.22
 */
public enum GdkDeviceToolType
{
	/**
	 * Tool is of an unknown type.
	 */
	UNKNOWN = 0,
	/**
	 * Tool is a standard tablet stylus.
	 */
	PEN = 1,
	/**
	 * Tool is standard tablet eraser.
	 */
	ERASER = 2,
	/**
	 * Tool is a brush stylus.
	 */
	BRUSH = 3,
	/**
	 * Tool is a pencil stylus.
	 */
	PENCIL = 4,
	/**
	 * Tool is an airbrush stylus.
	 */
	AIRBRUSH = 5,
	/**
	 * Tool is a mouse.
	 */
	MOUSE = 6,
	/**
	 * Tool is a lens cursor.
	 */
	LENS = 7,
}
alias GdkDeviceToolType DeviceToolType;

/**
 * Indicates the device type. See [above][GdkDeviceManager.description]
 * for more information about the meaning of these device types.
 */
public enum GdkDeviceType
{
	/**
	 * Device is a master (or virtual) device. There will
	 * be an associated focus indicator on the screen.
	 */
	MASTER = 0,
	/**
	 * Device is a slave (or physical) device.
	 */
	SLAVE = 1,
	/**
	 * Device is a physical device, currently not attached to
	 * any virtual device.
	 */
	FLOATING = 2,
}
alias GdkDeviceType DeviceType;

/**
 * Used in #GdkDragContext to indicate what the destination
 * should do with the dropped data.
 */
public enum GdkDragAction
{
	/**
	 * Means nothing, and should not be used.
	 */
	DEFAULT = 1,
	/**
	 * Copy the data.
	 */
	COPY = 2,
	/**
	 * Move the data, i.e. first copy it, then delete
	 * it from the source using the DELETE target of the X selection protocol.
	 */
	MOVE = 4,
	/**
	 * Add a link to the data. Note that this is only
	 * useful if source and destination agree on what it means.
	 */
	LINK = 8,
	/**
	 * Special action which tells the source that the
	 * destination will do something that the source doesn’t understand.
	 */
	PRIVATE = 16,
	/**
	 * Ask the user what to do with the data.
	 */
	ASK = 32,
}
alias GdkDragAction DragAction;

/**
 * Used in #GdkDragContext to the reason of a cancelled DND operation.
 *
 * Since: 3.20
 */
public enum GdkDragCancelReason
{
	/**
	 * There is no suitable drop target.
	 */
	NO_TARGET = 0,
	/**
	 * Drag cancelled by the user
	 */
	USER_CANCELLED = 1,
	/**
	 * Unspecified error.
	 */
	ERROR = 2,
}
alias GdkDragCancelReason DragCancelReason;

/**
 * Used in #GdkDragContext to indicate the protocol according to
 * which DND is done.
 */
public enum GdkDragProtocol
{
	/**
	 * no protocol.
	 */
	NONE = 0,
	/**
	 * The Motif DND protocol. No longer supported
	 */
	MOTIF = 1,
	/**
	 * The Xdnd protocol.
	 */
	XDND = 2,
	/**
	 * An extension to the Xdnd protocol for
	 * unclaimed root window drops.
	 */
	ROOTWIN = 3,
	/**
	 * The simple WM_DROPFILES protocol.
	 */
	WIN32_DROPFILES = 4,
	/**
	 * The complex OLE2 DND protocol (not implemented).
	 */
	OLE2 = 5,
	/**
	 * Intra-application DND.
	 */
	LOCAL = 6,
	/**
	 * Wayland DND protocol.
	 */
	WAYLAND = 7,
}
alias GdkDragProtocol DragProtocol;

/**
 * A set of bit-flags to indicate which events a window is to receive.
 * Most of these masks map onto one or more of the #GdkEventType event types
 * above.
 *
 * See the [input handling overview][chap-input-handling] for details of
 * [event masks][event-masks] and [event propagation][event-propagation].
 *
 * %GDK_POINTER_MOTION_HINT_MASK is deprecated. It is a special mask
 * to reduce the number of %GDK_MOTION_NOTIFY events received. When using
 * %GDK_POINTER_MOTION_HINT_MASK, fewer %GDK_MOTION_NOTIFY events will
 * be sent, some of which are marked as a hint (the is_hint member is
 * %TRUE). To receive more motion events after a motion hint event,
 * the application needs to asks for more, by calling
 * gdk_event_request_motions().
 *
 * Since GTK 3.8, motion events are already compressed by default, independent
 * of this mechanism. This compression can be disabled with
 * gdk_window_set_event_compression(). See the documentation of that function
 * for details.
 *
 * If %GDK_TOUCH_MASK is enabled, the window will receive touch events
 * from touch-enabled devices. Those will come as sequences of #GdkEventTouch
 * with type %GDK_TOUCH_UPDATE, enclosed by two events with
 * type %GDK_TOUCH_BEGIN and %GDK_TOUCH_END (or %GDK_TOUCH_CANCEL).
 * gdk_event_get_event_sequence() returns the event sequence for these
 * events, so different sequences may be distinguished.
 */
public enum GdkEventMask
{
	/**
	 * receive expose events
	 */
	EXPOSURE_MASK = 2,
	/**
	 * receive all pointer motion events
	 */
	POINTER_MOTION_MASK = 4,
	/**
	 * deprecated. see the explanation above
	 */
	POINTER_MOTION_HINT_MASK = 8,
	/**
	 * receive pointer motion events while any button is pressed
	 */
	BUTTON_MOTION_MASK = 16,
	/**
	 * receive pointer motion events while 1 button is pressed
	 */
	BUTTON1_MOTION_MASK = 32,
	/**
	 * receive pointer motion events while 2 button is pressed
	 */
	BUTTON2_MOTION_MASK = 64,
	/**
	 * receive pointer motion events while 3 button is pressed
	 */
	BUTTON3_MOTION_MASK = 128,
	/**
	 * receive button press events
	 */
	BUTTON_PRESS_MASK = 256,
	/**
	 * receive button release events
	 */
	BUTTON_RELEASE_MASK = 512,
	/**
	 * receive key press events
	 */
	KEY_PRESS_MASK = 1024,
	/**
	 * receive key release events
	 */
	KEY_RELEASE_MASK = 2048,
	/**
	 * receive window enter events
	 */
	ENTER_NOTIFY_MASK = 4096,
	/**
	 * receive window leave events
	 */
	LEAVE_NOTIFY_MASK = 8192,
	/**
	 * receive focus change events
	 */
	FOCUS_CHANGE_MASK = 16384,
	/**
	 * receive events about window configuration change
	 */
	STRUCTURE_MASK = 32768,
	/**
	 * receive property change events
	 */
	PROPERTY_CHANGE_MASK = 65536,
	/**
	 * receive visibility change events
	 */
	VISIBILITY_NOTIFY_MASK = 131072,
	/**
	 * receive proximity in events
	 */
	PROXIMITY_IN_MASK = 262144,
	/**
	 * receive proximity out events
	 */
	PROXIMITY_OUT_MASK = 524288,
	/**
	 * receive events about window configuration changes of
	 * child windows
	 */
	SUBSTRUCTURE_MASK = 1048576,
	/**
	 * receive scroll events
	 */
	SCROLL_MASK = 2097152,
	/**
	 * receive touch events. Since 3.4
	 */
	TOUCH_MASK = 4194304,
	/**
	 * receive smooth scrolling events. Since 3.4
	 */
	SMOOTH_SCROLL_MASK = 8388608,
	/**
	 * receive touchpad gesture events. Since 3.18
	 */
	TOUCHPAD_GESTURE_MASK = 16777216,
	/**
	 * receive tablet pad events. Since 3.22
	 */
	TABLET_PAD_MASK = 33554432,
	/**
	 * the combination of all the above event masks.
	 */
	ALL_EVENTS_MASK = 67108862,
}
alias GdkEventMask EventMask;

/**
 * Specifies the type of the event.
 *
 * Do not confuse these events with the signals that GTK+ widgets emit.
 * Although many of these events result in corresponding signals being emitted,
 * the events are often transformed or filtered along the way.
 *
 * In some language bindings, the values %GDK_2BUTTON_PRESS and
 * %GDK_3BUTTON_PRESS would translate into something syntactically
 * invalid (eg `Gdk.EventType.2ButtonPress`, where a
 * symbol is not allowed to start with a number). In that case, the
 * aliases %GDK_DOUBLE_BUTTON_PRESS and %GDK_TRIPLE_BUTTON_PRESS can
 * be used instead.
 */
public enum GdkEventType
{
	/**
	 * a special code to indicate a null event.
	 */
	NOTHING = -1,
	/**
	 * the window manager has requested that the toplevel window be
	 * hidden or destroyed, usually when the user clicks on a special icon in the
	 * title bar.
	 */
	DELETE = 0,
	/**
	 * the window has been destroyed.
	 */
	DESTROY = 1,
	/**
	 * all or part of the window has become visible and needs to be
	 * redrawn.
	 */
	EXPOSE = 2,
	/**
	 * the pointer (usually a mouse) has moved.
	 */
	MOTION_NOTIFY = 3,
	/**
	 * a mouse button has been pressed.
	 */
	BUTTON_PRESS = 4,
	/**
	 * alias for %GDK_2BUTTON_PRESS, added in 3.6.
	 */
	DOUBLE_BUTTON_PRESS = 5,
	/**
	 * alias for %GDK_3BUTTON_PRESS, added in 3.6.
	 */
	TRIPLE_BUTTON_PRESS = 6,
	/**
	 * a mouse button has been released.
	 */
	BUTTON_RELEASE = 7,
	/**
	 * a key has been pressed.
	 */
	KEY_PRESS = 8,
	/**
	 * a key has been released.
	 */
	KEY_RELEASE = 9,
	/**
	 * the pointer has entered the window.
	 */
	ENTER_NOTIFY = 10,
	/**
	 * the pointer has left the window.
	 */
	LEAVE_NOTIFY = 11,
	/**
	 * the keyboard focus has entered or left the window.
	 */
	FOCUS_CHANGE = 12,
	/**
	 * the size, position or stacking order of the window has changed.
	 * Note that GTK+ discards these events for %GDK_WINDOW_CHILD windows.
	 */
	CONFIGURE = 13,
	/**
	 * the window has been mapped.
	 */
	MAP = 14,
	/**
	 * the window has been unmapped.
	 */
	UNMAP = 15,
	/**
	 * a property on the window has been changed or deleted.
	 */
	PROPERTY_NOTIFY = 16,
	/**
	 * the application has lost ownership of a selection.
	 */
	SELECTION_CLEAR = 17,
	/**
	 * another application has requested a selection.
	 */
	SELECTION_REQUEST = 18,
	/**
	 * a selection has been received.
	 */
	SELECTION_NOTIFY = 19,
	/**
	 * an input device has moved into contact with a sensing
	 * surface (e.g. a touchscreen or graphics tablet).
	 */
	PROXIMITY_IN = 20,
	/**
	 * an input device has moved out of contact with a sensing
	 * surface.
	 */
	PROXIMITY_OUT = 21,
	/**
	 * the mouse has entered the window while a drag is in progress.
	 */
	DRAG_ENTER = 22,
	/**
	 * the mouse has left the window while a drag is in progress.
	 */
	DRAG_LEAVE = 23,
	/**
	 * the mouse has moved in the window while a drag is in
	 * progress.
	 */
	DRAG_MOTION = 24,
	/**
	 * the status of the drag operation initiated by the window
	 * has changed.
	 */
	DRAG_STATUS = 25,
	/**
	 * a drop operation onto the window has started.
	 */
	DROP_START = 26,
	/**
	 * the drop operation initiated by the window has completed.
	 */
	DROP_FINISHED = 27,
	/**
	 * a message has been received from another application.
	 */
	CLIENT_EVENT = 28,
	/**
	 * the window visibility status has changed.
	 */
	VISIBILITY_NOTIFY = 29,
	/**
	 * the scroll wheel was turned
	 */
	SCROLL = 31,
	/**
	 * the state of a window has changed. See #GdkWindowState
	 * for the possible window states
	 */
	WINDOW_STATE = 32,
	/**
	 * a setting has been modified.
	 */
	SETTING = 33,
	/**
	 * the owner of a selection has changed. This event type
	 * was added in 2.6
	 */
	OWNER_CHANGE = 34,
	/**
	 * a pointer or keyboard grab was broken. This event type
	 * was added in 2.8.
	 */
	GRAB_BROKEN = 35,
	/**
	 * the content of the window has been changed. This event type
	 * was added in 2.14.
	 */
	DAMAGE = 36,
	/**
	 * A new touch event sequence has just started. This event
	 * type was added in 3.4.
	 */
	TOUCH_BEGIN = 37,
	/**
	 * A touch event sequence has been updated. This event type
	 * was added in 3.4.
	 */
	TOUCH_UPDATE = 38,
	/**
	 * A touch event sequence has finished. This event type
	 * was added in 3.4.
	 */
	TOUCH_END = 39,
	/**
	 * A touch event sequence has been canceled. This event type
	 * was added in 3.4.
	 */
	TOUCH_CANCEL = 40,
	/**
	 * A touchpad swipe gesture event, the current state
	 * is determined by its phase field. This event type was added in 3.18.
	 */
	TOUCHPAD_SWIPE = 41,
	/**
	 * A touchpad pinch gesture event, the current state
	 * is determined by its phase field. This event type was added in 3.18.
	 */
	TOUCHPAD_PINCH = 42,
	/**
	 * A tablet pad button press event. This event type
	 * was added in 3.22.
	 */
	PAD_BUTTON_PRESS = 43,
	/**
	 * A tablet pad button release event. This event type
	 * was added in 3.22.
	 */
	PAD_BUTTON_RELEASE = 44,
	/**
	 * A tablet pad axis event from a "ring". This event type was
	 * added in 3.22.
	 */
	PAD_RING = 45,
	/**
	 * A tablet pad axis event from a "strip". This event type was
	 * added in 3.22.
	 */
	PAD_STRIP = 46,
	/**
	 * A tablet pad group mode change. This event type was
	 * added in 3.22.
	 */
	PAD_GROUP_MODE = 47,
	/**
	 * marks the end of the GdkEventType enumeration. Added in 2.18
	 */
	EVENT_LAST = 48,
}
alias GdkEventType EventType;

/**
 * Specifies the result of applying a #GdkFilterFunc to a native event.
 */
public enum GdkFilterReturn
{
	/**
	 * event not handled, continue processing.
	 */
	CONTINUE = 0,
	/**
	 * native event translated into a GDK event and stored
	 * in the `event` structure that was passed in.
	 */
	TRANSLATE = 1,
	/**
	 * event handled, terminate processing.
	 */
	REMOVE = 2,
}
alias GdkFilterReturn FilterReturn;

/**
 * #GdkFrameClockPhase is used to represent the different paint clock
 * phases that can be requested. The elements of the enumeration
 * correspond to the signals of #GdkFrameClock.
 *
 * Since: 3.8
 */
public enum GdkFrameClockPhase
{
	/**
	 * no phase
	 */
	NONE = 0,
	/**
	 * corresponds to GdkFrameClock::flush-events. Should not be handled by applications.
	 */
	FLUSH_EVENTS = 1,
	/**
	 * corresponds to GdkFrameClock::before-paint. Should not be handled by applications.
	 */
	BEFORE_PAINT = 2,
	/**
	 * corresponds to GdkFrameClock::update.
	 */
	UPDATE = 4,
	/**
	 * corresponds to GdkFrameClock::layout.
	 */
	LAYOUT = 8,
	/**
	 * corresponds to GdkFrameClock::paint.
	 */
	PAINT = 16,
	/**
	 * corresponds to GdkFrameClock::resume-events. Should not be handled by applications.
	 */
	RESUME_EVENTS = 32,
	/**
	 * corresponds to GdkFrameClock::after-paint. Should not be handled by applications.
	 */
	AFTER_PAINT = 64,
}
alias GdkFrameClockPhase FrameClockPhase;

/**
 * Indicates which monitor (in a multi-head setup) a window should span over
 * when in fullscreen mode.
 *
 * Since: 3.8
 */
public enum GdkFullscreenMode
{
	/**
	 * Fullscreen on current monitor only.
	 */
	CURRENT_MONITOR = 0,
	/**
	 * Span across all monitors when fullscreen.
	 */
	ALL_MONITORS = 1,
}
alias GdkFullscreenMode FullscreenMode;

/**
 * Error enumeration for #GdkGLContext.
 *
 * Since: 3.16
 */
public enum GdkGLError
{
	/**
	 * OpenGL support is not available
	 */
	NOT_AVAILABLE = 0,
	/**
	 * The requested visual format is not supported
	 */
	UNSUPPORTED_FORMAT = 1,
	/**
	 * The requested profile is not supported
	 */
	UNSUPPORTED_PROFILE = 2,
}
alias GdkGLError GLError;

/**
 * Defines how device grabs interact with other devices.
 */
public enum GdkGrabOwnership
{
	/**
	 * All other devices’ events are allowed.
	 */
	NONE = 0,
	/**
	 * Other devices’ events are blocked for the grab window.
	 */
	WINDOW = 1,
	/**
	 * Other devices’ events are blocked for the whole application.
	 */
	APPLICATION = 2,
}
alias GdkGrabOwnership GrabOwnership;

/**
 * Returned by gdk_device_grab(), gdk_pointer_grab() and gdk_keyboard_grab() to
 * indicate success or the reason for the failure of the grab attempt.
 */
public enum GdkGrabStatus
{
	/**
	 * the resource was successfully grabbed.
	 */
	SUCCESS = 0,
	/**
	 * the resource is actively grabbed by another client.
	 */
	ALREADY_GRABBED = 1,
	/**
	 * the resource was grabbed more recently than the
	 * specified time.
	 */
	INVALID_TIME = 2,
	/**
	 * the grab window or the @confine_to window are not
	 * viewable.
	 */
	NOT_VIEWABLE = 3,
	/**
	 * the resource is frozen by an active grab of another client.
	 */
	FROZEN = 4,
	/**
	 * the grab failed for some other reason. Since 3.16
	 */
	FAILED = 5,
}
alias GdkGrabStatus GrabStatus;

/**
 * Defines the reference point of a window and the meaning of coordinates
 * passed to gtk_window_move(). See gtk_window_move() and the "implementation
 * notes" section of the
 * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec)
 * specification for more details.
 */
public enum GdkGravity
{
	/**
	 * the reference point is at the top left corner.
	 */
	NORTH_WEST = 1,
	/**
	 * the reference point is in the middle of the top edge.
	 */
	NORTH = 2,
	/**
	 * the reference point is at the top right corner.
	 */
	NORTH_EAST = 3,
	/**
	 * the reference point is at the middle of the left edge.
	 */
	WEST = 4,
	/**
	 * the reference point is at the center of the window.
	 */
	CENTER = 5,
	/**
	 * the reference point is at the middle of the right edge.
	 */
	EAST = 6,
	/**
	 * the reference point is at the lower left corner.
	 */
	SOUTH_WEST = 7,
	/**
	 * the reference point is at the middle of the lower edge.
	 */
	SOUTH = 8,
	/**
	 * the reference point is at the lower right corner.
	 */
	SOUTH_EAST = 9,
	/**
	 * the reference point is at the top left corner of the
	 * window itself, ignoring window manager decorations.
	 */
	STATIC = 10,
}
alias GdkGravity Gravity;

/**
 * An enumeration that describes the mode of an input device.
 */
public enum GdkInputMode
{
	/**
	 * the device is disabled and will not report any events.
	 */
	DISABLED = 0,
	/**
	 * the device is enabled. The device’s coordinate space
	 * maps to the entire screen.
	 */
	SCREEN = 1,
	/**
	 * the device is enabled. The device’s coordinate space
	 * is mapped to a single window. The manner in which this window
	 * is chosen is undefined, but it will typically be the same
	 * way in which the focus window for key events is determined.
	 */
	WINDOW = 2,
}
alias GdkInputMode InputMode;

/**
 * An enumeration describing the type of an input device in general terms.
 */
public enum GdkInputSource
{
	/**
	 * the device is a mouse. (This will be reported for the core
	 * pointer, even if it is something else, such as a trackball.)
	 */
	MOUSE = 0,
	/**
	 * the device is a stylus of a graphics tablet or similar device.
	 */
	PEN = 1,
	/**
	 * the device is an eraser. Typically, this would be the other end
	 * of a stylus on a graphics tablet.
	 */
	ERASER = 2,
	/**
	 * the device is a graphics tablet “puck” or similar device.
	 */
	CURSOR = 3,
	/**
	 * the device is a keyboard.
	 */
	KEYBOARD = 4,
	/**
	 * the device is a direct-input touch device, such
	 * as a touchscreen or tablet. This device type has been added in 3.4.
	 */
	TOUCHSCREEN = 5,
	/**
	 * the device is an indirect touch device, such
	 * as a touchpad. This device type has been added in 3.4.
	 */
	TOUCHPAD = 6,
	/**
	 * the device is a trackpoint. This device type has been
	 * added in 3.22
	 */
	TRACKPOINT = 7,
	/**
	 * the device is a "pad", a collection of buttons,
	 * rings and strips found in drawing tablets. This device type has been
	 * added in 3.22.
	 */
	TABLET_PAD = 8,
}
alias GdkInputSource InputSource;

/**
 * This enum is used with gdk_keymap_get_modifier_mask()
 * in order to determine what modifiers the
 * currently used windowing system backend uses for particular
 * purposes. For example, on X11/Windows, the Control key is used for
 * invoking menu shortcuts (accelerators), whereas on Apple computers
 * it’s the Command key (which correspond to %GDK_CONTROL_MASK and
 * %GDK_MOD2_MASK, respectively).
 *
 * Since: 3.4
 */
public enum GdkModifierIntent
{
	/**
	 * the primary modifier used to invoke
	 * menu accelerators.
	 */
	PRIMARY_ACCELERATOR = 0,
	/**
	 * the modifier used to invoke context menus.
	 * Note that mouse button 3 always triggers context menus. When this modifier
	 * is not 0, it additionally triggers context menus when used with mouse button 1.
	 */
	CONTEXT_MENU = 1,
	/**
	 * the modifier used to extend selections
	 * using `modifier`-click or `modifier`-cursor-key
	 */
	EXTEND_SELECTION = 2,
	/**
	 * the modifier used to modify selections,
	 * which in most cases means toggling the clicked item into or out of the selection.
	 */
	MODIFY_SELECTION = 3,
	/**
	 * when any of these modifiers is pressed, the
	 * key event cannot produce a symbol directly. This is meant to be used for
	 * input methods, and for use cases like typeahead search.
	 */
	NO_TEXT_INPUT = 4,
	/**
	 * the modifier that switches between keyboard
	 * groups (AltGr on X11/Windows and Option/Alt on OS X).
	 */
	SHIFT_GROUP = 5,
	/**
	 * The set of modifier masks accepted
	 * as modifiers in accelerators. Needed because Command is mapped to MOD2 on
	 * OSX, which is widely used, but on X11 MOD2 is NumLock and using that for a
	 * mod key is problematic at best.
	 * Ref: https://bugzilla.gnome.org/show_bug.cgi?id=736125.
	 */
	DEFAULT_MOD_MASK = 6,
}
alias GdkModifierIntent ModifierIntent;

/**
 * A set of bit-flags to indicate the state of modifier keys and mouse buttons
 * in various event types. Typical modifier keys are Shift, Control, Meta,
 * Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
 *
 * Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
 *
 * Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped
 * to Mod2 - Mod5, and indicates this by setting %GDK_SUPER_MASK,
 * %GDK_HYPER_MASK or %GDK_META_MASK in the state field of key events.
 *
 * Note that GDK may add internal values to events which include
 * reserved values such as %GDK_MODIFIER_RESERVED_13_MASK.  Your code
 * should preserve and ignore them.  You can use %GDK_MODIFIER_MASK to
 * remove all reserved values.
 *
 * Also note that the GDK X backend interprets button press events for button
 * 4-7 as scroll events, so %GDK_BUTTON4_MASK and %GDK_BUTTON5_MASK will never
 * be set.
 */
public enum GdkModifierType
{
	/**
	 * the Shift key.
	 */
	SHIFT_MASK = 1,
	/**
	 * a Lock key (depending on the modifier mapping of the
	 * X server this may either be CapsLock or ShiftLock).
	 */
	LOCK_MASK = 2,
	/**
	 * the Control key.
	 */
	CONTROL_MASK = 4,
	/**
	 * the fourth modifier key (it depends on the modifier
	 * mapping of the X server which key is interpreted as this modifier, but
	 * normally it is the Alt key).
	 */
	MOD1_MASK = 8,
	/**
	 * the fifth modifier key (it depends on the modifier
	 * mapping of the X server which key is interpreted as this modifier).
	 */
	MOD2_MASK = 16,
	/**
	 * the sixth modifier key (it depends on the modifier
	 * mapping of the X server which key is interpreted as this modifier).
	 */
	MOD3_MASK = 32,
	/**
	 * the seventh modifier key (it depends on the modifier
	 * mapping of the X server which key is interpreted as this modifier).
	 */
	MOD4_MASK = 64,
	/**
	 * the eighth modifier key (it depends on the modifier
	 * mapping of the X server which key is interpreted as this modifier).
	 */
	MOD5_MASK = 128,
	/**
	 * the first mouse button.
	 */
	BUTTON1_MASK = 256,
	/**
	 * the second mouse button.
	 */
	BUTTON2_MASK = 512,
	/**
	 * the third mouse button.
	 */
	BUTTON3_MASK = 1024,
	/**
	 * the fourth mouse button.
	 */
	BUTTON4_MASK = 2048,
	/**
	 * the fifth mouse button.
	 */
	BUTTON5_MASK = 4096,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_13_MASK = 8192,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_14_MASK = 16384,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_15_MASK = 32768,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_16_MASK = 65536,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_17_MASK = 131072,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_18_MASK = 262144,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_19_MASK = 524288,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_20_MASK = 1048576,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_21_MASK = 2097152,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_22_MASK = 4194304,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_23_MASK = 8388608,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_24_MASK = 16777216,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_25_MASK = 33554432,
	/**
	 * the Super modifier. Since 2.10
	 */
	SUPER_MASK = 67108864,
	/**
	 * the Hyper modifier. Since 2.10
	 */
	HYPER_MASK = 134217728,
	/**
	 * the Meta modifier. Since 2.10
	 */
	META_MASK = 268435456,
	/**
	 * A reserved bit flag; do not use in your own code
	 */
	MODIFIER_RESERVED_29_MASK = 536870912,
	/**
	 * not used in GDK itself. GTK+ uses it to differentiate
	 * between (keyval, modifiers) pairs from key press and release events.
	 */
	RELEASE_MASK = 1073741824,
	/**
	 * a mask covering all modifier types.
	 */
	MODIFIER_MASK = 1543512063,
}
alias GdkModifierType ModifierType;

/**
 * Specifies the kind of crossing for #GdkEventCrossing.
 *
 * See the X11 protocol specification of LeaveNotify for
 * full details of crossing event generation.
 */
public enum GdkNotifyType
{
	/**
	 * the window is entered from an ancestor or
	 * left towards an ancestor.
	 */
	ANCESTOR = 0,
	/**
	 * the pointer moves between an ancestor and an
	 * inferior of the window.
	 */
	VIRTUAL = 1,
	/**
	 * the window is entered from an inferior or
	 * left towards an inferior.
	 */
	INFERIOR = 2,
	/**
	 * the window is entered from or left towards
	 * a window which is neither an ancestor nor an inferior.
	 */
	NONLINEAR = 3,
	/**
	 * the pointer moves between two windows
	 * which are not ancestors of each other and the window is part of
	 * the ancestor chain between one of these windows and their least
	 * common ancestor.
	 */
	NONLINEAR_VIRTUAL = 4,
	/**
	 * an unknown type of enter/leave event occurred.
	 */
	UNKNOWN = 5,
}
alias GdkNotifyType NotifyType;

/**
 * Specifies why a selection ownership was changed.
 */
public enum GdkOwnerChange
{
	/**
	 * some other app claimed the ownership
	 */
	NEW_OWNER = 0,
	/**
	 * the window was destroyed
	 */
	DESTROY = 1,
	/**
	 * the client was closed
	 */
	CLOSE = 2,
}
alias GdkOwnerChange OwnerChange;

/**
 * Describes how existing data is combined with new data when
 * using gdk_property_change().
 */
public enum GdkPropMode
{
	/**
	 * the new data replaces the existing data.
	 */
	REPLACE = 0,
	/**
	 * the new data is prepended to the existing data.
	 */
	PREPEND = 1,
	/**
	 * the new data is appended to the existing data.
	 */
	APPEND = 2,
}
alias GdkPropMode PropMode;

/**
 * Specifies the type of a property change for a #GdkEventProperty.
 */
public enum GdkPropertyState
{
	/**
	 * the property value was changed.
	 */
	NEW_VALUE = 0,
	/**
	 * the property was deleted.
	 */
	DELETE = 1,
}
alias GdkPropertyState PropertyState;

/**
 * Specifies the direction for #GdkEventScroll.
 */
public enum GdkScrollDirection
{
	/**
	 * the window is scrolled up.
	 */
	UP = 0,
	/**
	 * the window is scrolled down.
	 */
	DOWN = 1,
	/**
	 * the window is scrolled to the left.
	 */
	LEFT = 2,
	/**
	 * the window is scrolled to the right.
	 */
	RIGHT = 3,
	/**
	 * the scrolling is determined by the delta values
	 * in #GdkEventScroll. See gdk_event_get_scroll_deltas(). Since: 3.4
	 */
	SMOOTH = 4,
}
alias GdkScrollDirection ScrollDirection;

/**
 * Flags describing the seat capabilities.
 *
 * Since: 3.20
 */
public enum GdkSeatCapabilities
{
	/**
	 * No input capabilities
	 */
	NONE = 0,
	/**
	 * The seat has a pointer (e.g. mouse)
	 */
	POINTER = 1,
	/**
	 * The seat has touchscreen(s) attached
	 */
	TOUCH = 2,
	/**
	 * The seat has drawing tablet(s) attached
	 */
	TABLET_STYLUS = 4,
	/**
	 * The seat has keyboard(s) attached
	 */
	KEYBOARD = 8,
	/**
	 * The union of all pointing capabilities
	 */
	ALL_POINTING = 7,
	/**
	 * The union of all capabilities
	 */
	ALL = 15,
}
alias GdkSeatCapabilities SeatCapabilities;

/**
 * Specifies the kind of modification applied to a setting in a
 * #GdkEventSetting.
 */
public enum GdkSettingAction
{
	/**
	 * a setting was added.
	 */
	NEW = 0,
	/**
	 * a setting was changed.
	 */
	CHANGED = 1,
	/**
	 * a setting was deleted.
	 */
	DELETED = 2,
}
alias GdkSettingAction SettingAction;

public enum GdkStatus
{
	OK = 0,
	ERROR = -1,
	ERROR_PARAM = -2,
	ERROR_FILE = -3,
	ERROR_MEM = -4,
}
alias GdkStatus Status;

/**
 * This enumeration describes how the red, green and blue components
 * of physical pixels on an output device are laid out.
 *
 * Since: 3.22
 */
public enum GdkSubpixelLayout
{
	/**
	 * The layout is not known
	 */
	UNKNOWN = 0,
	/**
	 * Not organized in this way
	 */
	NONE = 1,
	/**
	 * The layout is horizontal, the order is RGB
	 */
	HORIZONTAL_RGB = 2,
	/**
	 * The layout is horizontal, the order is BGR
	 */
	HORIZONTAL_BGR = 3,
	/**
	 * The layout is vertical, the order is RGB
	 */
	VERTICAL_RGB = 4,
	/**
	 * The layout is vertical, the order is BGR
	 */
	VERTICAL_BGR = 5,
}
alias GdkSubpixelLayout SubpixelLayout;

/**
 * Specifies the current state of a touchpad gesture. All gestures are
 * guaranteed to begin with an event with phase %GDK_TOUCHPAD_GESTURE_PHASE_BEGIN,
 * followed by 0 or several events with phase %GDK_TOUCHPAD_GESTURE_PHASE_UPDATE.
 *
 * A finished gesture may have 2 possible outcomes, an event with phase
 * %GDK_TOUCHPAD_GESTURE_PHASE_END will be emitted when the gesture is
 * considered successful, this should be used as the hint to perform any
 * permanent changes.
 *
 * Cancelled gestures may be so for a variety of reasons, due to hardware
 * or the compositor, or due to the gesture recognition layers hinting the
 * gesture did not finish resolutely (eg. a 3rd finger being added during
 * a pinch gesture). In these cases, the last event will report the phase
 * %GDK_TOUCHPAD_GESTURE_PHASE_CANCEL, this should be used as a hint
 * to undo any visible/permanent changes that were done throughout the
 * progress of the gesture.
 *
 * See also #GdkEventTouchpadSwipe and #GdkEventTouchpadPinch.
 */
public enum GdkTouchpadGesturePhase
{
	/**
	 * The gesture has begun.
	 */
	BEGIN = 0,
	/**
	 * The gesture has been updated.
	 */
	UPDATE = 1,
	/**
	 * The gesture was finished, changes
	 * should be permanently applied.
	 */
	END = 2,
	/**
	 * The gesture was cancelled, all
	 * changes should be undone.
	 */
	CANCEL = 3,
}
alias GdkTouchpadGesturePhase TouchpadGesturePhase;

/**
 * Specifies the visiblity status of a window for a #GdkEventVisibility.
 */
public enum GdkVisibilityState
{
	/**
	 * the window is completely visible.
	 */
	UNOBSCURED = 0,
	/**
	 * the window is partially visible.
	 */
	PARTIAL = 1,
	/**
	 * the window is not visible at all.
	 */
	FULLY_OBSCURED = 2,
}
alias GdkVisibilityState VisibilityState;

/**
 * A set of values that describe the manner in which the pixel values
 * for a visual are converted into RGB values for display.
 */
public enum GdkVisualType
{
	/**
	 * Each pixel value indexes a grayscale value
	 * directly.
	 */
	STATIC_GRAY = 0,
	/**
	 * Each pixel is an index into a color map that
	 * maps pixel values into grayscale values. The color map can be
	 * changed by an application.
	 */
	GRAYSCALE = 1,
	/**
	 * Each pixel value is an index into a predefined,
	 * unmodifiable color map that maps pixel values into RGB values.
	 */
	STATIC_COLOR = 2,
	/**
	 * Each pixel is an index into a color map that
	 * maps pixel values into rgb values. The color map can be changed by
	 * an application.
	 */
	PSEUDO_COLOR = 3,
	/**
	 * Each pixel value directly contains red, green,
	 * and blue components. Use gdk_visual_get_red_pixel_details(), etc,
	 * to obtain information about how the components are assembled into
	 * a pixel value.
	 */
	TRUE_COLOR = 4,
	/**
	 * Each pixel value contains red, green, and blue
	 * components as for %GDK_VISUAL_TRUE_COLOR, but the components are
	 * mapped via a color table into the final output table instead of
	 * being converted directly.
	 */
	DIRECT_COLOR = 5,
}
alias GdkVisualType VisualType;

/**
 * These are hints originally defined by the Motif toolkit.
 * The window manager can use them when determining how to decorate
 * the window. The hint must be set before mapping the window.
 */
public enum GdkWMDecoration
{
	/**
	 * all decorations should be applied.
	 */
	ALL = 1,
	/**
	 * a frame should be drawn around the window.
	 */
	BORDER = 2,
	/**
	 * the frame should have resize handles.
	 */
	RESIZEH = 4,
	/**
	 * a titlebar should be placed above the window.
	 */
	TITLE = 8,
	/**
	 * a button for opening a menu should be included.
	 */
	MENU = 16,
	/**
	 * a minimize button should be included.
	 */
	MINIMIZE = 32,
	/**
	 * a maximize button should be included.
	 */
	MAXIMIZE = 64,
}
alias GdkWMDecoration WMDecoration;

/**
 * These are hints originally defined by the Motif toolkit. The window manager
 * can use them when determining the functions to offer for the window. The
 * hint must be set before mapping the window.
 */
public enum GdkWMFunction
{
	/**
	 * all functions should be offered.
	 */
	ALL = 1,
	/**
	 * the window should be resizable.
	 */
	RESIZE = 2,
	/**
	 * the window should be movable.
	 */
	MOVE = 4,
	/**
	 * the window should be minimizable.
	 */
	MINIMIZE = 8,
	/**
	 * the window should be maximizable.
	 */
	MAXIMIZE = 16,
	/**
	 * the window should be closable.
	 */
	CLOSE = 32,
}
alias GdkWMFunction WMFunction;

/**
 * Used to indicate which fields in the #GdkWindowAttr struct should be honored.
 * For example, if you filled in the “cursor” and “x” fields of #GdkWindowAttr,
 * pass “@GDK_WA_X | @GDK_WA_CURSOR” to gdk_window_new(). Fields in
 * #GdkWindowAttr not covered by a bit in this enum are required; for example,
 * the @width/@height, @wclass, and @window_type fields are required, they have
 * no corresponding flag in #GdkWindowAttributesType.
 */
public enum GdkWindowAttributesType
{
	/**
	 * Honor the title field
	 */
	TITLE = 2,
	/**
	 * Honor the X coordinate field
	 */
	X = 4,
	/**
	 * Honor the Y coordinate field
	 */
	Y = 8,
	/**
	 * Honor the cursor field
	 */
	CURSOR = 16,
	/**
	 * Honor the visual field
	 */
	VISUAL = 32,
	/**
	 * Honor the wmclass_class and wmclass_name fields
	 */
	WMCLASS = 64,
	/**
	 * Honor the override_redirect field
	 */
	NOREDIR = 128,
	/**
	 * Honor the type_hint field
	 */
	TYPE_HINT = 256,
}
alias GdkWindowAttributesType WindowAttributesType;

/**
 * Determines a window edge or corner.
 */
public enum GdkWindowEdge
{
	/**
	 * the top left corner.
	 */
	NORTH_WEST = 0,
	/**
	 * the top edge.
	 */
	NORTH = 1,
	/**
	 * the top right corner.
	 */
	NORTH_EAST = 2,
	/**
	 * the left edge.
	 */
	WEST = 3,
	/**
	 * the right edge.
	 */
	EAST = 4,
	/**
	 * the lower left corner.
	 */
	SOUTH_WEST = 5,
	/**
	 * the lower edge.
	 */
	SOUTH = 6,
	/**
	 * the lower right corner.
	 */
	SOUTH_EAST = 7,
}
alias GdkWindowEdge WindowEdge;

/**
 * Used to indicate which fields of a #GdkGeometry struct should be paid
 * attention to. Also, the presence/absence of @GDK_HINT_POS,
 * @GDK_HINT_USER_POS, and @GDK_HINT_USER_SIZE is significant, though they don't
 * directly refer to #GdkGeometry fields. @GDK_HINT_USER_POS will be set
 * automatically by #GtkWindow if you call gtk_window_move().
 * @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE should be set if the user
 * specified a size/position using a --geometry command-line argument;
 * gtk_window_parse_geometry() automatically sets these flags.
 */
public enum GdkWindowHints
{
	/**
	 * indicates that the program has positioned the window
	 */
	POS = 1,
	/**
	 * min size fields are set
	 */
	MIN_SIZE = 2,
	/**
	 * max size fields are set
	 */
	MAX_SIZE = 4,
	/**
	 * base size fields are set
	 */
	BASE_SIZE = 8,
	/**
	 * aspect ratio fields are set
	 */
	ASPECT = 16,
	/**
	 * resize increment fields are set
	 */
	RESIZE_INC = 32,
	/**
	 * window gravity field is set
	 */
	WIN_GRAVITY = 64,
	/**
	 * indicates that the window’s position was explicitly set
	 * by the user
	 */
	USER_POS = 128,
	/**
	 * indicates that the window’s size was explicitly set by
	 * the user
	 */
	USER_SIZE = 256,
}
alias GdkWindowHints WindowHints;

/**
 * Specifies the state of a toplevel window.
 */
public enum GdkWindowState
{
	/**
	 * the window is not shown.
	 */
	WITHDRAWN = 1,
	/**
	 * the window is minimized.
	 */
	ICONIFIED = 2,
	/**
	 * the window is maximized.
	 */
	MAXIMIZED = 4,
	/**
	 * the window is sticky.
	 */
	STICKY = 8,
	/**
	 * the window is maximized without
	 * decorations.
	 */
	FULLSCREEN = 16,
	/**
	 * the window is kept above other windows.
	 */
	ABOVE = 32,
	/**
	 * the window is kept below other windows.
	 */
	BELOW = 64,
	/**
	 * the window is presented as focused (with active decorations).
	 */
	FOCUSED = 128,
	/**
	 * the window is in a tiled state, Since 3.10. Since 3.22.23, this
	 * is deprecated in favor of per-edge information.
	 */
	TILED = 256,
	/**
	 * whether the top edge is tiled, Since 3.22.23
	 */
	TOP_TILED = 512,
	/**
	 * whether the top edge is resizable, Since 3.22.23
	 */
	TOP_RESIZABLE = 1024,
	/**
	 * whether the right edge is tiled, Since 3.22.23
	 */
	RIGHT_TILED = 2048,
	/**
	 * whether the right edge is resizable, Since 3.22.23
	 */
	RIGHT_RESIZABLE = 4096,
	/**
	 * whether the bottom edge is tiled, Since 3.22.23
	 */
	BOTTOM_TILED = 8192,
	/**
	 * whether the bottom edge is resizable, Since 3.22.23
	 */
	BOTTOM_RESIZABLE = 16384,
	/**
	 * whether the left edge is tiled, Since 3.22.23
	 */
	LEFT_TILED = 32768,
	/**
	 * whether the left edge is resizable, Since 3.22.23
	 */
	LEFT_RESIZABLE = 65536,
}
alias GdkWindowState WindowState;

/**
 * Describes the kind of window.
 */
public enum GdkWindowType
{
	/**
	 * root window; this window has no parent, covers the entire
	 * screen, and is created by the window system
	 */
	ROOT = 0,
	/**
	 * toplevel window (used to implement #GtkWindow)
	 */
	TOPLEVEL = 1,
	/**
	 * child window (used to implement e.g. #GtkEntry)
	 */
	CHILD = 2,
	/**
	 * override redirect temporary window (used to implement
	 * #GtkMenu)
	 */
	TEMP = 3,
	/**
	 * foreign window (see gdk_window_foreign_new())
	 */
	FOREIGN = 4,
	/**
	 * offscreen window (see
	 * [Offscreen Windows][OFFSCREEN-WINDOWS]). Since 2.18
	 */
	OFFSCREEN = 5,
	/**
	 * subsurface-based window; This window is visually
	 * tied to a toplevel, and is moved/stacked with it. Currently this window
	 * type is only implemented in Wayland. Since 3.14
	 */
	SUBSURFACE = 6,
}
alias GdkWindowType WindowType;

/**
 * These are hints for the window manager that indicate what type of function
 * the window has. The window manager can use this when determining decoration
 * and behaviour of the window. The hint must be set before mapping the window.
 *
 * See the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec)
 * specification for more details about window types.
 */
public enum GdkWindowTypeHint
{
	/**
	 * Normal toplevel window.
	 */
	NORMAL = 0,
	/**
	 * Dialog window.
	 */
	DIALOG = 1,
	/**
	 * Window used to implement a menu; GTK+ uses
	 * this hint only for torn-off menus, see #GtkTearoffMenuItem.
	 */
	MENU = 2,
	/**
	 * Window used to implement toolbars.
	 */
	TOOLBAR = 3,
	/**
	 * Window used to display a splash
	 * screen during application startup.
	 */
	SPLASHSCREEN = 4,
	/**
	 * Utility windows which are not detached
	 * toolbars or dialogs.
	 */
	UTILITY = 5,
	/**
	 * Used for creating dock or panel windows.
	 */
	DOCK = 6,
	/**
	 * Used for creating the desktop background
	 * window.
	 */
	DESKTOP = 7,
	/**
	 * A menu that belongs to a menubar.
	 */
	DROPDOWN_MENU = 8,
	/**
	 * A menu that does not belong to a menubar,
	 * e.g. a context menu.
	 */
	POPUP_MENU = 9,
	/**
	 * A tooltip.
	 */
	TOOLTIP = 10,
	/**
	 * A notification - typically a “bubble”
	 * that belongs to a status icon.
	 */
	NOTIFICATION = 11,
	/**
	 * A popup from a combo box.
	 */
	COMBO = 12,
	/**
	 * A window that is used to implement a DND cursor.
	 */
	DND = 13,
}
alias GdkWindowTypeHint WindowTypeHint;

/**
 * @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
 * Such windows receive events and are also displayed on screen.
 * @GDK_INPUT_ONLY windows are invisible; they are usually placed above other
 * windows in order to trap or filter the events. You can’t draw on
 * @GDK_INPUT_ONLY windows.
 */
public enum GdkWindowWindowClass
{
	/**
	 * window for graphics and events
	 */
	INPUT_OUTPUT = 0,
	/**
	 * window for events only
	 */
	INPUT_ONLY = 1,
}
alias GdkWindowWindowClass WindowWindowClass;

/**
 * An opaque type representing a string as an index into a table
 * of strings on the X server.
 */
alias _GdkAtom* GdkAtom;
public struct _GdkAtom;

struct GdkAppLaunchContext;

struct GdkColor
{
	/**
	 * For allocated colors, the pixel value used to
	 * draw this color on the screen. Not used anymore.
	 */
	uint pixel;
	/**
	 * The red component of the color. This is
	 * a value between 0 and 65535, with 65535 indicating
	 * full intensity
	 */
	ushort red;
	/**
	 * The green component of the color
	 */
	ushort green;
	/**
	 * The blue component of the color
	 */
	ushort blue;
}

struct GdkCursor;

struct GdkDevice;

struct GdkDeviceManager;

struct GdkDevicePad;

struct GdkDevicePadInterface;

struct GdkDeviceTool;

struct GdkDisplay;

struct GdkDisplayManager;

struct GdkDragContext;

struct GdkDrawingContext;

struct GdkDrawingContextClass;

struct GdkEvent
{
	union
	{
		/**
		 * the #GdkEventType
		 */
		GdkEventType type;
		/**
		 * a #GdkEventAny
		 */
		GdkEventAny any;
		/**
		 * a #GdkEventExpose
		 */
		GdkEventExpose expose;
		/**
		 * a #GdkEventVisibility
		 */
		GdkEventVisibility visibility;
		/**
		 * a #GdkEventMotion
		 */
		GdkEventMotion motion;
		/**
		 * a #GdkEventButton
		 */
		GdkEventButton button;
		/**
		 * a #GdkEventTouch
		 */
		GdkEventTouch touch;
		/**
		 * a #GdkEventScroll
		 */
		GdkEventScroll scroll;
		/**
		 * a #GdkEventKey
		 */
		GdkEventKey key;
		/**
		 * a #GdkEventCrossing
		 */
		GdkEventCrossing crossing;
		/**
		 * a #GdkEventFocus
		 */
		GdkEventFocus focusChange;
		/**
		 * a #GdkEventConfigure
		 */
		GdkEventConfigure configure;
		/**
		 * a #GdkEventProperty
		 */
		GdkEventProperty property;
		/**
		 * a #GdkEventSelection
		 */
		GdkEventSelection selection;
		/**
		 * a #GdkEventOwnerChange
		 */
		GdkEventOwnerChange ownerChange;
		/**
		 * a #GdkEventProximity
		 */
		GdkEventProximity proximity;
		/**
		 * a #GdkEventDND
		 */
		GdkEventDND dnd;
		/**
		 * a #GdkEventWindowState
		 */
		GdkEventWindowState windowState;
		/**
		 * a #GdkEventSetting
		 */
		GdkEventSetting setting;
		/**
		 * a #GdkEventGrabBroken
		 */
		GdkEventGrabBroken grabBroken;
		/**
		 * a #GdkEventTouchpadSwipe
		 */
		GdkEventTouchpadSwipe touchpadSwipe;
		/**
		 * a #GdkEventTouchpadPinch
		 */
		GdkEventTouchpadPinch touchpadPinch;
		/**
		 * a #GdkEventPadButton
		 */
		GdkEventPadButton padButton;
		/**
		 * a #GdkEventPadAxis
		 */
		GdkEventPadAxis padAxis;
		/**
		 * a #GdkEventPadGroupMode
		 */
		GdkEventPadGroupMode padGroupMode;
	}
}

/**
 * Contains the fields which are common to all event structs.
 * Any event pointer can safely be cast to a pointer to a #GdkEventAny to
 * access these fields.
 */
struct GdkEventAny
{
	/**
	 * the type of the event.
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
}

/**
 * Used for button press and button release events. The
 * @type field will be one of %GDK_BUTTON_PRESS,
 * %GDK_2BUTTON_PRESS, %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE,
 *
 * Double and triple-clicks result in a sequence of events being received.
 * For double-clicks the order of events will be:
 *
 * - %GDK_BUTTON_PRESS
 * - %GDK_BUTTON_RELEASE
 * - %GDK_BUTTON_PRESS
 * - %GDK_2BUTTON_PRESS
 * - %GDK_BUTTON_RELEASE
 *
 * Note that the first click is received just like a normal
 * button press, while the second click results in a %GDK_2BUTTON_PRESS
 * being received just after the %GDK_BUTTON_PRESS.
 *
 * Triple-clicks are very similar to double-clicks, except that
 * %GDK_3BUTTON_PRESS is inserted after the third click. The order of the
 * events is:
 *
 * - %GDK_BUTTON_PRESS
 * - %GDK_BUTTON_RELEASE
 * - %GDK_BUTTON_PRESS
 * - %GDK_2BUTTON_PRESS
 * - %GDK_BUTTON_RELEASE
 * - %GDK_BUTTON_PRESS
 * - %GDK_3BUTTON_PRESS
 * - %GDK_BUTTON_RELEASE
 *
 * For a double click to occur, the second button press must occur within
 * 1/4 of a second of the first. For a triple click to occur, the third
 * button press must also occur within 1/2 second of the first button press.
 */
struct GdkEventButton
{
	/**
	 * the type of the event (%GDK_BUTTON_PRESS, %GDK_2BUTTON_PRESS,
	 * %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the window.
	 */
	double x;
	/**
	 * the y coordinate of the pointer relative to the window.
	 */
	double y;
	/**
	 * @x, @y translated to the axes of @device, or %NULL if @device is
	 * the mouse.
	 */
	double* axes;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
	/**
	 * the button which was pressed or released, numbered from 1 to 5.
	 * Normally button 1 is the left mouse button, 2 is the middle button,
	 * and 3 is the right button. On 2-button mice, the middle button can
	 * often be simulated by pressing both mouse buttons together.
	 */
	uint button;
	/**
	 * the master device that the event originated from. Use
	 * gdk_event_get_source_device() to get the slave device.
	 */
	GdkDevice* device;
	/**
	 * the x coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double yRoot;
}

/**
 * Generated when a window size or position has changed.
 */
struct GdkEventConfigure
{
	/**
	 * the type of the event (%GDK_CONFIGURE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the new x coordinate of the window, relative to its parent.
	 */
	int x;
	/**
	 * the new y coordinate of the window, relative to its parent.
	 */
	int y;
	/**
	 * the new width of the window.
	 */
	int width;
	/**
	 * the new height of the window.
	 */
	int height;
}

/**
 * Generated when the pointer enters or leaves a window.
 */
struct GdkEventCrossing
{
	/**
	 * the type of the event (%GDK_ENTER_NOTIFY or %GDK_LEAVE_NOTIFY).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the window that was entered or left.
	 */
	GdkWindow* subwindow;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the window.
	 */
	double x;
	/**
	 * the y coordinate of the pointer relative to the window.
	 */
	double y;
	/**
	 * the x coordinate of the pointer relative to the root of the screen.
	 */
	double xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the screen.
	 */
	double yRoot;
	/**
	 * the crossing mode (%GDK_CROSSING_NORMAL, %GDK_CROSSING_GRAB,
	 * %GDK_CROSSING_UNGRAB, %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB or
	 * %GDK_CROSSING_STATE_CHANGED).  %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB,
	 * and %GDK_CROSSING_STATE_CHANGED were added in 2.14 and are always synthesized,
	 * never native.
	 */
	GdkCrossingMode mode;
	/**
	 * the kind of crossing that happened (%GDK_NOTIFY_INFERIOR,
	 * %GDK_NOTIFY_ANCESTOR, %GDK_NOTIFY_VIRTUAL, %GDK_NOTIFY_NONLINEAR or
	 * %GDK_NOTIFY_NONLINEAR_VIRTUAL).
	 */
	GdkNotifyType detail;
	/**
	 * %TRUE if @window is the focus window or an inferior.
	 */
	bool focus;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
}

/**
 * Generated during DND operations.
 */
struct GdkEventDND
{
	/**
	 * the type of the event (%GDK_DRAG_ENTER, %GDK_DRAG_LEAVE,
	 * %GDK_DRAG_MOTION, %GDK_DRAG_STATUS, %GDK_DROP_START or
	 * %GDK_DROP_FINISHED).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the #GdkDragContext for the current DND operation.
	 */
	GdkDragContext* context;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the root of the
	 * screen, only set for %GDK_DRAG_MOTION and %GDK_DROP_START.
	 */
	short xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the
	 * screen, only set for %GDK_DRAG_MOTION and %GDK_DROP_START.
	 */
	short yRoot;
}

/**
 * Generated when all or part of a window becomes visible and needs to be
 * redrawn.
 */
struct GdkEventExpose
{
	/**
	 * the type of the event (%GDK_EXPOSE or %GDK_DAMAGE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * bounding box of @region.
	 */
	GdkRectangle area;
	/**
	 * the region that needs to be redrawn.
	 */
	cairo_region_t* region;
	/**
	 * the number of contiguous %GDK_EXPOSE events following this one.
	 * The only use for this is “exposure compression”, i.e. handling all
	 * contiguous %GDK_EXPOSE events in one go, though GDK performs some
	 * exposure compression so this is not normally needed.
	 */
	int count;
}

/**
 * Describes a change of keyboard focus.
 */
struct GdkEventFocus
{
	/**
	 * the type of the event (%GDK_FOCUS_CHANGE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * %TRUE if the window has gained the keyboard focus, %FALSE if
	 * it has lost the focus.
	 */
	short in_;
}

/**
 * Generated when a pointer or keyboard grab is broken. On X11, this happens
 * when the grab window becomes unviewable (i.e. it or one of its ancestors
 * is unmapped), or if the same application grabs the pointer or keyboard
 * again. Note that implicit grabs (which are initiated by button presses)
 * can also cause #GdkEventGrabBroken events.
 *
 * Since: 2.8
 */
struct GdkEventGrabBroken
{
	/**
	 * the type of the event (%GDK_GRAB_BROKEN)
	 */
	GdkEventType type;
	/**
	 * the window which received the event, i.e. the window
	 * that previously owned the grab
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * %TRUE if a keyboard grab was broken, %FALSE if a pointer
	 * grab was broken
	 */
	bool keyboard;
	/**
	 * %TRUE if the broken grab was implicit
	 */
	bool implicit;
	/**
	 * If this event is caused by another grab in the same
	 * application, @grab_window contains the new grab window. Otherwise
	 * @grab_window is %NULL.
	 */
	GdkWindow* grabWindow;
}

/**
 * Describes a key press or key release event.
 */
struct GdkEventKey
{
	/**
	 * the type of the event (%GDK_KEY_PRESS or %GDK_KEY_RELEASE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
	/**
	 * the key that was pressed or released. See the
	 * `gdk/gdkkeysyms.h` header file for a
	 * complete list of GDK key codes.
	 */
	uint keyval;
	/**
	 * the length of @string.
	 */
	int length;
	/**
	 * a string containing an approximation of the text that
	 * would result from this keypress. The only correct way to handle text
	 * input of text is using input methods (see #GtkIMContext), so this
	 * field is deprecated and should never be used.
	 * (gdk_unicode_to_keyval() provides a non-deprecated way of getting
	 * an approximate translation for a key.) The string is encoded in the
	 * encoding of the current locale (Note: this for backwards compatibility:
	 * strings in GTK+ and GDK are typically in UTF-8.) and NUL-terminated.
	 * In some cases, the translation of the key code will be a single
	 * NUL byte, in which case looking at @length is necessary to distinguish
	 * it from the an empty translation.
	 */
	char* string_;
	/**
	 * the raw code of the key that was pressed or released.
	 */
	ushort hardwareKeycode;
	/**
	 * the keyboard group.
	 */
	ubyte group;
	import std.bitmanip: bitfields;
	mixin(bitfields!(
		uint, "isModifier", 1,
		uint, "", 31
	));
}

/**
 * Generated when the pointer moves.
 */
struct GdkEventMotion
{
	/**
	 * the type of the event.
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the window.
	 */
	double x;
	/**
	 * the y coordinate of the pointer relative to the window.
	 */
	double y;
	/**
	 * @x, @y translated to the axes of @device, or %NULL if @device is
	 * the mouse.
	 */
	double* axes;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
	/**
	 * set to 1 if this event is just a hint, see the
	 * %GDK_POINTER_MOTION_HINT_MASK value of #GdkEventMask.
	 */
	short isHint;
	/**
	 * the master device that the event originated from. Use
	 * gdk_event_get_source_device() to get the slave device.
	 */
	GdkDevice* device;
	/**
	 * the x coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double yRoot;
}

/**
 * Generated when the owner of a selection changes. On X11, this
 * information is only available if the X server supports the XFIXES
 * extension.
 *
 * Since: 2.6
 */
struct GdkEventOwnerChange
{
	/**
	 * the type of the event (%GDK_OWNER_CHANGE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the new owner of the selection, or %NULL if there is none
	 */
	GdkWindow* owner;
	/**
	 * the reason for the ownership change as a #GdkOwnerChange value
	 */
	GdkOwnerChange reason;
	/**
	 * the atom identifying the selection
	 */
	GdkAtom selection;
	/**
	 * the timestamp of the event
	 */
	uint time;
	/**
	 * the time at which the selection ownership was taken
	 * over
	 */
	uint selectionTime;
}

/**
 * Generated during %GDK_SOURCE_TABLET_PAD interaction with tactile sensors.
 *
 * Since: 3.22
 */
struct GdkEventPadAxis
{
	/**
	 * the type of the event (%GDK_PAD_RING or %GDK_PAD_STRIP).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the pad group the ring/strip belongs to. A %GDK_SOURCE_TABLET_PAD
	 * device may have one or more groups containing a set of buttons/rings/strips
	 * each.
	 */
	uint group;
	/**
	 * number of strip/ring that was interacted. This number is 0-indexed.
	 */
	uint index;
	/**
	 * The current mode of @group. Different groups in a %GDK_SOURCE_TABLET_PAD
	 * device may have different current modes.
	 */
	uint mode;
	/**
	 * The current value for the given axis.
	 */
	double value;
}

/**
 * Generated during %GDK_SOURCE_TABLET_PAD button presses and releases.
 *
 * Since: 3.22
 */
struct GdkEventPadButton
{
	/**
	 * the type of the event (%GDK_PAD_BUTTON_PRESS or %GDK_PAD_BUTTON_RELEASE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the pad group the button belongs to. A %GDK_SOURCE_TABLET_PAD device
	 * may have one or more groups containing a set of buttons/rings/strips each.
	 */
	uint group;
	/**
	 * The pad button that was pressed.
	 */
	uint button;
	/**
	 * The current mode of @group. Different groups in a %GDK_SOURCE_TABLET_PAD
	 * device may have different current modes.
	 */
	uint mode;
}

/**
 * Generated during %GDK_SOURCE_TABLET_PAD mode switches in a group.
 *
 * Since: 3.22
 */
struct GdkEventPadGroupMode
{
	/**
	 * the type of the event (%GDK_PAD_GROUP_MODE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the pad group that is switching mode. A %GDK_SOURCE_TABLET_PAD
	 * device may have one or more groups containing a set of buttons/rings/strips
	 * each.
	 */
	uint group;
	/**
	 * The new mode of @group. Different groups in a %GDK_SOURCE_TABLET_PAD
	 * device may have different current modes.
	 */
	uint mode;
}

/**
 * Describes a property change on a window.
 */
struct GdkEventProperty
{
	/**
	 * the type of the event (%GDK_PROPERTY_NOTIFY).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the property that was changed.
	 */
	GdkAtom atom;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * whether the property was changed
	 * (%GDK_PROPERTY_NEW_VALUE) or deleted (%GDK_PROPERTY_DELETE).
	 */
	PropertyState state;
}

/**
 * Proximity events are generated when using GDK’s wrapper for the
 * XInput extension. The XInput extension is an add-on for standard X
 * that allows you to use nonstandard devices such as graphics tablets.
 * A proximity event indicates that the stylus has moved in or out of
 * contact with the tablet, or perhaps that the user’s finger has moved
 * in or out of contact with a touch screen.
 *
 * This event type will be used pretty rarely. It only is important for
 * XInput aware programs that are drawing their own cursor.
 */
struct GdkEventProximity
{
	/**
	 * the type of the event (%GDK_PROXIMITY_IN or %GDK_PROXIMITY_OUT).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the master device that the event originated from. Use
	 * gdk_event_get_source_device() to get the slave device.
	 */
	GdkDevice* device;
}

/**
 * Generated from button presses for the buttons 4 to 7. Wheel mice are
 * usually configured to generate button press events for buttons 4 and 5
 * when the wheel is turned.
 *
 * Some GDK backends can also generate “smooth” scroll events, which
 * can be recognized by the %GDK_SCROLL_SMOOTH scroll direction. For
 * these, the scroll deltas can be obtained with
 * gdk_event_get_scroll_deltas().
 */
struct GdkEventScroll
{
	/**
	 * the type of the event (%GDK_SCROLL).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the window.
	 */
	double x;
	/**
	 * the y coordinate of the pointer relative to the window.
	 */
	double y;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
	/**
	 * the direction to scroll to (one of %GDK_SCROLL_UP,
	 * %GDK_SCROLL_DOWN, %GDK_SCROLL_LEFT, %GDK_SCROLL_RIGHT or
	 * %GDK_SCROLL_SMOOTH).
	 */
	GdkScrollDirection direction;
	/**
	 * the master device that the event originated from. Use
	 * gdk_event_get_source_device() to get the slave device.
	 */
	GdkDevice* device;
	/**
	 * the x coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the
	 * screen.
	 */
	double yRoot;
	/**
	 * the x coordinate of the scroll delta
	 */
	double deltaX;
	/**
	 * the y coordinate of the scroll delta
	 */
	double deltaY;
	import std.bitmanip: bitfields;
	mixin(bitfields!(
		uint, "isStop", 1,
		uint, "", 31
	));
}

/**
 * Generated when a selection is requested or ownership of a selection
 * is taken over by another client application.
 */
struct GdkEventSelection
{
	/**
	 * the type of the event (%GDK_SELECTION_CLEAR,
	 * %GDK_SELECTION_NOTIFY or %GDK_SELECTION_REQUEST).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the selection.
	 */
	GdkAtom selection;
	/**
	 * the target to which the selection should be converted.
	 */
	GdkAtom target;
	/**
	 * the property in which to place the result of the conversion.
	 */
	GdkAtom property;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the window on which to place @property or %NULL if none.
	 */
	GdkWindow* requestor;
}

struct GdkEventSequence;

/**
 * Generated when a setting is modified.
 */
struct GdkEventSetting
{
	/**
	 * the type of the event (%GDK_SETTING).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * what happened to the setting (%GDK_SETTING_ACTION_NEW,
	 * %GDK_SETTING_ACTION_CHANGED or %GDK_SETTING_ACTION_DELETED).
	 */
	GdkSettingAction action;
	/**
	 * the name of the setting.
	 */
	char* name;
}

/**
 * Used for touch events.
 * @type field will be one of %GDK_TOUCH_BEGIN, %GDK_TOUCH_UPDATE,
 * %GDK_TOUCH_END or %GDK_TOUCH_CANCEL.
 *
 * Touch events are grouped into sequences by means of the @sequence
 * field, which can also be obtained with gdk_event_get_event_sequence().
 * Each sequence begins with a %GDK_TOUCH_BEGIN event, followed by
 * any number of %GDK_TOUCH_UPDATE events, and ends with a %GDK_TOUCH_END
 * (or %GDK_TOUCH_CANCEL) event. With multitouch devices, there may be
 * several active sequences at the same time.
 */
struct GdkEventTouch
{
	/**
	 * the type of the event (%GDK_TOUCH_BEGIN, %GDK_TOUCH_UPDATE,
	 * %GDK_TOUCH_END, %GDK_TOUCH_CANCEL)
	 */
	GdkEventType type;
	/**
	 * the window which received the event
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the time of the event in milliseconds.
	 */
	uint time;
	/**
	 * the x coordinate of the pointer relative to the window
	 */
	double x;
	/**
	 * the y coordinate of the pointer relative to the window
	 */
	double y;
	/**
	 * @x, @y translated to the axes of @device, or %NULL if @device is
	 * the mouse
	 */
	double* axes;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType
	 */
	ModifierType state;
	/**
	 * the event sequence that the event belongs to
	 */
	GdkEventSequence* sequence;
	/**
	 * whether the event should be used for emulating
	 * pointer event
	 */
	bool emulatingPointer;
	/**
	 * the master device that the event originated from. Use
	 * gdk_event_get_source_device() to get the slave device.
	 */
	GdkDevice* device;
	/**
	 * the x coordinate of the pointer relative to the root of the
	 * screen
	 */
	double xRoot;
	/**
	 * the y coordinate of the pointer relative to the root of the
	 * screen
	 */
	double yRoot;
}

/**
 * Generated during touchpad swipe gestures.
 */
struct GdkEventTouchpadPinch
{
	/**
	 * the type of the event (%GDK_TOUCHPAD_PINCH)
	 */
	GdkEventType type;
	/**
	 * the window which received the event
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly
	 */
	byte sendEvent;
	/**
	 * the current phase of the gesture
	 */
	byte phase;
	/**
	 * The number of fingers triggering the pinch
	 */
	byte nFingers;
	/**
	 * the time of the event in milliseconds
	 */
	uint time;
	/**
	 * The X coordinate of the pointer
	 */
	double x;
	/**
	 * The Y coordinate of the pointer
	 */
	double y;
	/**
	 * Movement delta in the X axis of the swipe focal point
	 */
	double dx;
	/**
	 * Movement delta in the Y axis of the swipe focal point
	 */
	double dy;
	/**
	 * The angle change in radians, negative angles
	 * denote counter-clockwise movements
	 */
	double angleDelta;
	/**
	 * The current scale, relative to that at the time of
	 * the corresponding %GDK_TOUCHPAD_GESTURE_PHASE_BEGIN event
	 */
	double scale;
	/**
	 * The X coordinate of the pointer, relative to the
	 * root of the screen.
	 */
	double xRoot;
	/**
	 * The Y coordinate of the pointer, relative to the
	 * root of the screen.
	 */
	double yRoot;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
}

/**
 * Generated during touchpad swipe gestures.
 */
struct GdkEventTouchpadSwipe
{
	/**
	 * the type of the event (%GDK_TOUCHPAD_SWIPE)
	 */
	GdkEventType type;
	/**
	 * the window which received the event
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly
	 */
	byte sendEvent;
	/**
	 * the current phase of the gesture
	 */
	byte phase;
	/**
	 * The number of fingers triggering the swipe
	 */
	byte nFingers;
	/**
	 * the time of the event in milliseconds
	 */
	uint time;
	/**
	 * The X coordinate of the pointer
	 */
	double x;
	/**
	 * The Y coordinate of the pointer
	 */
	double y;
	/**
	 * Movement delta in the X axis of the swipe focal point
	 */
	double dx;
	/**
	 * Movement delta in the Y axis of the swipe focal point
	 */
	double dy;
	/**
	 * The X coordinate of the pointer, relative to the
	 * root of the screen.
	 */
	double xRoot;
	/**
	 * The Y coordinate of the pointer, relative to the
	 * root of the screen.
	 */
	double yRoot;
	/**
	 * a bit-mask representing the state of
	 * the modifier keys (e.g. Control, Shift and Alt) and the pointer
	 * buttons. See #GdkModifierType.
	 */
	ModifierType state;
}

/**
 * Generated when the window visibility status has changed.
 *
 * Deprecated: Modern composited windowing systems with pervasive
 * transparency make it impossible to track the visibility of a window
 * reliably, so this event can not be guaranteed to provide useful
 * information.
 */
struct GdkEventVisibility
{
	/**
	 * the type of the event (%GDK_VISIBILITY_NOTIFY).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * the new visibility state (%GDK_VISIBILITY_FULLY_OBSCURED,
	 * %GDK_VISIBILITY_PARTIAL or %GDK_VISIBILITY_UNOBSCURED).
	 */
	GdkVisibilityState state;
}

/**
 * Generated when the state of a toplevel window changes.
 */
struct GdkEventWindowState
{
	/**
	 * the type of the event (%GDK_WINDOW_STATE).
	 */
	GdkEventType type;
	/**
	 * the window which received the event.
	 */
	GdkWindow* window;
	/**
	 * %TRUE if the event was sent explicitly.
	 */
	byte sendEvent;
	/**
	 * mask specifying what flags have changed.
	 */
	GdkWindowState changedMask;
	/**
	 * the new window state, a combination of
	 * #GdkWindowState bits.
	 */
	GdkWindowState newWindowState;
}

struct GdkFrameClock;

struct GdkFrameClockClass;

struct GdkFrameClockPrivate;

struct GdkFrameTimings;

struct GdkGLContext;

/**
 * The #GdkGeometry struct gives the window manager information about
 * a window’s geometry constraints. Normally you would set these on
 * the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
 * then sets the hints on the #GdkWindow it creates.
 *
 * gdk_window_set_geometry_hints() expects the hints to be fully valid already
 * and simply passes them to the window manager; in contrast,
 * gtk_window_set_geometry_hints() performs some interpretation. For example,
 * #GtkWindow will apply the hints to the geometry widget instead of the
 * toplevel window, if you set a geometry widget. Also, the
 * @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
 * #GtkWindow will substitute the size request of the window or geometry widget.
 * If the minimum size hint is not provided, #GtkWindow will use its requisition
 * as the minimum size. If the minimum size is provided and a geometry widget is
 * set, #GtkWindow will take the minimum size as the minimum size of the
 * geometry widget rather than the entire window. The base size is treated
 * similarly.
 *
 * The canonical use-case for gtk_window_set_geometry_hints() is to get a
 * terminal widget to resize properly. Here, the terminal text area should be
 * the geometry widget; #GtkWindow will then automatically set the base size to
 * the size of other widgets in the terminal window, such as the menubar and
 * scrollbar. Then, the @width_inc and @height_inc fields should be set to the
 * size of one character in the terminal. Finally, the base size should be set
 * to the size of one character. The net effect is that the minimum size of the
 * terminal will have a 1x1 character terminal area, and only terminal sizes on
 * the “character grid” will be allowed.
 *
 * Here’s an example of how the terminal example would be implemented, assuming
 * a terminal area widget called “terminal” and a toplevel window “toplevel”:
 *
 * |[<!-- language="C" -->
 * GdkGeometry hints;
 *
 * hints.base_width = terminal->char_width;
 * hints.base_height = terminal->char_height;
 * hints.min_width = terminal->char_width;
 * hints.min_height = terminal->char_height;
 * hints.width_inc = terminal->char_width;
 * hints.height_inc = terminal->char_height;
 *
 * gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
 * GTK_WIDGET (terminal),
 * &hints,
 * GDK_HINT_RESIZE_INC |
 * GDK_HINT_MIN_SIZE |
 * GDK_HINT_BASE_SIZE);
 * ]|
 *
 * The other useful fields are the @min_aspect and @max_aspect fields; these
 * contain a width/height ratio as a floating point number. If a geometry widget
 * is set, the aspect applies to the geometry widget rather than the entire
 * window. The most common use of these hints is probably to set @min_aspect and
 * @max_aspect to the same value, thus forcing the window to keep a constant
 * aspect ratio.
 */
struct GdkGeometry
{
	/**
	 * minimum width of window (or -1 to use requisition, with
	 * #GtkWindow only)
	 */
	int minWidth;
	/**
	 * minimum height of window (or -1 to use requisition, with
	 * #GtkWindow only)
	 */
	int minHeight;
	/**
	 * maximum width of window (or -1 to use requisition, with
	 * #GtkWindow only)
	 */
	int maxWidth;
	/**
	 * maximum height of window (or -1 to use requisition, with
	 * #GtkWindow only)
	 */
	int maxHeight;
	/**
	 * allowed window widths are @base_width + @width_inc * N where N
	 * is any integer (-1 allowed with #GtkWindow)
	 */
	int baseWidth;
	/**
	 * allowed window widths are @base_height + @height_inc * N where
	 * N is any integer (-1 allowed with #GtkWindow)
	 */
	int baseHeight;
	/**
	 * width resize increment
	 */
	int widthInc;
	/**
	 * height resize increment
	 */
	int heightInc;
	/**
	 * minimum width/height ratio
	 */
	double minAspect;
	/**
	 * maximum width/height ratio
	 */
	double maxAspect;
	/**
	 * window gravity, see gtk_window_set_gravity()
	 */
	GdkGravity winGravity;
}

struct GdkKeymap;

/**
 * A #GdkKeymapKey is a hardware key that can be mapped to a keyval.
 */
struct GdkKeymapKey
{
	/**
	 * the hardware keycode. This is an identifying number for a
	 * physical key.
	 */
	uint keycode;
	/**
	 * indicates movement in a horizontal direction. Usually groups are used
	 * for two different languages. In group 0, a key might have two English
	 * characters, and in group 1 it might have two Hebrew characters. The Hebrew
	 * characters will be printed on the key next to the English characters.
	 */
	int group;
	/**
	 * indicates which symbol on the key will be used, in a vertical direction.
	 * So on a standard US keyboard, the key with the number “1” on it also has the
	 * exclamation point ("!") character on it. The level indicates whether to use
	 * the “1” or the “!” symbol. The letter keys are considered to have a lowercase
	 * letter at level 0, and an uppercase letter at level 1, though only the
	 * uppercase letter is printed.
	 */
	int level;
}

struct GdkMonitor;

struct GdkMonitorClass;

/**
 * Defines the x and y coordinates of a point.
 */
struct GdkPoint
{
	/**
	 * the x coordinate of the point.
	 */
	int x;
	/**
	 * the y coordinate of the point.
	 */
	int y;
}

struct GdkRGBA
{
	/**
	 * The intensity of the red channel from 0.0 to 1.0 inclusive
	 */
	double red;
	/**
	 * The intensity of the green channel from 0.0 to 1.0 inclusive
	 */
	double green;
	/**
	 * The intensity of the blue channel from 0.0 to 1.0 inclusive
	 */
	double blue;
	/**
	 * The opacity of the color from 0.0 for completely translucent to
	 * 1.0 for opaque
	 */
	double alpha;
}

/**
 * Defines the position and size of a rectangle. It is identical to
 * #cairo_rectangle_int_t.
 */
struct GdkRectangle
{
	int x;
	int y;
	int width;
	int height;
}

struct GdkScreen;

struct GdkSeat
{
	GObject parentInstance;
}

/**
 * A #GdkTimeCoord stores a single event in a motion history.
 */
struct GdkTimeCoord
{
	/**
	 * The timestamp for this event.
	 */
	uint time;
	/**
	 * the values of the device’s axes.
	 */
	double[128] axes;
}

struct GdkVisual;

struct GdkWindow;

/**
 * Attributes to use for a newly-created window.
 */
struct GdkWindowAttr
{
	/**
	 * title of the window (for toplevel windows)
	 */
	char* title;
	/**
	 * event mask (see gdk_window_set_events())
	 */
	int eventMask;
	/**
	 * X coordinate relative to parent window (see gdk_window_move())
	 */
	int x;
	/**
	 * Y coordinate relative to parent window (see gdk_window_move())
	 */
	int y;
	/**
	 * width of window
	 */
	int width;
	/**
	 * height of window
	 */
	int height;
	/**
	 * #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible
	 * window that receives events)
	 */
	GdkWindowWindowClass wclass;
	/**
	 * #GdkVisual for window
	 */
	GdkVisual* visual;
	/**
	 * type of window
	 */
	GdkWindowType windowType;
	/**
	 * cursor for the window (see gdk_window_set_cursor())
	 */
	GdkCursor* cursor;
	/**
	 * don’t use (see gtk_window_set_wmclass())
	 */
	char* wmclassName;
	/**
	 * don’t use (see gtk_window_set_wmclass())
	 */
	char* wmclassClass;
	/**
	 * %TRUE to bypass the window manager
	 */
	bool overrideRedirect;
	/**
	 * a hint of the function of the window
	 */
	GdkWindowTypeHint typeHint;
}

struct GdkWindowClass
{
	GObjectClass parentClass;
	/** */
	extern(C) GdkWindow* function(GdkWindow* window, double x, double y) pickEmbeddedChild;
	/** */
	extern(C) void function(GdkWindow* window, double offscreenX, double offscreenY, double* embedderX, double* embedderY) toEmbedder;
	/** */
	extern(C) void function(GdkWindow* window, double embedderX, double embedderY, double* offscreenX, double* offscreenY) fromEmbedder;
	/** */
	extern(C) cairo_surface_t* function(GdkWindow* window, int width, int height) createSurface;
	/** */
	extern(C) void function() GdkReserved1;
	/** */
	extern(C) void function() GdkReserved2;
	/** */
	extern(C) void function() GdkReserved3;
	/** */
	extern(C) void function() GdkReserved4;
	/** */
	extern(C) void function() GdkReserved5;
	/** */
	extern(C) void function() GdkReserved6;
	/** */
	extern(C) void function() GdkReserved7;
	/** */
	extern(C) void function() GdkReserved8;
}

struct GdkWindowRedirect;

struct GdkX11GLContextClass;

struct GdkX11MonitorClass;

struct GdkX11Window;

struct GdkX11WindowClass;

/**
 * Specifies the type of function passed to gdk_event_handler_set() to
 * handle all GDK events.
 *
 * Params:
 *     event = the #GdkEvent to process.
 *     data = user data set when the event handler was installed with
 *         gdk_event_handler_set().
 */
public alias extern(C) void function(GdkEvent* event, void* data) GdkEventFunc;

/**
 * Specifies the type of function used to filter native events before they are
 * converted to GDK events.
 *
 * When a filter is called, @event is unpopulated, except for
 * `event->window`. The filter may translate the native
 * event to a GDK event and store the result in @event, or handle it without
 * translation. If the filter translates the event and processing should
 * continue, it should return %GDK_FILTER_TRANSLATE.
 *
 * Params:
 *     xevent = the native event to filter.
 *     event = the GDK event to which the X event will be translated.
 *     data = user data set when the filter was installed.
 *
 * Returns: a #GdkFilterReturn value.
 */
public alias extern(C) GdkFilterReturn function(GdkXEvent* xevent, GdkEvent* event, void* data) GdkFilterFunc;

/**
 * Type of the callback used to set up @window so it can be
 * grabbed. A typical action would be ensuring the window is
 * visible, although there's room for other initialization
 * actions.
 *
 * Params:
 *     seat = the #GdkSeat being grabbed
 *     window = the #GdkWindow being grabbed
 *     userData = user data passed in gdk_seat_grab()
 *
 * Since: 3.20
 */
public alias extern(C) void function(GdkSeat* seat, GdkWindow* window, void* userData) GdkSeatGrabPrepareFunc;

/**
 * A function of this type is passed to gdk_window_invalidate_maybe_recurse().
 * It gets called for each child of the window to determine whether to
 * recursively invalidate it or now.
 *
 * Params:
 *     window = a #GdkWindow
 *     userData = user data
 *
 * Returns: %TRUE to invalidate @window recursively
 */
public alias extern(C) int function(GdkWindow* window, void* userData) GdkWindowChildFunc;

/**
 * Whenever some area of the window is invalidated (directly in the
 * window or in a child window) this gets called with @region in
 * the coordinate space of @window. You can use @region to just
 * keep track of the dirty region, or you can actually change
 * @region in case you are doing display tricks like showing
 * a child in multiple places.
 *
 * Params:
 *     window = a #GdkWindow
 *     region = a #cairo_region_t
 *
 * Since: 3.10
 */
public alias extern(C) void function(GdkWindow* window, cairo_region_t* region) GdkWindowInvalidateHandlerFunc;

/**
 * The middle button.
 */
enum BUTTON_MIDDLE = 2;
alias GDK_BUTTON_MIDDLE = BUTTON_MIDDLE;

/**
 * The primary button. This is typically the left mouse button, or the
 * right button in a left-handed setup.
 */
enum BUTTON_PRIMARY = 1;
alias GDK_BUTTON_PRIMARY = BUTTON_PRIMARY;

/**
 * The secondary button. This is typically the right mouse button, or the
 * left button in a left-handed setup.
 */
enum BUTTON_SECONDARY = 3;
alias GDK_BUTTON_SECONDARY = BUTTON_SECONDARY;

/**
 * Represents the current time, and can be used anywhere a time is expected.
 */
enum CURRENT_TIME = 0;
alias GDK_CURRENT_TIME = CURRENT_TIME;

/**
 * Use this macro as the return value for continuing the propagation of
 * an event handler.
 */
enum EVENT_PROPAGATE = false;
alias GDK_EVENT_PROPAGATE = EVENT_PROPAGATE;

/**
 * Use this macro as the return value for stopping the propagation of
 * an event handler.
 */
enum EVENT_STOP = true;
alias GDK_EVENT_STOP = EVENT_STOP;

enum MAJOR_VERSION = 3;
alias GDK_MAJOR_VERSION = MAJOR_VERSION;

enum MAX_TIMECOORD_AXES = 128;
alias GDK_MAX_TIMECOORD_AXES = MAX_TIMECOORD_AXES;

enum MICRO_VERSION = 8;
alias GDK_MICRO_VERSION = MICRO_VERSION;

enum MINOR_VERSION = 24;
alias GDK_MINOR_VERSION = MINOR_VERSION;

/**
 * A special value, indicating that the background
 * for a window should be inherited from the parent window.
 */
enum PARENT_RELATIVE = 1;
alias GDK_PARENT_RELATIVE = PARENT_RELATIVE;

/**
 * This is the priority that the idle handler processing window updates
 * is given in the
 * [GLib Main Loop][glib-The-Main-Event-Loop].
 */
enum PRIORITY_REDRAW = 120;
alias GDK_PRIORITY_REDRAW = PRIORITY_REDRAW;