1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
	storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
	#[inline]
	pub const fn new(storage: Storage) -> Self { Self { storage } }
}
impl<Storage> __BindgenBitfieldUnit<Storage> where Storage: AsRef<[u8]> + AsMut<[u8]> {
	#[inline]
	pub fn get_bit(&self, index: usize) -> bool {
		debug_assert!(index / 8 < self.storage.as_ref().len());
		let byte_index = index / 8;
		let byte = self.storage.as_ref()[byte_index];
		let bit_index = if cfg!(target_endian = "big") {
			7 - (index % 8)
		} else {
			index % 8
		};
		let mask = 1 << bit_index;
		byte & mask == mask
	}
	#[inline]
	pub fn set_bit(&mut self, index: usize, val: bool) {
		debug_assert!(index / 8 < self.storage.as_ref().len());
		let byte_index = index / 8;
		let byte = &mut self.storage.as_mut()[byte_index];
		let bit_index = if cfg!(target_endian = "big") {
			7 - (index % 8)
		} else {
			index % 8
		};
		let mask = 1 << bit_index;
		if val {
			*byte |= mask;
		} else {
			*byte &= !mask;
		}
	}
	#[inline]
	pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
		let mut val = 0;
		for i in 0..(bit_width as usize) {
			if self.get_bit(i + bit_offset) {
				let index = if cfg!(target_endian = "big") {
					bit_width as usize - 1 - i
				} else {
					i
				};
				val |= 1 << index;
			}
		}
		val
	}
	#[inline]
	pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
		for i in 0..(bit_width as usize) {
			let mask = 1 << i;
			let val_bit_is_set = val & mask == mask;
			let index = if cfg!(target_endian = "big") {
				bit_width as usize - 1 - i
			} else {
				i
			};
			self.set_bit(index + bit_offset, val_bit_is_set);
		}
	}
}
pub const LCD_COLUMNS: u32 = 400;
pub const LCD_ROWS: u32 = 240;
pub const LCD_ROWSIZE: u32 = 52;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const AUDIO_FRAMES_PER_CYCLE: u32 = 512;
pub const NOTE_C4: u32 = 60;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct LCDRect {
	pub left: core::ffi::c_int,
	pub right: core::ffi::c_int,
	pub top: core::ffi::c_int,
	pub bottom: core::ffi::c_int,
}
#[test]
fn bindgen_test_layout_LCDRect() {
	const UNINIT: ::core::mem::MaybeUninit<LCDRect> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<LCDRect>(),
	           16usize,
	           concat!("Size of: ", stringify!(LCDRect))
	);
	assert_eq!(
	           ::core::mem::align_of::<LCDRect>(),
	           4usize,
	           concat!("Alignment of ", stringify!(LCDRect))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).left) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(LCDRect), "::", stringify!(left))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).right) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(LCDRect), "::", stringify!(right))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).top) as usize - ptr as usize },
	           8usize,
	           concat!("Offset of field: ", stringify!(LCDRect), "::", stringify!(top))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize },
	           12usize,
	           concat!("Offset of field: ", stringify!(LCDRect), "::", stringify!(bottom))
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LCDBitmapDrawMode {
	kDrawModeCopy = 0,
	kDrawModeWhiteTransparent = 1,
	kDrawModeBlackTransparent = 2,
	kDrawModeFillWhite = 3,
	kDrawModeFillBlack = 4,
	kDrawModeXOR = 5,
	kDrawModeNXOR = 6,
	kDrawModeInverted = 7,
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LCDBitmapFlip {
	kBitmapUnflipped = 0,
	kBitmapFlippedX = 1,
	kBitmapFlippedY = 2,
	kBitmapFlippedXY = 3,
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LCDSolidColor {
	kColorBlack = 0,
	kColorWhite = 1,
	kColorClear = 2,
	kColorXOR = 3,
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LCDLineCapStyle {
	kLineCapStyleButt = 0,
	kLineCapStyleSquare = 1,
	kLineCapStyleRound = 2,
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum PDStringEncoding {
	kASCIIEncoding = 0,
	kUTF8Encoding = 1,
	k16BitLEEncoding = 2,
}
pub type LCDPattern = [u8; 16usize];
pub type LCDColor = usize;
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LCDPolygonFillRule {
	kPolygonFillNonZero = 0,
	kPolygonFillEvenOdd = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDBitmap {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDBitmapTable {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDFont {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDFontData {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDFontPage {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDFontGlyph {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDVideoPlayer {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_video {
	#[doc = "`LCDVideoPlayer playdate->graphics->video->loadVideo(const char* path)`\n\nOpens the *pdv* file at *path* and returns a new video player object for rendering its frames."]
	pub loadVideo:
		::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char) -> *mut LCDVideoPlayer>,
	#[doc = "`void playdate->graphics->video->freePlayer(LCDVideoPlayer* p)`\n\nFrees the given video player."]
	pub freePlayer: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
	#[doc = "`int playdate->graphics->video->setContext(LCDVideoPlayer* p, LCDBitmap* context)`\n\nSets the rendering destination for the video player to the given bitmap. If the function fails, it returns 0 and sets an error message that can be read via [getError()](#f-graphics.video.getError)."]
	pub setContext: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer,
	                                                            context: *mut LCDBitmap)
	                                                            -> core::ffi::c_int>,
	#[doc = "`void playdate->graphics->video->useScreenContext(LCDVideoPlayer* p)`\n\nSets the rendering destination for the video player to the screen."]
	pub useScreenContext: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
	#[doc = "`void playdate->graphics->video->renderFrame(LCDVideoPlayer* p, int n)`\n\nRenders frame number *n* into the current context. In case of error, the function returns 0 and sets an error message that can be read via [getError()](#f-graphics.video.getError)."]
	pub renderFrame: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer,
	                                                             n: core::ffi::c_int)
	                                                             -> core::ffi::c_int>,
	#[doc = "`const char* playdate->graphics->video->getError(LCDVideoPlayer* p)`\n\nReturns text describing the most recent error."]
	pub getError: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *const core::ffi::c_char>,
	#[doc = "`void playdate->graphics->video->getInfo(LCDVideoPlayer* p, int* outWidth, int* outHeight, float* outFrameRate, int* outFrameCount, int* outCurrentFrame)`\n\nRetrieves information about the video, by passing in (possibly NULL) value pointers."]
	pub getInfo: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer,
	                                                         outWidth: *mut core::ffi::c_int,
	                                                         outHeight: *mut core::ffi::c_int,
	                                                         outFrameRate: *mut core::ffi::c_float,
	                                                         outFrameCount: *mut core::ffi::c_int,
	                                                         outCurrentFrame: *mut core::ffi::c_int)>,
	#[doc = "`LCBitmap* playdate->graphics->video->getContext(LCDVideoPlayer* p)`\n\nGets the rendering destination for the video player. If no rendering context has been setallocates a context bitmap with the same dimensions as the vieo will be allocated."]
	pub getContext: ::core::option::Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *mut LCDBitmap>,
}
#[test]
fn bindgen_test_layout_playdate_video() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_video> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_video>(),
	           32usize,
	           concat!("Size of: ", stringify!(playdate_video))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_video>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_video))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadVideo) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(loadVideo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freePlayer) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(freePlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setContext) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(setContext)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).useScreenContext) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(useScreenContext)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).renderFrame) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(renderFrame)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getError) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(getError)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getInfo) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(getInfo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getContext) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_video),
		"::",
		stringify!(getContext)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_graphics {
	pub video: *const playdate_video,
	#[doc = "`void playdate->graphics->clear(LCDColor color);`\n\nClears the entire display, filling it with *color*.\n\nEquivalent to [`playdate.graphics.clear()`](./Inside%20Playdate.html#f-graphics.clear) in the Lua API."]
	pub clear: ::core::option::Option<unsafe extern "C" fn(color: LCDColor)>,
	#[doc = "`void playdate->graphics->setBackgroundColor(LCDColor color);`\n\nSets the background color shown when the display is [offset](#f-display.setOffset) or for clearing dirty areas in the sprite system.\n\nEquivalent to [`playdate.graphics.setBackgroundColor()`](./Inside%20Playdate.html#f-graphics.setBackgroundColor) in the Lua API."]
	pub setBackgroundColor: ::core::option::Option<unsafe extern "C" fn(color: LCDSolidColor)>,
	#[doc = "`void playdate->graphics->setStencil(LCDBitmap* stencil);`\n\nSets the stencil used for drawing. For a tiled stencil, use *setStencilImage()* instead. To clear the stencil, set it to *NULL*."]
	pub setStencil: ::core::option::Option<unsafe extern "C" fn(stencil: *mut LCDBitmap)>,
	#[doc = "`void playdate->graphics->setDrawMode(LCDBitmapDrawMode mode);`\n\nSets the mode used for drawing bitmaps. Note that text drawing uses bitmaps, so this affects how fonts are displayed as well.\n\nLCDBitmapDrawMode\n\n```cpp\ntypedef enum\n{\n\tkDrawModeCopy,\n\tkDrawModeWhiteTransparent,\n\tkDrawModeBlackTransparent,\n\tkDrawModeFillWhite,\n\tkDrawModeFillBlack,\n\tkDrawModeXOR,\n\tkDrawModeNXOR,\n\tkDrawModeInverted\n} LCDBitmapDrawMode;\n```\n\nEquivalent to [`playdate.graphics.setImageDrawMode()`](./Inside%20Playdate.html#f-graphics.setImageDrawMode) in the Lua API."]
	pub setDrawMode: ::core::option::Option<unsafe extern "C" fn(mode: LCDBitmapDrawMode)>,
	#[doc = "`void playdate->graphics->setDrawOffset(int dx, int dy);`\n\nOffsets the origin point for all drawing calls to *x*, *y* (can be negative).\n\nThis is useful, for example, for centering a \"camera\" on a sprite that is moving around a world larger than the screen.\n\nEquivalent to [`playdate.graphics.setDrawOffset()`](./Inside%20Playdate.html#f-graphics.setDrawOffset) in the Lua API."]
	pub setDrawOffset: ::core::option::Option<unsafe extern "C" fn(dx: core::ffi::c_int, dy: core::ffi::c_int)>,
	#[doc = "`void playdate->graphics->setClipRect(int x, int y, int width, int height);`\n\nSets the current clip rect, using world coordinates—\u{200b}that is, the given rectangle will be translated by the current drawing offset. The clip rect is cleared at the beginning of each update.\n\nEquivalent to [`playdate.graphics.setClipRect()`](./Inside%20Playdate.html#f-graphics.setClipRect) in the Lua API."]
	pub setClipRect: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                             y: core::ffi::c_int,
	                                                             width: core::ffi::c_int,
	                                                             height: core::ffi::c_int)>,
	#[doc = "`void playdate->graphics->clearClipRect(void);`\n\nClears the current clip rect.\n\nEquivalent to [`playdate.graphics.clearClipRect()`](./Inside%20Playdate.html#f-graphics.clearClipRect) in the Lua API."]
	pub clearClipRect: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->graphics->setLineCapStyle(LCDLineCapStyle endCapStyle);`\n\nSets the end cap style used in the line drawing functions.\n\nLCDLineCapStyle\n\n```cpp\ntypedef enum\n{\n\tkLineCapStyleButt,\n\tkLineCapStyleSquare,\n\tkLineCapStyleRound\n} LCDLineCapStyle;\n```\n\nEquivalent to [`playdate.graphics.setLineCapStyle()`](./Inside%20Playdate.html#f-graphics.setLineCapStyle) in the Lua API."]
	pub setLineCapStyle: ::core::option::Option<unsafe extern "C" fn(endCapStyle: LCDLineCapStyle)>,
	#[doc = "`void playdate->graphics->setFont(LCDFont* font);`\n\nSets the font to use in subsequent [drawText](#f-graphics.drawText) calls.\n\nEquivalent to [`playdate.graphics.setFont()`](./Inside%20Playdate.html#f-graphics.setFont) in the Lua API."]
	pub setFont: ::core::option::Option<unsafe extern "C" fn(font: *mut LCDFont)>,
	#[doc = "`void playdate->graphics->setTextTracking(int tracking);`\n\nSets the tracking to use when drawing text.\n\nEquivalent to [`playdate.graphics.font:setTracking()`](./Inside%20Playdate.html#m-graphics.font.setTracking) in the Lua API."]
	pub setTextTracking: ::core::option::Option<unsafe extern "C" fn(tracking: core::ffi::c_int)>,
	#[doc = "`void playdate->graphics->pushContext(LCDBitmap* target);`\n\nPush a new drawing context for drawing into the given bitmap. If *target* is *NULL*, the drawing functions will use the display framebuffer.\n\nEquivalent to [`playdate.graphics.pushContext()`](./Inside%20Playdate.html#f-graphics.pushContext) in the Lua API."]
	pub pushContext: ::core::option::Option<unsafe extern "C" fn(target: *mut LCDBitmap)>,
	#[doc = "`void playdate->graphics->popContext(void);`\n\nPops a context off the stack (if any are left), restoring the drawing settings from before the context was pushed.\n\nEquivalent to [`playdate.graphics.popContext()`](./Inside%20Playdate.html#f-graphics.popContext) in the Lua API."]
	pub popContext: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->graphics->drawBitmap(LCDBitmap* bitmap, int x, int y, LCDBitmapFlip flip);`\n\nDraws the *bitmap* with its upper-left corner at location *x*, *y*, using the given flip orientation."]
	pub drawBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                            x: core::ffi::c_int,
	                                                            y: core::ffi::c_int,
	                                                            flip: LCDBitmapFlip)>,
	#[doc = "`void playdate->graphics->tileBitmap(LCDBitmap* bitmap, int x, int y, int width, int height, LCDBitmapFlip flip);`\n\nDraws the *bitmap* with its upper-left corner at location *x*, *y* tiled inside a *width* by *height* rectangle."]
	pub tileBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                            x: core::ffi::c_int,
	                                                            y: core::ffi::c_int,
	                                                            width: core::ffi::c_int,
	                                                            height: core::ffi::c_int,
	                                                            flip: LCDBitmapFlip)>,
	#[doc = "`void playdate->graphics->drawLine(int x1, int y1, int x2, int y2, int width, LCDColor color);`\n\nDraws a line from *x1*, *y1* to *x2*, *y2* with a stroke width of *width*.\n\nEquivalent to [`playdate.graphics.drawLine()`](./Inside%20Playdate.html#f-graphics.drawLine) in the Lua API."]
	pub drawLine: ::core::option::Option<unsafe extern "C" fn(x1: core::ffi::c_int,
	                                                          y1: core::ffi::c_int,
	                                                          x2: core::ffi::c_int,
	                                                          y2: core::ffi::c_int,
	                                                          width: core::ffi::c_int,
	                                                          color: LCDColor)>,
	#[doc = "`void playdate->graphics->fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, LCDColor color);`\n\nDraws a filled triangle with points at *x1*, *y1*, *x2*, *y2*, and *x3*, *y3*.\n\nLCDWindingRule\n\n```cpp\ntypedef enum\n{\n\tkPolygonFillNonZero,\n\tkPolygonFillEvenOdd\n} LCDPolygonFillRule;\n```\n\nEquivalent to [`playdate.graphics.fillTriangle()`](./Inside%20Playdate.html#f-graphics.fillTriangle) in the Lua API."]
	pub fillTriangle: ::core::option::Option<unsafe extern "C" fn(x1: core::ffi::c_int,
	                                                              y1: core::ffi::c_int,
	                                                              x2: core::ffi::c_int,
	                                                              y2: core::ffi::c_int,
	                                                              x3: core::ffi::c_int,
	                                                              y3: core::ffi::c_int,
	                                                              color: LCDColor)>,
	#[doc = "`void playdate->graphics->drawRect(int x, int y, int width, int height, LCDColor color);`\n\nDraws a *width* by *height* rect at *x*, *y*.\n\nEquivalent to [`playdate.graphics.drawRect()`](./Inside%20Playdate.html#f-graphics.drawRect) in the Lua API."]
	pub drawRect: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                          y: core::ffi::c_int,
	                                                          width: core::ffi::c_int,
	                                                          height: core::ffi::c_int,
	                                                          color: LCDColor)>,
	#[doc = "`void playdate->graphics->fillRect(int x, int y, int width, int height, LCDColor color);`\n\nDraws a filled *width* by *height* rect at *x*, *y*.\n\nEquivalent to [`playdate.graphics.fillRect()`](./Inside%20Playdate.html#f-graphics.fillRect) in the Lua API."]
	pub fillRect: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                          y: core::ffi::c_int,
	                                                          width: core::ffi::c_int,
	                                                          height: core::ffi::c_int,
	                                                          color: LCDColor)>,
	#[doc = "`void playdate->graphics->drawEllipse(int x, int y, int width, int height, int lineWidth, float startAngle, float endAngle, LCDColor color);`\n\nDraws an ellipse inside the rectangle {x, y, width, height} of width *lineWidth* (inset from the rectangle bounds). If *startAngle* != \\_endAngle, this draws an arc between the given angles. Angles are given in degrees, clockwise from due north."]
	pub drawEllipse: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                             y: core::ffi::c_int,
	                                                             width: core::ffi::c_int,
	                                                             height: core::ffi::c_int,
	                                                             lineWidth: core::ffi::c_int,
	                                                             startAngle: core::ffi::c_float,
	                                                             endAngle: core::ffi::c_float,
	                                                             color: LCDColor)>,
	#[doc = "`void playdate->graphics->fillEllipse(int x, int y, int width, int height, float startAngle, float endAngle, LCDColor color);`\n\nFills an ellipse inside the rectangle {x, y, width, height}. If *startAngle* != \\_endAngle, this draws a wedge/Pacman between the given angles. Angles are given in degrees, clockwise from due north."]
	pub fillEllipse: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                             y: core::ffi::c_int,
	                                                             width: core::ffi::c_int,
	                                                             height: core::ffi::c_int,
	                                                             startAngle: core::ffi::c_float,
	                                                             endAngle: core::ffi::c_float,
	                                                             color: LCDColor)>,
	#[doc = "`void playdate->graphics->drawScaledBitmap(LCDBitmap* bitmap, int x, int y, float xscale, float yscale);`\n\nDraws the *bitmap* scaled to *xscale* and *yscale* with its upper-left corner at location *x*, *y*. Note that *flip* is not available when drawing scaled bitmaps but negative scale values will achieve the same effect."]
	pub drawScaledBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                                  x: core::ffi::c_int,
	                                                                  y: core::ffi::c_int,
	                                                                  xscale: core::ffi::c_float,
	                                                                  yscale: core::ffi::c_float)>,
	#[doc = "`int playdate->graphics->drawText(const void* text, size_t len, PDStringEncoding encoding, int x, int y);`\n\nDraws the given text using the provided options. If no font has been set with [setFont](#f-graphics.setFont), the default system font Asheville Sans 14 Light is used.\n\nEquivalent to [`playdate.graphics.drawText()`](./Inside%20Playdate.html#f-graphics.drawText) in the Lua API."]
	pub drawText: ::core::option::Option<unsafe extern "C" fn(text: *const core::ffi::c_void,
	                                                          len: usize,
	                                                          encoding: PDStringEncoding,
	                                                          x: core::ffi::c_int,
	                                                          y: core::ffi::c_int)
	                                                          -> core::ffi::c_int>,
	#[doc = "`LCDBitmap* playdate->graphics->newBitmap(int width, int height, LCDColor bgcolor);`\n\nAllocates and returns a new *width* by *height* LCDBitmap filled with *bgcolor*."]
	pub newBitmap: ::core::option::Option<unsafe extern "C" fn(width: core::ffi::c_int,
	                                                           height: core::ffi::c_int,
	                                                           bgcolor: LCDColor)
	                                                           -> *mut LCDBitmap>,
	#[doc = "`void playdate->graphics->freeBitmap(LCDBitmap*);`\n\nFrees the given *bitmap*."]
	pub freeBitmap: ::core::option::Option<unsafe extern "C" fn(arg1: *mut LCDBitmap)>,
	#[doc = "`LCDBitmap* playdate->graphics->loadBitmap(const char* path, const char** outerr);`\n\nAllocates and returns a new LCDBitmap from the file at *path*. If there is no file at *path*, the function returns null."]
	pub loadBitmap: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char,
	                                                            outerr: *mut *const core::ffi::c_char)
	                                                            -> *mut LCDBitmap>,
	#[doc = "`LCDBitmap* playdate->graphics->copyBitmap(LCDBitmap* bitmap);`\n\nReturns a new LCDBitmap that is an exact copy of *bitmap*."]
	pub copyBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap) -> *mut LCDBitmap>,
	#[doc = "`void playdate->graphics->loadIntoBitmap(const char* path, LCDBitmap* bitmap, const char** outerr);`\n\nLoads the image at *path* into the previously allocated *bitmap*."]
	pub loadIntoBitmap: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char,
	                                                                bitmap: *mut LCDBitmap,
	                                                                outerr: *mut *const core::ffi::c_char)>,
	#[doc = "`void playdate->graphics->getBitmapData(LCDBitmap* bitmap, int* width, int* height, int* rowbytes, uint8_t** mask, uint8_t** data);`\n\nGets various info about *bitmap* including its *width* and *height* and raw pixel data. The data is 1 bit per pixel packed format, in MSB order; in other words, the high bit of the first byte in `data` is the top left pixel of the image. If the bitmap has a mask, a pointer to its data is returned in *mask*, else NULL is returned."]
	pub getBitmapData: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                               width: *mut core::ffi::c_int,
	                                                               height: *mut core::ffi::c_int,
	                                                               rowbytes: *mut core::ffi::c_int,
	                                                               mask: *mut *mut u8,
	                                                               data: *mut *mut u8)>,
	#[doc = "`void playdate->graphics->clearBitmap(LCDBitmap* bitmap, LCDColor bgcolor);`\n\nClears *bitmap*, filling with the given *bgcolor*."]
	pub clearBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap, bgcolor: LCDColor)>,
	#[doc = "`LCDBitmap* playdate->graphics->rotatedBitmap(LCDBitmap* bitmap, float rotation, float xscale, float yscale, int* allocedSize);`\n\nReturns a new, rotated and scaled LCDBitmap based on the given *bitmap*."]
	pub rotatedBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                               rotation: core::ffi::c_float,
	                                                               xscale: core::ffi::c_float,
	                                                               yscale: core::ffi::c_float,
	                                                               allocedSize: *mut core::ffi::c_int)
	                                                               -> *mut LCDBitmap>,
	#[doc = "`LCDBitmapTable* playdate->graphics->newBitmapTable(int count, int width, int height);`\n\nAllocates and returns a new LCDBitmapTable that can hold *count* *width* by *height* LCDBitmaps."]
	pub newBitmapTable: ::core::option::Option<unsafe extern "C" fn(count: core::ffi::c_int,
	                                                                width: core::ffi::c_int,
	                                                                height: core::ffi::c_int)
	                                                                -> *mut LCDBitmapTable>,
	#[doc = "`void playdate->graphics->freeBitmapTable(LCDBitmapTable* table);`\n\nFrees the given bitmap table. Note that this will invalidate any bitmaps returned by `getTableBitmap()`."]
	pub freeBitmapTable: ::core::option::Option<unsafe extern "C" fn(table: *mut LCDBitmapTable)>,
	#[doc = "`LCDBitmapTable* playdate->graphics->loadBitmapTable(const char* path, const char** outerr);`\n\nAllocates and returns a new LCDBitmap from the file at *path*. If there is no file at *path*, the function returns null."]
	pub loadBitmapTable: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char,
	                                                                 outerr: *mut *const core::ffi::c_char)
	                                                                 -> *mut LCDBitmapTable>,
	#[doc = "`void playdate->graphics->loadIntoBitmapTable(const char* path, LCDBitmapTable* table, const char** outerr);`\n\nLoads the imagetable at *path* into the previously allocated *table*."]
	pub loadIntoBitmapTable: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char,
	                                                                     table: *mut LCDBitmapTable,
	                                                                     outerr: *mut *const core::ffi::c_char)>,
	#[doc = "`LCDBitmap* playdate->graphics->getTableBitmap(LCDBitmapTable* table, int idx);`\n\nReturns the *idx* bitmap in *table*, If *idx* is out of bounds, the function returns NULL."]
	pub getTableBitmap: ::core::option::Option<unsafe extern "C" fn(table: *mut LCDBitmapTable,
	                                                                idx: core::ffi::c_int)
	                                                                -> *mut LCDBitmap>,
	#[doc = "`LCDFont* playdate->graphics->loadFont(const char* path, const char** outErr);`\n\nReturns the LCDFont object for the font file at *path*. In case of error, *outErr* points to a string describing the error. The returned font can be freed with [playdate→system→realloc(font, 0)](#f-system.realloc) when it is no longer in use."]
	pub loadFont: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char,
	                                                          outErr: *mut *const core::ffi::c_char)
	                                                          -> *mut LCDFont>,
	#[doc = "`LCDFontPage* playdate->graphics->getFontPage(LCDFont* font, uint32_t c);`\n\nReturns an LCDFontPage object for the given character code. Each LCDFontPage contains information for 256 characters; specifically, if `(c1 & ~0xff) == (c2 & ~0xff)`, then *c1* and *c2* belong to the same page and the same LCDFontPage can be used to fetch the character data for both instead of searching for the page twice."]
	pub getFontPage: ::core::option::Option<unsafe extern "C" fn(font: *mut LCDFont, c: u32) -> *mut LCDFontPage>,
	#[doc = "`LCDFontGlyph* playdate->graphics->getPageGlyph(LCDFontPage* page, uint32_t c, LCDBitmap** bitmap, int* advance);`\n\nReturns an LCDFontGlyph object for character *c* in LCDFontPage *page*, and optionally returns the glyph’s bitmap and advance value."]
	pub getPageGlyph: ::core::option::Option<unsafe extern "C" fn(page: *mut LCDFontPage,
	                                                              c: u32,
	                                                              bitmap: *mut *mut LCDBitmap,
	                                                              advance: *mut core::ffi::c_int)
	                                                              -> *mut LCDFontGlyph>,
	#[doc = "`int playdate->graphics->getGlyphKerning(LCDFontGlyph* glyph, uint32_t c1, uint32_t c2);`\n\nReturns the kerning adjustment between characters *c1* and *c2* as specified by the font."]
	pub getGlyphKerning: ::core::option::Option<unsafe extern "C" fn(glyph: *mut LCDFontGlyph,
	                                                                 glyphcode: u32,
	                                                                 nextcode: u32)
	                                                                 -> core::ffi::c_int>,
	#[doc = "`int playdate->graphics->getTextWidth(LCDFont* font, const void* text, size_t len, PDStringEncoding encoding, int tracking);`\n\nReturns the width of the given text in the given font.\n\nPDStringEncoding\n\n```cpp\ntypedef enum\n{\n\tkASCIIEncoding,\n\tkUTF8Encoding,\n\tk16BitLEEncoding\n} PDStringEncoding;\n```"]
	pub getTextWidth: ::core::option::Option<unsafe extern "C" fn(font: *mut LCDFont,
	                                                              text: *const core::ffi::c_void,
	                                                              len: usize,
	                                                              encoding: PDStringEncoding,
	                                                              tracking: core::ffi::c_int)
	                                                              -> core::ffi::c_int>,
	#[doc = "`uint8_t* playdate->graphics->getFrame(void);`\n\nReturns the current display frame buffer. Rows are 32-bit aligned, so the row stride is 52 bytes, with the extra 2 bytes per row ignored. Bytes are MSB-ordered; i.e., the pixel in column 0 is the 0x80 bit of the first byte of the row."]
	pub getFrame: ::core::option::Option<unsafe extern "C" fn() -> *mut u8>,
	#[doc = "`uint8_t* playdate->graphics->getDisplayFrame(void);`\n\nReturns the raw bits in the display buffer, the last completed frame."]
	pub getDisplayFrame: ::core::option::Option<unsafe extern "C" fn() -> *mut u8>,
	#[doc = "`LCDBitmap* playdate->graphics->getDebugBitmap(void);`\n\nOnly valid in the Simulator; function is NULL on device. Returns the debug framebuffer as a bitmap. White pixels drawn in the image are overlaid on the display in 50% transparent red."]
	pub getDebugBitmap: ::core::option::Option<unsafe extern "C" fn() -> *mut LCDBitmap>,
	#[doc = "`LCDBitmap* playdate->graphics->copyFrameBufferBitmap(void);`\n\nReturns a copy the contents of the working frame buffer as a bitmap. The caller is responsible for freeing the returned bitmap with [playdate-\\>graphics-\\>freeBitmap()](#f-graphics.freeBitmap)."]
	pub copyFrameBufferBitmap: ::core::option::Option<unsafe extern "C" fn() -> *mut LCDBitmap>,
	#[doc = "`void playdate->graphics->markUpdatedRows(int start, int end);`\n\nAfter updating pixels in the buffer returned by getFrame(), you must tell the graphics system which rows were updated. This function marks a contiguous range of rows as updated (e.g., markUpdatedRows(0,LCD\\_ROWS-1) tells the system to update the entire display). Both “start” and “end” are included in the range."]
	pub markUpdatedRows:
		::core::option::Option<unsafe extern "C" fn(start: core::ffi::c_int, end: core::ffi::c_int)>,
	#[doc = "`void playdate->graphics->display(void);`\n\nManually flushes the current frame buffer out to the display. This function is automatically called after each pass through the run loop, so there shouldn’t be any need to call it yourself."]
	pub display: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->graphics->setColorToPattern(LCDColor* color,LCDBitmap* bitmap, int x, int y);`\n\nSets *color* to an 8 x 8 pattern using the given *bitmap*. *x*, *y* indicates the top left corner of the 8 x 8 pattern."]
	pub setColorToPattern: ::core::option::Option<unsafe extern "C" fn(color: *mut LCDColor,
	                                                                   bitmap: *mut LCDBitmap,
	                                                                   x: core::ffi::c_int,
	                                                                   y: core::ffi::c_int)>,
	#[doc = "`int playdate->graphics->checkMaskCollision(LCDBitmap* bitmap1, int x1, int y1, LCDBitmapFlip flip1, LCDBitmap* bitmap2, int x2, int y2, LCDBitmapFlip flip2, LCDRect rect);`\n\nReturns 1 if any of the opaque pixels in *bitmap1* when positioned at *x1*, *y1* with *flip1* overlap any of the opaque pixels in *bitmap2* at *x2*, *y2* with *flip2* within the non-empty *rect*, or 0 if no pixels overlap or if one or both fall completely outside of *rect*."]
	pub checkMaskCollision: ::core::option::Option<unsafe extern "C" fn(bitmap1: *mut LCDBitmap,
	                                                                    x1: core::ffi::c_int,
	                                                                    y1: core::ffi::c_int,
	                                                                    flip1: LCDBitmapFlip,
	                                                                    bitmap2: *mut LCDBitmap,
	                                                                    x2: core::ffi::c_int,
	                                                                    y2: core::ffi::c_int,
	                                                                    flip2: LCDBitmapFlip,
	                                                                    rect: LCDRect)
	                                                                    -> core::ffi::c_int>,
	#[doc = "`void playdate->graphics->setScreenClipRect(int x, int y, int width, int height);`\n\nSets the current clip rect in screen coordinates.\n\nEquivalent to [`playdate.graphics.setScreenClipRect()`](./Inside%20Playdate.html#f-graphics.setScreenClipRect) in the Lua API."]
	pub setScreenClipRect: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int,
	                                                                   y: core::ffi::c_int,
	                                                                   width: core::ffi::c_int,
	                                                                   height: core::ffi::c_int)>,
	#[doc = "`void playdate->graphics->fillPolygon(int nPoints, int* points, LCDColor color, LCDPolygonFillRule fillrule);`\n\nFills the polygon with vertices at the given coordinates (an array of 2\\*`nPoints` ints containing alternating x and y values) using the given color and fill, or winding, rule. See [https://en.wikipedia.org/wiki/Nonzero-rule](https://en.wikipedia.org/wiki/Nonzero-rule) for an explanation of the winding rule. An edge between the last vertex and the first is assumed.\n\nEquivalent to [`playdate.graphics.fillPolygon()`](./Inside%20Playdate.html#f-graphics.fillPolygon) in the Lua API."]
	pub fillPolygon: ::core::option::Option<unsafe extern "C" fn(nPoints: core::ffi::c_int,
	                                                             coords: *mut core::ffi::c_int,
	                                                             color: LCDColor,
	                                                             fillrule: LCDPolygonFillRule)>,
	#[doc = "`uint8_t playdate->graphics->getFontHeight(LCDFont* font);`\n\nReturns the height of the given font."]
	pub getFontHeight: ::core::option::Option<unsafe extern "C" fn(font: *mut LCDFont) -> u8>,
	#[doc = "`LCDBitmap* playdate->graphics->getDisplayBufferBitmap(void);`\n\nReturns a bitmap containing the contents of the display buffer. The system owns this bitmap—\u{200b}do not free it!"]
	pub getDisplayBufferBitmap: ::core::option::Option<unsafe extern "C" fn() -> *mut LCDBitmap>,
	#[doc = "`LCDBitmap* playdate->graphics->drawRotatedBitmap(LCDBitmap* bitmap, int x, int y, float degrees, float centerx, float centery, float xscale, float yscale);`\n\nDraws the *bitmap* scaled to *xscale* and *yscale* then rotated by *degrees* with its center as given by proportions *centerx* and *centery* at *x*, *y*; that is: if *centerx* and *centery* are both 0.5 the center of the image is at (*x*,*y*), if *centerx* and *centery* are both 0 the top left corner of the image (before rotation) is at (*x*,*y*), etc."]
	pub drawRotatedBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                                   x: core::ffi::c_int,
	                                                                   y: core::ffi::c_int,
	                                                                   rotation: core::ffi::c_float,
	                                                                   centerx: core::ffi::c_float,
	                                                                   centery: core::ffi::c_float,
	                                                                   xscale: core::ffi::c_float,
	                                                                   yscale: core::ffi::c_float)>,
	#[doc = "`void playdate->graphics->setTextLeading(int leading);`\n\nSets the leading adjustment (added to the leading specified in the font) to use when drawing text.\n\nEquivalent to [`playdate.graphics.font:setLeading()`](./Inside%20Playdate.html#m-graphics.font.setLeading) in the Lua API."]
	pub setTextLeading: ::core::option::Option<unsafe extern "C" fn(lineHeightAdustment: core::ffi::c_int)>,
	#[doc = "`int playdate->graphics->setBitmapMask(LCDBitmap* bitmap, LCDBitmap* mask);`\n\nSets a mask image for the given *bitmap*. The set mask must be the same size as the target bitmap."]
	pub setBitmapMask: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap,
	                                                               mask: *mut LCDBitmap)
	                                                               -> core::ffi::c_int>,
	#[doc = "`LCDBitmap* playdate->graphics->getBitmapMask(LCDBitmap* bitmap);`\n\nGets a mask image for the given *bitmap*, or returns NULL if the *bitmap* doesn’t have a mask layer. The returned image points to *bitmap*'s data, so drawing into the mask image affects the source bitmap directly. The caller takes ownership of the returned LCDBitmap and is responsible for freeing it when it’s no longer in use."]
	pub getBitmapMask: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap) -> *mut LCDBitmap>,
	#[doc = "`void playdate->graphics->setStencilImage(LCDBitmap* stencil, int tile);`\n\nSets the stencil used for drawing. If the *tile* flag is set the stencil image will be tiled. Tiled stencils must have width equal to a multiple of 32 pixels. To clear the stencil, call `playdate→graphics→setStencil(NULL);`.\n\nEquivalent to [`playdate.graphics.setStencilImage()`](./Inside%20Playdate.html#f-graphics.setStencilImage) in the Lua API."]
	pub setStencilImage:
		::core::option::Option<unsafe extern "C" fn(stencil: *mut LCDBitmap, tile: core::ffi::c_int)>,
	#[doc = "`LCDFont* playdate->graphics->makeFontFromData(LCDFontData* data, int wide);`\n\nReturns an LCDFont object wrapping the LCDFontData *data* comprising the contents (minus 16-byte header) of an uncompressed pft file. *wide* corresponds to the flag in the header indicating whether the font contains glyphs at codepoints above U+1FFFF."]
	pub makeFontFromData: ::core::option::Option<unsafe extern "C" fn(data: *mut LCDFontData,
	                                                                  wide: core::ffi::c_int)
	                                                                  -> *mut LCDFont>,
	#[doc = "`int playdate->graphics->getTextTracking(void);`\n\nGets the tracking used when drawing text.\n\nEquivalent to [`playdate.graphics.font:getTracking()`](./Inside%20Playdate.html#m-graphics.font.getTracking) in the Lua API."]
	pub getTextTracking: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_graphics() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_graphics> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_graphics>(),
	           240usize,
	           concat!("Size of: ", stringify!(playdate_graphics))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_graphics>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_graphics))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).video) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(video)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clear) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(clear)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setBackgroundColor) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setBackgroundColor)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStencil) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setStencil)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDrawMode) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setDrawMode)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDrawOffset) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setDrawOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setClipRect) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setClipRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearClipRect) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(clearClipRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLineCapStyle) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setLineCapStyle)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFont) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setFont)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTextTracking) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setTextTracking)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushContext) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(pushContext)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).popContext) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(popContext)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawBitmap) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).tileBitmap) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(tileBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawLine) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawLine)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fillTriangle) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(fillTriangle)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawRect) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fillRect) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(fillRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawEllipse) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawEllipse)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fillEllipse) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(fillEllipse)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawScaledBitmap) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawScaledBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawText) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawText)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newBitmap) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(newBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeBitmap) as usize - ptr as usize },
	           96usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(freeBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadBitmap) as usize - ptr as usize },
	           100usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(loadBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).copyBitmap) as usize - ptr as usize },
	           104usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(copyBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadIntoBitmap) as usize - ptr as usize },
	           108usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(loadIntoBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBitmapData) as usize - ptr as usize },
	           112usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getBitmapData)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearBitmap) as usize - ptr as usize },
	           116usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(clearBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).rotatedBitmap) as usize - ptr as usize },
	           120usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(rotatedBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newBitmapTable) as usize - ptr as usize },
	           124usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(newBitmapTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeBitmapTable) as usize - ptr as usize },
	           128usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(freeBitmapTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadBitmapTable) as usize - ptr as usize },
	           132usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(loadBitmapTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadIntoBitmapTable) as usize - ptr as usize },
	           136usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(loadIntoBitmapTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTableBitmap) as usize - ptr as usize },
	           140usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getTableBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadFont) as usize - ptr as usize },
	           144usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(loadFont)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFontPage) as usize - ptr as usize },
	           148usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getFontPage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getPageGlyph) as usize - ptr as usize },
	           152usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getPageGlyph)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getGlyphKerning) as usize - ptr as usize },
	           156usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getGlyphKerning)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTextWidth) as usize - ptr as usize },
	           160usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getTextWidth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFrame) as usize - ptr as usize },
	           164usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getFrame)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getDisplayFrame) as usize - ptr as usize },
	           168usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getDisplayFrame)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getDebugBitmap) as usize - ptr as usize },
	           172usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getDebugBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).copyFrameBufferBitmap) as usize - ptr as usize },
	           176usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(copyFrameBufferBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).markUpdatedRows) as usize - ptr as usize },
	           180usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(markUpdatedRows)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).display) as usize - ptr as usize },
	           184usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(display)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setColorToPattern) as usize - ptr as usize },
	           188usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setColorToPattern)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).checkMaskCollision) as usize - ptr as usize },
	           192usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(checkMaskCollision)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setScreenClipRect) as usize - ptr as usize },
	           196usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setScreenClipRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fillPolygon) as usize - ptr as usize },
	           200usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(fillPolygon)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFontHeight) as usize - ptr as usize },
	           204usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getFontHeight)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getDisplayBufferBitmap) as usize - ptr as usize },
	           208usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getDisplayBufferBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawRotatedBitmap) as usize - ptr as usize },
	           212usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(drawRotatedBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTextLeading) as usize - ptr as usize },
	           216usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setTextLeading)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setBitmapMask) as usize - ptr as usize },
	           220usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setBitmapMask)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBitmapMask) as usize - ptr as usize },
	           224usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getBitmapMask)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStencilImage) as usize - ptr as usize },
	           228usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(setStencilImage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).makeFontFromData) as usize - ptr as usize },
	           232usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(makeFontFromData)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTextTracking) as usize - ptr as usize },
	           236usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_graphics),
		"::",
		stringify!(getTextTracking)
	)
	);
}
impl Default for playdate_graphics {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
pub type va_list = u32;
impl PDButtons {
	pub const kButtonLeft: PDButtons = PDButtons(1);
}
impl PDButtons {
	pub const kButtonRight: PDButtons = PDButtons(2);
}
impl PDButtons {
	pub const kButtonUp: PDButtons = PDButtons(4);
}
impl PDButtons {
	pub const kButtonDown: PDButtons = PDButtons(8);
}
impl PDButtons {
	pub const kButtonB: PDButtons = PDButtons(16);
}
impl PDButtons {
	pub const kButtonA: PDButtons = PDButtons(32);
}
impl ::core::ops::BitOr<PDButtons> for PDButtons {
	type Output = Self;
	#[inline]
	fn bitor(self, other: Self) -> Self { PDButtons(self.0 | other.0) }
}
impl ::core::ops::BitOrAssign for PDButtons {
	#[inline]
	fn bitor_assign(&mut self, rhs: PDButtons) { self.0 |= rhs.0; }
}
impl ::core::ops::BitAnd<PDButtons> for PDButtons {
	type Output = Self;
	#[inline]
	fn bitand(self, other: Self) -> Self { PDButtons(self.0 & other.0) }
}
impl ::core::ops::BitAndAssign for PDButtons {
	#[inline]
	fn bitand_assign(&mut self, rhs: PDButtons) { self.0 &= rhs.0; }
}
#[repr(transparent)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub struct PDButtons(pub u8);
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum PDLanguage {
	kPDLanguageEnglish = 0,
	kPDLanguageJapanese = 1,
	kPDLanguageUnknown = 2,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PDDateTime {
	pub year: u16,
	pub month: u8,
	pub day: u8,
	pub weekday: u8,
	pub hour: u8,
	pub minute: u8,
	pub second: u8,
}
#[test]
fn bindgen_test_layout_PDDateTime() {
	const UNINIT: ::core::mem::MaybeUninit<PDDateTime> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDDateTime>(),
	           8usize,
	           concat!("Size of: ", stringify!(PDDateTime))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDDateTime>(),
	           2usize,
	           concat!("Alignment of ", stringify!(PDDateTime))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).year) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(year)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).month) as usize - ptr as usize },
	           2usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(month)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).day) as usize - ptr as usize },
	           3usize,
	           concat!("Offset of field: ", stringify!(PDDateTime), "::", stringify!(day))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).weekday) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(weekday)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).hour) as usize - ptr as usize },
	           5usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(hour)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).minute) as usize - ptr as usize },
	           6usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(minute)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).second) as usize - ptr as usize },
	           7usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDDateTime),
		"::",
		stringify!(second)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDMenuItem {
	_unused: [u8; 0],
}
#[repr(u16)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum PDPeripherals {
	kNone = 0,
	kAccelerometer = 1,
	kAllPeripherals = 65535,
}
pub type PDCallbackFunction =
	::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void) -> core::ffi::c_int>;
pub type PDMenuItemCallbackFunction =
	::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void)>;
pub type PDButtonCallbackFunction =
	::core::option::Option<unsafe extern "C" fn(button: PDButtons,
	                                            down: core::ffi::c_int,
	                                            when: u32,
	                                            userdata: *mut core::ffi::c_void)
	                                            -> core::ffi::c_int>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sys { # [doc = "`void* playdate->system->realloc(void* ptr, size_t size)`\n\nAllocates heap space if *ptr* is NULL, else reallocates the given pointer. If *size* is zero, frees the given pointer."] pub realloc : :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut core :: ffi :: c_void , size : usize) -> * mut core :: ffi :: c_void > , # [doc = "`int playdate->system->formatString(char **outstring, const char *format, ...)`\n\nCreates a formatted string and returns it via the *outstring* argument. The arguments and return value match libc’s `asprintf()`: the format string is standard `printf()` style, the string returned in *outstring* should be freed by the caller when it’s no longer in use, and the return value is the length of the formatted string."] pub formatString : :: core :: option :: Option < unsafe extern "C" fn (ret : * mut * mut core :: ffi :: c_char , fmt : * const core :: ffi :: c_char , ...) -> core :: ffi :: c_int > , # [doc = "`void playdate->system->logToConsole(const char* format, ...)`\n\nCalls the log function.\n\nEquivalent to [`print()`](./Inside%20Playdate.html#f-print) in the Lua API."] pub logToConsole : :: core :: option :: Option < unsafe extern "C" fn (fmt : * const core :: ffi :: c_char , ...) > , # [doc = "`void playdate->system->error(const char* format, ...)`\n\nCalls the log function, outputting an error in red to the console, then pauses execution."] pub error : :: core :: option :: Option < unsafe extern "C" fn (fmt : * const core :: ffi :: c_char , ...) > , # [doc = "`PDLanguage playdate->system->getLanguage(void);`\n\nReturns the current language of the system."] pub getLanguage : :: core :: option :: Option < unsafe extern "C" fn () -> PDLanguage > , # [doc = "`unsigned int playdate->system->getCurrentTimeMilliseconds(void)`\n\nReturns the number of milliseconds since…\u{200b}some arbitrary point in time. This should present a consistent timebase while a game is running, but the counter will be disabled when the device is sleeping."] pub getCurrentTimeMilliseconds : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_uint > , # [doc = "`unsigned int playdate->system->getSecondsSinceEpoch(unsigned int *milliseconds)`\n\nReturns the number of seconds (and sets *milliseconds* if not NULL) elapsed since midnight (hour 0), January 1, 2000."] pub getSecondsSinceEpoch : :: core :: option :: Option < unsafe extern "C" fn (milliseconds : * mut core :: ffi :: c_uint) -> core :: ffi :: c_uint > , # [doc = "`void playdate->system->drawFPS(int x, int y)`\n\nCalculates the current frames per second and draws that value at *x, y*."] pub drawFPS : :: core :: option :: Option < unsafe extern "C" fn (x : core :: ffi :: c_int , y : core :: ffi :: c_int) > , # [doc = "`void playdate->system->setUpdateCallback(PDCallbackFunction* update, void* userdata)`\n\nPDCallbackFunction\n\n```cpp\nint PDCallbackFunction(void* userdata);\n```\n\nReplaces the default Lua run loop function with a custom update function. The update function should return a non-zero number to tell the system to update the display, or zero if update isn’t needed."] pub setUpdateCallback : :: core :: option :: Option < unsafe extern "C" fn (update : PDCallbackFunction , userdata : * mut core :: ffi :: c_void) > , # [doc = "`void playdate->system->getButtonState(PDButtons* current, PDButtons* pushed, PDButtons* released)`\n\nSets the value pointed to by *current* to a bitmask indicating which buttons are currently down. *pushed* and *released* reflect which buttons were pushed or released over the previous update cycle—at the nominal frame rate of 50 ms, fast button presses can be missed if you just poll the instantaneous state."] pub getButtonState : :: core :: option :: Option < unsafe extern "C" fn (current : * mut PDButtons , pushed : * mut PDButtons , released : * mut PDButtons) > , # [doc = "`void playdate->system->setPeripheralsEnabled(PDPeripherals mask)`\n\nBy default, the accelerometer is disabled to save (a small amount of) power. To use a peripheral, it must first be enabled via this function. Accelerometer data is not available until the next update cycle after it’s enabled.\n\nPDPeripherals\n\n```cpp\nkNone\nkAccelerometer\n```"] pub setPeripheralsEnabled : :: core :: option :: Option < unsafe extern "C" fn (mask : PDPeripherals) > , # [doc = "`void playdate->system->getAccelerometer(float* outx, float* outy, float* outz)`\n\nReturns the last-read accelerometer data."] pub getAccelerometer : :: core :: option :: Option < unsafe extern "C" fn (outx : * mut core :: ffi :: c_float , outy : * mut core :: ffi :: c_float , outz : * mut core :: ffi :: c_float) > , # [doc = "`float playdate->system->getCrankChange(void)`\n\nReturns the angle change of the crank since the last time this function was called. Negative values are anti-clockwise."] pub getCrankChange : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_float > , # [doc = "`float playdate->system->getCrankAngle(void)`\n\nReturns the current position of the crank, in the range 0-360. Zero is pointing up, and the value increases as the crank moves clockwise, as viewed from the right side of the device."] pub getCrankAngle : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_float > , # [doc = "`int playdate->system->isCrankDocked(void)`\n\nReturns 1 or 0 indicating whether or not the crank is folded into the unit."] pub isCrankDocked : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_int > , # [doc = "`int playdate->system->setCrankSoundsDisabled(int disable)`\n\nThe function returns the previous value for this setting."] pub setCrankSoundsDisabled : :: core :: option :: Option < unsafe extern "C" fn (flag : core :: ffi :: c_int) -> core :: ffi :: c_int > , # [doc = "`int playdate->system->getFlipped()`\n\nReturns 1 if the global \"flipped\" system setting is set, otherwise 0."] pub getFlipped : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_int > , # [doc = "`void playdate->system->setAutoLockDisabled(int disable)`\n\nDisables or enables the 3 minute auto lock feature. When called, the timer is reset to 3 minutes."] pub setAutoLockDisabled : :: core :: option :: Option < unsafe extern "C" fn (disable : core :: ffi :: c_int) > , # [doc = "`void playdate->system->setMenuImage(LCDBitmap* bitmap, int xOffset);`\n\nA game can optionally provide an image to be displayed alongside the system menu. *bitmap* must be a 400x240 LCDBitmap. All important content should be in the left half of the image in an area 200 pixels wide, as the menu will obscure the rest. The right side of the image will be visible briefly as the menu animates in and out.\n\nOptionally, a non-zero *xoffset*, can be provided. This must be a number between 0 and 200 and will cause the menu image to animate to a position offset left by xoffset pixels as the menu is animated in.\n\nThis function could be called in response to the kEventPause *event* in your implementation of [eventHandler()](#_eventHandler)."] pub setMenuImage : :: core :: option :: Option < unsafe extern "C" fn (bitmap : * mut LCDBitmap , xOffset : core :: ffi :: c_int) > , # [doc = "`PDMenuItem* playdate->system->addMenuItem(const char* title, PDMenuItemCallbackFunction* callback, void* userdata)`\n\n*title* will be the title displayed by the menu item.\n\nAdds a new menu item to the System Menu. When invoked by the user, this menu item will:\n\n1. Invoke your *callback* function.\n\n2. Hide the System Menu.\n\n3. Unpause your game and call [eventHandler()](#_eventHandler) with the kEventResume *event*.\n\nYour game can then present an options interface to the player, or take other action, in whatever manner you choose.\n\nThe returned menu item is freed when removed from the menu; it does not need to be freed manually."] pub addMenuItem : :: core :: option :: Option < unsafe extern "C" fn (title : * const core :: ffi :: c_char , callback : PDMenuItemCallbackFunction , userdata : * mut core :: ffi :: c_void) -> * mut PDMenuItem > , # [doc = "`PDMenuItem* playdate->system->addCheckmarkMenuItem(const char* title, int value, PDMenuItemCallbackFunction* callback, void* userdata)`\n\nAdds a new menu item that can be checked or unchecked by the player.\n\n*title* will be the title displayed by the menu item.\n\n*value* should be 0 for unchecked, 1 for checked.\n\nIf this menu item is interacted with while the system menu is open, *callback* will be called when the menu is closed.\n\nThe returned menu item is freed when removed from the menu; it does not need to be freed manually."] pub addCheckmarkMenuItem : :: core :: option :: Option < unsafe extern "C" fn (title : * const core :: ffi :: c_char , value : core :: ffi :: c_int , callback : PDMenuItemCallbackFunction , userdata : * mut core :: ffi :: c_void) -> * mut PDMenuItem > , # [doc = "`PDMenuItem* playdate->system->addOptionsMenuItem(const char* title, const char** options, int optionsCount, PDMenuItemCallbackFunction* callback, void* userdata)`\n\nAdds a new menu item that allows the player to cycle through a set of options.\n\n*title* will be the title displayed by the menu item.\n\n*options* should be an array of strings representing the states this menu item can cycle through. Due to limited horizontal space, the option strings and title should be kept short for this type of menu item.\n\n*optionsCount* should be the number of items contained in *options*.\n\nIf this menu item is interacted with while the system menu is open, *callback* will be called when the menu is closed.\n\nThe returned menu item is freed when removed from the menu; it does not need to be freed manually."] pub addOptionsMenuItem : :: core :: option :: Option < unsafe extern "C" fn (title : * const core :: ffi :: c_char , optionTitles : * mut * const core :: ffi :: c_char , optionsCount : core :: ffi :: c_int , f : PDMenuItemCallbackFunction , userdata : * mut core :: ffi :: c_void) -> * mut PDMenuItem > , # [doc = "`void playdate->system->removeAllMenuItems()`\n\nRemoves all custom menu items from the system menu."] pub removeAllMenuItems : :: core :: option :: Option < unsafe extern "C" fn () > , # [doc = "`void playdate->system->removeMenuItem(PDMenuItem *menuItem)`\n\nRemoves the menu item from the system menu."] pub removeMenuItem : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem) > , # [doc = "`int playdate->system->getMenuItemValue(PDMenuItem *menuItem)`"] pub getMenuItemValue : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem) -> core :: ffi :: c_int > , # [doc = "`void playdate->system->setMenuItemValue(PDMenuItem *menuItem, int value)`\n\nGets or sets the integer value of the menu item.\n\nFor checkmark menu items, 1 means checked, 0 unchecked. For option menu items, the value indicates the array index of the currently selected option."] pub setMenuItemValue : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem , value : core :: ffi :: c_int) > , # [doc = "`const char* playdate->system->getMenuItemTitle(PDMenuItem *menuItem)`"] pub getMenuItemTitle : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem) -> * const core :: ffi :: c_char > , # [doc = "`void playdate->system->setMenuItemTitle(PDMenuItem *menuItem, const char* title)`\n\nGets or sets the display title of the menu item."] pub setMenuItemTitle : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem , title : * const core :: ffi :: c_char) > , # [doc = "`void* playdate->system->getMenuItemUserdata(PDMenuItem *menuItem)`"] pub getMenuItemUserdata : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem) -> * mut core :: ffi :: c_void > , # [doc = "`void playdate->system->setMenuItemUserdata(PDMenuItem *menuItem, void* userdata)`\n\nGets or sets the userdata value associated with this menu item."] pub setMenuItemUserdata : :: core :: option :: Option < unsafe extern "C" fn (menuItem : * mut PDMenuItem , ud : * mut core :: ffi :: c_void) > , # [doc = "`int playdate->system->getReduceFlashing()`\n\nReturns 1 if the global \"reduce flashing\" system setting is set, otherwise 0."] pub getReduceFlashing : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_int > , # [doc = "`float playdate->system->getElapsedTime()`\n\nReturns the number of seconds since `playdate.resetElapsedTime()` was called. The value is a floating-point number with microsecond accuracy."] pub getElapsedTime : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_float > , # [doc = "`void playdate->system->resetElapsedTime(void)`\n\nResets the high-resolution timer."] pub resetElapsedTime : :: core :: option :: Option < unsafe extern "C" fn () > , # [doc = "`float playdate->system->getBatteryPercentage()`\n\nReturns a value from 0-100 denoting the current level of battery charge. 0 = empty; 100 = full."] pub getBatteryPercentage : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_float > , # [doc = "`float playdate->system->getBatteryVoltage()`\n\nReturns the battery’s current voltage level."] pub getBatteryVoltage : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_float > , # [doc = "`int32_t playdate->system->getTimezoneOffset()`\n\nReturns the system timezone offset from GMT, in seconds."] pub getTimezoneOffset : :: core :: option :: Option < unsafe extern "C" fn () -> i32 > , # [doc = "`int playdate->system->shouldDisplay24HourTime()`\n\nReturns 1 if the user has set the 24-Hour Time preference in the Settings program."] pub shouldDisplay24HourTime : :: core :: option :: Option < unsafe extern "C" fn () -> core :: ffi :: c_int > , # [doc = "`void playdate->system->convertEpochToDateTime(uint32_t epoch, struct PDDateTime* datetime)`\n\nConverts the given epoch time to a PDDateTime."] pub convertEpochToDateTime : :: core :: option :: Option < unsafe extern "C" fn (epoch : u32 , datetime : * mut PDDateTime) > , # [doc = "`uint32_t playdate->system->convertDateTimeToEpoch(struct PDDateTime* datetime)`\n\nConverts the given PDDateTime to an epoch time."] pub convertDateTimeToEpoch : :: core :: option :: Option < unsafe extern "C" fn (datetime : * mut PDDateTime) -> u32 > , # [doc = "`float playdate->system->clearICache()`\n\nFlush the CPU instruction cache, on the very unlikely chance you’re modifying instruction code on the fly. (If you don’t know what I’m talking about, you don’t need this. :smile:)"] pub clearICache : :: core :: option :: Option < unsafe extern "C" fn () > , pub setButtonCallback : :: core :: option :: Option < unsafe extern "C" fn (cb : PDButtonCallbackFunction , buttonud : * mut core :: ffi :: c_void , queuesize : core :: ffi :: c_int) > , # [doc = "`void playdate->system->setSerialMessageCallback(void (*callback)(const char* data));`\n\nProvides a callback to receive messages sent to the device over the serial port using the `msg` command. If no device is connected, you can send these messages to a game in the simulator by entering `!msg <message>` in the Lua console."] pub setSerialMessageCallback : :: core :: option :: Option < unsafe extern "C" fn (callback : :: core :: option :: Option < unsafe extern "C" fn (data : * const core :: ffi :: c_char) >) > , # [doc = "`int playdate->system->vaFormatString(char **ret, const char *format, va_list args)`\n\nAllocates and formats a string using a variadic `va_list` argument, in the style of `vasprintf()`. The string returned via *ret* should be freed by the caller when it is no longer in use. The return value from the function is the length of the formatted string."] pub vaFormatString : :: core :: option :: Option < unsafe extern "C" fn (outstr : * mut * mut core :: ffi :: c_char , fmt : * const core :: ffi :: c_char , args : va_list) -> core :: ffi :: c_int > , # [doc = "`int playdate->system->parseString(const char *str, const char *format, ...)`\n\nLike libc `sscanf()`, parses a string according to a format string and places the values into pointers passed in after the format. The return value is the number of items matched."] pub parseString : :: core :: option :: Option < unsafe extern "C" fn (str_ : * const core :: ffi :: c_char , format : * const core :: ffi :: c_char , ...) -> core :: ffi :: c_int > , }
#[test]
fn bindgen_test_layout_playdate_sys() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sys> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sys>(),
	           176usize,
	           concat!("Size of: ", stringify!(playdate_sys))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sys>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sys))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).realloc) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(realloc)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).formatString) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(formatString)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).logToConsole) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(logToConsole)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).error) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(error)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLanguage) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getLanguage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCurrentTimeMilliseconds) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getCurrentTimeMilliseconds)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getSecondsSinceEpoch) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getSecondsSinceEpoch)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawFPS) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(drawFPS)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUpdateCallback) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setUpdateCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getButtonState) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getButtonState)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPeripheralsEnabled) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setPeripheralsEnabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getAccelerometer) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getAccelerometer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCrankChange) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getCrankChange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCrankAngle) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getCrankAngle)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isCrankDocked) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(isCrankDocked)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCrankSoundsDisabled) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setCrankSoundsDisabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFlipped) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getFlipped)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAutoLockDisabled) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setAutoLockDisabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMenuImage) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setMenuImage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addMenuItem) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(addMenuItem)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addCheckmarkMenuItem) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(addCheckmarkMenuItem)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addOptionsMenuItem) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(addOptionsMenuItem)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeAllMenuItems) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(removeAllMenuItems)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeMenuItem) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(removeMenuItem)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getMenuItemValue) as usize - ptr as usize },
	           96usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getMenuItemValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMenuItemValue) as usize - ptr as usize },
	           100usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setMenuItemValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getMenuItemTitle) as usize - ptr as usize },
	           104usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getMenuItemTitle)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMenuItemTitle) as usize - ptr as usize },
	           108usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setMenuItemTitle)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getMenuItemUserdata) as usize - ptr as usize },
	           112usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getMenuItemUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMenuItemUserdata) as usize - ptr as usize },
	           116usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setMenuItemUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getReduceFlashing) as usize - ptr as usize },
	           120usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getReduceFlashing)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getElapsedTime) as usize - ptr as usize },
	           124usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getElapsedTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).resetElapsedTime) as usize - ptr as usize },
	           128usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(resetElapsedTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBatteryPercentage) as usize - ptr as usize },
	           132usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getBatteryPercentage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBatteryVoltage) as usize - ptr as usize },
	           136usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getBatteryVoltage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTimezoneOffset) as usize - ptr as usize },
	           140usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(getTimezoneOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).shouldDisplay24HourTime) as usize - ptr as usize },
	           144usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(shouldDisplay24HourTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).convertEpochToDateTime) as usize - ptr as usize },
	           148usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(convertEpochToDateTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).convertDateTimeToEpoch) as usize - ptr as usize },
	           152usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(convertDateTimeToEpoch)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearICache) as usize - ptr as usize },
	           156usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(clearICache)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setButtonCallback) as usize - ptr as usize },
	           160usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setButtonCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSerialMessageCallback) as usize - ptr as usize },
	           164usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(setSerialMessageCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).vaFormatString) as usize - ptr as usize },
	           168usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(vaFormatString)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).parseString) as usize - ptr as usize },
	           172usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sys),
		"::",
		stringify!(parseString)
	)
	);
}
pub type lua_State = *mut core::ffi::c_void;
pub type lua_CFunction = ::core::option::Option<unsafe extern "C" fn(L: *mut lua_State) -> core::ffi::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LuaUDObject {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct LCDSprite {
	_unused: [u8; 0],
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum l_valtype {
	kInt = 0,
	kFloat = 1,
	kStr = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct lua_reg {
	pub name: *const core::ffi::c_char,
	pub func: lua_CFunction,
}
#[test]
fn bindgen_test_layout_lua_reg() {
	const UNINIT: ::core::mem::MaybeUninit<lua_reg> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<lua_reg>(),
	           8usize,
	           concat!("Size of: ", stringify!(lua_reg))
	);
	assert_eq!(
	           ::core::mem::align_of::<lua_reg>(),
	           4usize,
	           concat!("Alignment of ", stringify!(lua_reg))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(lua_reg), "::", stringify!(name))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).func) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(lua_reg), "::", stringify!(func))
	);
}
impl Default for lua_reg {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LuaType {
	kTypeNil = 0,
	kTypeBool = 1,
	kTypeInt = 2,
	kTypeFloat = 3,
	kTypeString = 4,
	kTypeTable = 5,
	kTypeFunction = 6,
	kTypeThread = 7,
	kTypeObject = 8,
}
#[repr(C)]
#[derive(Copy, Clone)]
#[must_use]
pub struct lua_val {
	pub name: *const core::ffi::c_char,
	pub type_: l_valtype,
	pub v: lua_val__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
#[must_use]
pub union lua_val__bindgen_ty_1 {
	pub intval: core::ffi::c_uint,
	pub floatval: core::ffi::c_float,
	pub strval: *const core::ffi::c_char,
}
#[test]
fn bindgen_test_layout_lua_val__bindgen_ty_1() {
	const UNINIT: ::core::mem::MaybeUninit<lua_val__bindgen_ty_1> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<lua_val__bindgen_ty_1>(),
	           4usize,
	           concat!("Size of: ", stringify!(lua_val__bindgen_ty_1))
	);
	assert_eq!(
	           ::core::mem::align_of::<lua_val__bindgen_ty_1>(),
	           4usize,
	           concat!("Alignment of ", stringify!(lua_val__bindgen_ty_1))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).intval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(lua_val__bindgen_ty_1),
		"::",
		stringify!(intval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).floatval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(lua_val__bindgen_ty_1),
		"::",
		stringify!(floatval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).strval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(lua_val__bindgen_ty_1),
		"::",
		stringify!(strval)
	)
	);
}
impl Default for lua_val__bindgen_ty_1 {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[test]
fn bindgen_test_layout_lua_val() {
	const UNINIT: ::core::mem::MaybeUninit<lua_val> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<lua_val>(),
	           12usize,
	           concat!("Size of: ", stringify!(lua_val))
	);
	assert_eq!(
	           ::core::mem::align_of::<lua_val>(),
	           4usize,
	           concat!("Alignment of ", stringify!(lua_val))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(lua_val), "::", stringify!(name))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(lua_val), "::", stringify!(type_))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).v) as usize - ptr as usize },
	           8usize,
	           concat!("Offset of field: ", stringify!(lua_val), "::", stringify!(v))
	);
}
impl Default for lua_val {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_lua {
	#[doc = "`int playdate->lua->addFunction(lua_CFunction f, const char* name, const char** outErr);`\n\nAdds the Lua function *f* to the Lua runtime, with name *name*. (*name* can be a table path using dots, e.g. if name = “mycode.myDrawingFunction” adds the function “myDrawingFunction” to the global table “myCode”.) Returns 1 on success or 0 with an error message in *outErr*."]
	pub addFunction: ::core::option::Option<unsafe extern "C" fn(f: lua_CFunction,
	                                                             name: *const core::ffi::c_char,
	                                                             outErr: *mut *const core::ffi::c_char)
	                                                             -> core::ffi::c_int>,
	#[doc = "`int playdate->lua->registerClass(const char* name, const lua_reg* reg, const lua_val* vals, int isstatic, const char** outErr);`\n\nCreates a new \"class\" (i.e., a Lua metatable containing functions) with the given name and adds the given functions and constants to it. If the table is simply a list of functions that won’t be used as a metatable, *isstatic* should be set to 1 to create a plain table instead of a metatable. Please see `C_API/Examples/Array` for an example of how to use `registerClass` to create a Lua table-like object from C."]
	pub registerClass: ::core::option::Option<unsafe extern "C" fn(name: *const core::ffi::c_char,
	                                                               reg: *const lua_reg,
	                                                               vals: *const lua_val,
	                                                               isstatic: core::ffi::c_int,
	                                                               outErr: *mut *const core::ffi::c_char)
	                                                               -> core::ffi::c_int>,
	#[doc = "`void playdate->lua->pushFunction(lua_CFunction f);`\n\nPushes a [lua\\_CFunction](#f-lua.cFunction) onto the stack."]
	pub pushFunction: ::core::option::Option<unsafe extern "C" fn(f: lua_CFunction)>,
	#[doc = "`int playdate->lua->indexMetatable(void);`\n\nIf a class includes an `__index` function, it should call this first to check if the indexed variable exists in the metatable. If the indexMetatable() call returns 1, it has located the variable and put it on the stack, and the `__index` function should return 1 to indicate a value was found. If indexMetatable() doesn’t find a value, the `__index` function can then do its custom getter magic."]
	pub indexMetatable: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
	#[doc = "`void playdate->lua->stop(void);`\n\nStops the run loop."]
	pub stop: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->lua->start(void);`\n\nStarts the run loop back up."]
	pub start: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`int playdate->lua->getArgCount(void);`\n\nReturns the number of arguments passed to the function."]
	pub getArgCount: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
	#[doc = "`enum LuaType playdate->lua->getArgType(int pos, const char** outClass);`\n\nReturns the type of the variable at stack position *pos*. If the type is *kTypeObject* and *outClass* is non-NULL, it returns the name of the object’s metatable."]
	pub getArgType: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int,
	                                                            outClass: *mut *const core::ffi::c_char)
	                                                            -> LuaType>,
	#[doc = "`int playdate->lua->argIsNil(int pos);`\n\nReturns 1 if the argument at the given position *pos* is nil."]
	pub argIsNil: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> core::ffi::c_int>,
	#[doc = "`int playdate->lua->getArgBool(int pos);`\n\nReturns one if the argument at position *pos* is true, zero if not."]
	pub getArgBool: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> core::ffi::c_int>,
	#[doc = "`int playdate->lua->getArgInt(int pos);`\n\nReturns the argument at position *pos* as an int."]
	pub getArgInt: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> core::ffi::c_int>,
	#[doc = "`float playdate->lua->getArgFloat(int pos);`\n\nReturns the argument at position *pos* as a float."]
	pub getArgFloat: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> core::ffi::c_float>,
	#[doc = "`const char* playdate->lua->getArgString(int pos);`\n\nReturns the argument at position *pos* as a string."]
	pub getArgString:
		::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> *const core::ffi::c_char>,
	#[doc = "`const char* playdate->lua->getArgBytes(int pos, size_t* outlen);`\n\nReturns the argument at position *pos* as a string and sets *outlen* to its length."]
	pub getArgBytes: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int,
	                                                             outlen: *mut usize)
	                                                             -> *const core::ffi::c_char>,
	#[doc = "`void* playdate->lua->getArgObject(int pos, char* type, LuaUDObject** outud);`\n\nChecks the object type of the argument at position *pos* and returns a pointer to it if it’s the correct type. Optionally sets *outud* to a pointer to the opaque LuaUDObject for the given stack."]
	pub getArgObject: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int,
	                                                              type_: *mut core::ffi::c_char,
	                                                              outud: *mut *mut LuaUDObject)
	                                                              -> *mut core::ffi::c_void>,
	#[doc = "`LCDBitmap* playdate->lua->getBitmap(int pos);`\n\nReturns the argument at position *pos* as an LCDBitmap."]
	pub getBitmap: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> *mut LCDBitmap>,
	#[doc = "`LCDSprite* playdate->lua->getSprite(int pos);`\n\nReturns the argument at position *pos* as an LCDSprite."]
	pub getSprite: ::core::option::Option<unsafe extern "C" fn(pos: core::ffi::c_int) -> *mut LCDSprite>,
	#[doc = "`void playdate->lua->pushNil(void);`\n\nPushes nil onto the stack."]
	pub pushNil: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->lua->pushBool(int val);`\n\nPushes the int *val* onto the stack."]
	pub pushBool: ::core::option::Option<unsafe extern "C" fn(val: core::ffi::c_int)>,
	#[doc = "`void playdate->lua->pushInt(int val);`\n\nPushes the int *val* onto the stack."]
	pub pushInt: ::core::option::Option<unsafe extern "C" fn(val: core::ffi::c_int)>,
	#[doc = "`void playdate->lua->pushFloat(float val);`\n\nPushes the float *val* onto the stack."]
	pub pushFloat: ::core::option::Option<unsafe extern "C" fn(val: core::ffi::c_float)>,
	#[doc = "`void playdate->lua->pushString(char* str);`\n\nPushes the string *str* onto the stack."]
	pub pushString: ::core::option::Option<unsafe extern "C" fn(str_: *const core::ffi::c_char)>,
	#[doc = "`void playdate->lua->pushBytes(char* str, size_t len);`\n\nLike *pushString()*, but pushes an arbitrary byte array to the stack, ignoring \\\\0 characters."]
	pub pushBytes: ::core::option::Option<unsafe extern "C" fn(str_: *const core::ffi::c_char, len: usize)>,
	#[doc = "`void playdate->lua->pushBitmap(LCDBitmap* bitmap);`\n\nPushes the LCDBitmap *bitmap* onto the stack."]
	pub pushBitmap: ::core::option::Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap)>,
	#[doc = "`void playdate->lua->pushSprite(LCDSprite* sprite);`\n\nPushes the LCDSprite *sprite* onto the stack."]
	pub pushSprite: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`LuaUDObject* playdate->lua->pushObject(void* obj, char* type, int nValues);`\n\nPushes the given custom object *obj* onto the stack and returns a pointer to the opaque LuaUDObject. *type* must match the class name used in [playdate-\\>lua-\\>registerClass()](#f-lua.registerClass). *nValues* is the number of slots to allocate for Lua values (see [set/getObjectValue()](#f-lua.setObjectValue))."]
	pub pushObject: ::core::option::Option<unsafe extern "C" fn(obj: *mut core::ffi::c_void,
	                                                            type_: *mut core::ffi::c_char,
	                                                            nValues: core::ffi::c_int)
	                                                            -> *mut LuaUDObject>,
	#[doc = "`LuaUDObject* playdate->lua->retainObject(LuaUDObject* obj);`\n\nRetains the opaque LuaUDObject *obj* and returns same."]
	pub retainObject: ::core::option::Option<unsafe extern "C" fn(obj: *mut LuaUDObject) -> *mut LuaUDObject>,
	#[doc = "`void playdate->lua->releaseObject(LuaUDObject* obj);`\n\nReleases the opaque LuaUDObject *obj*."]
	pub releaseObject: ::core::option::Option<unsafe extern "C" fn(obj: *mut LuaUDObject)>,
	#[doc = "`void playdate->lua->setUserValue(LuaUDObject* obj, int slot);`\n\nSets the value of object *obj*'s uservalue slot number *slot* (starting at 1, not zero) to the value at the top of the stack."]
	pub setUserValue: ::core::option::Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: core::ffi::c_uint)>,
	#[doc = "`int playdate->lua->getUserValue(LuaUDObject* obj, int slot);`\n\nCopies the value at *obj*'s given uservalue *slot* to the top of the stack and returns its stack position."]
	pub getUserValue: ::core::option::Option<unsafe extern "C" fn(obj: *mut LuaUDObject,
	                                                              slot: core::ffi::c_uint)
	                                                              -> core::ffi::c_int>,
	pub callFunction_deprecated:
		::core::option::Option<unsafe extern "C" fn(name: *const core::ffi::c_char, nargs: core::ffi::c_int)>,
	#[doc = "`int playdate->lua->callFunction(const char* name, int nargs, const char** outerr);`\n\nCalls the Lua function *name* and and indicates that *nargs* number of arguments have already been pushed to the stack for the function to use. *name* can be a table path using dots, e.g. “playdate.apiVersion”. Returns 1 on success; on failure, returns 0 and puts an error message into the `outerr` pointer, if it’s set. Calling Lua from C is slow, so use sparingly."]
	pub callFunction: ::core::option::Option<unsafe extern "C" fn(name: *const core::ffi::c_char,
	                                                              nargs: core::ffi::c_int,
	                                                              outerr: *mut *const core::ffi::c_char)
	                                                              -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_lua() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_lua> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_lua>(),
	           128usize,
	           concat!("Size of: ", stringify!(playdate_lua))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_lua>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_lua))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addFunction) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(addFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).registerClass) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(registerClass)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushFunction) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).indexMetatable) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(indexMetatable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(stop)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(start)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgCount) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgType) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgType)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).argIsNil) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(argIsNil)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgBool) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgBool)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgInt) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgInt)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgFloat) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgFloat)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgString) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgString)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgBytes) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgBytes)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getArgObject) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getArgObject)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBitmap) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getSprite) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushNil) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushNil)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushBool) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushBool)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushInt) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushInt)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushFloat) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushFloat)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushString) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushString)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushBytes) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushBytes)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushBitmap) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushBitmap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushSprite) as usize - ptr as usize },
	           96usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pushObject) as usize - ptr as usize },
	           100usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(pushObject)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).retainObject) as usize - ptr as usize },
	           104usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(retainObject)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).releaseObject) as usize - ptr as usize },
	           108usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(releaseObject)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUserValue) as usize - ptr as usize },
	           112usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(setUserValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getUserValue) as usize - ptr as usize },
	           116usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(getUserValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).callFunction_deprecated) as usize - ptr as usize },
	           120usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(callFunction_deprecated)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).callFunction) as usize - ptr as usize },
	           124usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_lua),
		"::",
		stringify!(callFunction)
	)
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum json_value_type {
	kJSONNull = 0,
	kJSONTrue = 1,
	kJSONFalse = 2,
	kJSONInteger = 3,
	kJSONFloat = 4,
	kJSONString = 5,
	kJSONArray = 6,
	kJSONTable = 7,
}
#[repr(C)]
#[derive(Copy, Clone)]
#[must_use]
pub struct json_value {
	pub type_: core::ffi::c_char,
	pub data: json_value__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
#[must_use]
pub union json_value__bindgen_ty_1 {
	pub intval: core::ffi::c_int,
	pub floatval: core::ffi::c_float,
	pub stringval: *mut core::ffi::c_char,
	pub arrayval: *mut core::ffi::c_void,
	pub tableval: *mut core::ffi::c_void,
}
#[test]
fn bindgen_test_layout_json_value__bindgen_ty_1() {
	const UNINIT: ::core::mem::MaybeUninit<json_value__bindgen_ty_1> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<json_value__bindgen_ty_1>(),
	           4usize,
	           concat!("Size of: ", stringify!(json_value__bindgen_ty_1))
	);
	assert_eq!(
	           ::core::mem::align_of::<json_value__bindgen_ty_1>(),
	           4usize,
	           concat!("Alignment of ", stringify!(json_value__bindgen_ty_1))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).intval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value__bindgen_ty_1),
		"::",
		stringify!(intval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).floatval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value__bindgen_ty_1),
		"::",
		stringify!(floatval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stringval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value__bindgen_ty_1),
		"::",
		stringify!(stringval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).arrayval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value__bindgen_ty_1),
		"::",
		stringify!(arrayval)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).tableval) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value__bindgen_ty_1),
		"::",
		stringify!(tableval)
	)
	);
}
impl Default for json_value__bindgen_ty_1 {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[test]
fn bindgen_test_layout_json_value() {
	const UNINIT: ::core::mem::MaybeUninit<json_value> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<json_value>(),
	           8usize,
	           concat!("Size of: ", stringify!(json_value))
	);
	assert_eq!(
	           ::core::mem::align_of::<json_value>(),
	           4usize,
	           concat!("Alignment of ", stringify!(json_value))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value),
		"::",
		stringify!(type_)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_value),
		"::",
		stringify!(data)
	)
	);
}
impl Default for json_value {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct json_decoder {
	pub decodeError: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                             error: *const core::ffi::c_char,
	                                                             linenum: core::ffi::c_int)>,
	pub willDecodeSublist: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                   name: *const core::ffi::c_char,
	                                                                   type_: json_value_type)>,
	pub shouldDecodeTableValueForKey: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                              key: *const core::ffi::c_char)
	                                                                              -> core::ffi::c_int>,
	pub didDecodeTableValue: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                     key: *const core::ffi::c_char,
	                                                                     value: json_value)>,
	pub shouldDecodeArrayValueAtIndex: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                               pos: core::ffi::c_int)
	                                                                               -> core::ffi::c_int>,
	pub didDecodeArrayValue: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                     pos: core::ffi::c_int,
	                                                                     value: json_value)>,
	pub didDecodeSublist: ::core::option::Option<unsafe extern "C" fn(decoder: *mut json_decoder,
	                                                                  name: *const core::ffi::c_char,
	                                                                  type_: json_value_type)
	                                                                  -> *mut core::ffi::c_void>,
	pub userdata: *mut core::ffi::c_void,
	pub returnString: core::ffi::c_int,
	pub path: *const core::ffi::c_char,
}
#[test]
fn bindgen_test_layout_json_decoder() {
	const UNINIT: ::core::mem::MaybeUninit<json_decoder> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<json_decoder>(),
	           40usize,
	           concat!("Size of: ", stringify!(json_decoder))
	);
	assert_eq!(
	           ::core::mem::align_of::<json_decoder>(),
	           4usize,
	           concat!("Alignment of ", stringify!(json_decoder))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).decodeError) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(decodeError)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).willDecodeSublist) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(willDecodeSublist)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).shouldDecodeTableValueForKey) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(shouldDecodeTableValueForKey)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).didDecodeTableValue) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(didDecodeTableValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).shouldDecodeArrayValueAtIndex) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(shouldDecodeArrayValueAtIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).didDecodeArrayValue) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(didDecodeArrayValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).didDecodeSublist) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(didDecodeSublist)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).userdata) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(userdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).returnString) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(returnString)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).path) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_decoder),
		"::",
		stringify!(path)
	)
	);
}
impl Default for json_decoder {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
pub type json_readFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                     buf: *mut u8,
                                                                     bufsize: core::ffi::c_int)
                                                                     -> core::ffi::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct json_reader {
	pub read: json_readFunc,
	pub userdata: *mut core::ffi::c_void,
}
#[test]
fn bindgen_test_layout_json_reader() {
	const UNINIT: ::core::mem::MaybeUninit<json_reader> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<json_reader>(),
	           8usize,
	           concat!("Size of: ", stringify!(json_reader))
	);
	assert_eq!(
	           ::core::mem::align_of::<json_reader>(),
	           4usize,
	           concat!("Alignment of ", stringify!(json_reader))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_reader),
		"::",
		stringify!(read)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).userdata) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_reader),
		"::",
		stringify!(userdata)
	)
	);
}
impl Default for json_reader {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
pub type json_writeFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                      str_: *const core::ffi::c_char,
                                                                      len: core::ffi::c_int)>;
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct json_encoder {
	pub writeStringFunc: json_writeFunc,
	pub userdata: *mut core::ffi::c_void,
	pub _bitfield_align_1: [u32; 0],
	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
	pub startArray: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub addArrayMember: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub endArray: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub startTable: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub addTableMember: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder,
	                                                                name: *const core::ffi::c_char,
	                                                                len: core::ffi::c_int)>,
	pub endTable: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub writeNull: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub writeFalse: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub writeTrue: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
	pub writeInt: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: core::ffi::c_int)>,
	pub writeDouble:
		::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: core::ffi::c_double)>,
	pub writeString: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder,
	                                                             str_: *const core::ffi::c_char,
	                                                             len: core::ffi::c_int)>,
}
#[test]
fn bindgen_test_layout_json_encoder() {
	const UNINIT: ::core::mem::MaybeUninit<json_encoder> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<json_encoder>(),
	           60usize,
	           concat!("Size of: ", stringify!(json_encoder))
	);
	assert_eq!(
	           ::core::mem::align_of::<json_encoder>(),
	           4usize,
	           concat!("Alignment of ", stringify!(json_encoder))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeStringFunc) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeStringFunc)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).userdata) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(userdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).startArray) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(startArray)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addArrayMember) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(addArrayMember)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).endArray) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(endArray)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).startTable) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(startTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addTableMember) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(addTableMember)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).endTable) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(endTable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeNull) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeNull)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeFalse) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeFalse)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeTrue) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeTrue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeInt) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeInt)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeDouble) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeDouble)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).writeString) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(json_encoder),
		"::",
		stringify!(writeString)
	)
	);
}
impl Default for json_encoder {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
impl json_encoder {
	#[inline]
	pub fn pretty(&self) -> core::ffi::c_int {
		unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
	}
	#[inline]
	pub fn set_pretty(&mut self, val: core::ffi::c_int) {
		unsafe {
			let val: u32 = ::core::mem::transmute(val);
			self._bitfield_1.set(0usize, 1u8, val as u64)
		}
	}
	#[inline]
	pub fn startedTable(&self) -> core::ffi::c_int {
		unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
	}
	#[inline]
	pub fn set_startedTable(&mut self, val: core::ffi::c_int) {
		unsafe {
			let val: u32 = ::core::mem::transmute(val);
			self._bitfield_1.set(1usize, 1u8, val as u64)
		}
	}
	#[inline]
	pub fn startedArray(&self) -> core::ffi::c_int {
		unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
	}
	#[inline]
	pub fn set_startedArray(&mut self, val: core::ffi::c_int) {
		unsafe {
			let val: u32 = ::core::mem::transmute(val);
			self._bitfield_1.set(2usize, 1u8, val as u64)
		}
	}
	#[inline]
	pub fn depth(&self) -> core::ffi::c_int {
		unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) }
	}
	#[inline]
	pub fn set_depth(&mut self, val: core::ffi::c_int) {
		unsafe {
			let val: u32 = ::core::mem::transmute(val);
			self._bitfield_1.set(3usize, 29u8, val as u64)
		}
	}
	#[inline]
	pub fn new_bitfield_1(pretty: core::ffi::c_int,
	                      startedTable: core::ffi::c_int,
	                      startedArray: core::ffi::c_int,
	                      depth: core::ffi::c_int)
	                      -> __BindgenBitfieldUnit<[u8; 4usize]> {
		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
		__bindgen_bitfield_unit.set(0usize, 1u8, {
			                       let pretty: u32 = unsafe { ::core::mem::transmute(pretty) };
			                       pretty as u64
		                       });
		__bindgen_bitfield_unit.set(1usize, 1u8, {
			                       let startedTable: u32 = unsafe { ::core::mem::transmute(startedTable) };
			                       startedTable as u64
		                       });
		__bindgen_bitfield_unit.set(2usize, 1u8, {
			                       let startedArray: u32 = unsafe { ::core::mem::transmute(startedArray) };
			                       startedArray as u64
		                       });
		__bindgen_bitfield_unit.set(3usize, 29u8, {
			                       let depth: u32 = unsafe { ::core::mem::transmute(depth) };
			                       depth as u64
		                       });
		__bindgen_bitfield_unit
	}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_json {
	#[doc = "`void playdate->json->initEncoder(json_encoder* encoder, writeFunc* write, void* userdata, int pretty);`\n\nPopulates the given json\\_encoder *encoder* with the functions necessary to encode arbitrary data into a JSON string. *userdata* is passed as the first argument of the given writeFunc *write*. When *pretty* is 1 the string is written with human-readable formatting."]
	pub initEncoder: ::core::option::Option<unsafe extern "C" fn(encoder: *mut json_encoder,
	                                                             write: json_writeFunc,
	                                                             userdata: *mut core::ffi::c_void,
	                                                             pretty: core::ffi::c_int)>,
	#[doc = "`int playdate->json->decode(struct json_decoder* decoder, json_reader reader, json_value* outval);`\n\nEquivalent to [`playdate.json.decode()`](./Inside%20Playdate.html#f-json.decode) in the Lua API."]
	pub decode: ::core::option::Option<unsafe extern "C" fn(functions: *mut json_decoder,
	                                                        reader: json_reader,
	                                                        outval: *mut json_value)
	                                                        -> core::ffi::c_int>,
	#[doc = "`int playdate->json->decodeString(struct json_decoder* decoder, const char* jsonString, json_value* outval);`\n\nDecodes a JSON file or string with the given *decoder*. An instance of json\\_decoder must implement *decodeError*. The remaining functions are optional although you’ll probably want to implement at least *didDecodeTableValue* and *didDecodeArrayValue*. The *outval* pointer, if set, contains the value retured from the top-level *didDecodeSublist* callback."]
	pub decodeString: ::core::option::Option<unsafe extern "C" fn(functions: *mut json_decoder,
	                                                              jsonString: *const core::ffi::c_char,
	                                                              outval: *mut json_value)
	                                                              -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_json() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_json> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_json>(),
	           12usize,
	           concat!("Size of: ", stringify!(playdate_json))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_json>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_json))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).initEncoder) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_json),
		"::",
		stringify!(initEncoder)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).decode) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_json),
		"::",
		stringify!(decode)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).decodeString) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_json),
		"::",
		stringify!(decodeString)
	)
	);
}
pub type SDFile = core::ffi::c_void;
impl FileOptions {
	pub const kFileRead: FileOptions = FileOptions(1);
}
impl FileOptions {
	pub const kFileReadData: FileOptions = FileOptions(2);
}
impl FileOptions {
	pub const kFileWrite: FileOptions = FileOptions(4);
}
impl FileOptions {
	pub const kFileAppend: FileOptions = FileOptions(8);
}
impl ::core::ops::BitOr<FileOptions> for FileOptions {
	type Output = Self;
	#[inline]
	fn bitor(self, other: Self) -> Self { FileOptions(self.0 | other.0) }
}
impl ::core::ops::BitOrAssign for FileOptions {
	#[inline]
	fn bitor_assign(&mut self, rhs: FileOptions) { self.0 |= rhs.0; }
}
impl ::core::ops::BitAnd<FileOptions> for FileOptions {
	type Output = Self;
	#[inline]
	fn bitand(self, other: Self) -> Self { FileOptions(self.0 & other.0) }
}
impl ::core::ops::BitAndAssign for FileOptions {
	#[inline]
	fn bitand_assign(&mut self, rhs: FileOptions) { self.0 &= rhs.0; }
}
#[repr(transparent)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub struct FileOptions(pub u8);
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct FileStat {
	pub isdir: core::ffi::c_int,
	pub size: core::ffi::c_uint,
	pub m_year: core::ffi::c_int,
	pub m_month: core::ffi::c_int,
	pub m_day: core::ffi::c_int,
	pub m_hour: core::ffi::c_int,
	pub m_minute: core::ffi::c_int,
	pub m_second: core::ffi::c_int,
}
#[test]
fn bindgen_test_layout_FileStat() {
	const UNINIT: ::core::mem::MaybeUninit<FileStat> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<FileStat>(),
	           32usize,
	           concat!("Size of: ", stringify!(FileStat))
	);
	assert_eq!(
	           ::core::mem::align_of::<FileStat>(),
	           4usize,
	           concat!("Alignment of ", stringify!(FileStat))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isdir) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(FileStat), "::", stringify!(isdir))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(FileStat), "::", stringify!(size))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_year) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(FileStat),
		"::",
		stringify!(m_year)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_month) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(FileStat),
		"::",
		stringify!(m_month)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_day) as usize - ptr as usize },
	           16usize,
	           concat!("Offset of field: ", stringify!(FileStat), "::", stringify!(m_day))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_hour) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(FileStat),
		"::",
		stringify!(m_hour)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_minute) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(FileStat),
		"::",
		stringify!(m_minute)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).m_second) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(FileStat),
		"::",
		stringify!(m_second)
	)
	);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_file { # [doc = "`const char* playdate->file->geterr(void);`\n\nReturns human-readable text describing the most recent error (usually indicated by a -1 return from a filesystem function)."] pub geterr : :: core :: option :: Option < unsafe extern "C" fn () -> * const core :: ffi :: c_char > , # [doc = "`int playdate->file->listfiles(const char* path, void (*callback)(const char* filename, void* userdata), void* userdata, int showhidden);`\n\nCalls the given callback function for every file at *path*. Subfolders are indicated by a trailing slash '/' in *filename*. *listfiles()* does not recurse into subfolders. If *showhidden* is set, files beginning with a period will be included; otherwise, they are skipped. Returns 0 on success, -1 if no folder exists at *path* or it can’t be opened.\n\nEquivalent to [`playdate.file.listFiles()`](./Inside%20Playdate.html#f-file.listFiles) in the Lua API."] pub listfiles : :: core :: option :: Option < unsafe extern "C" fn (path : * const core :: ffi :: c_char , callback : :: core :: option :: Option < unsafe extern "C" fn (path : * const core :: ffi :: c_char , userdata : * mut core :: ffi :: c_void) > , userdata : * mut core :: ffi :: c_void , showhidden : core :: ffi :: c_int) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->stat(const char* path, FileStat* stat);`\n\nPopulates the FileStat *stat* with information about the file at *path*. Returns 0 on success, or -1 in case of error.\n\nFileStat\n\n```cpp\ntypedef struct\n{\n\tint isdir;\n\tunsigned int size;\n\tint m_year;\n\tint m_month;\n\tint m_day;\n\tint m_hour;\n\tint m_minute;\n\tint m_second;\n} FileStat;\n```"] pub stat : :: core :: option :: Option < unsafe extern "C" fn (path : * const core :: ffi :: c_char , stat : * mut FileStat) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->mkdir(const char* path);`\n\nCreates the given *path* in the Data/\\<gameid\\> folder. It does not create intermediate folders. Returns 0 on success, or -1 in case of error.\n\nEquivalent to [`playdate.file.mkdir()`](./Inside%20Playdate.html#f-file.mkdir) in the Lua API."] pub mkdir : :: core :: option :: Option < unsafe extern "C" fn (path : * const core :: ffi :: c_char) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->unlink(const char* path, int recursive);`\n\nDeletes the file at *path*. Returns 0 on success, or -1 in case of error. If recursive is 1 and the target path is a folder, this deletes everything inside the folder (including folders, folders inside those, and so on) as well as the folder itself."] pub unlink : :: core :: option :: Option < unsafe extern "C" fn (name : * const core :: ffi :: c_char , recursive : core :: ffi :: c_int) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->rename(const char* from, const char* to);`\n\nRenames the file at *from* to *to*. It will overwrite the file at *to* without confirmation. It does not create intermediate folders. Returns 0 on success, or -1 in case of error.\n\nEquivalent to [`playdate.file.rename()`](./Inside%20Playdate.html#f-file.rename) in the Lua API."] pub rename : :: core :: option :: Option < unsafe extern "C" fn (from : * const core :: ffi :: c_char , to : * const core :: ffi :: c_char) -> core :: ffi :: c_int > , # [doc = "`SDFile* playdate->file->open(const char* path, FileOptions mode);`\n\nOpens a handle for the file at *path*. The *kFileRead* mode opens a file in the game pdx, while *kFileReadData* searches the game’s data folder; to search the data folder first then fall back on the game pdx, use the bitwise combination *kFileRead|kFileReadData*.*kFileWrite* and *kFileAppend* always write to the data folder. The function returns NULL if a file at *path* cannot be opened, and [playdate-\\>file-\\>geterr()](#f-file.geterr) will describe the error. The filesystem has a limit of 64 simultaneous open files. The returned file handle should be [closed](#f-file.close), not freed, when it is no longer in use.\n\nFileOptions\n\n```cpp\ntypedef enum\n{\n\tkFileRead,\n\tkFileReadData,\n\tkFileWrite,\n\tkFileAppend\n} FileOptions;\n```\n\nEquivalent to [`playdate.file.open()`](./Inside%20Playdate.html#f-file.open) in the Lua API."] pub open : :: core :: option :: Option < unsafe extern "C" fn (name : * const core :: ffi :: c_char , mode : FileOptions) -> * mut SDFile > , # [doc = "`int playdate->file->close(SDFile* file);`\n\nCloses the given *file* handle. Returns 0 on success, or -1 in case of error.\n\nEquivalent to [`playdate.file.close()`](./Inside%20Playdate.html#f-file.close) in the Lua API."] pub close : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->read(SDFile* file, void* buf, unsigned int len);`\n\nReads up to *len* bytes from the *file* into the buffer *buf*. Returns the number of bytes read (0 indicating end of file), or -1 in case of error.\n\nEquivalent to [`playdate.file.file:read()`](./Inside%20Playdate.html#m-file.read) in the Lua API."] pub read : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile , buf : * mut core :: ffi :: c_void , len : core :: ffi :: c_uint) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->write(SDFile* file, const void* buf, unsigned int len);`\n\nWrites the buffer of bytes *buf* to the *file*. Returns the number of bytes written, or -1 in case of error.\n\nEquivalent to [`playdate.file.file:write()`](./Inside%20Playdate.html#m-file.write) in the Lua API."] pub write : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile , buf : * const core :: ffi :: c_void , len : core :: ffi :: c_uint) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->flush(SDFile* file);`\n\nFlushes the output buffer of *file* immediately. Returns the number of bytes written, or -1 in case of error.\n\nEquivalent to [`playdate.file.flush()`](./Inside%20Playdate.html#f-file.flush) in the Lua API."] pub flush : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->tell(SDFile* file);`\n\nReturns the current read/write offset in the given *file* handle, or -1 on error.\n\nEquivalent to [`playdate.file.file:tell()`](./Inside%20Playdate.html#m-file.tell) in the Lua API."] pub tell : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile) -> core :: ffi :: c_int > , # [doc = "`int playdate->file->seek(SDFile* file, int pos, int whence);`\n\nSets the read/write offset in the given *file* handle to *pos*, relative to the *whence* macro. SEEK\\_SET is relative to the beginning of the file, SEEK\\_CUR is relative to the current position of the file pointer, and SEEK\\_END is relative to the end of the file. Returns 0 on success, -1 on error.\n\nEquivalent to [`playdate.file.file:seek()`](./Inside%20Playdate.html#m-file.seek) in the Lua API."] pub seek : :: core :: option :: Option < unsafe extern "C" fn (file : * mut SDFile , pos : core :: ffi :: c_int , whence : core :: ffi :: c_int) -> core :: ffi :: c_int > , }
#[test]
fn bindgen_test_layout_playdate_file() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_file> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_file>(),
	           52usize,
	           concat!("Size of: ", stringify!(playdate_file))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_file>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_file))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).geterr) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(geterr)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).listfiles) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(listfiles)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stat) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(stat)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).mkdir) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(mkdir)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).unlink) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(unlink)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).rename) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(rename)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).open) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(open)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).close) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(close)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(read)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).write) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(write)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).flush) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(flush)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).tell) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(tell)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).seek) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_file),
		"::",
		stringify!(seek)
	)
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum SpriteCollisionResponseType {
	kCollisionTypeSlide = 0,
	kCollisionTypeFreeze = 1,
	kCollisionTypeOverlap = 2,
	kCollisionTypeBounce = 3,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialOrd, PartialEq)]
#[must_use]
pub struct PDRect {
	pub x: core::ffi::c_float,
	pub y: core::ffi::c_float,
	pub width: core::ffi::c_float,
	pub height: core::ffi::c_float,
}
#[test]
fn bindgen_test_layout_PDRect() {
	const UNINIT: ::core::mem::MaybeUninit<PDRect> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDRect>(),
	           16usize,
	           concat!("Size of: ", stringify!(PDRect))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDRect>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PDRect))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(PDRect), "::", stringify!(x))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(PDRect), "::", stringify!(y))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
	           8usize,
	           concat!("Offset of field: ", stringify!(PDRect), "::", stringify!(width))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
	           12usize,
	           concat!("Offset of field: ", stringify!(PDRect), "::", stringify!(height))
	);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialOrd, PartialEq)]
#[must_use]
pub struct CollisionPoint {
	pub x: core::ffi::c_float,
	pub y: core::ffi::c_float,
}
#[test]
fn bindgen_test_layout_CollisionPoint() {
	const UNINIT: ::core::mem::MaybeUninit<CollisionPoint> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<CollisionPoint>(),
	           8usize,
	           concat!("Size of: ", stringify!(CollisionPoint))
	);
	assert_eq!(
	           ::core::mem::align_of::<CollisionPoint>(),
	           4usize,
	           concat!("Alignment of ", stringify!(CollisionPoint))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(CollisionPoint),
		"::",
		stringify!(x)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(CollisionPoint),
		"::",
		stringify!(y)
	)
	);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct CollisionVector {
	pub x: core::ffi::c_int,
	pub y: core::ffi::c_int,
}
#[test]
fn bindgen_test_layout_CollisionVector() {
	const UNINIT: ::core::mem::MaybeUninit<CollisionVector> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<CollisionVector>(),
	           8usize,
	           concat!("Size of: ", stringify!(CollisionVector))
	);
	assert_eq!(
	           ::core::mem::align_of::<CollisionVector>(),
	           4usize,
	           concat!("Alignment of ", stringify!(CollisionVector))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(CollisionVector),
		"::",
		stringify!(x)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(CollisionVector),
		"::",
		stringify!(y)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
#[must_use]
pub struct SpriteCollisionInfo {
	pub sprite: *mut LCDSprite,
	pub other: *mut LCDSprite,
	pub responseType: SpriteCollisionResponseType,
	pub overlaps: u8,
	pub ti: core::ffi::c_float,
	pub move_: CollisionPoint,
	pub normal: CollisionVector,
	pub touch: CollisionPoint,
	pub spriteRect: PDRect,
	pub otherRect: PDRect,
}
#[test]
fn bindgen_test_layout_SpriteCollisionInfo() {
	const UNINIT: ::core::mem::MaybeUninit<SpriteCollisionInfo> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<SpriteCollisionInfo>(),
	           72usize,
	           concat!("Size of: ", stringify!(SpriteCollisionInfo))
	);
	assert_eq!(
	           ::core::mem::align_of::<SpriteCollisionInfo>(),
	           4usize,
	           concat!("Alignment of ", stringify!(SpriteCollisionInfo))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sprite) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(sprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).other) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(other)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).responseType) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(responseType)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).overlaps) as usize - ptr as usize },
	           9usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(overlaps)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).ti) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(ti)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).move_) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(move_)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).normal) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(normal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).touch) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(touch)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).spriteRect) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(spriteRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).otherRect) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteCollisionInfo),
		"::",
		stringify!(otherRect)
	)
	);
}
impl Default for SpriteCollisionInfo {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
#[must_use]
pub struct SpriteQueryInfo {
	pub sprite: *mut LCDSprite,
	pub ti1: core::ffi::c_float,
	pub ti2: core::ffi::c_float,
	pub entryPoint: CollisionPoint,
	pub exitPoint: CollisionPoint,
}
#[test]
fn bindgen_test_layout_SpriteQueryInfo() {
	const UNINIT: ::core::mem::MaybeUninit<SpriteQueryInfo> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<SpriteQueryInfo>(),
	           28usize,
	           concat!("Size of: ", stringify!(SpriteQueryInfo))
	);
	assert_eq!(
	           ::core::mem::align_of::<SpriteQueryInfo>(),
	           4usize,
	           concat!("Alignment of ", stringify!(SpriteQueryInfo))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sprite) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteQueryInfo),
		"::",
		stringify!(sprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).ti1) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteQueryInfo),
		"::",
		stringify!(ti1)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).ti2) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteQueryInfo),
		"::",
		stringify!(ti2)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).entryPoint) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteQueryInfo),
		"::",
		stringify!(entryPoint)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).exitPoint) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(SpriteQueryInfo),
		"::",
		stringify!(exitPoint)
	)
	);
}
impl Default for SpriteQueryInfo {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
pub type LCDSpriteDrawFunction =
	::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, bounds: PDRect, drawrect: PDRect)>;
pub type LCDSpriteUpdateFunction = ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>;
pub type LCDSpriteCollisionFilterProc =
	::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                            other: *mut LCDSprite)
	                                            -> SpriteCollisionResponseType>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sprite {
	#[doc = "`void playdate->sprite->setAlwaysRedraw(int flag);`\n\nWhen *flag* is set to 1, this causes all sprites to draw each frame, whether or not they have been marked dirty. This may speed up the performance of your game if the system’s dirty rect tracking is taking up too much time - for example if there are many sprites moving around on screen at once."]
	pub setAlwaysRedraw: ::core::option::Option<unsafe extern "C" fn(flag: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->addDirtyRect(LCDRect dirtyRect);`\n\nMarks the given *dirtyRect* (in screen coordinates) as needing a redraw. Graphics drawing functions now call this automatically, adding their drawn areas to the sprite’s dirty list, so there’s usually no need to call this manually."]
	pub addDirtyRect: ::core::option::Option<unsafe extern "C" fn(dirtyRect: LCDRect)>,
	#[doc = "`void playdate->sprite->drawSprites(void);`\n\nDraws every sprite in the display list."]
	pub drawSprites: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->sprite->updateAndDrawSprites(void);`\n\nUpdates and draws every sprite in the display list."]
	pub updateAndDrawSprites: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`LCDSprite* playdate->sprite->newSprite(void);`\n\nAllocates and returns a new LCDSprite."]
	pub newSprite: ::core::option::Option<unsafe extern "C" fn() -> *mut LCDSprite>,
	pub freeSprite: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`LCDSprite* playdate->sprite->copy(LCDSprite *sprite);`\n\nAllocates and returns a copy of the given *sprite*."]
	pub copy: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> *mut LCDSprite>,
	#[doc = "`void playdate->sprite->addSprite(LCDSprite *sprite);`\n\nAdds the given *sprite* to the display list, so that it is drawn in the current scene."]
	pub addSprite: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->removeSprite(LCDSprite *sprite);`\n\nRemoves the given *sprite* from the display list."]
	pub removeSprite: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->removeSprites(LCDSprite **sprites, int count);`\n\nRemoves the given *count* sized array of *sprites* from the display list."]
	pub removeSprites:
		::core::option::Option<unsafe extern "C" fn(sprites: *mut *mut LCDSprite, count: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->removeAllSprites(void);`\n\nRemoves all sprites from the display list."]
	pub removeAllSprites: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`int playdate->sprite->getSpriteCount(void);`\n\nReturns the total number of sprites in the display list."]
	pub getSpriteCount: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
	#[doc = "`void playdate->sprite->setBounds(LCDSprite *sprite, PDRect bounds);`\n\nSets the bounds of the given *sprite* with *bounds*."]
	pub setBounds: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, bounds: PDRect)>,
	#[doc = "`PDRect playdate->sprite->getBounds(LCDSprite *sprite);`\n\nReturns the bounds of the given *sprite* as an PDRect;"]
	pub getBounds: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> PDRect>,
	#[doc = "`void playdate->sprite->moveTo(LCDSprite *sprite, float x, float y);`\n\nMoves the given *sprite* to *x*, *y* and resets its bounds based on the bitmap dimensions and center."]
	pub moveTo: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                        x: core::ffi::c_float,
	                                                        y: core::ffi::c_float)>,
	#[doc = "`void playdate->sprite->moveBy(LCDSprite *sprite, float dx, float dy);`\n\nMoves the given *sprite* to by offsetting its current position by *dx*, *dy*."]
	pub moveBy: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                        dx: core::ffi::c_float,
	                                                        dy: core::ffi::c_float)>,
	#[doc = "`void playdate->sprite->setImage(LCDSprite *sprite, LCDBitmap *image, LCDBitmapFlip flip);`\n\nSets the given *sprite*'s image to the given *bitmap*."]
	pub setImage: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                          image: *mut LCDBitmap,
	                                                          flip: LCDBitmapFlip)>,
	#[doc = "`LCDBitmap* playdate->sprite->getImage(LCDSprite *sprite);`\n\nReturns the LCDBitmap currently assigned to the given *sprite*."]
	pub getImage: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> *mut LCDBitmap>,
	#[doc = "`void playdate->sprite->setSize(LCDSprite *s, float width, float height);`\n\nSets the size. The size is used to set the sprite’s bounds when calling moveTo()."]
	pub setSize: ::core::option::Option<unsafe extern "C" fn(s: *mut LCDSprite,
	                                                         width: core::ffi::c_float,
	                                                         height: core::ffi::c_float)>,
	#[doc = "`void playdate->sprite->setZIndex(LCDSprite *sprite, int16_t zIndex);`\n\nSets the Z order of the given *sprite*. Higher Z sprites are drawn on top of those with lower Z order."]
	pub setZIndex: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, zIndex: i16)>,
	#[doc = "`int16_t playdate->sprite->getZIndex(LCDSprite *sprite);`\n\nReturns the Z index of the given *sprite*."]
	pub getZIndex: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> i16>,
	#[doc = "`void playdate->sprite->setDrawMode(LCDSprite *sprite, LCDBitmapDrawMode mode);`\n\nSets the mode for drawing the sprite’s bitmap."]
	pub setDrawMode: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, mode: LCDBitmapDrawMode)>,
	#[doc = "`void playdate->sprite->setImageFlip(LCDSprite *sprite, LCDBitmapFlip flip);`\n\nFlips the bitmap."]
	pub setImageFlip: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flip: LCDBitmapFlip)>,
	#[doc = "`LCDBitmapFlip playdate->sprite->getImageFlip(LCDSprite *sprite);`\n\nReturns the flip setting of the sprite’s bitmap."]
	pub getImageFlip: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> LCDBitmapFlip>,
	#[doc = "`void playdate->sprite->setStencil(LCDSprite *sprite, LCDBitmap* stencil);`\n\nSpecifies a stencil image to be set on the frame buffer before the sprite is drawn."]
	pub setStencil: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, stencil: *mut LCDBitmap)>,
	#[doc = "`void playdate->sprite->setClipRect(LCDSprite *sprite, LCDRect clipRect);`\n\nSets the clipping rectangle for sprite drawing."]
	pub setClipRect: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, clipRect: LCDRect)>,
	#[doc = "`void playdate->sprite->clearClipRect(LCDSprite *sprite);`\n\nClears the sprite’s clipping rectangle."]
	pub clearClipRect: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->setClipRectsInRange(LCDRect clipRect, int startZ, int endZ);`\n\nSets the clipping rectangle for *all* sprites with a Z index within *startZ* and *endZ* inclusive."]
	pub setClipRectsInRange: ::core::option::Option<unsafe extern "C" fn(clipRect: LCDRect,
	                                                                     startZ: core::ffi::c_int,
	                                                                     endZ: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->clearClipRectsInRange(int startZ, int endZ);`\n\nClears the clipping rectangle for *all* sprites with a Z index within *startZ* and *endZ* inclusive."]
	pub clearClipRectsInRange:
		::core::option::Option<unsafe extern "C" fn(startZ: core::ffi::c_int, endZ: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->setUpdatesEnabled(LCDSprite *sprite, int flag);`\n\nSet the updatesEnabled flag of the given *sprite* (determines whether the sprite has its update function called). One is true, 0 is false."]
	pub setUpdatesEnabled:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flag: core::ffi::c_int)>,
	#[doc = "`int playdate->sprite->updatesEnabled(LCDSprite *sprite);`\n\nGet the updatesEnabled flag of the given *sprite*."]
	pub updatesEnabled: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> core::ffi::c_int>,
	#[doc = "`void playdate->sprite->setCollisionsEnabled(LCDSprite *sprite, int flag);`\n\nSet the collisionsEnabled flag of the given *sprite* (along with the collideRect, this determines whether the sprite participates in collisions). One is true, 0 is false. Set to 1 by default."]
	pub setCollisionsEnabled:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flag: core::ffi::c_int)>,
	#[doc = "`int playdate->sprite->collisionsEnabled(LCDSprite *sprite);`\n\nGet the collisionsEnabled flag of the given *sprite*."]
	pub collisionsEnabled:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> core::ffi::c_int>,
	#[doc = "`void playdate->sprite->setVisible(LCDSprite *sprite, int flag);`\n\nSet the visible flag of the given *sprite* (determines whether the sprite has its draw function called). One is true, 0 is false."]
	pub setVisible: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flag: core::ffi::c_int)>,
	#[doc = "`int playdate->sprite->isVisible(LCDSprite *sprite);`\n\nGet the visible flag of the given *sprite*."]
	pub isVisible: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> core::ffi::c_int>,
	#[doc = "`void playdate->sprite->setOpaque(LCDSprite *sprite, int flag);`\n\nMarking a sprite opaque tells the sprite system that it doesn’t need to draw anything underneath the sprite, since it will be overdrawn anyway. If you set an image without a mask/alpha channel on the sprite, it automatically sets the opaque flag."]
	pub setOpaque: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flag: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->markDirty(LCDSprite *sprite);`\n\nForces the given *sprite* to redraw."]
	pub markDirty: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->setTag(LCDSprite *sprite, uint8_t tag);`\n\nSets the tag of the given *sprite*. This can be useful for identifying sprites or types of sprites when using the collision API."]
	pub setTag: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, tag: u8)>,
	#[doc = "`uint8_t playdate->sprite->getTag(LCDSprite *sprite);`\n\nReturns the tag of the given *sprite*."]
	pub getTag: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> u8>,
	#[doc = "`void playdate->sprite->setIgnoresDrawOffset(LCDSprite *sprite, int flag);`\n\nWhen *flag* is set to 1, the *sprite* will draw in screen coordinates, ignoring the currently-set drawOffset.\n\nThis only affects drawing, and should not be used on sprites being used for collisions, which will still happen in world-space."]
	pub setIgnoresDrawOffset:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, flag: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->setUpdateFunction(LCDSprite *sprite, LCDSpriteUpdateFunction *func);`\n\nSets the update function for the given *sprite*."]
	pub setUpdateFunction:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, func: LCDSpriteUpdateFunction)>,
	#[doc = "`void playdate->sprite->setDrawFunction(LCDSprite *sprite, LCDSpriteDrawFunction *func);`\n\nSets the draw function for the given *sprite*. Note that the callback is only called when the sprite is on screen and has a size specified via [playdate→sprite→setSize()](#f-sprite.setSize) or [playdate→sprite→setBounds()](#f-sprite.setBounds)."]
	pub setDrawFunction:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, func: LCDSpriteDrawFunction)>,
	#[doc = "`void playdate->sprite->getPosition(LCDSprite *sprite, float *x, float *y);`\n\nSets *x* and *y* to the current position of *sprite*."]
	pub getPosition: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                             x: *mut core::ffi::c_float,
	                                                             y: *mut core::ffi::c_float)>,
	#[doc = "`void playdate->sprite->resetCollisionWorld(void);`\n\nFrees and reallocates internal collision data, resetting everything to its default state."]
	pub resetCollisionWorld: ::core::option::Option<unsafe extern "C" fn()>,
	#[doc = "`void playdate->sprite->setCollideRect(LCDSprite *sprite, PDRect collideRect);`\n\nMarks the area of the given *sprite*, relative to its bounds, to be checked for collisions with other sprites' collide rects."]
	pub setCollideRect: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, collideRect: PDRect)>,
	#[doc = "`PDRect playdate->sprite->getCollideRect(LCDSprite *sprite);`\n\nReturns the given *sprite*’s collide rect."]
	pub getCollideRect: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> PDRect>,
	#[doc = "`void playdate->sprite->clearCollideRect(LCDSprite *sprite);`\n\nClears the given *sprite*’s collide rect."]
	pub clearCollideRect: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->setCollisionResponseFunction(LCDSprite *sprite, LCDSpriteCollisionFilterProc *func);`\n\nSet a callback that returns a [SpriteCollisionResponseType](#_SpriteCollisionResponseType) for a collision between *sprite* and *other*.\n\nLCDSpriteCollisionFilterProc\n\n```cpp\ntypedef SpriteCollisionResponseType LCDSpriteCollisionFilterProc(LCDSprite* sprite, LCDSprite* other);\n```"]
	pub setCollisionResponseFunction:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, func: LCDSpriteCollisionFilterProc)>,
	#[doc = "`SpriteCollisionInfo* playdate->sprite->checkCollisions(LCDSprite *sprite, float goalX, float goalY, float *actualX, float *actualY, int *len);`\n\nReturns the same values as [playdate-\\>sprite-\\>moveWithCollisions()](#f-sprite.moveWithCollisions) but does not actually move the sprite. The caller is responsible for freeing the returned array."]
	pub checkCollisions: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                                 goalX: core::ffi::c_float,
	                                                                 goalY: core::ffi::c_float,
	                                                                 actualX: *mut core::ffi::c_float,
	                                                                 actualY: *mut core::ffi::c_float,
	                                                                 len: *mut core::ffi::c_int)
	                                                                 -> *mut SpriteCollisionInfo>,
	#[doc = "`SpriteCollisionInfo* playdate->sprite->moveWithCollisions(LCDSprite *sprite, float goalX, float goalY, float *actualX, float *actualY, int *len);`\n\nMoves the given *sprite* towards *goalX*, *goalY* taking collisions into account and returns an array of SpriteCollisionInfo. *len* is set to the size of the array and *actualX*, *actualY* are set to the sprite’s position after collisions. If no collisions occurred, this will be the same as *goalX*, *goalY*. The caller is responsible for freeing the returned array."]
	pub moveWithCollisions: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                                    goalX: core::ffi::c_float,
	                                                                    goalY: core::ffi::c_float,
	                                                                    actualX: *mut core::ffi::c_float,
	                                                                    actualY: *mut core::ffi::c_float,
	                                                                    len: *mut core::ffi::c_int)
	                                                                    -> *mut SpriteCollisionInfo>,
	#[doc = "`LCDSprite** playdate->sprite->querySpritesAtPoint(float x, float y, int *len);`\n\nReturns an array of all sprites with collision rects containing the point at *x*, *y*. *len* is set to the size of the array. The caller is responsible for freeing the returned array."]
	pub querySpritesAtPoint: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_float,
	                                                                     y: core::ffi::c_float,
	                                                                     len: *mut core::ffi::c_int)
	                                                                     -> *mut *mut LCDSprite>,
	#[doc = "`LCDSprite** playdate->sprite->querySpritesInRect(float x, float y, float width, float height, int *len);`\n\nReturns an array of all sprites with collision rects that intersect the *width* by *height* rect at *x*, *y*. *len* is set to the size of the array. The caller is responsible for freeing the returned array."]
	pub querySpritesInRect: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_float,
	                                                                    y: core::ffi::c_float,
	                                                                    width: core::ffi::c_float,
	                                                                    height: core::ffi::c_float,
	                                                                    len: *mut core::ffi::c_int)
	                                                                    -> *mut *mut LCDSprite>,
	#[doc = "`LCDSprite** playdate->sprite->querySpritesAlongLine(float x1, float y1, float x2, float y2, int *len);`\n\nReturns an array of all sprites with collision rects that intersect the line connecting *x1*, *y1* and *x2*, *y2*. *len* is set to the size of the array. The caller is responsible for freeing the returned array."]
	pub querySpritesAlongLine: ::core::option::Option<unsafe extern "C" fn(x1: core::ffi::c_float,
	                                                                       y1: core::ffi::c_float,
	                                                                       x2: core::ffi::c_float,
	                                                                       y2: core::ffi::c_float,
	                                                                       len: *mut core::ffi::c_int)
	                                                                       -> *mut *mut LCDSprite>,
	#[doc = "`SpriteQueryInfo* playdate->sprite->querySpriteInfoAlongLine(float x1, float y1, float x2, float y2, int *len);`\n\nReturns an array of SpriteQueryInfo for all sprites with collision rects that intersect the line connecting *x1*, *y1* and *x2*, *y2*. *len* is set to the size of the array. If you don’t need this information, use querySpritesAlongLine() as it will be faster. The caller is responsible for freeing the returned array."]
	pub querySpriteInfoAlongLine: ::core::option::Option<unsafe extern "C" fn(x1: core::ffi::c_float,
	                                                                          y1: core::ffi::c_float,
	                                                                          x2: core::ffi::c_float,
	                                                                          y2: core::ffi::c_float,
	                                                                          len: *mut core::ffi::c_int)
	                                                                          -> *mut SpriteQueryInfo>,
	#[doc = "`LCDSprite** playdate->sprite->overlappingSprites(LCDSprite *sprite, int *len);`\n\nReturns an array of sprites that have collide rects that are currently overlapping the given *sprite*’s collide rect. *len* is set to the size of the array. The caller is responsible for freeing the returned array."]
	pub overlappingSprites: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                                    len: *mut core::ffi::c_int)
	                                                                    -> *mut *mut LCDSprite>,
	#[doc = "`LCDSprite** playdate->sprite->allOverlappingSprites(int *len);`\n\nReturns an array of all sprites that have collide rects that are currently overlapping. Each consecutive pair of sprites is overlapping (eg. 0 & 1 overlap, 2 & 3 overlap, etc). *len* is set to the size of the array. The caller is responsible for freeing the returned array."]
	pub allOverlappingSprites:
		::core::option::Option<unsafe extern "C" fn(len: *mut core::ffi::c_int) -> *mut *mut LCDSprite>,
	#[doc = "`void playdate->sprite->setStencilPattern(LCDSprite* sprite, uint8_t pattern[8]);`\n\nSets the sprite’s stencil to the given pattern."]
	pub setStencilPattern:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, pattern: *mut [u8; 8usize])>,
	#[doc = "`void playdate->sprite->clearStencil(LCDSprite *sprite);`\n\nClears the sprite’s stencil."]
	pub clearStencil: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
	#[doc = "`void playdate->sprite->setUserdata(LCDSprite *sprite, void* userdata);`"]
	pub setUserdata:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite, userdata: *mut core::ffi::c_void)>,
	#[doc = "`void* playdate->sprite->getUserdata(LCDSprite *sprite);`\n\nSets and gets the sprite’s userdata, an arbitrary pointer used for associating the sprite with other data."]
	pub getUserdata:
		::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite) -> *mut core::ffi::c_void>,
	#[doc = "`void playdate->sprite->setStencilImage(LCDSprite *sprite, LCDBitmap* stencil, int tile);`\n\nSpecifies a stencil image to be set on the frame buffer before the sprite is drawn. If *tile* is set, the stencil will be tiled. Tiled stencils must have width evenly divisible by 32."]
	pub setStencilImage: ::core::option::Option<unsafe extern "C" fn(sprite: *mut LCDSprite,
	                                                                 stencil: *mut LCDBitmap,
	                                                                 tile: core::ffi::c_int)>,
	#[doc = "`void playdate->sprite->setCenter(LCDSprite *sprite, float x, float y);`\n\nSets the sprite’s drawing center as a fraction (ranging from 0.0 to 1.0) of the height and width. Default is 0.5, 0.5 (the center of the sprite). This means that when you call [sprite→moveTo(sprite, x, y)](#f-sprite.moveTo), the center of your sprite will be positioned at *x*, *y*. If you want x and y to represent the upper left corner of your sprite, specify the center as 0, 0."]
	pub setCenter: ::core::option::Option<unsafe extern "C" fn(s: *mut LCDSprite,
	                                                           x: core::ffi::c_float,
	                                                           y: core::ffi::c_float)>,
	#[doc = "`void playdate->sprite->getCenter(LCDSprite *sprite, float *outx, float *outy);`\n\nSets the values in `outx` and `outy` to the sprite’s drawing center as a fraction (ranging from 0.0 to 1.0) of the height and width."]
	pub getCenter: ::core::option::Option<unsafe extern "C" fn(s: *mut LCDSprite,
	                                                           x: *mut core::ffi::c_float,
	                                                           y: *mut core::ffi::c_float)>,
}
#[test]
fn bindgen_test_layout_playdate_sprite() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sprite> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sprite>(),
	           252usize,
	           concat!("Size of: ", stringify!(playdate_sprite))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sprite>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sprite))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAlwaysRedraw) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setAlwaysRedraw)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addDirtyRect) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(addDirtyRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).drawSprites) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(drawSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).updateAndDrawSprites) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(updateAndDrawSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSprite) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(newSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSprite) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(freeSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).copy) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(copy)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addSprite) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(addSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeSprite) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(removeSprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeSprites) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(removeSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeAllSprites) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(removeAllSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getSpriteCount) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getSpriteCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setBounds) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setBounds)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getBounds) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getBounds)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).moveTo) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(moveTo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).moveBy) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(moveBy)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setImage) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setImage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getImage) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getImage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSize) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setSize)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setZIndex) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setZIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getZIndex) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getZIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDrawMode) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setDrawMode)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setImageFlip) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setImageFlip)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getImageFlip) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getImageFlip)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStencil) as usize - ptr as usize },
	           96usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setStencil)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setClipRect) as usize - ptr as usize },
	           100usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setClipRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearClipRect) as usize - ptr as usize },
	           104usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(clearClipRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setClipRectsInRange) as usize - ptr as usize },
	           108usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setClipRectsInRange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearClipRectsInRange) as usize - ptr as usize },
	           112usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(clearClipRectsInRange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUpdatesEnabled) as usize - ptr as usize },
	           116usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setUpdatesEnabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).updatesEnabled) as usize - ptr as usize },
	           120usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(updatesEnabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCollisionsEnabled) as usize - ptr as usize },
	           124usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setCollisionsEnabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).collisionsEnabled) as usize - ptr as usize },
	           128usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(collisionsEnabled)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVisible) as usize - ptr as usize },
	           132usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setVisible)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isVisible) as usize - ptr as usize },
	           136usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(isVisible)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOpaque) as usize - ptr as usize },
	           140usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setOpaque)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).markDirty) as usize - ptr as usize },
	           144usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(markDirty)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTag) as usize - ptr as usize },
	           148usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setTag)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTag) as usize - ptr as usize },
	           152usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getTag)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setIgnoresDrawOffset) as usize - ptr as usize },
	           156usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setIgnoresDrawOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUpdateFunction) as usize - ptr as usize },
	           160usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setUpdateFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDrawFunction) as usize - ptr as usize },
	           164usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setDrawFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getPosition) as usize - ptr as usize },
	           168usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getPosition)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).resetCollisionWorld) as usize - ptr as usize },
	           172usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(resetCollisionWorld)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCollideRect) as usize - ptr as usize },
	           176usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setCollideRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCollideRect) as usize - ptr as usize },
	           180usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getCollideRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearCollideRect) as usize - ptr as usize },
	           184usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(clearCollideRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCollisionResponseFunction) as usize - ptr as usize },
	           188usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setCollisionResponseFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).checkCollisions) as usize - ptr as usize },
	           192usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(checkCollisions)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).moveWithCollisions) as usize - ptr as usize },
	           196usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(moveWithCollisions)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).querySpritesAtPoint) as usize - ptr as usize },
	           200usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(querySpritesAtPoint)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).querySpritesInRect) as usize - ptr as usize },
	           204usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(querySpritesInRect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).querySpritesAlongLine) as usize - ptr as usize },
	           208usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(querySpritesAlongLine)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).querySpriteInfoAlongLine) as usize - ptr as usize },
	           212usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(querySpriteInfoAlongLine)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).overlappingSprites) as usize - ptr as usize },
	           216usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(overlappingSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).allOverlappingSprites) as usize - ptr as usize },
	           220usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(allOverlappingSprites)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStencilPattern) as usize - ptr as usize },
	           224usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setStencilPattern)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearStencil) as usize - ptr as usize },
	           228usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(clearStencil)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUserdata) as usize - ptr as usize },
	           232usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getUserdata) as usize - ptr as usize },
	           236usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStencilImage) as usize - ptr as usize },
	           240usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setStencilImage)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCenter) as usize - ptr as usize },
	           244usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(setCenter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCenter) as usize - ptr as usize },
	           248usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sprite),
		"::",
		stringify!(getCenter)
	)
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum SoundFormat {
	kSound8bitMono = 0,
	kSound8bitStereo = 1,
	kSound16bitMono = 2,
	kSound16bitStereo = 3,
	kSoundADPCMMono = 4,
	kSoundADPCMStereo = 5,
}
pub type MIDINote = core::ffi::c_float;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SoundSource {
	_unused: [u8; 0],
}
pub type sndCallbackProc =
	::core::option::Option<unsafe extern "C" fn(c: *mut SoundSource, userdata: *mut core::ffi::c_void)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_source {
	#[doc = "`void playdate->sound->source->setVolume(SoundSource* c, float lvol, float rvol)`\n\nSets the playback volume (0.0 - 1.0) for left and right channels of the source."]
	pub setVolume: ::core::option::Option<unsafe extern "C" fn(c: *mut SoundSource,
	                                                           lvol: core::ffi::c_float,
	                                                           rvol: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->source->getVolume(SoundSource* c, float* outlvol, float* outrvol)`\n\nGets the playback volume (0.0 - 1.0) for left and right channels of the source."]
	pub getVolume: ::core::option::Option<unsafe extern "C" fn(c: *mut SoundSource,
	                                                           outl: *mut core::ffi::c_float,
	                                                           outr: *mut core::ffi::c_float)>,
	#[doc = "`int playdate->sound->source->isPlaying(SoundSource* c)`\n\nReturns 1 if the source is currently playing."]
	pub isPlaying: ::core::option::Option<unsafe extern "C" fn(c: *mut SoundSource) -> core::ffi::c_int>,
	pub setFinishCallback: ::core::option::Option<unsafe extern "C" fn(c: *mut SoundSource,
	                                                                   callback: sndCallbackProc,
	                                                                   userdata: *mut core::ffi::c_void)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_source() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_source> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_source>(),
	           16usize,
	           concat!("Size of: ", stringify!(playdate_sound_source))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_source>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_source))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_source),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_source),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isPlaying) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_source),
		"::",
		stringify!(isPlaying)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFinishCallback) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_source),
		"::",
		stringify!(setFinishCallback)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct FilePlayer {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_fileplayer { # [doc = "`FilePlayer* playdate->sound->fileplayer->newPlayer(void);`\n\nAllocates a new FilePlayer."] pub newPlayer : :: core :: option :: Option < unsafe extern "C" fn () -> * mut FilePlayer > , # [doc = "`void playdate->sound->fileplayer->freePlayer(FilePlayer* player);`\n\nFrees the given *player*."] pub freePlayer : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) > , # [doc = "`int playdate->sound->fileplayer->loadIntoPlayer(FilePlayer* player, const char* path);`\n\nPrepares *player* to stream the file at *path*. Returns 1 if the file exists, otherwise 0."] pub loadIntoPlayer : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , path : * const core :: ffi :: c_char) -> core :: ffi :: c_int > , # [doc = "`void playdate->sound->fileplayer->setBufferLength(FilePlayer* player, float bufferLen);`\n\nSets the buffer length of *player* to *bufferLen* seconds;"] pub setBufferLength : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , bufferLen : core :: ffi :: c_float) > , # [doc = "`int playdate->sound->fileplayer->play(FilePlayer* player, int repeat);`\n\nStarts playing the file *player*. If *repeat* is greater than one, it loops the given number of times. If zero, it loops endlessly until it is stopped with [playdate-\\>sound-\\>fileplayer-\\>stop()](#f-sound.fileplayer.stop). Returns 1 on success, 0 if buffer allocation failed."] pub play : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , repeat : core :: ffi :: c_int) -> core :: ffi :: c_int > , # [doc = "`int playdate->sound->fileplayer->isPlaying(FilePlayer* player);`\n\nReturns one if *player* is playing, zero if not."] pub isPlaying : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) -> core :: ffi :: c_int > , # [doc = "`void playdate->sound->fileplayer->pause(FilePlayer* player);`\n\nPauses the file *player*."] pub pause : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) > , # [doc = "`void playdate->sound->fileplayer->stop(FilePlayer* player);`\n\nStops playing the file."] pub stop : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) > , # [doc = "`void playdate->sound->fileplayer->setVolume(FilePlayer* player, float left, float right);`\n\nSets the playback volume for left and right channels of *player*."] pub setVolume : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , left : core :: ffi :: c_float , right : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->fileplayer->getVolume(FilePlayer* player, float* outleft, float* outright);`\n\nGets the left and right channel playback volume for *player*."] pub getVolume : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , left : * mut core :: ffi :: c_float , right : * mut core :: ffi :: c_float) > , # [doc = "`float playdate->sound->fileplayer->getLength(FilePlayer* player);`\n\nReturns the length, in seconds, of the file loaded into *player*."] pub getLength : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) -> core :: ffi :: c_float > , # [doc = "`void playdate->sound->fileplayer->setOffset(FilePlayer* player, float offset);`\n\nSets the current *offset* in seconds."] pub setOffset : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , offset : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->fileplayer->setRate(FilePlayer* player, float rate)`\n\nSets the playback *rate* for the *player*. 1.0 is normal speed, 0.5 is down an octave, 2.0 is up an octave, etc. Unlike sampleplayers, fileplayers can’t play in reverse (i.e., rate \\< 0)."] pub setRate : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , rate : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->fileplayer->setLoopRange(FilePlayer* player, float start, float end);`\n\nSets the *start* and *end* of the loop region for playback, in seconds. If *end* is omitted, the end of the file is used."] pub setLoopRange : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , start : core :: ffi :: c_float , end : core :: ffi :: c_float) > , # [doc = "`int playdate->sound->fileplayer->didUnderrun(FilePlayer* player);`\n\nReturns one if *player* has underrun, zero if not."] pub didUnderrun : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) -> core :: ffi :: c_int > , # [doc = "`void playdate->sound->fileplayer->setFinishCallback(FilePlayer* player, sndCallbackProc callback, void* userdata);`\n\nSets a function to be called when playback has completed. This is an alias for [playdate→sound→source→setFinishCallback()](#f-sound.source.setFinishCallback).\n\nsndCallbackProc\n\n```cpp\ntypedef void sndCallbackProc(SoundSource* c, void* userdata);\n```"] pub setFinishCallback : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , callback : sndCallbackProc , userdata : * mut core :: ffi :: c_void) > , pub setLoopCallback : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , callback : sndCallbackProc , userdata : * mut core :: ffi :: c_void) > , # [doc = "`float playdate->sound->fileplayer->getOffset(FilePlayer* player);`\n\nReturns the current offset in seconds for *player*."] pub getOffset : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) -> core :: ffi :: c_float > , # [doc = "`float playdate->sound->fileplayer->getRate(FilePlayer* player)`\n\nReturns the playback rate for *player*."] pub getRate : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer) -> core :: ffi :: c_float > , # [doc = "`void playdate->sound->fileplayer->setStopOnUnderrun(FilePlayer* player, int flag)`\n\nIf *flag* evaluates to true, the *player* will restart playback (after an audible stutter) as soon as data is available."] pub setStopOnUnderrun : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , flag : core :: ffi :: c_int) > , # [doc = "`void playdate->sound->fileplayer->fadeVolume(FilePlayer* player, float left, float right, int32_t len, sndCallbackProc finishCallback);`\n\nChanges the volume of the fileplayer to *left* and *right* over a length of *len* sample frames, then calls the provided callback (if set)."] pub fadeVolume : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , left : core :: ffi :: c_float , right : core :: ffi :: c_float , len : i32 , finishCallback : sndCallbackProc , userdata : * mut core :: ffi :: c_void) > , pub setMP3StreamSource : :: core :: option :: Option < unsafe extern "C" fn (player : * mut FilePlayer , dataSource : :: core :: option :: Option < unsafe extern "C" fn (data : * mut u8 , bytes : core :: ffi :: c_int , userdata : * mut core :: ffi :: c_void) -> core :: ffi :: c_int > , userdata : * mut core :: ffi :: c_void , bufferLen : core :: ffi :: c_float) > , }
#[test]
fn bindgen_test_layout_playdate_sound_fileplayer() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_fileplayer> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_fileplayer>(),
	           88usize,
	           concat!("Size of: ", stringify!(playdate_sound_fileplayer))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_fileplayer>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_fileplayer))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newPlayer) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(newPlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freePlayer) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(freePlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadIntoPlayer) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(loadIntoPlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setBufferLength) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setBufferLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).play) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(play)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isPlaying) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(isPlaying)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).pause) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(pause)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(stop)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLength) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(getLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOffset) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRate) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLoopRange) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setLoopRange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).didUnderrun) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(didUnderrun)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFinishCallback) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setFinishCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLoopCallback) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setLoopCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getOffset) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(getOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getRate) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(getRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStopOnUnderrun) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setStopOnUnderrun)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fadeVolume) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(fadeVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMP3StreamSource) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_fileplayer),
		"::",
		stringify!(setMP3StreamSource)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct AudioSample {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SamplePlayer {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_sample {
	#[doc = "`AudioSample* playdate->sound->sample->newSampleBuffer(int length)`\n\nAllocates and returns a new AudioSample with a buffer large enough to load a file of *length* bytes."]
	pub newSampleBuffer:
		::core::option::Option<unsafe extern "C" fn(byteCount: core::ffi::c_int) -> *mut AudioSample>,
	#[doc = "`void playdate->sound->sample->loadIntoSample(AudioSample* sample, const char* path)`\n\nLoads the sound data from the file at *path* into an existing AudioSample, *sample*."]
	pub loadIntoSample: ::core::option::Option<unsafe extern "C" fn(sample: *mut AudioSample,
	                                                                path: *const core::ffi::c_char)
	                                                                -> core::ffi::c_int>,
	#[doc = "`AudioSample* playdate->sound->sample->load(const char* path)`\n\nAllocates and returns a new AudioSample, with the sound data loaded in memory. If there is no file at *path*, the function returns null."]
	pub load: ::core::option::Option<unsafe extern "C" fn(path: *const core::ffi::c_char) -> *mut AudioSample>,
	#[doc = "`AudioSample* playdate->sound->sample->newSampleFromData(uint8_t* data, SoundFormat format, uint32_t sampleRate, int byteCount)`\n\nReturns a new AudioSample referencing the given audio data. The sample keeps a pointer to the data instead of copying it, so the data must remain valid while the sample is active. *format* is one of the following values:\n\nSoundFormat\n\n```cpp\ntypedef enum\n{\n\tkSound8bitMono = 0,\n\tkSound8bitStereo = 1,\n\tkSound16bitMono = 2,\n\tkSound16bitStereo = 3,\n\tkSoundADPCMMono = 4,\n\tkSoundADPCMStereo = 5\n} SoundFormat;\n```\n\n`pd_api_sound.h` also provides some helper macros and functions:\n\n```cpp\n#define SoundFormatIsStereo(f) ((f)&1)\n#define SoundFormatIs16bit(f) ((f)>=kSound16bitMono)\nstatic inline uint32_t SoundFormat_bytesPerFrame(SoundFormat fmt);\n```"]
	pub newSampleFromData: ::core::option::Option<unsafe extern "C" fn(data: *mut u8,
	                                                                   format: SoundFormat,
	                                                                   sampleRate: u32,
	                                                                   byteCount: core::ffi::c_int)
	                                                                   -> *mut AudioSample>,
	pub getData: ::core::option::Option<unsafe extern "C" fn(sample: *mut AudioSample,
	                                                         data: *mut *mut u8,
	                                                         format: *mut SoundFormat,
	                                                         sampleRate: *mut u32,
	                                                         bytelength: *mut u32)>,
	#[doc = "`void playdate->sound->sample->freeSample(AudioSample* sample)`\n\nFrees the given *sample*."]
	pub freeSample: ::core::option::Option<unsafe extern "C" fn(sample: *mut AudioSample)>,
	#[doc = "`float playdate->sound->sample->getLength(AudioSample* sample)`\n\nReturns the length, in seconds, of *sample*."]
	pub getLength: ::core::option::Option<unsafe extern "C" fn(sample: *mut AudioSample) -> core::ffi::c_float>,
	#[doc = "`int playdate->sound->sample->decompress(void)`\n\nIf the sample is ADPCM compressed, decompresses the sample data to 16-bit PCM data. This increases the sample’s memory footprint by 4x and does not affect the quality in any way, but it is necessary if you want to use the sample in a synth or play the file backwards. Returns 1 if successful, 0 if there’s not enough memory for the uncompressed data."]
	pub decompress: ::core::option::Option<unsafe extern "C" fn(sample: *mut AudioSample) -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_sound_sample() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_sample> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_sample>(),
	           32usize,
	           concat!("Size of: ", stringify!(playdate_sound_sample))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_sample>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_sample))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSampleBuffer) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(newSampleBuffer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadIntoSample) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(loadIntoSample)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).load) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(load)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSampleFromData) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(newSampleFromData)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getData) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(getData)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSample) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(freeSample)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLength) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(getLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).decompress) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sample),
		"::",
		stringify!(decompress)
	)
	);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_sampleplayer {
	#[doc = "`SamplePlayer* playdate->sound->sampleplayer->newPlayer(void)`\n\nAllocates and returns a new SamplePlayer."]
	pub newPlayer: ::core::option::Option<unsafe extern "C" fn() -> *mut SamplePlayer>,
	#[doc = "`void playdate->sound->sampleplayer->freePlayer(SamplePlayer* player)`\n\nFrees the given *player*."]
	pub freePlayer: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer)>,
	#[doc = "`void playdate->sound->sampleplayer->setSample(SamplePlayer* player, AudioSample* sample)`\n\nAssigns *sample* to *player*."]
	pub setSample:
		::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer, sample: *mut AudioSample)>,
	#[doc = "`int playdate->sound->sampleplayer->play(SamplePlayer* player, int repeat, float rate)`\n\nStarts playing the sample in *player*.\n\nIf *repeat* is greater than one, it loops the given number of times. If zero, it loops endlessly until it is stopped with [playdate-\\>sound-\\>sampleplayer-\\>stop()](#f-sound.sampleplayer.stop). If negative one, it does ping-pong looping.\n\n*rate* is the playback rate for the sample; 1.0 is normal speed, 0.5 is down an octave, 2.0 is up an octave, etc.\n\nReturns 1 on success (which is always, currently)."]
	pub play: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                      repeat: core::ffi::c_int,
	                                                      rate: core::ffi::c_float)
	                                                      -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->sampleplayer->isPlaying(SamplePlayer* player)`\n\nReturns one if *player* is playing a sample, zero if not."]
	pub isPlaying: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer) -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->sampleplayer->stop(SamplePlayer* player)`\n\nStops playing the sample."]
	pub stop: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer)>,
	#[doc = "`void playdate->sound->sampleplayer->setVolume(SamplePlayer* player, float left, float right)`\n\nSets the playback volume for left and right channels."]
	pub setVolume: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                           left: core::ffi::c_float,
	                                                           right: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->sampleplayer->getVolume(SamplePlayer* player, float* outleft, float* outright)`\n\nGets the current left and right channel volume of the sampleplayer."]
	pub getVolume: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                           left: *mut core::ffi::c_float,
	                                                           right: *mut core::ffi::c_float)>,
	#[doc = "`float playdate->sound->sampleplayer->getLength(SamplePlayer* player)`\n\nReturns the length, in seconds, of the sample assigned to *player*."]
	pub getLength: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer) -> core::ffi::c_float>,
	#[doc = "`void playdate->sound->sampleplayer->setOffset(SamplePlayer* player, float offset)`\n\nSets the current *offset* of the SamplePlayer, in seconds."]
	pub setOffset:
		::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer, offset: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->sampleplayer->setRate(SamplePlayer* player, float rate)`\n\nSets the playback *rate* for the *player*. 1.0 is normal speed, 0.5 is down an octave, 2.0 is up an octave, etc. A negative rate produces backwards playback for PCM files, but does not work for ADPCM-encoded files."]
	pub setRate: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer, rate: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->sampleplayer->setPlayRange(SamplePlayer* player, int start, int end)`\n\nWhen used with a repeat of -1, does ping-pong looping, with a *start* and *end* position in frames."]
	pub setPlayRange: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                              start: core::ffi::c_int,
	                                                              end: core::ffi::c_int)>,
	#[doc = "`void playdate->sound->sampleplayer->setFinishCallback(SamplePlayer* player, sndCallbackProc callback, void* userdata)`\n\nSets a function to be called when playback has completed. See [sndCallbackProc](#_sndCallbackProc)."]
	pub setFinishCallback: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                                   callback: sndCallbackProc,
	                                                                   userdata: *mut core::ffi::c_void)>,
	pub setLoopCallback: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer,
	                                                                 callback: sndCallbackProc,
	                                                                 userdata: *mut core::ffi::c_void)>,
	#[doc = "`float playdate->sound->sampleplayer->getOffset(SamplePlayer* player);`\n\nReturns the current offset in seconds for *player*."]
	pub getOffset: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer) -> core::ffi::c_float>,
	#[doc = "`float playdate->sound->sampleplayer->getRate(SamplePlayer* player)`\n\nReturns the playback rate for *player*."]
	pub getRate: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer) -> core::ffi::c_float>,
	#[doc = "`void playdate->sound->sampleplayer->setPaused(SamplePlayer* player, int paused)`\n\nPauses or resumes playback."]
	pub setPaused: ::core::option::Option<unsafe extern "C" fn(player: *mut SamplePlayer, flag: core::ffi::c_int)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_sampleplayer() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_sampleplayer> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_sampleplayer>(),
	           68usize,
	           concat!("Size of: ", stringify!(playdate_sound_sampleplayer))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_sampleplayer>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_sampleplayer))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newPlayer) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(newPlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freePlayer) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(freePlayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSample) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setSample)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).play) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(play)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isPlaying) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(isPlaying)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(stop)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLength) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(getLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOffset) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRate) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPlayRange) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setPlayRange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFinishCallback) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setFinishCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLoopCallback) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setLoopCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getOffset) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(getOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getRate) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(getRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPaused) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sampleplayer),
		"::",
		stringify!(setPaused)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynthSignalValue {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynthSignal {
	_unused: [u8; 0],
}
pub type signalStepFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                      ioframes: *mut core::ffi::c_int,
                                                                      ifval: *mut core::ffi::c_float)
                                                                      -> core::ffi::c_float>;
pub type signalNoteOnFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                        note: MIDINote,
                                                                        vel: core::ffi::c_float,
                                                                        len: core::ffi::c_float)>;
pub type signalNoteOffFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                         stop: core::ffi::c_int,
                                                                         offset: core::ffi::c_int)>;
pub type signalDeallocFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_signal {
	#[doc = "`void playdate->sound->signal->newSignal(signalStepFunc step, signalNoteOnFunc noteOn, signalNoteOffFunc noteOff, signalDeallocFunc dealloc, void* userdata)`\n\nSignalCallbacks\n\n```cpp\ntypedef float (*signalStepFunc)(void* userdata, int* iosamples, float* ifval);\ntypedef void (*signalNoteOnFunc)(void* userdata, MIDINote note, float vel, float len); // len = -1 for indefinite\ntypedef void (*signalNoteOffFunc)(void* userdata, int stopped, int offset); // ended = 0 for note release, = 1 when note stops playing\ntypedef void (*signalDeallocFunc)(void* userdata);\n```\n\nProvides a custom implementation for the signal. *signalStepFunc step* is the only required function, returning the value at the end of the current frame. When called, the *ioframes* pointer contains the number of samples until the end of the frame. If the signal needs to provide a value in the middle of the frame (e.g. an LFO that needs to be sample-accurate) it should return the \"interframe\" value in *ifval* and set *iosamples* to the sample offset of the value. The functions are called on the audio render thread, so they should return as quickly as possible."]
	pub newSignal: ::core::option::Option<unsafe extern "C" fn(step: signalStepFunc,
	                                                           noteOn: signalNoteOnFunc,
	                                                           noteOff: signalNoteOffFunc,
	                                                           dealloc: signalDeallocFunc,
	                                                           userdata: *mut core::ffi::c_void)
	                                                           -> *mut PDSynthSignal>,
	#[doc = "`void playdate->sound->signal->freeSignal(PDSynthSignal* signal);`\n\nFrees a signal created with *playdate→sound→signal→newSignal()*."]
	pub freeSignal: ::core::option::Option<unsafe extern "C" fn(signal: *mut PDSynthSignal)>,
	#[doc = "`float playdate->sound->signal->getValue(PDSynthSignal* signal);`\n\nReturns the current output value of *signal*. The signal can be a custom signal created with newSignal(), or any of the PDSynthSignal subclasses."]
	pub getValue: ::core::option::Option<unsafe extern "C" fn(signal: *mut PDSynthSignal) -> core::ffi::c_float>,
	#[doc = "`void playdate->sound->signal->setValueScale(PDSynthSignal* signal, float scale);`\n\nScales the signal’s output by the given factor. The scale is applied before the offset."]
	pub setValueScale:
		::core::option::Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, scale: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->signal->setValueOffset(PDSynthSignal* signal, float offset);`\n\nOffsets the signal’s output by the given amount."]
	pub setValueOffset:
		::core::option::Option<unsafe extern "C" fn(signal: *mut PDSynthSignal, offset: core::ffi::c_float)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_signal() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_signal> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_signal>(),
	           20usize,
	           concat!("Size of: ", stringify!(playdate_sound_signal))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_signal>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_signal))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSignal) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_signal),
		"::",
		stringify!(newSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSignal) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_signal),
		"::",
		stringify!(freeSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getValue) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_signal),
		"::",
		stringify!(getValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setValueScale) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_signal),
		"::",
		stringify!(setValueScale)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setValueOffset) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_signal),
		"::",
		stringify!(setValueOffset)
	)
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum LFOType {
	kLFOTypeSquare = 0,
	kLFOTypeTriangle = 1,
	kLFOTypeSine = 2,
	kLFOTypeSampleAndHold = 3,
	kLFOTypeSawtoothUp = 4,
	kLFOTypeSawtoothDown = 5,
	kLFOTypeArpeggiator = 6,
	kLFOTypeFunction = 7,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynthLFO {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_lfo { # [doc = "`PDSynthLFO* playdate->sound->lfo->newLFO(LFOType type)`\n\nReturns a new LFO object, which can be used to modulate sounds. The *type* argument is one of the following values:\n\nLFOType\n\n```cpp\ntypedef enum\n{\n\tkLFOTypeSquare,\n\tkLFOTypeTriangle,\n\tkLFOTypeSine,\n\tkLFOTypeSampleAndHold,\n\tkLFOTypeSawtoothUp,\n\tkLFOTypeSawtoothDown,\n\tkLFOTypeArpeggiator,\n\tkLFOTypeFunction\n} LFOType;\n```"] pub newLFO : :: core :: option :: Option < unsafe extern "C" fn (type_ : LFOType) -> * mut PDSynthLFO > , # [doc = "`void playdate->sound->lfo->freeLFO(PDSynthLFO* lfo)`\n\nFrees the LFO."] pub freeLFO : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO) > , # [doc = "`void playdate->sound->lfo->setType(PDSynthLFO* lfo, LFOType type)`\n\nSets the LFO shape to one of the values given above."] pub setType : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , type_ : LFOType) > , # [doc = "`void playdate->sound->lfo->setRate(PDSynthLFO* lfo, float rate)`\n\nSets the LFO’s rate, in cycles per second."] pub setRate : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , rate : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setPhase(PDSynthLFO* lfo, float phase)`\n\nSets the LFO’s phase, from 0 to 1."] pub setPhase : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , phase : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setCenter(PDSynthLFO* lfo, float center)`\n\nSets the center value for the LFO."] pub setCenter : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , center : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setDepth(PDSynthLFO* lfo, float depth)`\n\nSets the depth of the LFO."] pub setDepth : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , depth : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setArpeggiation(PDSynthLFO* lfo, int nSteps, float* steps)`\n\nSets the LFO type to arpeggio, where the given values are in half-steps from the center note. For example, the sequence (0, 4, 7, 12) plays the notes of a major chord."] pub setArpeggiation : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , nSteps : core :: ffi :: c_int , steps : * mut core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setFunction(PDSynthLFO* lfo, float (*lfoFunc)(PDSynthLFO* lfo, void* userdata), void* userdata, int interpolate)`\n\nProvides a custom function for LFO values."] pub setFunction : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , lfoFunc : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , userdata : * mut core :: ffi :: c_void) -> core :: ffi :: c_float > , userdata : * mut core :: ffi :: c_void , interpolate : core :: ffi :: c_int) > , # [doc = "`void playdate->sound->lfo->setDelay(PDSynthLFO* lfo, float holdoff, float ramptime)`\n\nSets an initial holdoff time for the LFO where the LFO remains at its center value, and a ramp time where the value increases linearly to its maximum depth. Values are in seconds."] pub setDelay : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , holdoff : core :: ffi :: c_float , ramptime : core :: ffi :: c_float) > , # [doc = "`void playdate->sound->lfo->setRetrigger(PDSynthLFO* lfo, int flag)`\n\nIf retrigger is on, the LFO’s phase is reset to its initial phase (default 0) when a synth using the LFO starts playing a note."] pub setRetrigger : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , flag : core :: ffi :: c_int) > , # [doc = "`float playdate->sound->lfo->getValue(PDSynthLFO* lfo)`\n\nReturn the current output value of the LFO."] pub getValue : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO) -> core :: ffi :: c_float > , # [doc = "`void playdate->sound->lfo->setGlobal(PDSynthLFO* lfo, int global)`\n\nIf *global* is set, the LFO is continuously updated whether or not it’s currently in use."] pub setGlobal : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , global : core :: ffi :: c_int) > , # [doc = "`void playdate->sound->lfo->setStartPhase(PDSynthLFO* lfo, float phase)`\n\nSets the LFO’s initial phase, from 0 to 1."] pub setStartPhase : :: core :: option :: Option < unsafe extern "C" fn (lfo : * mut PDSynthLFO , phase : core :: ffi :: c_float) > , }
#[test]
fn bindgen_test_layout_playdate_sound_lfo() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_lfo> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_lfo>(),
	           56usize,
	           concat!("Size of: ", stringify!(playdate_sound_lfo))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_lfo>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_lfo))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newLFO) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(newLFO)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeLFO) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(freeLFO)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setType) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setType)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRate) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPhase) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setPhase)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCenter) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setCenter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDepth) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setDepth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setArpeggiation) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setArpeggiation)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFunction) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setFunction)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDelay) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setDelay)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRetrigger) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setRetrigger)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getValue) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(getValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setGlobal) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setGlobal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setStartPhase) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_lfo),
		"::",
		stringify!(setStartPhase)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynthEnvelope {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_envelope {
	#[doc = "`PDSynthEnvelope* playdate->sound->envelope->newEnvelope(float attack, float decay, float sustain, float release)`\n\nCreates a new envelope with the given parameters."]
	pub newEnvelope: ::core::option::Option<unsafe extern "C" fn(attack: core::ffi::c_float,
	                                                             decay: core::ffi::c_float,
	                                                             sustain: core::ffi::c_float,
	                                                             release: core::ffi::c_float)
	                                                             -> *mut PDSynthEnvelope>,
	#[doc = "`void playdate->sound->envelope->freeEnvelope(PDSynthEnvelope* env)`\n\nFrees the envelope."]
	pub freeEnvelope: ::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope)>,
	#[doc = "`void playdate->sound->envelope->setAttack(PDSynthEnvelope* env, float attack)`"]
	pub setAttack:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, attack: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setDecay(PDSynthEnvelope* env, float decay)`"]
	pub setDecay:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, decay: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setSustain(PDSynthEnvelope* env, float sustain)`"]
	pub setSustain:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, sustain: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setRelease(PDSynthEnvelope* env, float release)`\n\nSets the ADSR parameters of the envelope."]
	pub setRelease:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, release: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setLegato(PDSynthEnvelope* env, int flag)`\n\nSets whether to use legato phrasing for the envelope. If the legato flag is set, when the envelope is re-triggered before it’s released, it remains in the sustain phase instead of jumping back to the attack phase."]
	pub setLegato: ::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, flag: core::ffi::c_int)>,
	#[doc = "`void playdate->sound->envelope->setRetrigger(PDSynthEnvelope* env, int flag)`\n\nIf retrigger is on, the envelope always starts from 0 when a note starts playing, instead of the current value if it’s active."]
	pub setRetrigger:
		::core::option::Option<unsafe extern "C" fn(lfo: *mut PDSynthEnvelope, flag: core::ffi::c_int)>,
	#[doc = "`float playdate->sound->envelope->getValue(PDSynthEnvelope* env)`\n\nReturn the current output value of the envelope."]
	pub getValue: ::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope) -> core::ffi::c_float>,
	#[doc = "`void playdate->sound->envelope->setCurvature(PDSynthEnvelope* env, float amount)`\n\nSmoothly changes the envelope’s shape from linear (amount=0) to exponential (amount=1)."]
	pub setCurvature:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, amount: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setVelocitySensitivity(PDSynthEnvelope* env, float velsens)`\n\nChanges the amount by which note velocity scales output level. At the default value of 1, output is proportional to velocity; at 0 velocity has no effect on output level."]
	pub setVelocitySensitivity:
		::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, velsens: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->envelope->setRateScaling(PDSynthEnvelope* env, float scaling, MIDINote start, MIDINote end)`\n\nScales the envelope rate according to the played note. For notes below `start`, the envelope’s set rate is used; for notes above `end` envelope rates are scaled by the `scaling` parameter. Between the two notes the scaling factor is interpolated from 1.0 to `scaling`."]
	pub setRateScaling: ::core::option::Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope,
	                                                                scaling: core::ffi::c_float,
	                                                                start: MIDINote,
	                                                                end: MIDINote)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_envelope() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_envelope> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_envelope>(),
	           48usize,
	           concat!("Size of: ", stringify!(playdate_sound_envelope))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_envelope>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_envelope))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newEnvelope) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(newEnvelope)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeEnvelope) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(freeEnvelope)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAttack) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setAttack)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDecay) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setDecay)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSustain) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setSustain)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRelease) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setRelease)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLegato) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setLegato)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRetrigger) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setRetrigger)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getValue) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(getValue)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCurvature) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setCurvature)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVelocitySensitivity) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setVelocitySensitivity)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRateScaling) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_envelope),
		"::",
		stringify!(setRateScaling)
	)
	);
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum SoundWaveform {
	kWaveformSquare = 0,
	kWaveformTriangle = 1,
	kWaveformSine = 2,
	kWaveformNoise = 3,
	kWaveformSawtooth = 4,
	kWaveformPOPhase = 5,
	kWaveformPODigital = 6,
	kWaveformPOVosim = 7,
}
pub type synthRenderFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                       left: *mut i32,
                                                                       right: *mut i32,
                                                                       nsamples: core::ffi::c_int,
                                                                       rate: u32,
                                                                       drate: i32)
                                                                       -> core::ffi::c_int>;
pub type synthNoteOnFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                       note: MIDINote,
                                                                       velocity: core::ffi::c_float,
                                                                       len: core::ffi::c_float)>;
pub type synthReleaseFunc =
	::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void, stop: core::ffi::c_int)>;
pub type synthSetParameterFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void,
                                                                             parameter: core::ffi::c_int,
                                                                             value: core::ffi::c_float)
                                                                             -> core::ffi::c_int>;
pub type synthDeallocFunc = ::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void)>;
pub type synthCopyUserdata =
	::core::option::Option<unsafe extern "C" fn(userdata: *mut core::ffi::c_void) -> *mut core::ffi::c_void>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynth {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_synth {
	#[doc = "`PDSynth* playdate->sound->synth->newSynth(void)`\n\nCreates a new synth object."]
	pub newSynth: ::core::option::Option<unsafe extern "C" fn() -> *mut PDSynth>,
	#[doc = "`void playdate->sound->synth->freeSynth(PDSynth* synth)`\n\nFrees a synth object, first removing it from the sound engine if needed."]
	pub freeSynth: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth)>,
	#[doc = "`void playdate->sound->synth->setWaveform(PDSynth* synth, SoundWaveform wave)`\n\nSets the waveform of the synth. The SoundWaveform enum contains the following values:\n\nSoundWaveform\n\n```cpp\ntypedef enum\n{\n\tkWaveformSquare,\n\tkWaveformTriangle,\n\tkWaveformSine,\n\tkWaveformNoise,\n\tkWaveformSawtooth,\n\tkWaveformPOPhase,\n\tkWaveformPODigital,\n\tkWaveformPOVosim\n} SoundWaveform;\n```"]
	pub setWaveform: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, wave: SoundWaveform)>,
	pub setGenerator_deprecated: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                                         stereo: core::ffi::c_int,
	                                                                         render: synthRenderFunc,
	                                                                         noteOn: synthNoteOnFunc,
	                                                                         release: synthReleaseFunc,
	                                                                         setparam: synthSetParameterFunc,
	                                                                         dealloc: synthDeallocFunc,
	                                                                         userdata: *mut core::ffi::c_void)>,
	#[doc = "`void playdate->sound->synth->setSample(PDSynth* synth, AudioSample* sample, uint32_t sustainStart, uint32_t sustainEnd)`\n\nProvides a sample for the synth to play. Sample data must be uncompressed PCM, not ADPCM."]
	pub setSample: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                           sample: *mut AudioSample,
	                                                           sustainStart: u32,
	                                                           sustainEnd: u32)>,
	#[doc = "`void playdate->sound->synth->setAttackTime(PDSynth* synth, float attack)`"]
	pub setAttackTime:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, attack: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->synth->setDecayTime(PDSynth* synth, float decay)`"]
	pub setDecayTime: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, decay: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->synth->setSustainLevel(PDSynth* synth, float sustain)`"]
	pub setSustainLevel:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, sustain: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->synth->setReleaseTime(PDSynth* synth, float release)`\n\nSets the parameters of the synth’s ADSR envelope."]
	pub setReleaseTime:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, release: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->synth->setTranspose(PDSynth* synth, float halfSteps)`\n\nTransposes the synth’s output by the given number of half steps. For example, if the transpose is set to 2 and a C note is played, the synth will output a D instead."]
	pub setTranspose:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, halfSteps: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->synth->setFrequencyModulator(PDSynth* synth, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the synth’s frequency. The signal is scaled so that a value of 1 doubles the synth pitch (i.e. an octave up) and -1 halves it (an octave down). Set to *NULL* to clear the modulator."]
	pub setFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->synth->getFrequencyModulator(PDSynth* synth)`\n\nReturns the currently set frequency modulator."]
	pub getFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->synth->setAmplitudeModulator(PDSynth* synth, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the synth’s output amplitude. Set to *NULL* to clear the modulator."]
	pub setAmplitudeModulator:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->synth->getAmplitudeModulator(PDSynth* synth)`\n\nReturns the currently set amplitude modulator."]
	pub getAmplitudeModulator:
		::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> *mut PDSynthSignalValue>,
	#[doc = "`int playdate->sound->synth->getParameterCount(PDSynth* synth)`\n\nReturns the number of parameters advertised by the synth."]
	pub getParameterCount: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->synth->setParameter(PDSynth* synth, int num, float value)`\n\nSets the (1-based) parameter at position *num* to the given value. Returns 0 if *num* is not a valid parameter index."]
	pub setParameter: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                              parameter: core::ffi::c_int,
	                                                              value: core::ffi::c_float)
	                                                              -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->synth->setParameterModulator(PDSynth* synth, int num, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the parameter at index *num*. Set to *NULL* to clear the modulator."]
	pub setParameterModulator: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                                       parameter: core::ffi::c_int,
	                                                                       mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->synth->getParameterModulator(PDSynth* synth, int num)`\n\nReturns the currently set parameter modulator for the given index."]
	pub getParameterModulator: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                                       parameter: core::ffi::c_int)
	                                                                       -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->synth->playNote(PDSynth* synth, float freq, float vel, float len, uint32_t when)`\n\nPlays a note on the synth, at the given frequency. Specify *len* = -1 to leave the note playing until a subsequent noteOff() call. If *when* is 0, the note is played immediately, otherwise the note is scheduled for the given time. Use [playdate→sound→getCurrentTime()](#f-sound.getCurrentTime) to get the current time."]
	pub playNote: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                          freq: core::ffi::c_float,
	                                                          vel: core::ffi::c_float,
	                                                          len: core::ffi::c_float,
	                                                          when: u32)>,
	#[doc = "`void playdate->sound->synth->playMIDINote(PDSynth* synth, MIDINote note, float vel, float len, uint32_t when)`\n\nThe same as [playNote](#f-sound.synth.playNote) but uses MIDI note (where 60 = C4) instead of frequency. Note that `MIDINote` is a typedef for `float', meaning fractional values are allowed (for all you microtuning enthusiasts)."]
	pub playMIDINote: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                              note: MIDINote,
	                                                              vel: core::ffi::c_float,
	                                                              len: core::ffi::c_float,
	                                                              when: u32)>,
	#[doc = "`void playdate->sound->synth->noteOff(PDSynth* synth, uint32_t when)`\n\nSends a note off event to the synth, either immediately (*when* = 0) or at the scheduled time."]
	pub noteOff: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth, when: u32)>,
	pub stop: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth)>,
	#[doc = "`void playdate->sound->synth->setVolume(PDSynth* synth, float lvol, float rvol)`\n\nSets the playback volume (0.0 - 1.0) for the left and, if the synth is stereo, right channels of the synth. This is equivalent to\n\n```cpp\nplaydate->sound->source->setVolume((SoundSource*)synth, lvol, rvol);\n```"]
	pub setVolume: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                           left: core::ffi::c_float,
	                                                           right: core::ffi::c_float)>,
	#[doc = "`float playdate->sound->synth->getVolume(PDSynth* synth, float* outlvol, float* outrvol)`\n\nGets the playback volume for the left and right (if stereo) channels of the synth. This is equivalent to\n\n```cpp\nplaydate->sound->source->getVolume((SoundSource*)synth, outlvol, outrvol);\n```"]
	pub getVolume: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                           left: *mut core::ffi::c_float,
	                                                           right: *mut core::ffi::c_float)>,
	#[doc = "`int playdate->sound->synth->isPlaying(PDSynth* synth)`\n\nReturns 1 if the synth is currently playing."]
	pub isPlaying: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> core::ffi::c_int>,
	#[doc = "`PDSynthEnvelope* playdate->sound->synth->getEnvelope(PDSynth* synth)`\n\nReturns the synth’s envelope. The PDSynth object owns this envelope, so it must not be freed."]
	pub getEnvelope: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> *mut PDSynthEnvelope>,
	#[doc = "`int playdate->sound->synth->setWavetable(PDSynth* synth, AudioSample* sample, int log2size, int columns, rows)`\n\nSets a wavetable for the synth to play. Sample data must be 16-bit mono uncompressed. `log2size` is the base 2 logarithm of the number of samples in each waveform \"cell\" in the table, and `columns` and `rows` gives the number of cells in each direction; for example, if the wavetable is arranged in an 8x8 grid, `columns` and `rows` are both 8 and `log2size` is 6, since 2^6 = 8x8.\n\nThe function returns 1 on success. If it fails, use [playdate→sound→getError()](#f-sound.getError) to get a human-readable error message.\n\nThe synth’s \"position\" in the wavetable is set manually with [setParameter()](#f-sound.synth.setParameter) or automated with [setParameterModulator()](#f-sound.synth.setParameterModulator). In some cases it’s easier to use a parameter that matches the waveform position in the table, in others (notably when using envelopes and lfos) it’s more convenient to use a 0-1 scale, so there’s some redundancy here. Parameters are\n\n* 1: x position, values are from 0 to the table width\n\n* 2: x position, values are from 0 to 1, parameter is scaled up to table width\n\nFor 2-D tables (`height` \\> 1):\n\n* 3: y position, values are from 0 to the table height\n\n* 4: y position, values are from 0 to 1, parameter is scaled up to table height"]
	pub setWavetable: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                              sample: *mut AudioSample,
	                                                              log2size: core::ffi::c_int,
	                                                              columns: core::ffi::c_int,
	                                                              rows: core::ffi::c_int)
	                                                              -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->synth->setGenerator(PDSynth* synth, int stereo, synthRenderFunc* render, synthNoteOnFunc* noteOn, synthReleaseFunc* release, synthSetParameterFunc* setparam, synthDeallocFunc* dealloc, synthCopyUserdataFunc copyUserdata, void* userdata)`\n\nGeneratorCallbacks\n\n```cpp\ntypedef int (*synthRenderFunc)(void* userdata, int32_t* left, int32_t* right, int nsamples, uint32_t rate, int32_t drate);\ntypedef void (*synthNoteOnFunc)(void* userdata, MIDINote note, float velocity, float len); // len == -1 if indefinite\ntypedef void (*synthReleaseFunc)(void* userdata, int endoffset);\ntypedef int (*synthSetParameterFunc)(void* userdata, int parameter, float value);\ntypedef void (*synthDeallocFunc)(void* userdata);\ntypedef void* (*synthCopyUserdata)(void* userdata);\n```\n\nProvides custom waveform generator functions for the synth. These functions are called on the audio render thread, so they should return as quickly as possible. *synthRenderFunc*, the data provider callback, is the only required function.\n\n*synthRenderFunc*: called every audio cycle to get the samples for playback. *left* (and *right* if *setGenerator()* was called with the stereo flag set) are sample buffers in Q8.24 format. *rate* is the amount to change a (Q32) phase accumulator each sample, and *drate* is the amount to change *rate* each sample. Custom synths can ignore this and use the *note* paramter in the noteOn function to handle pitch, but synth→setFrequencyModulator() won’t work as expected.\n\n*synthNoteOnFunc*: called when the synth receives a note on event. *len* is the length of the note in seconds, or -1 if it’s not known yet when the note will end.\n\n*synthReleaseFunc*: called when the synth receives a note off event. *endoffset* is how many samples into the current render cycle the note ends, allowing for sample-accurate timing.\n\n*synthSetParameterFunc*: called when a parameter change is received from [synth→setParameter()](#f-sound.synth.setParameter) or a modulator.\n\n*synthDeallocFunc*: called when the synth is being dealloced. This function should free anything that was allocated for the synth and also free the *userdata* itself.\n\n*synthCopyUserdata*: called when [synth→copy()](#f-sound.synth.copy) needs a unique copy of the synth’s userdata. External objects should be retained or copied so that the object isn’t freed while the synth is still using it."]
	pub setGenerator: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth,
	                                                              stereo: core::ffi::c_int,
	                                                              render: synthRenderFunc,
	                                                              noteOn: synthNoteOnFunc,
	                                                              release: synthReleaseFunc,
	                                                              setparam: synthSetParameterFunc,
	                                                              dealloc: synthDeallocFunc,
	                                                              copyUserdata: synthCopyUserdata,
	                                                              userdata: *mut core::ffi::c_void)>,
	#[doc = "`PDSynth* playdate->sound->synth->copy(PDSynth* synth)`\n\nReturns a copy of the given synth. Caller assumes ownership of the returned object and should free it when it is no longer in use."]
	pub copy: ::core::option::Option<unsafe extern "C" fn(synth: *mut PDSynth) -> *mut PDSynth>,
}
#[test]
fn bindgen_test_layout_playdate_sound_synth() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_synth> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_synth>(),
	           116usize,
	           concat!("Size of: ", stringify!(playdate_sound_synth))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_synth>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_synth))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSynth) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(newSynth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSynth) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(freeSynth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setWaveform) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setWaveform)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setGenerator_deprecated) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setGenerator_deprecated)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSample) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setSample)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAttackTime) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setAttackTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setDecayTime) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setDecayTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setSustainLevel) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setSustainLevel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setReleaseTime) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setReleaseTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTranspose) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setTranspose)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFrequencyModulator) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setFrequencyModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFrequencyModulator) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getFrequencyModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAmplitudeModulator) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setAmplitudeModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getAmplitudeModulator) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getAmplitudeModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getParameterCount) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getParameterCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setParameter) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setParameter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setParameterModulator) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setParameterModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getParameterModulator) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getParameterModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).playNote) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(playNote)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).playMIDINote) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(playMIDINote)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).noteOff) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(noteOff)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(stop)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isPlaying) as usize - ptr as usize },
	           96usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(isPlaying)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getEnvelope) as usize - ptr as usize },
	           100usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(getEnvelope)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setWavetable) as usize - ptr as usize },
	           104usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setWavetable)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setGenerator) as usize - ptr as usize },
	           108usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(setGenerator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).copy) as usize - ptr as usize },
	           112usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_synth),
		"::",
		stringify!(copy)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct ControlSignal {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_control_signal {
	#[doc = "`ControlSignal* playdate->sound->controlsignal->newSignal(void)`\n\nCreates a new control signal object."]
	pub newSignal: ::core::option::Option<unsafe extern "C" fn() -> *mut ControlSignal>,
	#[doc = "`void playdate->sound->controlsignal->freeSignal(ControlSignal* signal)`\n\nFrees the given signal."]
	pub freeSignal: ::core::option::Option<unsafe extern "C" fn(signal: *mut ControlSignal)>,
	#[doc = "`void playdate->sound->controlsignal->clearEvents(ControlSignal* signal)`\n\nClears all events from the given signal."]
	pub clearEvents: ::core::option::Option<unsafe extern "C" fn(control: *mut ControlSignal)>,
	#[doc = "`void playdate->sound->controlsignal->addEvent(ControlSignal* signal, int step, float value, int interpolate)`\n\nAdds a value to the signal’s timeline at the given step. If *interpolate* is set, the value is interpolated between the previous step+value and this one."]
	pub addEvent: ::core::option::Option<unsafe extern "C" fn(control: *mut ControlSignal,
	                                                          step: core::ffi::c_int,
	                                                          value: core::ffi::c_float,
	                                                          interpolate: core::ffi::c_int)>,
	#[doc = "`void playdate->sound->controlsignal->removeEvent(ControlSignal* signal, int step)`\n\nRemoves the control event at the given step."]
	pub removeEvent:
		::core::option::Option<unsafe extern "C" fn(control: *mut ControlSignal, step: core::ffi::c_int)>,
	#[doc = "`int playdate->sound->controlsignal->getMIDIControllerNumber(ControlSignal* signal)`\n\nReturns the MIDI controller number for this ControlSignal, if it was created from a MIDI file via [playdate→sound→sequence→loadMIDIFile()](#f-sound.sequence.loadMIDIFile)."]
	pub getMIDIControllerNumber:
		::core::option::Option<unsafe extern "C" fn(control: *mut ControlSignal) -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_control_signal() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_control_signal> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_control_signal>(),
	           24usize,
	           concat!("Size of: ", stringify!(playdate_control_signal))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_control_signal>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_control_signal))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSignal) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(newSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSignal) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(freeSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearEvents) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(clearEvents)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addEvent) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(addEvent)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeEvent) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(removeEvent)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getMIDIControllerNumber) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_control_signal),
		"::",
		stringify!(getMIDIControllerNumber)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct PDSynthInstrument {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_instrument {
	#[doc = "`PDSynthInstrument* playdate->sound->instrument->newInstrument(void)`\n\nCreates a new PDSynthInstrument object."]
	pub newInstrument: ::core::option::Option<unsafe extern "C" fn() -> *mut PDSynthInstrument>,
	#[doc = "`void playdate->sound->instrument->freeInstrument(PDSynthInstrument* instrument)`\n\nFrees the given instrument, first removing it from the sound engine if needed."]
	pub freeInstrument: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument)>,
	#[doc = "`int playdate->sound->instrument->addVoice(PDSynthInstrument* instrument, PDSynth* synth, MIDINote rangeStart, MIDINote rangeEnd, float transpose)`\n\nAdds the given [PDSynth](#C-sound.synth) to the instrument. The synth will respond to playNote events between *rangeState* and *rangeEnd*, inclusive. The *transpose* argument is in half-step units, and is added to the instrument’s [transpose](#f-sound.instrument.setTranspose) parameter. The function returns 1 if successful, or 0 if the synth is already in another instrument or channel."]
	pub addVoice: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument,
	                                                          synth: *mut PDSynth,
	                                                          rangeStart: MIDINote,
	                                                          rangeEnd: MIDINote,
	                                                          transpose: core::ffi::c_float)
	                                                          -> core::ffi::c_int>,
	#[doc = "`PDSynth* playdate->sound->instrument->playNote(PDSynthInstrument* instrument, float frequency, float vel, float len, uint32_t when)`"]
	pub playNote: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument,
	                                                          frequency: core::ffi::c_float,
	                                                          vel: core::ffi::c_float,
	                                                          len: core::ffi::c_float,
	                                                          when: u32)
	                                                          -> *mut PDSynth>,
	#[doc = "`PDSynth* playdate->sound->instrument->playMIDINote(PDSynthInstrument* instrument, MIDINote note, float vel, float len, uint32_t when)`\n\nThe instrument passes the playNote/playMIDINote() event to the synth in its collection that has been off for the longest, or has been playing longest if all synths are currently playing. See also [playdate→sound→synth→playNote()](#f-sound.synth.playNote). The PDSynth that received the playNote event is returned."]
	pub playMIDINote: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument,
	                                                              note: MIDINote,
	                                                              vel: core::ffi::c_float,
	                                                              len: core::ffi::c_float,
	                                                              when: u32)
	                                                              -> *mut PDSynth>,
	#[doc = "`void playdate->sound->instrument->setPitchBend(PDSynthInstrument* instrument, float bend)`"]
	pub setPitchBend:
		::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument, bend: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->instrument->setPitchBendRange(PDSynthInstrument* instrument, float halfSteps)`\n\nSets the pitch bend and pitch bend range to be applied to the voices in the instrument."]
	pub setPitchBendRange:
		::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument, halfSteps: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->instrument->setTranspose(PDSynthInstrument* instrument, float halfSteps)`\n\nSets the transpose parameter for all voices in the instrument."]
	pub setTranspose:
		::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument, halfSteps: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->instrument->noteOff(PDSynthInstrument* instrument, MIDINote note, uint32_t when)`\n\nForwards the noteOff() event to the synth currently playing the given note. See also [playdate→sound→synth→noteOff()](#f-sound.synth.noteOff)."]
	pub noteOff:
		::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument, note: MIDINote, when: u32)>,
	#[doc = "`void playdate->sound->instrument->allNotesOff(PDSynthInstrument* instrument, uint32_t when)`\n\nSends a noteOff event to all voices in the instrument."]
	pub allNotesOff: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument, when: u32)>,
	#[doc = "`void playdate->sound->instrument->setVolume(PDSynthInstrument* instrument, float lvol, float rvol)`"]
	pub setVolume: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument,
	                                                           left: core::ffi::c_float,
	                                                           right: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->instrument->getVolume(PDSynthInstrument* instrument, float* outlvol, float* outrvol)`\n\nSets and gets the playback volume (0.0 - 1.0) for left and right channels of the synth. This is equivalent to\n\n```cpp\nplaydate->sound->source->setVolume((SoundSource*)instrument, lvol, rvol);\nplaydate->sound->source->getVolume((SoundSource*)instrument, &lvol, &rvol);\n```"]
	pub getVolume: ::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument,
	                                                           left: *mut core::ffi::c_float,
	                                                           right: *mut core::ffi::c_float)>,
	#[doc = "`int playdate->sound->instrument->activeVoiceCount(PDSynthInstrument* instrument)`\n\nReturns the number of voices in the instrument currently playing."]
	pub activeVoiceCount:
		::core::option::Option<unsafe extern "C" fn(inst: *mut PDSynthInstrument) -> core::ffi::c_int>,
}
#[test]
fn bindgen_test_layout_playdate_sound_instrument() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_instrument> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_instrument>(),
	           52usize,
	           concat!("Size of: ", stringify!(playdate_sound_instrument))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_instrument>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_instrument))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newInstrument) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(newInstrument)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeInstrument) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(freeInstrument)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addVoice) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(addVoice)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).playNote) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(playNote)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).playMIDINote) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(playMIDINote)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPitchBend) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(setPitchBend)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPitchBendRange) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(setPitchBendRange)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTranspose) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(setTranspose)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).noteOff) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(noteOff)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).allNotesOff) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(allNotesOff)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).activeVoiceCount) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_instrument),
		"::",
		stringify!(activeVoiceCount)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SequenceTrack {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_track {
	#[doc = "`SequenceTrack* playdate->sound->track->newTrack(void)`\n\nReturns a new SequenceTrack."]
	pub newTrack: ::core::option::Option<unsafe extern "C" fn() -> *mut SequenceTrack>,
	#[doc = "`void playdate->sound->track->freeTrack(SequenceTrack* track)`\n\nFrees the SequenceTrack."]
	pub freeTrack: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack)>,
	#[doc = "`void playdate->sound->track->setInstrument(SequenceTrack* track, PDSynthInstrument* instrument)`"]
	pub setInstrument:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack, inst: *mut PDSynthInstrument)>,
	#[doc = "`PDSynthInstrument* playdate->sound->track->getInstrument(SequenceTrack* track)`\n\nSets or gets the [PDSynthInstrument](#C-sound.PDSynthInstrument) assigned to the track."]
	pub getInstrument:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack) -> *mut PDSynthInstrument>,
	#[doc = "`void playdate->sound->track->addNoteEvent(SequenceTrack* track, uint32_t step, uint32_t length, MIDINote note, float vel)`\n\nAdds a single note event to the track."]
	pub addNoteEvent: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack,
	                                                              step: u32,
	                                                              len: u32,
	                                                              note: MIDINote,
	                                                              velocity: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->track->removeNoteEvent(SequenceTrack* track, uint32_t step, MIDINote note)`\n\nRemoves the event at *step* playing *note*."]
	pub removeNoteEvent:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack, step: u32, note: MIDINote)>,
	#[doc = "`void playdate->sound->track->clearNotes(SequenceTrack* track)`\n\nClears all notes from the track."]
	pub clearNotes: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack)>,
	#[doc = "`void playdate->sound->track->getControlSignalCount(SequenceTrack* track)`\n\nReturns the number of [ControlSignal](#C-sound.ControlSignal) objects in the track."]
	pub getControlSignalCount:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack) -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->track->getControlSignal(SequenceTrack* track, int idx)`\n\nReturns the [ControlSignal](#C-sound.ControlSignal) at index *idx*."]
	pub getControlSignal: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack,
	                                                                  idx: core::ffi::c_int)
	                                                                  -> *mut ControlSignal>,
	#[doc = "`void playdate->sound->track->clearControlEvents(SequenceTrack* track)`\n\nClears all [ControlSignals](#C-sound.ControlSignal) from the track."]
	pub clearControlEvents: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack)>,
	#[doc = "`int playdate->sound->track->getPolyphony(SequenceTrack* track)`\n\nReturns the maximum number of simultaneously playing notes in the track. (Currently, this value is only set when the track was loaded from a MIDI file. We don’t yet track polyphony for user-created events.)"]
	pub getPolyphony: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack) -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->track->activeVoiceCount(SequenceTrack* track)`\n\nReturns the number of voices currently playing in the track’s instrument."]
	pub activeVoiceCount:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack) -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->track->setMuted(SequenceTrack* track, int mute)`\n\nMutes or unmutes the track."]
	pub setMuted: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack, mute: core::ffi::c_int)>,
	#[doc = "`int playdate->sound->track->getLength(SequenceTrack* track)`\n\nReturns the length, in steps, of the track—\u{200b}that is, the step where the last note in the track ends."]
	pub getLength: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack) -> u32>,
	#[doc = "`int playdate->sound->track->getIndexForStep(SequenceTrack* track, uint32_t step)`\n\nReturns the internal array index for the first note at the given step."]
	pub getIndexForStep:
		::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack, step: u32) -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->track->getNoteAtIndex(SequenceTrack* track, int index, uint32_t* outStep, uint32_t* outLen, MIDINote* outNote, float* outVelocity)`\n\nIf the given index is in range, sets the data in the out pointers and returns 1; otherwise, returns 0."]
	pub getNoteAtIndex: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack,
	                                                                index: core::ffi::c_int,
	                                                                outStep: *mut u32,
	                                                                outLen: *mut u32,
	                                                                outNote: *mut MIDINote,
	                                                                outVelocity: *mut core::ffi::c_float)
	                                                                -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->track->getSignalForController(SequenceTrack* track, int controller, int create)`\n\nReturns the [ControlSignal](#C-sound.ControlSignal) for MIDI controller number *controller*, creating it if the **create** flag is set and it doesn’t yet exist."]
	pub getSignalForController: ::core::option::Option<unsafe extern "C" fn(track: *mut SequenceTrack,
	                                                                        controller: core::ffi::c_int,
	                                                                        create: core::ffi::c_int)
	                                                                        -> *mut ControlSignal>,
}
#[test]
fn bindgen_test_layout_playdate_sound_track() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_track> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_track>(),
	           68usize,
	           concat!("Size of: ", stringify!(playdate_sound_track))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_track>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_track))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newTrack) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(newTrack)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeTrack) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(freeTrack)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setInstrument) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(setInstrument)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getInstrument) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getInstrument)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addNoteEvent) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(addNoteEvent)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeNoteEvent) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(removeNoteEvent)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearNotes) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(clearNotes)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getControlSignalCount) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getControlSignalCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getControlSignal) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getControlSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).clearControlEvents) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(clearControlEvents)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getPolyphony) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getPolyphony)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).activeVoiceCount) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(activeVoiceCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMuted) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(setMuted)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLength) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getIndexForStep) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getIndexForStep)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getNoteAtIndex) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getNoteAtIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getSignalForController) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_track),
		"::",
		stringify!(getSignalForController)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SoundSequence {
	_unused: [u8; 0],
}
pub type SequenceFinishedCallback =
	::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence, userdata: *mut core::ffi::c_void)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_sequence {
	#[doc = "`SoundSequence* playdate->sound->sequence->newSequence(void)`"]
	pub newSequence: ::core::option::Option<unsafe extern "C" fn() -> *mut SoundSequence>,
	#[doc = "`void playdate->sound->sequence->freeSequence(SoundSequence* sequence)`\n\nCreates or destroys a SoundSequence object."]
	pub freeSequence: ::core::option::Option<unsafe extern "C" fn(sequence: *mut SoundSequence)>,
	#[doc = "`int playdate->sound->sequence->loadMIDIFile(SoundSequence* sequence, const char* path)`\n\nIf the sequence is empty, attempts to load data from the MIDI file at *path* into the sequence. Returns 1 on success, 0 on failure."]
	pub loadMIDIFile: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                              path: *const core::ffi::c_char)
	                                                              -> core::ffi::c_int>,
	#[doc = "`uint32_t playdate->sound->sequence->getTime(SoundSequence* sequence)`"]
	pub getTime: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> u32>,
	#[doc = "`void playdate->sound->sequence->setTime(SoundSequence* sequence, uint32_t time)`\n\nGets or sets the current time in the sequence, in samples since the start of the file. Note that which step this moves the sequence to depends on the current tempo."]
	pub setTime: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence, time: u32)>,
	#[doc = "`void playdate->sound->sequence->setLoops(SoundSequence* sequence, int startstep, int endstep, int loops)`\n\nSets the looping range of the sequence. If *loops* is 0, the loop repeats endlessly."]
	pub setLoops: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                          loopstart: core::ffi::c_int,
	                                                          loopend: core::ffi::c_int,
	                                                          loops: core::ffi::c_int)>,
	#[doc = "`int playdate->sound->sequence->getTempo(SoundSequence* sequence)`"]
	pub getTempo: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->sequence->setTempo(SoundSequence* sequence, float stepsPerSecond)`\n\nSets or gets the tempo of the sequence, in steps per second."]
	pub setTempo:
		::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence, stepsPerSecond: core::ffi::c_float)>,
	#[doc = "`int playdate->sound->sequence->getTrackCount(SoundSequence* sequence)`\n\nReturns the number of tracks in the sequence."]
	pub getTrackCount: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> core::ffi::c_int>,
	#[doc = "`SequenceTrack* playdate->sound->sequence->addTrack(SoundSequence* sequence)`\n\nAdds the given [playdate.sound.track](#C-sound.track) to the sequence."]
	pub addTrack: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> *mut SequenceTrack>,
	#[doc = "`SequenceTrack* playdate->sound->sequence->getTrackAtIndex(SoundSequence* sequence, unsigned int idx)`"]
	pub getTrackAtIndex: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                                 track: core::ffi::c_uint)
	                                                                 -> *mut SequenceTrack>,
	#[doc = "`void playdate->sound->sequence->setTrackAtIndex(SoundSequence* sequence, SequenceTrack* track, unsigned int idx)`\n\nSets or gets the given [SoundTrack](#C-sound.track) object at position *idx* in the sequence."]
	pub setTrackAtIndex: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                                 track: *mut SequenceTrack,
	                                                                 idx: core::ffi::c_uint)>,
	#[doc = "`void playdate->sound->sequence->allNotesOff(SoundSequence* sequence)`\n\nSends a stop signal to all playing notes on all tracks."]
	pub allNotesOff: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence)>,
	#[doc = "`int playdate->sound->sequence->isPlaying(SoundSequence* sequence)`\n\nReturns 1 if the sequence is currently playing, otherwise 0."]
	pub isPlaying: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->sequence->getLength(SoundSequence* sequence)`\n\nReturns the length of the longest track in the sequence, in steps. See also [playdate.sound.track.getLength()](#m-sound.track:getLength)."]
	pub getLength: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence) -> u32>,
	#[doc = "`void playdate->sound->sequence->play(SoundSequence* sequence, SequenceFinishedCallback finishCallback, void* userdata)`"]
	pub play: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                      finishCallback: SequenceFinishedCallback,
	                                                      userdata: *mut core::ffi::c_void)>,
	#[doc = "`void playdate->sound->sequence->stop(SoundSequence* sequence)`\n\nStarts or stops playing the sequence. `finishCallback` is an optional function to be called when the sequence finishes playing or is stopped.\n\nSequenceFinishedCallback\n\n```cpp\ntypedef void (*SequenceFinishedCallback)(SoundSequence* seq, void* userdata);\n```"]
	pub stop: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence)>,
	#[doc = "`int playdate->sound->sequence->getCurrentStep(SoundSequence* sequence, int* timeOffset)`\n\nReturns the step number the sequence is currently at. If *timeOffset* is not NULL, its contents are set to the current sample offset within the step."]
	pub getCurrentStep: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                                timeOffset: *mut core::ffi::c_int)
	                                                                -> core::ffi::c_int>,
	#[doc = "`void playdate->sound->sequence->setCurrentStep(SoundSequence* seq, int step, int timeOffset, int playNotes)`\n\nSet the current step for the sequence. *timeOffset* is a sample offset within the step. If *playNotes* is set, notes at the given step (ignoring *timeOffset*) are played."]
	pub setCurrentStep: ::core::option::Option<unsafe extern "C" fn(seq: *mut SoundSequence,
	                                                                step: core::ffi::c_int,
	                                                                timeOffset: core::ffi::c_int,
	                                                                playNotes: core::ffi::c_int)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_sequence() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_sequence> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_sequence>(),
	           76usize,
	           concat!("Size of: ", stringify!(playdate_sound_sequence))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_sequence>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_sequence))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newSequence) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(newSequence)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeSequence) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(freeSequence)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).loadMIDIFile) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(loadMIDIFile)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTime) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTime) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(setTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLoops) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(setLoops)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTempo) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getTempo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTempo) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(setTempo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTrackCount) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getTrackCount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addTrack) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(addTrack)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTrackAtIndex) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getTrackAtIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTrackAtIndex) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(setTrackAtIndex)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).allNotesOff) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(allNotesOff)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).isPlaying) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(isPlaying)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLength) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).play) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(play)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(stop)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCurrentStep) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(getCurrentStep)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setCurrentStep) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_sequence),
		"::",
		stringify!(setCurrentStep)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct TwoPoleFilter {
	_unused: [u8; 0],
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum TwoPoleFilterType {
	kFilterTypeLowPass = 0,
	kFilterTypeHighPass = 1,
	kFilterTypeBandPass = 2,
	kFilterTypeNotch = 3,
	kFilterTypePEQ = 4,
	kFilterTypeLowShelf = 5,
	kFilterTypeHighShelf = 6,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_twopolefilter {
	#[doc = "`TwoPoleFilter* playdate->sound->effect->twopolefilter->newFilter(void)`\n\nCreates a new two pole filter effect."]
	pub newFilter: ::core::option::Option<unsafe extern "C" fn() -> *mut TwoPoleFilter>,
	#[doc = "`void playdate->sound->effect->twopolefilter->freeFilter(TwoPoleFilter* filter)`\n\nFrees the given filter."]
	pub freeFilter: ::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter)>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setType(TwoPoleFilter* filter, TwoPoleFilterType type)`\n\nTwoPoleFilterType\n\n```cpp\ntypedef enum\n{\n\tkFilterTypeLowPass,\n\tkFilterTypeHighPass,\n\tkFilterTypeBandPass,\n\tkFilterTypeNotch,\n\tkFilterTypePEQ,\n\tkFilterTypeLowShelf,\n\tkFilterTypeHighShelf\n} TwoPoleFilterType;\n```\n\nSets the type of the filter."]
	pub setType:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, type_: TwoPoleFilterType)>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setFrequency(TwoPoleFilter* filter, float frequency)`\n\nSets the center/corner frequency of the filter. Value is in Hz."]
	pub setFrequency:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, frequency: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setFrequencyModulator(TwoPoleFilter* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the effect’s frequency. The signal is scaled so that a value of 1.0 corresponds to half the sample rate. Set to *NULL* to clear the modulator."]
	pub setFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->twopolefilter->getFrequencyModulator(TwoPoleFilter* filter)`\n\nReturns the filter’s current frequency modulator."]
	pub getFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setGain(TwoPoleFilter* filter, float gain)`\n\nSets the filter gain."]
	pub setGain:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, gain: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setResonance(TwoPoleFilter* filter, float resonance)`\n\nSets the filter resonance."]
	pub setResonance:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, resonance: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->twopolefilter->setResonanceModulator(TwoPoleFilter* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the filter resonance. Set to *NULL* to clear the modulator."]
	pub setResonanceModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->twopolefilter->getResonanceModulator(TwoPoleFilter* filter)`\n\nReturns the filter’s current resonance modulator."]
	pub getResonanceModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut TwoPoleFilter) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_twopolefilter() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_twopolefilter> =
		::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_twopolefilter>(),
	           40usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_twopolefilter))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_twopolefilter>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_twopolefilter))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newFilter) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(newFilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeFilter) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(freeFilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setType) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setType)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFrequency) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setFrequency)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFrequencyModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setFrequencyModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFrequencyModulator) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(getFrequencyModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setGain) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setGain)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setResonance) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setResonance)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setResonanceModulator) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(setResonanceModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getResonanceModulator) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_twopolefilter),
		"::",
		stringify!(getResonanceModulator)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct OnePoleFilter {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_onepolefilter {
	#[doc = "`OnePoleFilter* playdate->sound->effect->onepolefilter->newFilter(void)`\n\nCreates a new one pole filter."]
	pub newFilter: ::core::option::Option<unsafe extern "C" fn() -> *mut OnePoleFilter>,
	#[doc = "`void playdate->sound->effect->onepolefilter->freeFilter(OnePoleFilter* filter)`\n\nFrees the filter."]
	pub freeFilter: ::core::option::Option<unsafe extern "C" fn(filter: *mut OnePoleFilter)>,
	#[doc = "`void playdate->sound->effect->onepolefilter->setParameter(OnePoleFilter* filter, float parameter)`\n\nSets the filter’s single parameter (cutoff frequency) to *p*. Values above 0 (up to 1) are high-pass, values below 0 (down to -1) are low-pass."]
	pub setParameter:
		::core::option::Option<unsafe extern "C" fn(filter: *mut OnePoleFilter, parameter: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->onepolefilter->setParameterModulator(OnePoleFilter* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the filter parameter. Set to *NULL* to clear the modulator."]
	pub setParameterModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut OnePoleFilter, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->onepolefilter->getParameterModulator(OnePoleFilter* filter)`\n\nReturns the filter’s current parameter modulator."]
	pub getParameterModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut OnePoleFilter) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_onepolefilter() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_onepolefilter> =
		::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_onepolefilter>(),
	           20usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_onepolefilter))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_onepolefilter>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_onepolefilter))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newFilter) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_onepolefilter),
		"::",
		stringify!(newFilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeFilter) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_onepolefilter),
		"::",
		stringify!(freeFilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setParameter) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_onepolefilter),
		"::",
		stringify!(setParameter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setParameterModulator) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_onepolefilter),
		"::",
		stringify!(setParameterModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getParameterModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_onepolefilter),
		"::",
		stringify!(getParameterModulator)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct BitCrusher {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_bitcrusher {
	#[doc = "`BitCrusher* playdate->sound->effect->bitcrusher->newBitCrusher(void)`\n\nReturns a new BitCrusher effect."]
	pub newBitCrusher: ::core::option::Option<unsafe extern "C" fn() -> *mut BitCrusher>,
	#[doc = "`void playdate->sound->effect->bitcrusher->freeBitCrusher(BitCrusher* filter)`\n\nFrees the given effect."]
	pub freeBitCrusher: ::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher)>,
	#[doc = "`void playdate->sound->effect->bitcrusher->setAmount(BitCrusher* filter, float amount)`\n\nSets the amount of crushing to *amount*. Valid values are 0 (no effect) to 1 (quantizing output to 1-bit)."]
	pub setAmount:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher, amount: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->bitcrusher->setAmountModulator(BitCrusher* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the crushing amount. Set to *NULL* to clear the modulator."]
	pub setAmountModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->bitcrusher->getAmountModulator(BitCrusher* filter)`\n\nReturns the currently set modulator."]
	pub getAmountModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->effect->bitcrusher->setUndersampling(BitCrusher* filter, float undersample)`\n\nSets the number of samples to repeat, quantizing the input in time. A value of 0 produces no undersampling, 1 repeats every other sample, etc."]
	pub setUndersampling:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher, undersampling: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->bitcrusher->setUndersampleModulator(BitCrusher* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the undersampling amount. Set to *NULL* to clear the modulator."]
	pub setUndersampleModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->bitcrusher->getUndersampleModulator(BitCrusher* filter)`\n\nReturns the currently set modulator."]
	pub getUndersampleModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut BitCrusher) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_bitcrusher() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_bitcrusher> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_bitcrusher>(),
	           32usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_bitcrusher))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_bitcrusher>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_bitcrusher))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newBitCrusher) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(newBitCrusher)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeBitCrusher) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(freeBitCrusher)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAmount) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(setAmount)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setAmountModulator) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(setAmountModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getAmountModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(getAmountModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUndersampling) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(setUndersampling)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUndersampleModulator) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(setUndersampleModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getUndersampleModulator) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_bitcrusher),
		"::",
		stringify!(getUndersampleModulator)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct RingModulator {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_ringmodulator {
	#[doc = "`RingModulator* playdate->sound->effect->ringmodulator->newRingmod(void)`\n\nReturns a new ring modulator effect."]
	pub newRingmod: ::core::option::Option<unsafe extern "C" fn() -> *mut RingModulator>,
	pub freeRingmod: ::core::option::Option<unsafe extern "C" fn(filter: *mut RingModulator)>,
	#[doc = "`void playdate->sound->effect->ringmodulator->setFrequency(RingModulator* filter, float frequency)`\n\nSets the frequency of the modulation signal."]
	pub setFrequency:
		::core::option::Option<unsafe extern "C" fn(filter: *mut RingModulator, frequency: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->ringmodulator->setFrequencyModulator(RingModulator* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the frequency of the ring modulator. Set to *NULL* to clear the modulator."]
	pub setFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut RingModulator, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->ringmodulator->getFrequencyModulator(RingModulator* filter)`\n\nReturns the currently set frequency modulator."]
	pub getFrequencyModulator:
		::core::option::Option<unsafe extern "C" fn(filter: *mut RingModulator) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_ringmodulator() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_ringmodulator> =
		::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_ringmodulator>(),
	           20usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_ringmodulator))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_ringmodulator>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_ringmodulator))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newRingmod) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_ringmodulator),
		"::",
		stringify!(newRingmod)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeRingmod) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_ringmodulator),
		"::",
		stringify!(freeRingmod)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFrequency) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_ringmodulator),
		"::",
		stringify!(setFrequency)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFrequencyModulator) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_ringmodulator),
		"::",
		stringify!(setFrequencyModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getFrequencyModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_ringmodulator),
		"::",
		stringify!(getFrequencyModulator)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct DelayLine {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct DelayLineTap {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_delayline {
	#[doc = "`DelayLine* playdate->sound->effect->delayline->newDelayLine(int length, int stereo)`\n\nCreates a new delay line effect. The *length* parameter is given in samples."]
	pub newDelayLine: ::core::option::Option<unsafe extern "C" fn(length: core::ffi::c_int,
	                                                              stereo: core::ffi::c_int)
	                                                              -> *mut DelayLine>,
	#[doc = "`void playdate->sound->effect->delayline->freeDelayLine(DelayLine* delay)`\n\nFrees the delay line."]
	pub freeDelayLine: ::core::option::Option<unsafe extern "C" fn(filter: *mut DelayLine)>,
	#[doc = "`void playdate->sound->effect->delayline->setLength(DelayLine* d, int frames)`\n\nChanges the length of the delay line, clearing its contents."]
	pub setLength: ::core::option::Option<unsafe extern "C" fn(d: *mut DelayLine, frames: core::ffi::c_int)>,
	#[doc = "`void playdate->sound->effect->delayline->setFeedback(DelayLine* d, float fb)`\n\nSets the feedback level of the delay line."]
	pub setFeedback: ::core::option::Option<unsafe extern "C" fn(d: *mut DelayLine, fb: core::ffi::c_float)>,
	#[doc = "`DelayLineTap* playdate->sound->effect->delayline->addTap(DelayLine* d, int delay)`\n\nReturns a new tap on the delay line, at the given position. *delay* must be less than or equal to the length of the delay line."]
	pub addTap: ::core::option::Option<unsafe extern "C" fn(d: *mut DelayLine,
	                                                        delay: core::ffi::c_int)
	                                                        -> *mut DelayLineTap>,
	#[doc = "`void playdate->sound->effect->delayline->freeTap(DelayLineTap* tap)`\n\nFrees a tap previously created with [playdate→sound→delayline→addTap()](#f-sound.effect.delayline.addTap), first removing it from the sound engine if needed."]
	pub freeTap: ::core::option::Option<unsafe extern "C" fn(tap: *mut DelayLineTap)>,
	#[doc = "`void playdate->sound->effect->delayline->setTapDelay(DelayLineTap* tap, int frames)`\n\nSets the position of the tap on the delay line, up to the delay line’s length."]
	pub setTapDelay: ::core::option::Option<unsafe extern "C" fn(t: *mut DelayLineTap, frames: core::ffi::c_int)>,
	#[doc = "`void playdate->sound->effect->delayline->setTapDelayModulator(DelayLineTap* tap, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the tap delay. If the signal is continuous (e.g. an envelope or a triangle LFO, but not a square LFO) playback is sped up or slowed down to compress or expand time. Set to *NULL* to clear the modulator."]
	pub setTapDelayModulator:
		::core::option::Option<unsafe extern "C" fn(t: *mut DelayLineTap, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->delayline->getTapDelayModulator(DelayLineTap* tap)`\n\nReturns the current delay modulator."]
	pub getTapDelayModulator:
		::core::option::Option<unsafe extern "C" fn(t: *mut DelayLineTap) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->effect->delayline->setTapChannelsFlipped(DelayLineTap* tap, int flip)`\n\nIf the delay line is stereo and *flip* is set, the tap outputs the delay line’s left channel to its right output and vice versa."]
	pub setTapChannelsFlipped:
		::core::option::Option<unsafe extern "C" fn(t: *mut DelayLineTap, flip: core::ffi::c_int)>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_delayline() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_delayline> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_delayline>(),
	           40usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_delayline))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_delayline>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_delayline))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newDelayLine) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(newDelayLine)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeDelayLine) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(freeDelayLine)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLength) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(setLength)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFeedback) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(setFeedback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addTap) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(addTap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeTap) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(freeTap)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTapDelay) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(setTapDelay)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTapDelayModulator) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(setTapDelayModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getTapDelayModulator) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(getTapDelayModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setTapChannelsFlipped) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_delayline),
		"::",
		stringify!(setTapChannelsFlipped)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct Overdrive {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect_overdrive {
	#[doc = "`Overdrive* playdate->sound->effect->overdrive->newOverdrive(void)`\n\nReturns a new overdrive effect."]
	pub newOverdrive: ::core::option::Option<unsafe extern "C" fn() -> *mut Overdrive>,
	#[doc = "`void playdate->sound->effect->overdrive->freeOverdrive(Overdrive* filter)`\n\nFrees the given effect."]
	pub freeOverdrive: ::core::option::Option<unsafe extern "C" fn(filter: *mut Overdrive)>,
	#[doc = "`void playdate->sound->effect->overdrive->setGain(Overdrive* filter, float gain)`\n\nSets the gain of the overdrive effect."]
	pub setGain: ::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive, gain: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->overdrive->setLimit(Overdrive* filter, float limit)`\n\nSets the level where the amplified input clips."]
	pub setLimit: ::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive, limit: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->overdrive->setLimitModulator(Overdrive* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the limit parameter. Set to *NULL* to clear the modulator."]
	pub setLimitModulator:
		::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->overdrive->getLimitModulator(RingMoOverdrivedulator* filter)`\n\nReturns the currently set limit modulator."]
	pub getLimitModulator:
		::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->effect->overdrive->setOffset(Overdrive* filter, float offset)`\n\nAdds an offset to the upper and lower limits to create an asymmetric clipping."]
	pub setOffset: ::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive, offset: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->overdrive->setOffsetModulator(Overdrive* filter, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the offset parameter. Set to *NULL* to clear the modulator."]
	pub setOffsetModulator:
		::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->overdrive->getOffsetModulator(RingMoOverdrivedulator* filter)`\n\nReturns the currently set offset modulator."]
	pub getOffsetModulator:
		::core::option::Option<unsafe extern "C" fn(o: *mut Overdrive) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect_overdrive() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect_overdrive> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect_overdrive>(),
	           36usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect_overdrive))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect_overdrive>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect_overdrive))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newOverdrive) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(newOverdrive)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeOverdrive) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(freeOverdrive)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setGain) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(setGain)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLimit) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(setLimit)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setLimitModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(setLimitModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getLimitModulator) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(getLimitModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOffset) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(setOffset)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOffsetModulator) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(setOffsetModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getOffsetModulator) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect_overdrive),
		"::",
		stringify!(getOffsetModulator)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SoundEffect {
	_unused: [u8; 0],
}
pub type effectProc = ::core::option::Option<unsafe extern "C" fn(e: *mut SoundEffect,
                                                                  left: *mut i32,
                                                                  right: *mut i32,
                                                                  nsamples: core::ffi::c_int,
                                                                  bufactive: core::ffi::c_int)
                                                                  -> core::ffi::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_effect {
	#[doc = "`SoundEffect* playdate->sound->effect->newEffect(effectProc* proc, void* userdata)`\n\neffectProc\n\n```cpp\ntypedef int effectProc(SoundEffect* e, int32_t* left, int32_t* right, int nsamples, int bufactive);\n```\n\nCreates a new effect using the given processing function. *bufactive* is 1 if samples have been set in the left or right buffers. The function should return 1 if it changed the buffer samples, otherwise 0. *left* and *right* (if the effect is on a stereo channel) are sample buffers in Q8.24 format."]
	pub newEffect: ::core::option::Option<unsafe extern "C" fn(proc_: effectProc,
	                                                           userdata: *mut core::ffi::c_void)
	                                                           -> *mut SoundEffect>,
	#[doc = "`void playdate->sound->effect->freeEffect(SoundEffect* effect)`\n\nFrees the given effect."]
	pub freeEffect: ::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect)>,
	#[doc = "`void playdate->sound->effect->setMix(SoundEffect* effect, float level)`\n\nSets the wet/dry mix for the effect. A level of 1 (full wet) replaces the input with the effect output; 0 leaves the effect out of the mix (which is useful if you’re using a delay line with taps and don’t want to hear the delay line itself)."]
	pub setMix: ::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect, level: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->effect->setMixModulator(SoundEffect* effect, PDSynthSignalValue* signal)`\n\nSets a [signal](#C-sound.signal) to modulate the effect’s mix level. Set to *NULL* to clear the modulator."]
	pub setMixModulator:
		::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect, signal: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->effect->getMixModulator(SoundEffect* effect)`\n\nReturns the current mix modulator for the effect."]
	pub getMixModulator:
		::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->effect->setUserdata(SoundEffect* effect, void* userdata)`"]
	pub setUserdata:
		::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect, userdata: *mut core::ffi::c_void)>,
	#[doc = "`void* playdate->sound->effect->getUserdata(SoundEffect* effect)`\n\nSets or gets a userdata value for the effect."]
	pub getUserdata:
		::core::option::Option<unsafe extern "C" fn(effect: *mut SoundEffect) -> *mut core::ffi::c_void>,
	pub twopolefilter: *const playdate_sound_effect_twopolefilter,
	pub onepolefilter: *const playdate_sound_effect_onepolefilter,
	pub bitcrusher: *const playdate_sound_effect_bitcrusher,
	pub ringmodulator: *const playdate_sound_effect_ringmodulator,
	pub delayline: *const playdate_sound_effect_delayline,
	pub overdrive: *const playdate_sound_effect_overdrive,
}
#[test]
fn bindgen_test_layout_playdate_sound_effect() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_effect> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_effect>(),
	           52usize,
	           concat!("Size of: ", stringify!(playdate_sound_effect))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_effect>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_effect))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newEffect) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(newEffect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeEffect) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(freeEffect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMix) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(setMix)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMixModulator) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(setMixModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getMixModulator) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(getMixModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setUserdata) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(setUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getUserdata) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(getUserdata)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).twopolefilter) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(twopolefilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).onepolefilter) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(onepolefilter)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).bitcrusher) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(bitcrusher)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).ringmodulator) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(ringmodulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).delayline) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(delayline)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).overdrive) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_effect),
		"::",
		stringify!(overdrive)
	)
	);
}
impl Default for playdate_sound_effect {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
#[must_use]
pub struct SoundChannel {
	_unused: [u8; 0],
}
pub type AudioSourceFunction = ::core::option::Option<unsafe extern "C" fn(context: *mut core::ffi::c_void,
                                                                           left: *mut i16,
                                                                           right: *mut i16,
                                                                           len: core::ffi::c_int)
                                                                           -> core::ffi::c_int>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound_channel {
	#[doc = "`SoundChannel* playdate->sound->channel->newChannel(void)`\n\nReturns a new *SoundChannel* object."]
	pub newChannel: ::core::option::Option<unsafe extern "C" fn() -> *mut SoundChannel>,
	#[doc = "`void playdate->sound->channel->freeChannel(SoundChannel* channel)`\n\nFrees the given *SoundChannel*."]
	pub freeChannel: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel)>,
	#[doc = "`void playdate->sound->channel->addSource(SoundChannel* channel, SoundSource* source)`\n\nAdds a [SoundSource](#f-sound.source) to the channel. If a source is not assigned to a channel, it plays on the default global channel."]
	pub addSource: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel,
	                                                           source: *mut SoundSource)
	                                                           -> core::ffi::c_int>,
	#[doc = "`int playdate->sound->channel->removeSource(SoundChannel* channel, SoundSource* source)`\n\nRemoves a [SoundSource](#f-sound.source) to the channel. Returns 1 if the source was found in (and removed from) the channel, otherwise 0."]
	pub removeSource: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel,
	                                                              source: *mut SoundSource)
	                                                              -> core::ffi::c_int>,
	#[doc = "`SoundSource* playdate->sound->channel->addCallbackSource(SoundChannel* channel, AudioSourceFunction* callback, void* context, int stereo)`\n\nCreates a new [SoundSource](#f-sound.source) using the given data provider callback and adds it to the channel.\n\nAudioSourceFunction\n\n```cpp\nint AudioSourceFunction(void* context, int16_t* left, int16_t* right, int len)\n```\n\nThis function should fill the passed-in *left* buffer (and *right* if it’s a stereo source) with *len* samples each and return 1, or return 0 if the source is silent through the cycle. The caller takes ownership of the allocated SoundSource, and should free it with\n\n```cpp\nplaydate->system->realloc(source, 0);\n```\n\nwhen it is not longer in use."]
	pub addCallbackSource: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel,
	                                                                   callback: AudioSourceFunction,
	                                                                   context: *mut core::ffi::c_void,
	                                                                   stereo: core::ffi::c_int)
	                                                                   -> *mut SoundSource>,
	#[doc = "`void playdate->sound->channel->addEffect(SoundChannel* channel, SoundEffect* effect)`\n\nAdds a [SoundEffect](#f-sound.effect) to the channel."]
	pub addEffect:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, effect: *mut SoundEffect)>,
	#[doc = "`void playdate->sound->channel->removeEffect(SoundChannel* channel, SoundEffect* effect)`\n\nRemoves a [SoundEffect](#f-sound.effect) from the channel."]
	pub removeEffect:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, effect: *mut SoundEffect)>,
	#[doc = "`void playdate->sound->channel->setVolume(SoundChannel* channel, float volume)`\n\nSets the volume for the channel, in the range [0-1]."]
	pub setVolume:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, volume: core::ffi::c_float)>,
	#[doc = "`float playdate->sound->channel->getVolume(SoundChannel* channel)`\n\nGets the volume for the channel, in the range [0-1]."]
	pub getVolume: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> core::ffi::c_float>,
	#[doc = "`void playdate->sound->channel->setVolumeModulator(SoundChannel* channel, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the channel volume. Set to *NULL* to clear the modulator."]
	pub setVolumeModulator:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->channel->getVolumeModulator(SoundChannel* channel)`\n\nGets a [signal](#C-sound.signal) modulating the channel volume."]
	pub getVolumeModulator:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> *mut PDSynthSignalValue>,
	#[doc = "`void playdate->sound->channel->setPan(SoundChannel* channel, float pan)`\n\nSets the pan parameter for the channel. Valid values are in the range [-1,1], where -1 is left, 0 is center, and 1 is right."]
	pub setPan: ::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, pan: core::ffi::c_float)>,
	#[doc = "`void playdate->sound->channel->setPanModulator(SoundChannel* channel, PDSynthSignalValue* mod)`\n\nSets a [signal](#C-sound.signal) to modulate the channel pan. Set to *NULL* to clear the modulator."]
	pub setPanModulator:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel, mod_: *mut PDSynthSignalValue)>,
	#[doc = "`PDSynthSignalValue* playdate->sound->channel->getPanModulator(SoundChannel* channel)`\n\nGets a [signal](#C-sound.signal) modulating the channel pan."]
	pub getPanModulator:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> *mut PDSynthSignalValue>,
	#[doc = "`PDSynthSignalValue* playdate->sound->channel->getDryLevelSignal(SoundChannel* channel)`\n\nReturns a signal that follows the volume of the channel before effects are applied."]
	pub getDryLevelSignal:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> *mut PDSynthSignalValue>,
	#[doc = "`PDSynthSignalValue* playdate->sound->channel->getWetLevelSignal(SoundChannel* channel)`\n\nReturns a signal that follows the volume of the channel after effects are applied."]
	pub getWetLevelSignal:
		::core::option::Option<unsafe extern "C" fn(channel: *mut SoundChannel) -> *mut PDSynthSignalValue>,
}
#[test]
fn bindgen_test_layout_playdate_sound_channel() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound_channel> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound_channel>(),
	           64usize,
	           concat!("Size of: ", stringify!(playdate_sound_channel))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound_channel>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound_channel))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).newChannel) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(newChannel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeChannel) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(freeChannel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addSource) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(addSource)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeSource) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(removeSource)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addCallbackSource) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(addCallbackSource)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addEffect) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(addEffect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeEffect) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(removeEffect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolume) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(setVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolume) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(getVolume)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setVolumeModulator) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(setVolumeModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getVolumeModulator) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(getVolumeModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPan) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(setPan)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setPanModulator) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(setPanModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getPanModulator) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(getPanModulator)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getDryLevelSignal) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(getDryLevelSignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getWetLevelSignal) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound_channel),
		"::",
		stringify!(getWetLevelSignal)
	)
	);
}
pub type RecordCallback = ::core::option::Option<unsafe extern "C" fn(context: *mut core::ffi::c_void,
                                                                      buffer: *mut i16,
                                                                      length: core::ffi::c_int)
                                                                      -> core::ffi::c_int>;
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum MicSource {
	kMicInputAutodetect = 0,
	kMicInputInternal = 1,
	kMicInputHeadset = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_sound { pub channel : * const playdate_sound_channel , pub fileplayer : * const playdate_sound_fileplayer , pub sample : * const playdate_sound_sample , pub sampleplayer : * const playdate_sound_sampleplayer , pub synth : * const playdate_sound_synth , pub sequence : * const playdate_sound_sequence , pub effect : * const playdate_sound_effect , pub lfo : * const playdate_sound_lfo , pub envelope : * const playdate_sound_envelope , pub source : * const playdate_sound_source , pub controlsignal : * const playdate_control_signal , pub track : * const playdate_sound_track , pub instrument : * const playdate_sound_instrument , # [doc = "`uint32_t playdate->sound->getCurrentTime(void)`\n\nReturns the sound engine’s current time value, in units of sample frames, 44,100 per second.\n\nEquivalent to [`playdate.sound.getCurrentTime()`](./Inside%20Playdate.html#f-sound.getCurrentTime) in the Lua API."] pub getCurrentTime : :: core :: option :: Option < unsafe extern "C" fn () -> u32 > , # [doc = "`SoundSource* playdate->sound->addSource(AudioSourceFunction* callback, void* context, int stereo)`\n\nThe *callback* function you pass in will be called every audio render cycle.\n\nAudioSourceFunction\n\n```cpp\nint AudioSourceFunction(void* context, int16_t* left, int16_t* right, int len)\n```\n\nThis function should fill the passed-in *left* buffer (and *right* if it’s a stereo source) with *len* samples each and return 1, or return 0 if the source is silent through the cycle."] pub addSource : :: core :: option :: Option < unsafe extern "C" fn (callback : AudioSourceFunction , context : * mut core :: ffi :: c_void , stereo : core :: ffi :: c_int) -> * mut SoundSource > , # [doc = "`SoundChannel* playdate->sound->getDefaultChannel(void)`\n\nReturns the default channel, where sound sources play if they haven’t been explicity assigned to a different channel."] pub getDefaultChannel : :: core :: option :: Option < unsafe extern "C" fn () -> * mut SoundChannel > , # [doc = "`int playdate->sound->addChannel(SoundChannel* channel)`\n\nAdds the given channel to the sound engine. Returns 1 if the channel was added, 0 if it was already in the engine."] pub addChannel : :: core :: option :: Option < unsafe extern "C" fn (channel : * mut SoundChannel) -> core :: ffi :: c_int > , # [doc = "`int playdate->sound->removeChannel(SoundChannel* channel)`\n\nRemoves the given channel from the sound engine. Returns 1 if the channel was successfully removed, 0 if the channel is the default channel or hadn’t been previously added."] pub removeChannel : :: core :: option :: Option < unsafe extern "C" fn (channel : * mut SoundChannel) -> core :: ffi :: c_int > , # [doc = "`int playdate->sound->setMicCallback(AudioInputFunction* callback, void* context, enum MicSource source)`\n\nThe *callback* you pass in will be called every audio cycle.\n\nAudioInputFunction\n\n```cpp\nint AudioInputFunction(void* context, int16_t* data, int len)\n```\n\nenum MicSource\n\n```cpp\nenum MicSource {\n\tkMicInputAutodetect = 0,\n\tkMicInputInternal = 1,\n\tkMicInputHeadset = 2\n};\n```\n\nYour input callback will be called with the recorded audio data, a monophonic stream of samples. The function should return 1 to continue recording, 0 to stop recording.\n\nThe Playdate hardware has a circuit that attempts to autodetect the presence of a headset mic, but there are cases where you may want to override this. For instance, if you’re using a headphone splitter to wire an external source to the mic input, the detector may not always see the input. Setting the source to `kMicInputHeadset` forces recording from the headset. Using `kMicInputInternal` records from the device mic even when a headset with a mic is plugged in. And `kMicInputAutodetect` uses a headset mic if one is detected, otherwise the device microphone. `setMicCallback()` returns which source the function used, internal or headset, or 0 on error."] pub setMicCallback : :: core :: option :: Option < unsafe extern "C" fn (callback : RecordCallback , context : * mut core :: ffi :: c_void , source : MicSource) -> core :: ffi :: c_int > , # [doc = "`void playdate->sound->getHeadphoneState(int* headphone, int* mic, void (*changeCallback)(int headphone, int mic))`\n\nIf *headphone* contains a pointer to an int, the value is set to 1 if headphones are currently plugged in. Likewise, *mic* is set if the headphones include a microphone. If *changeCallback* is provided, it will be called when the headset or mic status changes, and audio output will **not** automatically switch from speaker to headphones when headphones are plugged in (and vice versa). In this case, the callback should use `playdate→sound→setOutputsActive()` to change the output if needed.\n\nEquivalent to [`playdate.sound.getHeadphoneState()`](./Inside%20Playdate.html#f-sound.getHeadphoneState) in the Lua API."] pub getHeadphoneState : :: core :: option :: Option < unsafe extern "C" fn (headphone : * mut core :: ffi :: c_int , headsetmic : * mut core :: ffi :: c_int , changeCallback : :: core :: option :: Option < unsafe extern "C" fn (headphone : core :: ffi :: c_int , mic : core :: ffi :: c_int) >) > , # [doc = "`void playdate->sound->setOutputsActive(int headphone, int speaker)`\n\nForce audio output to the given outputs, regardless of headphone status.\n\nEquivalent to [`playdate.sound.setOutputsActive()`](./Inside%20Playdate.html#f-sound.setOutputsActive) in the Lua API."] pub setOutputsActive : :: core :: option :: Option < unsafe extern "C" fn (headphone : core :: ffi :: c_int , speaker : core :: ffi :: c_int) > , # [doc = "`int playdate->sound->removeSource(SoundSource* source)`\n\nRemoves the given [SoundSource](#C-sound.source) object from its channel, whether it’s in the default channel or a channel created with [playdate→sound→addChannel()](#f-sound.addChannel). Returns 1 if a source was removed, 0 if the source wasn’t in a channel."] pub removeSource : :: core :: option :: Option < unsafe extern "C" fn (source : * mut SoundSource) -> core :: ffi :: c_int > , pub signal : * const playdate_sound_signal , pub getError : :: core :: option :: Option < unsafe extern "C" fn () -> * const core :: ffi :: c_char > , }
#[test]
fn bindgen_test_layout_playdate_sound() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_sound> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_sound>(),
	           96usize,
	           concat!("Size of: ", stringify!(playdate_sound))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_sound>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_sound))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).channel) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(channel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).fileplayer) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(fileplayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sample) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(sample)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sampleplayer) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(sampleplayer)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).synth) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(synth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(sequence)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).effect) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(effect)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).lfo) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(lfo)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).envelope) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(envelope)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).source) as usize - ptr as usize },
	           36usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(source)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).controlsignal) as usize - ptr as usize },
	           40usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(controlsignal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).track) as usize - ptr as usize },
	           44usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(track)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).instrument) as usize - ptr as usize },
	           48usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(instrument)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getCurrentTime) as usize - ptr as usize },
	           52usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(getCurrentTime)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addSource) as usize - ptr as usize },
	           56usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(addSource)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getDefaultChannel) as usize - ptr as usize },
	           60usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(getDefaultChannel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addChannel) as usize - ptr as usize },
	           64usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(addChannel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeChannel) as usize - ptr as usize },
	           68usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(removeChannel)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMicCallback) as usize - ptr as usize },
	           72usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(setMicCallback)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getHeadphoneState) as usize - ptr as usize },
	           76usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(getHeadphoneState)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOutputsActive) as usize - ptr as usize },
	           80usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(setOutputsActive)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).removeSource) as usize - ptr as usize },
	           84usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(removeSource)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).signal) as usize - ptr as usize },
	           88usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(signal)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getError) as usize - ptr as usize },
	           92usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_sound),
		"::",
		stringify!(getError)
	)
	);
}
impl Default for playdate_sound {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_display {
	#[doc = "`int playdate->display->getWidth(void)`\n\nReturns the width of the display, taking the current scale into account; e.g., if the scale is 2, this function returns 200 instead of 400.\n\nEquivalent to [`playdate.display.getWidth()`](./Inside%20Playdate.html#f-display.getWidth) in the Lua API."]
	pub getWidth: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
	#[doc = "`int playdate->display->getHeight(void)`\n\nReturns the height of the display, taking the current scale into account; e.g., if the scale is 2, this function returns 120 instead of 240.\n\nEquivalent to [`playdate.display.getHeight()`](./Inside%20Playdate.html#f-display.getHeight) in the Lua API."]
	pub getHeight: ::core::option::Option<unsafe extern "C" fn() -> core::ffi::c_int>,
	#[doc = "`void playdate->display->setRefreshRate(float rate)`\n\nSets the nominal refresh rate in frames per second. The default is 30 fps, which is a recommended figure that balances animation smoothness with performance and power considerations. Maximum is 50 fps.\n\nIf *rate* is 0, the game’s update callback (either Lua’s `playdate.update()` or the function specified by [playdate→system→setUpdateCallback()](#f-system.setUpdateCallback)) is called as soon as possible. Since the display refreshes line-by-line, and unchanged lines aren’t sent to the display, the update cycle will be faster than 30 times a second but at an indeterminate rate.\n\nEquivalent to [`playdate.display.setRefreshRate()`](./Inside%20Playdate.html#f-display.setRefreshRate) in the Lua API."]
	pub setRefreshRate: ::core::option::Option<unsafe extern "C" fn(rate: core::ffi::c_float)>,
	#[doc = "`void playdate->display->setInverted(int flag)`\n\nIf *flag* evaluates to true, the frame buffer is drawn inverted—black instead of white, and vice versa.\n\nEquivalent to [`playdate.display.setInverted()`](./Inside%20Playdate.html#f-display.setInverted) in the Lua API."]
	pub setInverted: ::core::option::Option<unsafe extern "C" fn(flag: core::ffi::c_int)>,
	#[doc = "`void playdate->display->setScale(unsigned int s)`\n\nSets the display scale factor. Valid values for *scale* are 1, 2, 4, and 8.\n\nThe top-left corner of the frame buffer is scaled up to fill the display; e.g., if the scale is set to 4, the pixels in rectangle [0,100] x [0,60] are drawn on the screen as 4 x 4 squares.\n\nEquivalent to [`playdate.display.setScale()`](./Inside%20Playdate.html#f-display.setScale) in the Lua API."]
	pub setScale: ::core::option::Option<unsafe extern "C" fn(s: core::ffi::c_uint)>,
	#[doc = "`void playdate->display->setMosaic(unsigned int x, unsigned int y)`\n\nAdds a mosaic effect to the display. Valid *x* and *y* values are between 0 and 3, inclusive.\n\nEquivalent to [`playdate.display.setMosaic`](./Inside%20Playdate.html#f-display.setMosaic) in the Lua API."]
	pub setMosaic: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_uint, y: core::ffi::c_uint)>,
	#[doc = "`void playdate->display->setFlipped(int x, int y)`\n\nFlips the display on the x or y axis, or both.\n\nEquivalent to [`playdate.display.setFlipped()`](./Inside%20Playdate.html#f-display.setFlipped) in the Lua API."]
	pub setFlipped: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int, y: core::ffi::c_int)>,
	#[doc = "`void playdate->display->setOffset(int dx, int dy)`\n\nOffsets the display by the given amount. Areas outside of the displayed area are filled with the current [background color](#f-graphics.setBackgroundColor).\n\nEquivalent to [`playdate.display.setOffset()`](./Inside%20Playdate.html#f-display.setOffset) in the Lua API."]
	pub setOffset: ::core::option::Option<unsafe extern "C" fn(x: core::ffi::c_int, y: core::ffi::c_int)>,
}
#[test]
fn bindgen_test_layout_playdate_display() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_display> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_display>(),
	           32usize,
	           concat!("Size of: ", stringify!(playdate_display))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_display>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_display))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getWidth) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(getWidth)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getHeight) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(getHeight)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setRefreshRate) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setRefreshRate)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setInverted) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setInverted)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setScale) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setScale)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setMosaic) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setMosaic)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setFlipped) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setFlipped)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).setOffset) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_display),
		"::",
		stringify!(setOffset)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PDScore {
	pub rank: u32,
	pub value: u32,
	pub player: *mut core::ffi::c_char,
}
#[test]
fn bindgen_test_layout_PDScore() {
	const UNINIT: ::core::mem::MaybeUninit<PDScore> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDScore>(),
	           12usize,
	           concat!("Size of: ", stringify!(PDScore))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDScore>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PDScore))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).rank) as usize - ptr as usize },
	           0usize,
	           concat!("Offset of field: ", stringify!(PDScore), "::", stringify!(rank))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).value) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(PDScore), "::", stringify!(value))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).player) as usize - ptr as usize },
	           8usize,
	           concat!("Offset of field: ", stringify!(PDScore), "::", stringify!(player))
	);
}
impl Default for PDScore {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PDScoresList {
	pub boardID: *mut core::ffi::c_char,
	pub count: core::ffi::c_uint,
	pub lastUpdated: u32,
	pub playerIncluded: core::ffi::c_int,
	pub limit: core::ffi::c_uint,
	pub scores: *mut PDScore,
}
#[test]
fn bindgen_test_layout_PDScoresList() {
	const UNINIT: ::core::mem::MaybeUninit<PDScoresList> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDScoresList>(),
	           24usize,
	           concat!("Size of: ", stringify!(PDScoresList))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDScoresList>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PDScoresList))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).boardID) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(boardID)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).count) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(count)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).lastUpdated) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(lastUpdated)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).playerIncluded) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(playerIncluded)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).limit) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(limit)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).scores) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDScoresList),
		"::",
		stringify!(scores)
	)
	);
}
impl Default for PDScoresList {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PDBoard {
	pub boardID: *mut core::ffi::c_char,
	pub name: *mut core::ffi::c_char,
}
#[test]
fn bindgen_test_layout_PDBoard() {
	const UNINIT: ::core::mem::MaybeUninit<PDBoard> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDBoard>(),
	           8usize,
	           concat!("Size of: ", stringify!(PDBoard))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDBoard>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PDBoard))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).boardID) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDBoard),
		"::",
		stringify!(boardID)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
	           4usize,
	           concat!("Offset of field: ", stringify!(PDBoard), "::", stringify!(name))
	);
}
impl Default for PDBoard {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PDBoardsList {
	pub count: core::ffi::c_uint,
	pub lastUpdated: u32,
	pub boards: *mut PDBoard,
}
#[test]
fn bindgen_test_layout_PDBoardsList() {
	const UNINIT: ::core::mem::MaybeUninit<PDBoardsList> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PDBoardsList>(),
	           12usize,
	           concat!("Size of: ", stringify!(PDBoardsList))
	);
	assert_eq!(
	           ::core::mem::align_of::<PDBoardsList>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PDBoardsList))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).count) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDBoardsList),
		"::",
		stringify!(count)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).lastUpdated) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDBoardsList),
		"::",
		stringify!(lastUpdated)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).boards) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(PDBoardsList),
		"::",
		stringify!(boards)
	)
	);
}
impl Default for PDBoardsList {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
pub type AddScoreCallback =
	::core::option::Option<unsafe extern "C" fn(score: *mut PDScore, errorMessage: *const core::ffi::c_char)>;
pub type PersonalBestCallback =
	::core::option::Option<unsafe extern "C" fn(score: *mut PDScore, errorMessage: *const core::ffi::c_char)>;
pub type BoardsListCallback =
	::core::option::Option<unsafe extern "C" fn(boards: *mut PDBoardsList,
	                                            errorMessage: *const core::ffi::c_char)>;
pub type ScoresCallback = ::core::option::Option<unsafe extern "C" fn(scores: *mut PDScoresList,
                                                                      errorMessage: *const core::ffi::c_char)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct playdate_scoreboards {
	pub addScore: ::core::option::Option<unsafe extern "C" fn(boardId: *const core::ffi::c_char,
	                                                          value: u32,
	                                                          callback: AddScoreCallback)
	                                                          -> core::ffi::c_int>,
	pub getPersonalBest: ::core::option::Option<unsafe extern "C" fn(boardId: *const core::ffi::c_char,
	                                                                 callback: PersonalBestCallback)
	                                                                 -> core::ffi::c_int>,
	pub freeScore: ::core::option::Option<unsafe extern "C" fn(score: *mut PDScore)>,
	pub getScoreboards:
		::core::option::Option<unsafe extern "C" fn(callback: BoardsListCallback) -> core::ffi::c_int>,
	pub freeBoardsList: ::core::option::Option<unsafe extern "C" fn(boardsList: *mut PDBoardsList)>,
	pub getScores: ::core::option::Option<unsafe extern "C" fn(boardId: *const core::ffi::c_char,
	                                                           callback: ScoresCallback)
	                                                           -> core::ffi::c_int>,
	pub freeScoresList: ::core::option::Option<unsafe extern "C" fn(scoresList: *mut PDScoresList)>,
}
#[test]
fn bindgen_test_layout_playdate_scoreboards() {
	const UNINIT: ::core::mem::MaybeUninit<playdate_scoreboards> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<playdate_scoreboards>(),
	           28usize,
	           concat!("Size of: ", stringify!(playdate_scoreboards))
	);
	assert_eq!(
	           ::core::mem::align_of::<playdate_scoreboards>(),
	           4usize,
	           concat!("Alignment of ", stringify!(playdate_scoreboards))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).addScore) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(addScore)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getPersonalBest) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(getPersonalBest)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeScore) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(freeScore)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getScoreboards) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(getScoreboards)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeBoardsList) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(freeBoardsList)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).getScores) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(getScores)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).freeScoresList) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(playdate_scoreboards),
		"::",
		stringify!(freeScoresList)
	)
	);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[must_use]
pub struct PlaydateAPI {
	pub system: *const playdate_sys,
	pub file: *const playdate_file,
	pub graphics: *const playdate_graphics,
	pub sprite: *const playdate_sprite,
	pub display: *const playdate_display,
	pub sound: *const playdate_sound,
	pub lua: *const playdate_lua,
	pub json: *const playdate_json,
	pub scoreboards: *const playdate_scoreboards,
}
#[test]
fn bindgen_test_layout_PlaydateAPI() {
	const UNINIT: ::core::mem::MaybeUninit<PlaydateAPI> = ::core::mem::MaybeUninit::uninit();
	let ptr = UNINIT.as_ptr();
	assert_eq!(
	           ::core::mem::size_of::<PlaydateAPI>(),
	           36usize,
	           concat!("Size of: ", stringify!(PlaydateAPI))
	);
	assert_eq!(
	           ::core::mem::align_of::<PlaydateAPI>(),
	           4usize,
	           concat!("Alignment of ", stringify!(PlaydateAPI))
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).system) as usize - ptr as usize },
	           0usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(system)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).file) as usize - ptr as usize },
	           4usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(file)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).graphics) as usize - ptr as usize },
	           8usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(graphics)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sprite) as usize - ptr as usize },
	           12usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(sprite)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).display) as usize - ptr as usize },
	           16usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(display)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).sound) as usize - ptr as usize },
	           20usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(sound)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).lua) as usize - ptr as usize },
	           24usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(lua)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).json) as usize - ptr as usize },
	           28usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(json)
	)
	);
	assert_eq!(
	           unsafe { ::core::ptr::addr_of!((*ptr).scoreboards) as usize - ptr as usize },
	           32usize,
	           concat!(
		"Offset of field: ",
		stringify!(PlaydateAPI),
		"::",
		stringify!(scoreboards)
	)
	);
}
impl Default for PlaydateAPI {
	fn default() -> Self {
		let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
		unsafe {
			::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
			s.assume_init()
		}
	}
}
#[repr(u8)]
#[must_use]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)]
pub enum PDSystemEvent {
	kEventInit = 0,
	kEventInitLua = 1,
	kEventLock = 2,
	kEventUnlock = 3,
	kEventPause = 4,
	kEventResume = 5,
	kEventTerminate = 6,
	kEventKeyPressed = 7,
	kEventKeyReleased = 8,
	kEventLowPower = 9,
}