summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java
blob: 8ba01edff438dbc7b8f70f6d054eda13f7c854a6 (plain)
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
/**********************************************************************
 * Copyright (c) 2003, 2011 IBM Corp.
 * Portions Copyright (c) 1983-2002, Apple Computer, Inc.
 *
 * All rights reserved.  This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 **********************************************************************/
package org.eclipse.swt.internal.carbon;

 
import org.eclipse.swt.internal.*;

public class OS extends C {
	static {
		Library.loadLibrary ("swt-pi");
	}

	public static final int VERSION;
	static {
		int [] response = new int [1];
		OS.Gestalt (OS.gestaltSystemVersion, response);
		VERSION = response [0] & 0xffff;		
	}

	/** Constants */
	public static final int APPL = ('A'<<24) + ('P'<<16) + ('P'<<8) + 'L';
	public static final int RGBDirect = 16;
	public static final int alphaLock = 0x0400;
	public static final int badDragFlavorErr = -1852;
	public static final int bold = 1;
	public static final int cantGetFlavorErr = -1854;
	public static final int checkMark = 18;
	public static final int cmdKey = 1 << 8;
	public static final int controlKey = 1 << 12;
	public static final int CSSM_CERT_X_509v3 = 0x3;
	public static final int diamondMark = 19;
	public static final int dragNotAcceptedErr = -1857;
	public static final int errControlIsNotEmbedder = -30590;
	public static final int errDataBrowserItemNotFound = -4971;
	public static final int errUnknownControl = -30584;
	public static final int eventLoopTimedOutErr = -9875;
	public static final int eventNotHandledErr = -9874;
	public static final int eventParameterNotFoundErr = -9870;
	public static final int gestaltSystemVersion = ('s'<<24) + ('y'<<16) + ('s'<<8) + 'v';
	public static final int inContent = 3;
	public static final int inMenuBar = 1;
	public static final int inStructure = 15;
	public static final int inZoomIn = 7;
	public static final int inZoomOut = 8;
	public static final int inToolbarButton = 13;	
	public static final int italic = 2;
	public static final int k24RGBPixelFormat = 0x00000018;
	public static final int k32ARGBPixelFormat = 0x00000020;
	public static final int kActivateAndHandleClick = 3;
	public static final int kAppearanceEventClass = ('a'<<24) + ('p'<<16) + ('p'<<8) + 'r';
	public static final int kAEAppearanceChanged = ('t'<<24) + ('h'<<16) + ('m'<<8) + 'e';
	public static final int kAESystemFontChanged = ('s'<<24) + ('y'<<16) + ('s'<<8) + 'f';
	public static final int kAESmallSystemFontChanged = ('s'<<24) + ('s'<<16) + ('f'<<8) + 'n';
	public static final int kAEViewsFontChanged = ('v'<<24) + ('f'<<16) + ('n'<<8) + 't';
	public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
	public static final int kAEOpenDocuments = ('o' << 24) + ('d' << 16) + ('o' << 8) + 'c';
	public static final int keyDirectObject = ('-' << 24) + ('-' << 16) + ('-' << 8) + '-';
	public static final int typeAEList = ('l' << 24) + ('i' << 16) + ('s' << 8) + 't';
	public static final int kCoreEventClass = ('a'<<24) + ('e'<<16) + ('v'<<8) + 't';
	public static final int kAlertCautionAlert = 2;
	public static final int kAlertCautionIcon = ('c'<<24) + ('a'<<16) + ('u'<<8) + 't';
	public static final int kAlertNoteAlert = 1;
	public static final int kAlertNoteIcon = ('n'<<24) + ('o'<<16) + ('t'<<8) + 'e';
	public static final int kAlertPlainAlert = 3;
	public static final int kAlertStopAlert = 0;
	public static final int kAlertStopIcon = ('s'<<24) + ('t'<<16) + ('o'<<8) + 'p';
	public static final int kAlertDefaultOKText           = -1;
	public static final int kAlertDefaultCancelText       = -1;
	public static final int kAlertStdAlertOKButton        = 1;
	public static final int kAlertStdAlertCancelButton    = 2;
	public static final int kAlertStdAlertOtherButton     = 3;
	public static final int kAtSpecifiedOrigin = 0;
	public static final int kATSFontContextGlobal = 1;
	public static final int kATSFontContextLocal = 2;
	public static final int kATSOptionFlagsDefault = 0;
	public static final int kATSOptionFlagsDefaultScope = 0x00000000 << 12;
	public static final int kATSFontFormatUnspecified = 0;
	public static final int kATSDeletedGlyphcode = 0xFFFF;
	public static final int kATSLineLastNoJustification = 0x00000020;
	public static final int kATSUAscentTag = 284;
	public static final int kATSUCrossStreamShiftTag = 269;
	public static final int kATSUDescentTag = 285;
	public static final int kATSUDirectDataBaselineDeltaFixedArray = 1;
	public static final int kATSUDirectDataLayoutRecordATSLayoutRecordVersion1 = 100;
	public static final int kATSUDirectDataLayoutRecordATSLayoutRecordCurrent = kATSUDirectDataLayoutRecordATSLayoutRecordVersion1;
	public static final int kATSUFullJustification = 0x40000000;
	public static final int kATSUNoJustification = 0x00000000;
	public static final int kATSUImposeWidthTag = 266;
	public static final int kATSULineAscentTag = 8;
	public static final int kATSULineDescentTag = 9;
	public static final int kATSULineDirectionTag = 3;
	public static final int kATSLineUseDeviceMetrics = 0x01000000;
	public static final int kATSLineKeepSpacesOutOfMargin = 0x00000008;
	public static final int kATSUStartAlignment = 0x00000000;
	public static final int kATSUEndAlignment = 0x40000000;
	public static final int kATSUCenterAlignment = 0x20000000;
	public static final int kATSUByCharacter = 0;
	public static final int kATSUByTypographicCluster = 1;
	public static final int kATSUByWord = 2;
	public static final int kATSUByCharacterCluster = 3;
	public static final int kATSUColorTag = 263;
	public static final int kATSUCGContextTag = 32767;
	public static final int kATSUFontTag = 261;
	public static final int kATSULineFlushFactorTag = 5;
	public static final int kATSULineHighlightCGColorTag = 17;
	public static final int kATSULineJustificationFactorTag = 4;
	public static final int kATSULineLayoutOptionsTag = 7;
	public static final int kATSULineWidthTag = 1;
	public static final int kATSULeftToRightBaseDirection = 0;
	public static final int kATSURightToLeftBaseDirection = 1;
	public static final int kATSURGBAlphaColorTag = 288;
	public static final int kATSUQDBoldfaceTag = 256;
	public static final int kATSUQDItalicTag = 257;
	public static final int kATSUQDUnderlineTag = 258;
	public static final int kATSUStyleStrikeThroughTag = 292;
	public static final int kATSUStyleUnderlineColorOptionTag = 291;
	public static final int kATSUStyleUnderlineCountOptionTag = 290;
	public static final int kATSUStyleStrikeThroughColorOptionTag = 294;
	public static final int kATSUStyleSingleLineCount = 1;
	public static final int kATSUStyleDoubleLineCount = 2;
	public static final int kATSULeftTab = 0;
	public static final int kATSUseDeviceOrigins = 1;
	public static final int kATSUseLineHeight = 0x7FFFFFFF;
	public static final int kATSUSizeTag = 262;
	public static final int kATSUToTextEnd = 0xFFFFFFFF;
	public static final int kCFRunLoopBeforeWaiting = 1 << 5;
	public static final int kCFRunLoopAfterWaiting = 1 << 6;
	public static final int kCFRunLoopRunFinished = 1;
	public static final int kCFRunLoopRunStopped = 2;
	public static final int kCFRunLoopRunTimedOut = 3;
	public static final int kCFRunLoopRunHandledSource = 4;
	public static final int kAvailBoundsChangedForDock = 1 << 0;
	public static final int kCGBlendModeNormal = 0;
	public static final int kCGBlendModeDifference = 10;
	public static final int kCGBitmapByteOrderDefault = 0 << 12;
	public static final int kCGBitmapByteOrder16Little = 1 << 12;
	public static final int kCGBitmapByteOrder32Little = 2 << 12;
	public static final int kCGBitmapByteOrder16Big = 3 << 12;
	public static final int kCGBitmapByteOrder32Big = 4 << 12;
	public static final int kCGBitmapByteOrder16Host = __BIG_ENDIAN__() ? kCGBitmapByteOrder16Big : kCGBitmapByteOrder16Little;
	public static final int kCGBitmapByteOrder32Host = __BIG_ENDIAN__() ? kCGBitmapByteOrder32Big : kCGBitmapByteOrder32Little;
	public static final int kCFAllocatorDefault = 0;
	public static final int kCFNumberFormatterDecimalStyle = 1;
	public static final int kCFURLPOSIXPathStyle = 0;
	public static final int kCFStringEncodingASCII = 0x0600;
	public static final int kCFStringEncodingMacRoman = 0;
	public static final int kCFStringEncodingUTF8 = 0x08000100;
	public static final int kCFStringEncodingUnicode = 0x0100;
	public static final int kCGEncodingMacRoman = 1;
	public static final int kCGImageAlphaNone = 0;
	public static final int kCGImageAlphaPremultipliedLast = 1;
	public static final int kCGImageAlphaPremultipliedFirst = 2;
	public static final int kCGImageAlphaLast = 3;
	public static final int kCGImageAlphaFirst = 4;
	public static final int kCGImageAlphaNoneSkipLast = 5;
	public static final int kCGImageAlphaNoneSkipFirst = 6;
	public static final int kCGInterpolationDefault = 0;
	public static final int kCGInterpolationNone = 1;
	public static final int kCGInterpolationLow = 2;
	public static final int kCGInterpolationHigh = 3;
	public static final int kCGLineCapButt = 0;
	public static final int kCGLineCapRound = 1;
	public static final int kCGLineCapSquare = 2;
	public static final int kCGLineJoinMiter = 0;
	public static final int kCGLineJoinRound = 1;
	public static final int kCGLineJoinBevel = 2;
	public static final int kCGPathElementMoveToPoint = 0;
	public static final int kCGPathElementAddLineToPoint = 1;
	public static final int kCGPathElementAddQuadCurveToPoint = 2;
	public static final int kCGPathElementAddCurveToPoint = 3;
	public static final int kCGPathElementCloseSubpath = 4; 
	public static final int kCGPatternTilingNoDistortion = 0;
	public static final int kCGPatternTilingConstantSpacingMinimalDistortion = 1;
	public static final int kCGPatternTilingConstantSpacing = 2;
	public static final int kCGRenderingIntentDefault = 0;
	public static final int kCGTextFill = 0;
	public static final int kCGTextInvisible = 3;
	public static final int kCMHelpItemRemoveHelp = 3;
	public static final int kColorPickerDialogIsMoveable =  1;
	public static final int kColorPickerDialogIsModal = 2;
	public static final int kControlBehaviorPushbutton = 0;
	public static final int kControlBehaviorToggles = 0x0100;
	public static final int kControlBevelButtonAlignCenter = 0;
	public static final int kControlBevelButtonAlignLeft  = 1;
	public static final int kControlBevelButtonAlignRight = 2;
	public static final int kControlBevelButtonAlignTextCenter = 1;
	public static final int kControlBevelButtonAlignTextFlushRight = -1;
	public static final int kControlBevelButtonAlignTextFlushLeft = -2;
	public static final int kControlBevelButtonNormalBevelProc = 33;
	public static final int kControlBevelButtonSmallBevel = 0;
	public static final int kControlBevelButtonLargeBevel = 2;
	public static final int kControlBevelButtonMenuRefTag = ('m'<<24) + ('h'<<16) + ('n'<<8) + 'd';
	public static final int kControlBevelButtonNormalBevel = 1;
	public static final int kControlBevelButtonPlaceBelowGraphic = 3;
	public static final int kControlBevelButtonPlaceToRightOfGraphic = 1;
	public static final int kControlBevelButtonKindTag = ('b'<<24) + ('e'<<16) + ('b'<<8) + 'k';
	public static final int kControlBevelButtonTextAlignTag = ('t'<<24) + ('a'<<16) + ('l'<<8) + 'i';
	public static final int kControlBevelButtonTextPlaceTag = ('t'<<24) + ('p'<<16) + ('l'<<8) + 'c';
	public static final int kControlBevelButtonGraphicAlignTag = ('g'<<24) + ('a'<<16) + ('l'<<8) + 'i';
	public static final int kControlBoundsChangeSizeChanged = 1 << 2;
	public static final int kControlBoundsChangePositionChanged = 1 << 3;
	public static final int kControlClockTypeHourMinute = 0;
	public static final int kControlClockTypeHourMinuteSecond = 1;
	public static final int kControlClockTypeMonthDayYear = 2;
	public static final int kControlClockTypeMonthYear = 3;
	public static final int kControlClockFlagStandard = 0;
	public static final int kControlClockFlagDisplayOnly = 1;
	public static final int kControlClockFlagLive = 2;
	public static final int kControlClockLongDateTag = ('d'<<24) + ('a'<<16) + ('t'<<8) + 'e';
	public static final int kControlCheckBoxAutoToggleProc = 371;
	public static final int kControlContentCGImageRef = 134;
	public static final int kControlContentCIconHandle = 130;
	public static final int kControlContentIconRef = 132;
	public static final int kControlContentMetaPart = -2;
	public static final int kControlContentTextOnly = 0;
	public static final int kControlDataBrowserIncludesFrameAndFocusTag = ('b'<<24) + ('r'<<16) + ('d'<<8) + 'r';
	public static final int kControlDownButtonPart = 21;
	public static final int kControlEditTextCFStringTag = ('c'<<24) + ('f'<<16) + ('s'<<8) + 't';
	public static final int kControlEditTextLockedTag = ('l'<<24) + ('o'<<16) + ('c'<<8) + 'k';
	public static final int kControlEditTextSingleLineTag = ('s'<<24) + ('g'<<16) + ('l'<<8) + 'c';
	public static final int kControlEditTextSelectionTag = ('s'<<24) + ('e'<<16) + ('l'<<8) + 'e';
	public static final int kControlEditTextTextTag = ('t'<<24) + ('e'<<16) + ('x'<<8) + 't';
	public static final int kControlEditTextInsertCFStringRefTag = ('i'<<24) + ('n'<<16) + ('c'<<8) + 'f';
	public static final int kControlEditTextPasswordCFStringTag = ('p'<<24) + ('w'<<16) + ('c'<<8) + 'f';
	public static final int kControlEditTextPart = 5;
	public static final int kControlEntireControl = 0;
	public static final int kControlFocusNoPart = 0;
	public static final int kControlFontStyleTag = ('f'<<24) + ('o'<<16) + ('n'<<8) + 't';
	public static final int kControlGetsFocusOnClick = 1 << 8;
	public static final int kControlGroupBoxTextTitleProc = 160;
	public static final int kControlHandlesTracking = 1 << 5;
	public static final int kControlIconTransformTag = ('t'<<24) + ('r'<<16) + ('f'<<8) + 'm';
	public static final int kControlIndicatorPart = 129;
	public static final int kControlKindScrollBar = ('s'<<24) + ('b'<<16) + ('a'<<8) + 'r';
	public static final int kControlMsgApplyTextColor = 30;
	public static final int kControlMsgSetUpBackground = 23;
	public static final int kControlPageDownPart = 23;
	public static final int kControlPageUpPart = 22;
	public static final int kControlPopupArrowEastProc = 192;
	public static final int kControlPopupArrowOrientationEast = 0;
	public static final int kControlPopupArrowOrientationWest = 1;
	public static final int kControlPopupArrowOrientationNorth = 2;
	public static final int kControlPopupArrowOrientationSouth = 3;
	public static final int kControlPopupArrowSizeNormal  = 0;
	public static final int kControlPopupArrowSizeSmall   = 1;
	public static final int kControlPopupButtonProc = 400;
	public static final int kControlProgressBarIndeterminateTag = ('i'<<24) + ('n'<<16) + ('d'<<8) + 'e';
	public static final int kControlProgressBarProc = 80;
	public static final int kControlPushButtonProc = 368;
	public static final int kControlRadioButtonAutoToggleProc = 372;
	public static final int kControlScrollBarLiveProc = 386;
	public static final int kControlSearchFieldCancelPart = 30;
	public static final int kControlSearchFieldMenuPart = 31;
	public static final int kControlSeparatorLineProc = 144;
	public static final int kControlSizeTag = ('s'<<24) + ('i'<<16) + ('z'<<8) + 'e';
	public static final int kControlSizeSmall = 1;
	public static final int kControlSliderLiveFeedback = (1 << 0);
	public static final int kControlSliderNonDirectional = (1 << 3);
	public static final int kControlSliderProc = 48;
	public static final int kControlClickableMetaPart = -4;
	public static final int kControlStructureMetaPart = -1;
	public static final int kControlSupportsEmbedding = 1 << 1;
	public static final int kControlSupportsFocus = 1 << 2;
	public static final int kControlStaticTextIsMultilineTag = ('s'<<24) + ('t'<<16) + ('i'<<8) + 'm';
	public static final int kControlStaticTextCFStringTag = ('c'<<24) + ('f'<<16) + ('s'<<8) + 't';
	public static final int kControlTabContentRectTag = ('r'<<24) + ('e'<<16) + ('c'<<8) + 't';
	public static final int kControlTabDirectionNorth = 0;
	public static final int kControlTabDirectionSouth = 1;
	public static final int kControlTabImageContentTag = ('c'<<24) + ('o'<<16) + ('n'<<8) + 't';
	public static final int kControlTabInfoVersionOne = 1;
	public static final int kControlTabInfoTag = ('t'<<24) + ('a'<<16) + ('b'<<8) + 'i';
	public static final int kControlTabSizeLarge = 0;
	public static final int kControlTabSmallProc = 129;
	public static final int kControlUpButtonPart = 20;
	public static final int kControlUserPaneDrawProcTag = ('d'<<24) + ('r'<<16) + ('a'<<8) + 'w';
	public static final int kControlUserPaneHitTestProcTag = ('h'<<24) + ('i'<<16) + ('t'<<8) + 't';
	public static final int kControlUserPaneProc = 256;
	public static final int kControlUserPaneTrackingProcTag = ('t'<<24) + ('r'<<16) + ('a'<<8) + 'k';
	public static final int kControlUseBackColorMask = 16;
	public static final int kControlUseFontMask = 0x1;
	public static final int kControlUseForeColorMask = 8;
	public static final int kControlUseJustMask = 0x0040;
	public static final int kControlUseSizeMask = 0x4;
	public static final int kControlUseThemeFontIDMask = 0x80;
	public static final int kControlUseFaceMask = 0x2;
	public static final int kControlWantsActivate = 1 << 4;
	public static final int kCurrentProcess = 2;
	public static final int kDataBrowserAttributeListViewAlternatingRowColors = (1 << 1);
	public static final int kDataBrowserAttributeListViewDrawColumnDividers = (1 << 2);
	public static final int kDataBrowserCheckboxType = ('c'<<24) + ('h'<<16) + ('b'<<8) + 'x';
	public static final int kDataBrowserCmdTogglesSelection = 1 << 3;
	public static final int kDataBrowserContainerClosed = 10;
	public static final int kDataBrowserContainerClosing = 9;
	public static final int kDataBrowserContainerIsClosableProperty = 6;
	public static final int kDataBrowserContainerIsOpen = 1 << 1;
	public static final int kDataBrowserContainerIsOpenableProperty = 5;
	public static final int kDataBrowserContainerIsSortableProperty = 7;
	public static final int kDataBrowserContainerOpened = 8;
	public static final int kDataBrowserCustomType = 0x3F3F3F3F;
	public static final int kDataBrowserDefaultPropertyFlags = 0;
	public static final int kDataBrowserDragSelect = 1 << 0;
	public static final int kDataBrowserIconAndTextType = ('t'<<24) + ('i'<<16) + ('c'<<8) + 'n';
	public static final int kDataBrowserItemAnyState = -1;
	public static final int kDataBrowserItemIsActiveProperty = 1;
	public static final int kDataBrowserItemIsContainerProperty = 4;
	public static final int kDataBrowserItemIsDragTarget  = 1 << 2;
	public static final int kDataBrowserItemIsEditableProperty = 3;
	public static final int kDataBrowserItemIsSelectableProperty = 2;
	public static final int kDataBrowserItemIsSelected = 1 << 0;
	public static final int kDataBrowserItemNoProperty = 0;
	public static final int kDataBrowserItemParentContainerProperty = 11;
	public static final int kDataBrowserItemsAdd = 0;
	public static final int kDataBrowserItemsAssign = 1;
	public static final int kDataBrowserItemsRemove = 3;
	public static final int kDataBrowserItemRemoved = 2;
	public static final int kDataBrowserItemSelected = 5;
	public static final int kDataBrowserItemDeselected = 6;
	public static final int kDataBrowserItemDoubleClicked = 7;
	public static final int kDataBrowserLatestCallbacks = 0;
	public static final int kDataBrowserLatestCustomCallbacks = 0;
	public static final int kDataBrowserListView = ('l'<<24) + ('s'<<16) + ('t'<<8) + 'v';
	public static final int kDataBrowserListViewLatestHeaderDesc = 0;
	public static final int kDataBrowserListViewMovableColumn = 1 << OS.kDataBrowserViewSpecificFlagsOffset + 1;
	public static final int kDataBrowserListViewSelectionColumn = 1 << OS.kDataBrowserViewSpecificFlagsOffset;
	public static final int kDataBrowserListViewSortableColumn = 1 << 18;
	public static final int kDataBrowserNeverEmptySelectionSet = 1 << 6;
	public static final int kDataBrowserMetricCellContentInset = 1;
	public static final int kDataBrowserMetricIconAndTextGap = 2;
	public static final int kDataBrowserMetricDisclosureColumnEdgeInset = 3;
	public static final int kDataBrowserMetricDisclosureTriangleAndContentGap = 4;
	public static final int kDataBrowserMetricDisclosureColumnPerDepthGap = 5;
	public static final int kDataBrowserNoItem = 0;
	public static final int kDataBrowserOrderUndefined = 0;
	public static final int kDataBrowserOrderIncreasing = 1;
	public static final int kDataBrowserOrderDecreasing = 2;
	public static final int kDataBrowserPropertyEnclosingPart = 0;
	public static final int kDataBrowserPropertyContentPart =  ('-'<<24) + ('-'<<16) + ('-'<<8) + '-';
	public static final int kDataBrowserPropertyDisclosurePart =  ('d'<<24) + ('i'<<16) + ('s'<<8) + 'c';
	public static final int kDataBrowserPropertyIsMutable = 1 << 0;
	public static final int kDataBrowserRevealOnly = 0;
	public static final int kDataBrowserRevealAndCenterInView = 1 << 0;
	public static final int kDataBrowserRevealWithoutSelecting = 1 << 1;
	public static final int kDataBrowserSelectOnlyOne = 1 << 1;
	public static final int kDataBrowserUserStateChanged = 13;
	public static final int kDataBrowserUserToggledContainer = 16;
	public static final int kDataBrowserTextType = ('t'<<24) + ('e'<<16) + ('x'<<8) + 't';
	public static final int kDataBrowserTableViewFillHilite = 1;
	public static final int kDataBrowserAttributeAutoHideScrollBars = 1 << 3;
	public static final int kDataBrowserViewSpecificFlagsOffset = 16;
	public static final int kDocumentWindowClass = 6;
	public static final int kDragActionNothing = 0;
	public static final int kDragActionCopy = 1;
	public static final int kDragActionAlias = 1 << 1;
	public static final int kDragActionGeneric = 1 << 2;
	public static final int kDragActionPrivate = 1 << 3;
	public static final int kDragActionMove = 1 << 4;
	public static final int kDragActionDelete = 1 << 5;
	public static final int kDragActionAll = 0xFFFFFFFF;
	public static final int kDragStandardTranslucency = 0;
	public static final int kDragTrackingEnterHandler = 1;
	public static final int kDragTrackingEnterWindow = 2;
	public static final int kDragTrackingInWindow = 3;
	public static final int kDragTrackingLeaveWindow = 4;
	public static final int kDragTrackingLeaveHandler = 5;
	public static final int kEventAppleEvent = 1;
	public static final int kEventAppDeactivated = 2;
	public static final int kEventAppAvailableWindowBoundsChanged = 110;
	public static final int kEventAppFocusMenuBar = 8;
	public static final int kEventAttributeUserEvent = 1 << 0;
	public static final int kEventClassAppleEvent = ('e'<<24) + ('p'<<16) + ('p'<<8) + 'c';
	public static final int kEventClassApplication = ('a'<<24) + ('p'<<16) + ('p'<<8) + 'l';
	public static final int kEventClassCommand = ('c'<<24) + ('m'<<16) + ('d'<<8) + 's';
	public static final int kEventClassClockView = ('c'<<24) + ('l'<<16) + ('o'<<8) + 'c';
	public static final int kEventClassControl = ('c'<<24) + ('n'<<16) + ('t'<<8) + 'l';
	public static final int kEventClassFont= ('f'<<24) + ('o'<<16) + ('n'<<8) + 't';
	public static final int kEventClassHIObject = ('h'<<24) + ('i'<<16) + ('o'<<8) + 'b';
	public static final int kEventClassKeyboard = ('k'<<24) + ('e'<<16) + ('y'<<8) + 'b';
	public static final int kEventClassMenu = ('m'<<24) + ('e'<<16) + ('n'<<8) + 'u';
	public static final int kEventClassMouse = ('m'<<24) + ('o'<<16) + ('u'<<8) + 's';
	public static final int kEventClassScrollable = ('s'<<24) + ('c'<<16) + ('r'<<8) + 'l';
	public static final int kEventClassSearchField = ('s'<<24) + ('r'<<16) + ('f'<<8) + 'd';
	public static final int kEventClassTextInput = ('t'<<24) + ('e'<<16) + ('x'<<8) + 't';
	public static final int kEventClassWindow = ('w'<<24) + ('i'<<16) + ('n'<<8) + 'd';
	public static final int kEventClockDateOrTimeChanged = 1;
	public static final int kEventControlApplyBackground = 5;
	public static final int kEventControlActivate = 9;
  	public static final int kEventControlAddedSubControl = 152;
	public static final int kEventControlBoundsChanged = 154;
	public static final int kEventControlClick = 13;
	public static final int kEventControlContextualMenuClick = 12;
  	public static final int kEventControlDeactivate = 10;
	public static final int kEventControlDraw = 4;
	public static final int kControlFocusNextPart = -1;
	public static final int kEventControlGetClickActivation = 17;
	public static final int kEventControlGetFocusPart = 8;
	public static final int kEventControlGetPartRegion = 101;
	public static final int kEventControlHit = 1;
	public static final int kEventControlHitTest = 3;
	public static final int kEventControlSetCursor = 11;
	public static final int kEventControlSetFocusPart = 7;
	public static final int kEventParamControlRegion = ('c'<<24) + ('r'<<16) + ('g'<<8) + 'n';
	public static final int kEventParamControlSubControl = ('c'<<24) + ('s'<<16) + ('u'<<8) + 'b';
	public static final int kEventControlRemovingSubControl = 153;
	public static final int kEventControlOwningWindowChanged = 159;
	public static final int kEventControlVisibilityChanged = 157;	
	public static final int kEventControlTrack = 51;
	public static final int kEventPriorityStandard = 1;
	public static final double kEventDurationForever = -1.0;
	public static final double kEventDurationNoWait = 0.0;
	public static final int kEventParamEventRef = ('e'<<24) + ('v'<<16) + ('n'<<8) + 't';
	public static final int kEventFontSelection = 2;
	public static final int kEventFontPanelClosed = 1;
	public static final int kEventParamGrafPort =  ('g'<<24) + ('r'<<16) + ('a'<<8) + 'f';
	public static final int kEventHIObjectConstruct = 1;
	public static final int kEventHIObjectDestruct = 3;
	public static final int kEventMenuCalculateSize = 1004;
	public static final int kEventMenuClosed = 5;
	public static final int kEventMenuCreateFrameView = 1005;
	public static final int kEventMenuDrawItem = 102;
	public static final int kEventMenuDrawItemContent = 103;
	public static final int kEventMenuGetFrameBounds = 1006;
	public static final int kEventMenuMatchKey = 7;
	public static final int kEventMenuMeasureItemWidth = 100;
	public static final int kEventMenuOpening = 4;
	public static final int kEventMenuPopulate = 9;
	public static final int kEventMenuTargetItem = 6;
	public static final int kEventMouseButtonPrimary = 1;
	public static final int kEventMouseButtonSecondary = 2;
	public static final int kEventMouseButtonTertiary = 3;
	public static final int kEventMouseDown = 1;
	public static final int kEventMouseDragged = 6;
	public static final int kEventMouseEntered = 8;
	public static final int kEventMouseExited = 9;
	public static final int kEventMouseMoved = 5;
	public static final int kEventMouseUp = 2;
	public static final int kEventMouseWheelAxisX = 0;
	public static final int kEventMouseWheelAxisY = 1;
	public static final int kEventMouseWheelMoved = 10;
	public static final int kEventParamAEEventClass = ('e'<<24) + ('v'<<16) + ('c'<<8) + 'l';
	public static final int kEventParamAEEventID = ('e'<<24) + ('v'<<16) + ('t'<<8) + 'i';
	public static final int kEventParamATSUFontID = ('a'<<24) + ('u'<<16) + ('i'<<8) + 'd';
	public static final int kEventParamATSUFontSize = ('a'<<24) + ('u'<<16) + ('s'<<8) + 'z';
	public static final int kEventParamAttributes = ('a'<<24) + ('t'<<16) + ('t'<<8) + 'r';
	public static final int kEventParamBounds =  ('b'<<24) + ('o'<<16) + ('u'<<8) + 'n';
	public static final int kEventParamCGContextRef = ('c'<<24) + ('n'<<16) + ('t'<<8) + 'x';
	public static final int kEventParamClickActivation = ('c'<<24) + ('l'<<16) + ('a'<<8) + 'c';
	public static final int kEventParamClickCount = ('c'<<24) + ('c'<<16) + ('n'<<8) + 't';
	public static final int kEventParamControlPart= ('c'<<24) + ('p'<<16) + ('r'<<8) + 't';
	public static final int kEventParamControlRef = ('c'<<24) + ('t'<<16) + ('r'<<8) + 'l';
	public static final int kEventParamCurrentBounds = ('c'<<24) + ('r'<<16) + ('c'<<8) + 't';
	public static final int kEventParamDirectObject = ('-'<<24) + ('-'<<16) + ('-'<<8) + '-';
	public static final int kEventParamDictionary = ('d'<<24) + ('i'<<16) + ('c'<<8) + 't';
	public static final int kEventParamFMFontFamily = ('f'<<24) + ('m'<<16) + ('f'<<8) + 'm';
	public static final int kEventParamFMFontStyle = ('f'<<24) + ('m'<<16) + ('s'<<8) + 't';
	public static final int kEventParamFMFontSize = ('f'<<24) + ('m'<<16) + ('s'<<8) + 'z';
	public static final int kEventParamFontColor = ('f'<<24) + ('c'<<16) + ('l'<<8) + 'r';
	public static final int kEventParamKeyCode = ('k'<<24) + ('c'<<16) + ('o'<<8) + 'd';
	public static final int kEventParamKeyMacCharCodes = ('k'<<24) + ('c'<<16) + ('h'<<8) + 'r';
	public static final int kEventParamKeyModifiers = ('k'<<24) + ('m'<<16) + ('o'<<8) + 'd';
	public static final int kEventParamMenuCommand = ('m'<<24) + ('c'<<16) + ('m'<<8) + 'd';
	public static final int kEventParamMenuItemIndex = ('i'<<24) + ('t'<<16) + ('e'<<8) + 'm';
	public static final int kEventParamMenuItemBounds = ('m'<<24) + ('i'<<16) + ('t'<<8) + 'b';
	public static final int kEventParamMenuItemWidth = ('m'<<24) + ('i'<<16) + ('t'<<8) + 'w';
	public static final int kEventParamModalClickResult = ('w'<<24) + ('m'<<16) + ('c'<<8) + 'r';
	public static final int kEventParamModalWindow = ('m'<<24) + ('w'<<16) + ('i'<<8) + 'n';
	public static final int kEventParamWindowModality = ('w'<<24) + ('m'<<16) + ('o'<<8) + 'd';
	public static final int kEventParamMouseButton = ('m'<<24) + ('b'<<16) + ('t'<<8) + 'n';
	public static final int kEventParamMouseChord = ('c'<<24) + ('h'<<16) + ('o'<<8) + 'r';
	public static final int kEventParamMouseLocation = ('m'<<24) + ('l'<<16) + ('o'<<8) + 'c';
	public static final int kEventParamMouseWheelAxis = ('m'<<24) + ('w'<<16) + ('a'<<8) + 'x';
	public static final int kEventParamMouseWheelDelta = ('m'<<24) + ('w'<<16) + ('d'<<8) + 'l';
	public static final int kEventParamPreviousBounds = ('p'<<24) + ('r'<<16) + ('c'<<8) + 't';
	public static final int kEventParamOrigin = ('o'<<24) + ('r'<<16) + ('g'<<8) + 'n';
	public static final int kEventParamOriginalBounds = ('o'<<24) + ('r'<<16) + ('c'<<8) + 't';
	public static final int kEventParamReason =  ('w'<<24) + ('h'<<16) + ('y'<<8) + '?';
	public static final int kEventParamRgnHandle =  ('r'<<24) + ('g'<<16) + ('n'<<8) + 'h';
	public static final int kEventParamTextInputReplyLeadingEdge = ('t'<<24) + ('r'<<16) + ('l'<<8) + 'e';
	public static final int kEventParamTextInputReplyPoint = ('t'<<24) + ('r'<<16) + ('p'<<8) + 't';
	public static final int kEventParamTextInputReplyRegionClass = ('t'<<24) + ('r'<<16) + ('r'<<8) + 'g';
	public static final int kEventParamTextInputReplyText = ('t'<<24) + ('r'<<16) + ('t'<<8) + 'x';
	public static final int kEventParamTextInputReplyTextOffset = ('t'<<24) + ('r'<<16) + ('t'<<8) + 'o';
	public static final int kEventParamTextInputSendCurrentPoint = ('t'<<24) + ('s'<<16) + ('c'<<8) + 'p';
	public static final int kEventParamTextInputSendFixLen = ('t'<<24) + ('s'<<16) + ('f'<<8) + 'x';
	public static final int kEventParamTextInputSendHiliteRng = ('t'<<24) + ('s'<<16) + ('h'<<8) + 'i';
	public static final int kEventParamTextInputSendKeyboardEvent = ('t'<<24) + ('s'<<16) + ('k'<<8) + 'e';
	public static final int kEventParamTextInputSendText = ('t'<<24) + ('s'<<16) + ('t'<<8) + 'x';
	public static final int kEventParamKeyUnicodes= ('k'<<24) + ('u'<<16) + ('n'<<8) + 'i';
	public static final int kEventParamWindowDefPart = ('w'<<24) + ('d'<<16) + ('p'<<8) + 'c';
	public static final int kEventParamWindowMouseLocation = ('w'<<24) + ('m'<<16) + ('o'<<8) + 'u';
	public static final int kEventParamWindowRef = ('w'<<24) + ('i'<<16) + ('n'<<8) + 'd';
	public static final int kEventParamWindowRegionCode   = ('w'<<24) + ('s'<<16) + ('h'<<8) + 'p';
	public static final int kEventProcessCommand = 1;
	public static final int kEventQueueOptionsNone = 0;
	public static final int kEventRawKeyDown = 1;
	public static final int kEventRawKeyRepeat = 2;
	public static final int kEventRawKeyUp = 3;
	public static final int kEventRawKeyModifiersChanged = 4;
	public static final int kEventSearchFieldCancelClicked = 1;
	public static final int kEventSearchFieldSearchClicked = 2;
	public static final int kEventScrollableScrollTo = 10;
	public static final int kEventTextInputUpdateActiveInputArea = 1;
	public static final int kEventTextInputUnicodeForKeyEvent = 2;
	public static final int kEventTextInputOffsetToPos = 3;
	public static final int kEventTextInputPosToOffset = 4;
	public static final int kEventTextInputGetSelectedText = 6;
	public static final int kEventWindowActivated = 5;
	public static final int kEventWindowBoundsChanged = 27;
	public static final int kEventWindowClose = 72;
	public static final int kEventWindowCollapsing = 86;
	public static final int kEventWindowCollapsed = 67;
	public static final int kEventWindowDeactivated = 6;
	public static final int kEventWindowDrawContent = 2;
	public static final int kEventWindowExpanded = 70;
	public static final int kEventWindowFocusAcquired = 200;
	public static final int kEventWindowFocusRelinquish = 201;
	public static final int kEventWindowGetClickModality = 8;
	public static final int kEventWindowGetRegion = 1002;
	public static final int kEventWindowHidden = 25;
	public static final int kEventWindowHitTest = 1003;
	public static final int kEventWindowShown = 24;
	public static final int kEventWindowToolbarSwitchMode = 150;
	public static final int kEventWindowUpdate = 1;
	public static final int kEventWindowZoom = 75;
	public static final int kFMIterationCompleted = -980;
	public static final int kFloatingWindowClass = 5;
	public static final int kFontFamilyName = 1;
	public static final int kFontNoPlatformCode = -1;
	public static final int kFontNoScriptCode = -1;
	public static final int kFontNoLanguageCode = -1;
	public static final int kFontUnicodePlatform = 0;
	public static final int kFontSelectionQDStyleVersionZero = 0;
	public static final int kFontSelectionATSUIType = ('a'<<24) + ('s'<<16) + ('t'<<8) + 'l';
	public static final int kFontSelectionQDType = ('q'<<24) + ('s'<<16) + ('t'<<8) + 'l';
	public static final int kHIComboBoxAutoCompletionAttribute = (1 << 0);
	public static final int kHIComboBoxAutoDisclosureAttribute = (1 << 1);
	public static final int kHIComboBoxAutoSizeListAttribute = (1 << 3);
	public static final int kHIComboBoxEditTextPart = 5;
	public static final int kHIComboBoxNumVisibleItemsTag = ('c'<<24) + ('b'<<16) + ('n'<<8) + 'i';
	public static final int kHICommandFromMenu = 1 << 0;
	public static final int kHICommandQuit = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
	public static final int kHILayoutBindMin = 1;
	public static final int kHILayoutBindMax= 2;
	public static final int kHILayoutPositionCenter = 1;
	public static final int kHIModalClickIsModal = 1 << 0;
	public static final int kHIModalClickAllowEvent = 1 << 1;
	public static final int kHIModalClickAnnounce = 1 << 2;	
	public static final int kHIScrollViewOptionsVertScroll = (1 << 0);
	public static final int kHIScrollViewOptionsHorizScroll = (1 << 1);
	public static final int kHIScrollViewOptionsAllowGrow = (1 << 2);
	public static final int kHIThemeFrameTextFieldSquare = 0;
	public static final int kHIThemeGroupBoxKindPrimary = 0;
	public static final int kKLKCHRuchrKind = 0;
	public static final int kKLKCHRKind = 1;
	public static final int kKLuchrKind = 2;
	public static final int kKLKind = 7;
	public static final int kKLuchrData = 1;
	public static final int kUCKeyActionDown = 0;
	public static final int kHIThemeFrameListBox = 1;
	public static final int kRedrawHighlighting = 1;
	public static final int kTSMOutsideOfBody = 1;
	public static final int kTSMInsideOfBody = 2;
	public static final int kTSMInsideOfActiveInputArea = 3;
	public static final int kThemeComboBox = 16;
	public static final int kThemeLeftOutsideArrowPressed = 0x01;
	public static final int kThemeLeftInsideArrowPressed = 0x02;
	public static final int kThemeLeftTrackPressed = 0x04;
	public static final int kThemePopupButton = 5;
	public static final int kThemeThumbPressed = 0x08;
	public static final int kThemeRightTrackPressed = 0x10;
	public static final int kThemeRightInsideArrowPressed = 0x20;
	public static final int kThemeRightOutsideArrowPressed = 0x40;
	public static final int kThemeScrollBarMedium = 0;
	public static final int kThemeSliderMedium = 2;
	public static final int kThemeProgressBarMedium = 3;
	public static final int kThemeTrackActive = 0;
	public static final int kThemeTrackDisabled = 1;
	public static final int kThemeTrackNothingToScroll = 2;
	public static final int kThemeTrackInactive = 3;
	public static final int kThemeTrackHorizontal = (1 << 0);
	public static final int kThemeTrackRightToLeft = (1 << 1);
	public static final int kThemeTrackShowThumb = (1 << 2);
	public static final int kThemeTrackThumbRgnIsNotGhost = (1 << 3);
	public static final int kThemeTrackNoScrollBarArrows = (1 << 4);
	public static final int kThemeTrackHasFocus = (1 << 5);
	public static final int kThemeTabNonFront = 0;
	public static final int kThemeTabNonFrontPressed = 1;
	public static final int kThemeTabNonFrontInactive = 2;
	public static final int kThemeTabFront = 3;
	public static final int kThemeTabFrontInactive = 4;
	public static final int kThemeTabNonFrontUnavailable = 5;
	public static final int kThemeTabFrontUnavailable = 6;
	public static final int kThemeTabNorth = 0;
	public static final int kThemeTabSouth = 1;
	public static final int kThemeTabEast = 2;
	public static final int kThemeTabWest = 3;
	public static final int kThemeTextColorMenuItemDisabled = 36;
	public static final int kHIThemeOrientationNormal = 0;
	public static final int kHIThemeOrientationInverted = 1;
	public static final int kHIThemeTextHorizontalFlushLeft = 0;
	public static final int kHIThemeTextHorizontalFlushCenter = 1;
	public static final int kHIThemeTextHorizontalFlushRight = 2;
	public static final int kHIThemeTextVerticalFlushTop  = 0;
	public static final int kHIThemeTextVerticalFlushCenter = 1;
	public static final int kHIThemeTextVerticalFlushBottom = 2;
	public static final int kHIThemeTabPositionFirst = 0;
	public static final int kHIThemeTabPositionMiddle = 1;
	public static final int kHIThemeTabPositionLast = 2;
	public static final int kHIThemeTabPositionOnly = 3;
	public static final int kHIThemeTabAdornmentFocus = 1 << 2;
	public static final int kHIThemeTabAdornmentTrailingSeparator = 1 << 4;
	public static final int kHIViewFeatureIsOpaque = 1 << 25;
	public static final int kHIViewZOrderAbove = 1;
	public static final int kHIViewZOrderBelow = 2;
	public static final int kHITransformNone = 0x00;
	public static final int kHITransformDisabled = 0x01;
	public static final int kHITransformSelected = 0x4000;
	public static final int kHMCFStringContent = ('c'<<24) + ('f'<<16) + ('s'<<8) + 't';
	public static final int kHMOutsideBottomRightAligned = 10;
	public static final int kHMAbsoluteCenterAligned = 23;
	public static final int kHMContentProvided = 0;
	public static final int kHMContentNotProvided = -1;
	public static final int kHMContentNotProvidedDontPropagate = -2;
	public static final int kHMDefaultSide = 0;
	public static final int kHMDisposeContent = 1;
	public static final int kHMSupplyContent = 0;
	public static final int kHelpWindowClass = 10;
	public static final int kInvalidFontFamily = -1;
	public static final int kLarge1BitMask = ('I'<<24) + ('C'<<16) + ('N'<<8) + '#';
	public static final int kLarge4BitData = ('i'<<24) + ('c'<<16) + ('l'<<8) + '4';
	public static final int kLarge8BitData = ('i'<<24) + ('c'<<16) + ('l'<<8) + '8';
	public static final int kLarge32BitData = ('i'<<24) + ('l'<<16) + ('3'<<8) + '2';
	public static final int kLarge8BitMask = ('l'<<24) + ('8'<<16) + ('m'<<8) + 'k';
	public static final int kSmall1BitMask = ('i'<<24) + ('c'<<16) + ('s'<<8) + '#';
	public static final int kSmall4BitData = ('i'<<24) + ('c'<<16) + ('s'<<8) + '4';
	public static final int kSmall8BitData = ('i'<<24) + ('c'<<16) + ('s'<<8) + '8';
	public static final int kSmall32BitData = ('i'<<24) + ('s'<<16) + ('3'<<8) + '2';
	public static final int kSmall8BitMask = ('s'<<24) + ('8'<<16) + ('m'<<8) + 'k';
	public static final int kMini1BitMask = ('i'<<24) + ('c'<<16) + ('m'<<8) + '#';
	public static final int kMini4BitData = ('i'<<24) + ('c'<<16) + ('m'<<8) + '4';
	public static final int kMini8BitData = ('i'<<24) + ('c'<<16) + ('m'<<8) + '8';
	public static final int kThumbnail32BitData = ('i'<<24) + ('t'<<16) + ('3'<<8) + '2';
	public static final int kThumbnail8BitMask = ('t'<<24) + ('8'<<16) + ('m'<<8) + 'k';
	public static final int kHuge1BitMask = ('i'<<24) + ('c'<<16) + ('h'<<8) + '#';
	public static final int kHuge4BitData = ('i'<<24) + ('c'<<16) + ('h'<<8) + '4';
	public static final int kHuge8BitData = ('i'<<24) + ('c'<<16) + ('h'<<8) + '8';
	public static final int kHuge32BitData = ('i'<<24) + ('h'<<16) + ('3'<<8) + '2';
	public static final int kHuge8BitMask = ('h'<<24) + ('8'<<16) + ('m'<<8) + 'k';
	public static final int kLigaturesType = 1;
	public static final int kQDParseRegionFromTop = (1 << 0);
	public static final int kQDParseRegionFromBottom = (1 << 1);
	public static final int kQDParseRegionFromLeft = (1 << 2);
	public static final int kQDParseRegionFromRight = (1 << 3);
	public static final int kQDParseRegionFromTopLeft = kQDParseRegionFromTop | kQDParseRegionFromLeft;
	public static final int kQDRegionToRectsMsgInit = 1;
	public static final int kQDRegionToRectsMsgParse = 2;
	public static final int kQDRegionToRectsMsgTerminate = 3;
	public static final int kRequiredLigaturesOffSelector = 1;
	public static final int kCommonLigaturesOffSelector = 3;
	public static final int kRareLigaturesOffSelector = 5;
	public static final int kLogosOffSelector = 7;
	public static final int kLSLaunchDefaults = 0x00000001;
	public static final int kLSUnknownType = 0;
	public static final int kLSUnknownCreator = 0;
	public static final int kLSRolesAll = 0xFFFFFFFF;
	public static final int kRebusPicturesOffSelector = 9;
	public static final int kDiphthongLigaturesOffSelector = 11;
	public static final int kSquaredLigaturesOffSelector = 13;
	public static final int kAbbrevSquaredLigaturesOffSelector = 15;
	public static final int kMacHelpVersion = 3;
	public static final int kMenuBlankGlyph = 97;
	public static final int kMenuCapsLockGlyph = 99;
	public static final int kMenuCGImageRefType = 7;
	public static final int kMenuCheckmarkGlyph = 18;
	public static final int kMenuClearGlyph = 28;
	public static final int kMenuCommandGlyph = 17;
	public static final int kMenuContextualMenuGlyph = 109;
	public static final int kMenuControlGlyph = 6;
	public static final int kMenuControlISOGlyph = 138;
	public static final int kMenuControlModifier = 4;
	public static final int kMenuDeleteLeftGlyph = 23;
	public static final int kMenuDeleteRightGlyph = 10;
	public static final int kMenuDiamondGlyph = 19;
	public static final int kMenuDownArrowGlyph = 106;
	public static final int kMenuDownwardArrowDashedGlyph = 16;
	public static final int kMenuEnterGlyph = 4;
	public static final int kMenuEscapeGlyph = 27;
	public static final int kMenuEventIncludeDisabledItems = 0x0001;
	public static final int kMenuEventQueryOnly = 0x0002;
	public static final int kMenuEventDontCheckSubmenus = 0x0004;
	public static final int kMenuF10Glyph = 120;
	public static final int kMenuF11Glyph = 121;
	public static final int kMenuF12Glyph = 122;
	public static final int kMenuF13Glyph = 135;
	public static final int kMenuF14Glyph = 136;
	public static final int kMenuF15Glyph = 137;
	public static final int kMenuF1Glyph = 111;
	public static final int kMenuF2Glyph = 112;
	public static final int kMenuF3Glyph = 113;
	public static final int kMenuF4Glyph = 114;
	public static final int kMenuF5Glyph = 115;
	public static final int kMenuF6Glyph = 116;
	public static final int kMenuF7Glyph = 117;
	public static final int kMenuF8Glyph = 118;
	public static final int kMenuF9Glyph = 119;
	public static final int kMenuHelpGlyph = 103;
	public static final int kMenuItemAttrCustomDraw = 1 << 11;
	public static final int kMenuItemAttrAutoRepeat = 1 << 9;
	public static final int kMenuItemAttrSeparator = 64;
	public static final int kMenuLeftArrowDashedGlyph = 24;
	public static final int kMenuLeftArrowGlyph = 100;
	public static final int kMenuNoCommandModifier = (1 << 3);
	public static final int kMenuNoIcon = 0;
	public static final int kMenuNoModifiers = 0;
	public static final int kMenuNonmarkingReturnGlyph = 13;
	public static final int kMenuNorthwestArrowGlyph = 0x66;
	public static final int kMenuNullGlyph = 0;
	public static final int kMenuOptionGlyph = 7;
	public static final int kMenuOptionModifier = (1 << 1);
	public static final int kMenuPageDownGlyph = 107;
	public static final int kMenuPageUpGlyph = 98;
	public static final int kMenuPencilGlyph = 15;
	public static final int kMenuPowerGlyph = 110;
	public static final int kMenuReturnGlyph = 11;
	public static final int kMenuReturnR2LGlyph = 12;
	public static final int kMenuRightArrowDashedGlyph = 26;
	public static final int kMenuRightArrowGlyph = 101;
	public static final int kMenuShiftGlyph = 5;
	public static final int kMenuShiftModifier = (1 << 0);
	public static final int kMenuSoutheastArrowGlyph = 0x69;
	public static final int kMenuSpaceGlyph = 9;
	public static final int kMenuTabRightGlyph = 2;
	public static final int kMenuUpArrowDashedGlyph = 25;
	public static final int kMenuUpArrowGlyph = 104;
	public static final int kMouseTrackingMouseDown= 1;
	public static final int kMouseTrackingMouseUp= 2;
	public static final int kMouseTrackingMouseExited  = 3;
	public static final int kMouseTrackingMouseEntered = 4;
	public static final int kMouseTrackingMouseDragged= 5;
	public static final int kMouseTrackingMouseKeyModifiersChanged= 6;
	public static final int kMouseTrackingUserCancelled= 7;
	public static final int kMouseTrackingTimedOut= 8;
	public static final int kMouseTrackingMouseMoved= 9;
	public static final int kModalWindowClass = 3;
	public static final int kMovableModalWindowClass = 4;
	public static final int kNavAllowInvisibleFiles = 0x00000100;
	public static final int kNavAllowMultipleFiles = 0x00000080;
	public static final int kNavAllowOpenPackages = 0x00002000;
	public static final int kNavCBNewLocation = 5;
	public static final int kNavCBPopupMenuSelect = 8;
	public static final int kNavCtlSelectCustomType = 21;
	public static final int kNavCtlSetLocation = 8;
	public static final int kNavFilteringBrowserList = 0;
	public static final int kNavGenericSignature = ('*'<<24) + ('*'<<16) + ('*'<<8) + '*';
	public static final int kNavSupportPackages = 0x00001000;
	public static final int kNavDontConfirmReplacement = 0x00010000;
	public static final int kNavUserActionCancel = 1;
	public static final int kNavUserActionChoose = 4;
	public static final int kNavUserActionOpen = 2;
	public static final int kNavUserActionSaveAs = 3;
	public static final short kOnSystemDisk = -32768;
	public static final int kOverlayWindowClass = 14;
	public static final int kPMCancel = 0x0080;
	public static final int kPMDestinationFax = 3;
	public static final int kPMDestinationFile = 2;
	public static final int kPMDestinationPreview = 4;
	public static final int kPMDestinationPrinter = 1;
	public static final short kPMLandscape = 2;
	public static final short kPMPortrait = 1;
	public static final int kPMPrintAllPages = 2147483647;
	public static final int kPMShowDefaultInlineItems = 1 << 15;
	public static final int kPMShowPageAttributesPDE = 1 << 8;
	public static final int kQDUseCGTextMetrics = (1 << 2);
	public static final int kQDUseCGTextRendering = (1 << 1);
	public static final int kScrapFlavorTypeUnicode = ('u'<<24) + ('t'<<16) + ('x'<<8) + 't';
	public static final int kScrapFlavorTypeText = ('T'<<24) + ('E'<<16) + ('X'<<8) + 'T';
	public static final boolean kScrollBarsSyncAlwaysActive = true;
	public static final boolean kScrollBarsSyncWithFocus = false;
	public static final int kHISearchFieldNoAttributes = 0;
	public static final int kHISearchFieldAttributesCancel = 1 << 0;
	public static final int kHISearchFieldAttributesSearchIcon = 1 << 1;
	public static final int kSelectorAlLAvailableData = 0xFFFFFFFF;
	public static final int kSetFrontProcessFrontWindowOnly = 1 << 0;
	public static final int kSheetWindowClass = 11;
	public static final int kStdCFStringAlertVersionOne = 1;
	public static final int kSystemIconsCreator = ('m'<<24) + ('a'<<16) + ('c'<<8) + 's';
	public static final int kSymbolLigaturesOffSelector = 17;
	public static final int kControlSliderDoesNotPoint = 2;
	public static final int kTXNViewRectKey = 0;
	public static final int kTXNDestinationRectKey = 1;
	public static final int kTXNTextRectKey = 2;
	public static final int kTXNVerticalScrollBarRectKey = 3;
	public static final int kTXNHorizontalScrollBarRectKey = 4;
	public static final int kTXNAlwaysWrapAtViewEdgeMask = 1 << 11;
	public static final int kTXNBackgroundTypeRGB = 1;
	public static final int kTXNDefaultFontSize = 0x000C0000;
	public static final int kTXNDefaultFontStyle = 0;
	public static final int kTXNDefaultFontName = 0;
	public static final int kTXNFlushLeft = 1;
	public static final int kTXNFlushRight = 2;
	public static final int kTXNCenter = 4;
	public static final int kTXNLeftToRight = 0;
	public static final int kTXNRightToLeft = 1;
	public static final int kTXNDisableDragAndDropTag = ('d'<<24) + ('r'<<16) + ('a'<<8) + 'g';
	public static final int kTXNDoFontSubstitution = ('f'<<24) + ('S'<<16) + ('u'<<8) + 'b';
	public static final int kTXNDontDrawCaretWhenInactiveMask = 1 << 12;
	public static final int kTXNDrawCaretWhenInactiveTag = ('d'<<24)+('c'<<16)+('r'<<8)+'t';
	public static final int kTXNEndOffset = 2147483647;
	public static final int kTXNIOPrivilegesTag = ('i'<<24) + ('o'<<16) + ('p'<<8) + 'v';
	public static final int kTXNJustificationTag = ('j'<<24) + ('u'<<16) + ('s'<<8) + 't';
	public static final int kTXNLineDirectionTag = ('l'<<24) + ('n'<<16) + ('d'<<8) + 'r';
	public static final int kTXNMarginsTag = ('m'<<24) + ('a'<<16) + ('r'<<8) + 'g';
	public static final int kTXNMonostyledTextMask = 1 << 17;
	public static final int kTXNQDFontFamilyIDAttribute = ('f'<<24) + ('o'<<16) + ('n'<<8) + 't';
	public static final int kTXNQDFontSizeAttribute = ('s'<<24) + ('i'<<16) + ('z'<<8) + 'e';
	public static final int kTXNQDFontStyleAttribute = ('f'<<24) + ('a'<<16) + ('c'<<8) + 'e';
	public static final int kTXNQDFontColorAttribute = ('k'<<24) + ('l'<<16) + ('o'<<8) + 'r';
	public static final int kTXNQDFontFamilyIDAttributeSize = 2;
	public static final int kTXNQDFontSizeAttributeSize = 2;
	public static final int kTXNQDFontStyleAttributeSize = 2;
	public static final int kTXNQDFontColorAttributeSize = 6;
	public static final int kTXNReadOnlyMask = 1 << 5;
	public static final int kTXNSingleLineOnlyMask = 1 << 14;
	public static final int kTXNStartOffset = 0;
	public static final int kTXNSystemDefaultEncoding = 0;
	public static final int kTXNTabSettingsTag = ('t'<<24) + ('a'<<16) + ('b'<<8) + 's';
	public static final int kTXNTextEditStyleFrameType = 1;
	public static final int kTXNUnicodeTextData = ('u'<<24) + ('t'<<16) + ('x'<<8) + 't';
	public static final int kTXNUnicodeTextFile = ('u'<<24) + ('t'<<16) + ('x'<<8) + 't';
	public static final int kTXNUseCurrentSelection = -1;
	public static final int kTXNVisibilityTag = ('v'<<24) + ('i'<<16) + ('s'<<8) + 'b';
	public static final int kTXNWordWrapStateTag = ('w'<<24) + ('w'<<16) + ('r'<<8) + 's';
	public static final int kTXNAutoScrollBehaviorTag = ('s'<<24) + ('b'<<16) + ('e'<<8) + 'v';
	public static final int kTXNWantHScrollBarMask = 1 << 2;
	public static final int kTXNWantVScrollBarMask = 1 << 3;
	public static final int kTextEncodingMacUnicode = 0x7E;
	public static final int kTextEncodingMacRoman = 0;
	public static final int kTextLanguageDontCare = -128;
	public static final int kTextRegionDontCare = -128;
	public static final int kThemeAdornmentDefault = 1 << 0;
	public static final int kThemeAdornmentFocus = 1 << 2;
	public static final int kThemeAliasArrowCursor = 2;
	public static final int kThemeArrowButton = 4;
	public static final int kThemeArrowCursor = 0;
	public static final int kThemeArrowLeft = 0;
	public static final int kThemeArrowDown = 1;
	public static final int kThemeArrowRight = 2;
	public static final int kThemeArrowUp = 3;
	public static final int kThemeArrow5pt = 1;
	public static final int kThemeArrow9pt = 3;
	public static final int kThemeBevelButtonSmall = 8;
	public static final int kThemeBrushDialogBackgroundActive = 1;
	public static final int kThemeBrushDocumentWindowBackground = 15;
	public static final int kThemeBrushPrimaryHighlightColor = -3;
	public static final int kThemeBrushSecondaryHighlightColor = -4;
	public static final int kThemeBrushButtonFaceActive = 29;
	public static final int kThemeBrushButtonInactiveDarkShadow = 36;
	public static final int kThemeBrushFocusHighlight = 19;
	public static final int kThemeBrushListViewBackground = 10; 
	public static final int kThemeButtonOff = 0;
	public static final int kThemeButtonOn = 1;
	public static final int kThemeButtonMixed = 2;
	public static final int kThemeCheckBox = 1;
	public static final int kThemeCopyArrowCursor = 1;
	public static final int kThemeCrossCursor = 5;
	public static final int kThemeCurrentPortFont = 200;
	public static final int kThemeDisclosureButton = 6;
	public static final int kThemeDisclosureTriangle = 6;
	public static final int kThemeDisclosureRight = 0;
	public static final int kThemeDisclosureDown = 1;
	public static final int kThemeDisclosureLeft = 2;
	public static final int kThemeEmphasizedSystemFont = 4;
	public static final int kThemeIBeamCursor = 4;
	public static final int kThemeMenuItemCmdKeyFont = 103;
	public static final int kThemeMenuItemFont = 101;
	public static final int kThemeMenuItemHierarchical = 1;
	public static final int kThemeMetricDisclosureButtonWidth = 22;
	public static final int kThemeMetricDisclosureTriangleHeight = 25;
	public static final int kThemeMetricDisclosureTriangleWidth = 26;
	public static final int kThemeMetricCheckBoxWidth = 50;
	public static final int kThemeMetricComboBoxLargeDisclosureWidth = 74;
	public static final int kThemeMetricRadioButtonWidth = 52;
	public static final int kThemeMetricEditTextFrameOutset = 5;
	public static final int kThemeMetricEditTextWhitespace = 4;
	public static final int kThemeMetricFocusRectOutset = 7;
	public static final int kThemeMetricHSliderHeight = 41;
	public static final int kThemeMetricLargeTabHeight = 10;
	public static final int kThemeMetricLargeTabCapsWidth = 11;
	public static final int kThemeMetricLittleArrowsHeight = 27;
	public static final int kThemeMetricLittleArrowsWidth = 28;
	public static final int kThemeMetricMenuTextTrailingEdgeMargin = 67;
	public static final int kThemeMetricMenuIconTrailingEdgeMargin = 69;
	public static final int kThemeMetricNormalProgressBarThickness = 58;
	public static final int kThemeMetricTabFrameOverlap = 12;
	public static final int kThemeMetricPrimaryGroupBoxContentInset = 61;
	public static final int kThemeMetricPushButtonHeight = 19;
	public static final int kThemeMetricRoundTextFieldContentHeight = 80;
	public static final int kThemeMetricRoundTextFieldContentInsetLeft = 76;
	public static final int kThemeMetricRoundTextFieldContentInsetRight = 77;
	public static final int kThemeMetricRoundTextFieldContentInsetBottom = 78;
	public static final int kThemeMetricRoundTextFieldContentInsetTop = 79;
	public static final int kThemeMetricRoundTextFieldContentInsetWithIconLeft = 109;
	public static final int kThemeMetricRoundTextFieldContentInsetWithIconRight = 110;
	public static final int kThemeMetricRoundTextFieldSmallContentInsetLeft = 120;
	public static final int kThemeMetricRoundTextFieldSmallContentInsetRight = 121;
	public static final int kThemeMetricRoundTextFieldSmallContentInsetWithIconLeft = 123;
	public static final int kThemeMetricRoundTextFieldSmallContentInsetWithIconRight = 124;
	public static final int kThemeMetricScrollBarWidth = 0;
	public static final int kThemeMetricVSliderWidth = 45;
	public static final int kThemeNotAllowedCursor = 18;
	public static final int kThemePointingHandCursor = 10;
	public static final int kThemePushButton = 0;
	public static final int kThemePushButtonFont = 105;
	public static final int kThemeRadioButton = 2;
	public static final int kThemeResizeLeftRightCursor = 17;
	public static final int kThemeResizeUpDownCursor = 21;
	public static final int kThemeResizeUpCursor = 19;
	public static final int kThemeResizeDownCursor = 20;
	public static final int kThemeResizeLeftCursor = 15;
	public static final int kThemeResizeRightCursor = 16;
	public static final int kThemeRoundedBevelButton = 15;
	public static final int kThemeSmallBevelButton = 8;
	public static final int kThemeSmallEmphasizedSystemFont = 2;
	public static final int kThemeSmallSystemFont = 1;
	public static final int kThemeSpinningCursor = 14;
	public static final int kThemeStateActive = 1;
	public static final int kThemeStateInactive = 0;
	public static final int kThemeStatePressed = 2;
	public static final int kThemeStateRollover = 6;
	public static final int kThemeStateUnavailable = 7;
	public static final int kThemeStateUnavailableInactive = 8;
	public static final int kThemeSystemFont = 0;
	public static final int kThemeTextColorDialogActive = 1;
	public static final int kThemeTextColorPushButtonInactive = 13;
	public static final int kThemeTextColorDocumentWindowTitleActive = 23;
	public static final int kThemeTextColorDocumentWindowTitleInactive = 24;
	public static final int kThemeTextColorListView = 22;
	public static final int kThemeTextColorPushButtonActive = 12;
	public static final int kThemeToolbarFont = 108;
	public static final int kThemeViewsFont = 3;
	public static final int kThemeWatchCursor = 7;
	public static final int kTrackMouseLocationOptionDontConsumeMouseUp = 1;
	public static final int kTransformSelected = 0x4000;
	public static final int kUIModeNormal = 0;
	public static final int kUIModeContentSuppressed = 1;
	public static final int kUIModeContentHidden = 2;
	public static final int kUIModeAllHidden = 3;
	public static final int kUIModeAllSuppressed = 4;
	public static final int kUnicodeDocument = ('u'<<24) + ('d'<<16) + ('o'<<8) + 'c';
	public static final int kUtilityWindowClass = 8;
    public static final int kWindowActivationScopeNone = 0;
    public static final int kWindowActivationScopeIndependent = 1;
    public static final int kWindowActivationScopeAll = 2;
	public static final int kWindowAlertPositionParentWindowScreen = 0x700A;
    public static final int kWindowBoundsChangeOriginChanged = 1<<3;
    public static final int kWindowBoundsChangeSizeChanged = 1<<2;
    public static final int kWindowCascadeOnMainScreen = 4;
	public static final int kWindowCloseBoxAttribute = (1 << 0);
	public static final int kWindowCollapseBoxAttribute = (1 << 3);
	public static final int kWindowCompositingAttribute = (1 << 19);
	public static final int kWindowContentRgn = 33;
	public static final int kWindowGroupAttrHideOnCollapse = (1 << 4);
	public static final int kWindowGroupAttrSelectAsLayer = (1 << 0);
	public static final int kWindowHorizontalZoomAttribute = 1 << 1;
	public static final int kWindowVerticalZoomAttribute  = 1 << 2;
	public static final int kWindowFullZoomAttribute = (OS.kWindowVerticalZoomAttribute | OS.kWindowHorizontalZoomAttribute);
	public static final int kWindowLiveResizeAttribute = (1 << 28);
	public static final int kWindowModalityAppModal = 2;
	public static final int kWindowModalityNone = 0;
	public static final int kWindowModalitySystemModal = 1;
	public static final int kWindowModalityWindowModal = 3;
	public static final int kWindowNoShadowAttribute = (1 << 21);
	public static final int kWindowResizableAttribute = (1 << 4);
	public static final int kWindowStandardHandlerAttribute = (1 << 25);
	public static final int kWindowStructureRgn = 32;
	public static final int kWindowToolbarButtonAttribute = (1 << 6);
	public static final int kWindowUpdateRgn= 34;
	public static final int kWindowNoTitleBarAttribute = (1 << 9);
	public static final int kCaretPosition = 1;
	public static final int kRawText = 2;
	public static final int kSelectedRawText = 3;
	public static final int kConvertedText = 4;
	public static final int kSelectedConvertedText = 5;
	public static final int kBlockFillText = 6;
	public static final int kOutlineText = 7;
	public static final int kSelectedText = 8;
	public static final int menuItemNotFoundError = -5622;
	public static final int mouseDown = 1;
	public static final int noErr = 0;
	public static final int normal = 0;
	public static final int optionKey = 1 << 11;
	public static final int osEvt = 15;
	public static final int paramErr = -50;
	public static final int shiftKey = 1 << 9;
	public static final int smKCHRCache = 38;	
	public static final int smKeyScript = 22;
	public static final int smRegionCode = 40;
	public static final int smSystemScript = -1;
	public static final int srcCopy = 0;
	public static final int srcOr = 1;
	public static final int srcXor = 2;
	public static final int notSrcXor = 6;
	public static final int teFlushDefault = 0;
	public static final int teCenter = 1;
	public static final int teFlushRight = -1;
	public static final int teFlushLeft = -2;
	public static final int teJustLeft = 0;
	public static final int teJustCenter = 1;
	public static final int teJustRight = -1;
	public static final int typeBoolean = ('b'<<24) + ('o'<<16) + ('o'<<8) + 'l';
	public static final int typeCFDictionaryRef = ('c'<<24) + ('f'<<16) + ('d'<<8) + 'c';
	public static final int typeCFMutableArrayRef = ('c'<<24) + ('f'<<16) + ('m'<<8) + 'a';
	public static final int typeCFStringRef = ('c'<<24) + ('f'<<16) + ('s'<<8) + 't';
	public static final int typeCFTypeRef = ('c'<<24) + ('f'<<16) + ('t'<<8) + 'y';
	public static final int typeCGContextRef = ('c'<<24) + ('n'<<16) + ('t'<<8) + 'x';
	public static final int typeChar = ('T'<<24) + ('E'<<16) + ('X'<<8) + 'T';
	public static final int typeClickActivationResult = ('c'<<24) + ('l'<<16) + ('a'<<8) + 'c';
	public static final int typeControlPartCode = ('c'<<24) + ('p'<<16) + ('r'<<8) + 't';
	public static final int typeControlRef = ('c'<<24) + ('t'<<16) + ('r'<<8) + 'l';
	public static final int typeEventRef = ('e'<<24) + ('v'<<16) + ('r'<<8) + 'f';
	public static final int typeFileURL = ('f'<<24) + ('u'<<16) + ('r'<<8) + 'l';
	public static final int typeFixed  = ('f'<<24) + ('i'<<16) + ('x'<<8) + 'd';
	public static final int typeFSRef = ('f'<<24) + ('s'<<16) + ('r'<<8) + 'f';
	public static final int typeGrafPtr =  ('g'<<24) + ('r'<<16) + ('a'<<8) + 'f';
	public static final int typeHICommand = ('h'<<24) + ('c'<<16) + ('m'<<8) + 'd';
	public static final int typeHIPoint = ('h'<<24) + ('i'<<16) + ('p'<<8) + 't';
	public static final int typeHIRect = ('h'<<24) + ('i'<<16) + ('r'<<8) + 'c';
	public static final int typeHISize = ('h'<<24) + ('i'<<16) + ('s'<<8) + 'z';
	public static final int typeLongInteger = ('l'<<24) + ('o'<<16) + ('n'<<8) + 'g';
	public static final int typeMenuCommand = ('m'<<24) + ('c'<<16) + ('m'<<8) + 'd';
	public static final int typeMenuItemIndex = ('m'<<24) + ('i'<<16) + ('d'<<8) + 'x';        
	public static final int typeMenuRef = ('m'<<24) + ('e'<<16) + ('n'<<8) + 'u';
	public static final int typeModalClickResult = ('w'<<24) + ('m'<<16) + ('c'<<8) + 'r';
	public static final int typeMouseButton = ('m'<<24) + ('b'<<16) + ('t'<<8) + 'n';
	public static final int typeMouseWheelAxis = ('m'<<24) + ('w'<<16) + ('a'<<8) + 'x';
	public static final int typeQDPoint = ('Q'<<24) + ('D'<<16) + ('p'<<8) + 't';
	public static final int typeQDRectangle = ('q'<<24) + ('d'<<16) + ('r'<<8) + 't';
	public static final int typeQDRgnHandle = ('r'<<24) + ('g'<<16) + ('n'<<8) + 'h';
	public static final int typeRGBColor = ('c'<<24) + ('R'<<16) + ('G'<<8) + 'B';
	public static final int typeSInt16 = ('s'<<24) + ('h'<<16) + ('o'<<8) + 'r';
	public static final int typeSInt32 = ('l'<<24) + ('o'<<16) + ('n'<<8) + 'g';
	public static final int typeTextRangeArray = ('t'<<24) + ('r'<<16) + ('a'<<8) + 'y';
	public static final int typeType = ('t'<<24) + ('y'<<16) + ('p'<<8) + 'e';
	public static final int typeUInt32 = ('m'<<24) + ('a'<<16) + ('g'<<8) + 'n';
	public static final int typeUnicodeText = ('u'<<24) + ('t'<<16) + ('x'<<8) + 't';
	public static final int typeWildCard = ('w'<<24) + ('i'<<16) + ('l'<<8) + 'd';
	public static final int typeWindowDefPartCode = ('w'<<24) + ('d'<<16) + ('p'<<8) + 't';
	public static final int typeWindowPartCode = ('w'<<24) + ('p'<<16) + ('a'<<8) + 'r';
	public static final int typeWindowModality = ('w'<<24) + ('m'<<16) + ('o'<<8) + 'd';
	public static final int kEventParamWindowPartCode = ('w'<<24) + ('p'<<16) + ('a'<<8) + 'r';
	public static final int typeWindowRef = ('w'<<24) + ('i'<<16) + ('n'<<8) + 'd';
	public static final int typeWindowRegionCode = ('w'<<24) + ('s'<<16) + ('h'<<8) + 'p';
	public static final int updateEvt = 6;
	public static final int updateMask = 1 << updateEvt;
	public static final int userCanceledErr = -128;
	public static final short wInContent = 1;
	public static final short wNoHit = 0;

/** JNI natives */
	
/** @method flags=no_gen */
public static final native int NewGlobalRef(Object object);
/** @method flags=no_gen */
public static final native void DeleteGlobalRef(int globalRef);
/** @method flags=no_gen */
public static final native Object JNIGetObject(int globalRef);

/** Natives */

/** @method flags=no_gen */
public static final native boolean __BIG_ENDIAN__();
/** @method flags=const */
public static final native int kCFRunLoopCommonModes();
/** @method flags=const */
public static final native int kCFRunLoopDefaultMode();
/** @method flags=const address */
public static final native int kCFTypeArrayCallBacks();
/** @method flags=const address */
public static final native int kCFTypeSetCallBacks();
/** @method flags=const */
public static final native int kFontPanelAttributesKey();
/** @method flags=const */
public static final native int kFontPanelAttributeTagsKey();
/** @method flags=const */
public static final native int kFontPanelAttributeSizesKey();
/** @method flags=const */
public static final native int kFontPanelAttributeValuesKey();	
/** @method flags=const */
public static final native int kLSItemContentType();
/** @method flags=const */
public static final native int kUTTagClassFilenameExtension();
/** @method flags=const address */
public static final native int kHIViewWindowContentID();
/** @method flags=const address */
public static final native int kHIViewWindowGrowBoxID();
/** @method flags=const */
public static final native int kPMDocumentFormatPDF();
/** @method flags=const */
public static final native int kPMGraphicsContextCoreGraphics();
public static final native int ActiveNonFloatingWindow();
/** @param idocID cast=(TSMDocumentID) */
public static final native int ActivateTSMDocument(int idocID);
/**
 * @param theAEDescList cast=(const AEDescList *)
 * @param theCount cast=(long *)
 */
public static final native int AECountItems(AEDesc theAEDescList, int[] theCount);
/**
 * @param theAEDesc cast=(AEDesc *)
 * @param result cast=(AEDesc *)
 */
public static final native int AECoerceDesc(int theAEDesc, int toType, AEDesc result);
/**
 * @param typeCode cast=(DescType)
 * @param dataPtr cast=(const void *)
 * @param dataSize cast=(Size)
 */
public static final native int AECreateDesc(int typeCode, byte[] dataPtr, int dataSize, AEDesc result);
public static final native int AEDisposeDesc(AEDesc theAEDesc);
/**
 * @param theAEDesc cast=(AEDesc *)
 * @param dataPtr cast=(void *)
 */
public static final native int AEGetDescData(AEDesc theAEDesc, byte[] dataPtr, int maximumSize);
/**
 * @param theAEDescList cast=(const AEDescList *)
 * @param desiredType cast=(DescType)
 * @param theAEKeyword cast=(AEKeyword *)
 * @param typeCode cast=(DescType *)
 * @param dataPtr cast=(void *)
 * @param maximumSize cast=(Size)
 * @param actualSize cast=(Size *)
 */
public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize);
/**
 * @param theAppleEvent cast=(const AppleEvent *)
 * @param theAEKeyword cast=(AEKeyword)
 * @param desiredType cast=(DescType)
 * @param result cast=(AEDesc *)
 */
public static final native int AEGetParamDesc (int theAppleEvent, int theAEKeyword, int desiredType, AEDesc result);
/**
 * @param theAEEventClass cast=(AEEventClass)
 * @param theAEEventID cast=(AEEventID)
 * @param handler cast=(AEEventHandlerUPP)
 * @param handlerRefcon cast=(long)
 */
public static final native int AEInstallEventHandler(int theAEEventClass, int theAEEventID, int handler, int handlerRefcon, boolean isSysHandler);  
/**
 * @param theAEEventClass cast=(AEEventClass)
 * @param theAEEventID cast=(AEEventID)
 * @param handler cast=(AEEventHandlerUPP)
 */
public static final native int AERemoveEventHandler (int theAEEventClass, int theAEEventID, int handler, boolean isSysHandler);
/** @param theEventRecord cast=(const EventRecord *) */
public static final native int AEProcessAppleEvent(EventRecord theEventRecord);
/**
 * @param iFile cast=(const FSSpec *)
 * @param iContext cast=(ATSFontContext)
 * @param iFormat cast=(ATSFontFormat)
 * @param iReserved cast=(void *)
 * @param iOptions cast=(ATSOptionFlags)
 * @param oContainer cast=(ATSFontContainerRef *)
 */
public static final native int ATSFontActivateFromFileSpecification(byte[] iFile, int iContext, int iFormat, int iReserved, int iOptions, int[] oContainer);
/**
 * @param iContainer cast=(ATSFontContainerRef)
 * @param iRefCon cast=(void *)
 * @param iOptions cast=(ATSOptionFlags)
 */
public static final native int ATSFontDeactivate(int iContainer, int iRefCon, int iOptions);
/**
 * @param iName cast=(CFStringRef)
 * @param iOptions cast=(ATSOptionFlags)
 */
public static final native int ATSFontFindFromName(int iName, int iOptions);
/**
 * @param iFont cast=(ATSFontRef)
 * @param iOptions cast=(ATSOptionFlags)
 * @param oName cast=(CFStringRef*)
 */
public static final native int ATSFontGetName(int iFont, int iOptions, int[] oName);
/**
 * @param iFont cast=(ATSFontRef)
 * @param iOptions cast=(ATSOptionFlags)
 * @param oName cast=(CFStringRef *)
 */
public static final native int ATSFontGetPostScriptName(int iFont, int iOptions, int[] oName);
/**
 * @param iIterator cast=(ATSFontIterator)
 * @param Font cast=(ATSFontRef *)
 */
public static final native int ATSFontIteratorNext(int iIterator, int[] Font);
/** @param ioIterator cast=(ATSFontIterator *) */
public static final native int ATSFontIteratorRelease(int[] ioIterator);
/**
 * @param iContext cast=(ATSFontContext)
 * @param iFilter cast=(const ATSFontFilter *)
 * @param iRefCon cast=(void *)
 * @param iOptions cast=(ATSOptionFlags)
 * @param ioIterator cast=(ATSFontIterator *)
 */
public static final native int ATSFontIteratorCreate(int iContext, int iFilter, int iRefCon, int iOptions, int[] ioIterator);
/**
 * @param iFont cast=(ATSFontRef)
 * @param iOptions cast=(ATSOptionFlags)
 */
public static final native int ATSFontGetVerticalMetrics(int iFont, int iOptions, ATSFontMetrics oMetrics);
/** @param iFont cast=(ATSFontRef) */
public static final native int ATSFontGetHorizontalMetrics(int iFont, int iOptions, ATSFontMetrics oMetrics);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param oBreakCount cast=(ItemCount *)
 */
public static final native int ATSUBatchBreakLines(int iTextLayout, int iRangeStart, int iRangeLength, int iLineWidth, int[] oBreakCount);
/** @param oStyle cast=(ATSUStyle *) */
public static final native int ATSUCreateStyle(int[] oStyle);
/** @param oTextLayout cast=(ATSUTextLayout *) */
public static final native int ATSUCreateTextLayout(int[] oTextLayout);
/**
 * @param iText cast=(ConstUniCharArrayPtr)
 * @param iRunLengths cast=(const UniCharCount *)
 * @param iStyles cast=(ATSUStyle *)
 * @param oTextLayout cast=(ATSUTextLayout *)
 */
public static final native int ATSUCreateTextLayoutWithTextPtr(int iText, int iTextOffset, int iTextLength, int iTextTotalLength, int iNumberOfRuns, int[] iRunLengths, int[] iStyles, int[] oTextLayout);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iLineOffset cast=(UniCharArrayOffset)
 * @param iDataSelector cast=(ATSUDirectDataSelector)
 * @param oLayoutDataArrayPtr cast=(void *)
 * @param oLayoutDataCount cast=(ItemCount *)
 */
public static final native int ATSUDirectGetLayoutDataArrayPtrFromTextLayout(int iTextLayout, int iLineOffset, int iDataSelector, int[] oLayoutDataArrayPtr, int[] oLayoutDataCount);
/**
 * @param iLineRef cast=(ATSULineRef)
 * @param iDataSelector cast=(ATSUDirectDataSelector)
 * @param iLayoutDataArrayPtr cast=(void *)
 */
public static final native int ATSUDirectReleaseLayoutDataArrayPtr(int iLineRef, int iDataSelector, int iLayoutDataArrayPtr);
/** @param iStyle cast=(ATSUStyle) */
public static final native int ATSUDisposeStyle(int iStyle);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUDisposeTextLayout(int iTextLayout);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iLineOffset cast=(UniCharArrayOffset)
 * @param iLineLength cast=(UniCharCount)
 * @param iLocationX cast=(ATSUTextMeasurement)
 * @param iLocationY cast=(ATSUTextMeasurement)
 */
public static final native int ATSUDrawText(int iTextLayout, int iLineOffset, int iLineLength, int iLocationX, int iLocationY);
/**
 * @param iName cast=(const void *)
 * @param oFontID cast=(ATSUFontID *)
 */
public static final native int ATSUFindFontFromName(byte[] iName, int iNameLength, int iFontNameCode, int iFontNamePlatform, int iFontNameScript, int iFontNameLanguage, int[] oFontID);
/**
 * @param iFontID cast=(ATSUFontID)
 * @param oName cast=(Ptr)
 * @param oActualNameLength cast=(ByteCount *)
 * @param oFontNameIndex cast=(ItemCount *)
 */
public static final native int ATSUFindFontName(int iFontID, int iFontNameCode, int iFontNamePlatform, int iFontNameScript, int iFontNameLanguage, int iMaximumNameLength, byte[] oName, int[] oActualNameLength, int[] oFontNameIndex);
/**
 * @param oFontIDs cast=(ATSUFontID *)
 * @param oFontCount cast=(ItemCount *)
 */
public static final native int ATSUGetFontIDs(int[] oFontIDs, int iArraySize, int[] oFontCount);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iTextBasePointX cast=(ATSUTextMeasurement)
 * @param iTextBasePointY cast=(ATSUTextMeasurement)
 * @param iBoundsCharStart cast=(UniCharArrayOffset)
 * @param oGlyphBounds cast=(ATSTrapezoid *)
 * @param oActualNumberOfBounds cast=(ItemCount *)
 */
public static final native int ATSUGetGlyphBounds(int iTextLayout, int iTextBasePointX, int iTextBasePointY, int iBoundsCharStart, int iBoundsCharLength, short iTypeOfBounds, int iMaxNumberOfBounds, int oGlyphBounds, int[] oActualNumberOfBounds);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iTextBasePointX cast=(ATSUTextMeasurement)
 * @param iTextBasePointY cast=(ATSUTextMeasurement)
 * @param iBoundsCharStart cast=(UniCharArrayOffset)
 * @param oGlyphBounds cast=(ATSTrapezoid *)
 * @param oActualNumberOfBounds cast=(ItemCount *)
 */
public static final native int ATSUGetGlyphBounds(int iTextLayout, int iTextBasePointX, int iTextBasePointY, int iBoundsCharStart, int iBoundsCharLength, short iTypeOfBounds, int iMaxNumberOfBounds, ATSTrapezoid oGlyphBounds, int[] oActualNumberOfBounds);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iTag cast=(ATSUAttributeTag)
 * @param oValue cast=(ATSUAttributeValuePtr)
 * @param oActualValueSize cast=(ByteCount *)
 */
public static final native int ATSUGetLayoutControl(int iTextLayout, int iTag, int iExpectedValueSize, int[] oValue, int[] oActualValueSize);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iLineStart cast=(UniCharArrayOffset)
 * @param iTag cast=(ATSUAttributeTag)
 * @param iExpectedValueSize cast=(ByteCount)
 * @param oValue cast=(ATSUAttributeValuePtr)
 * @param oActualValueSize cast=(ByteCount *)
 */
public static final native int ATSUGetLineControl(int iTextLayout, int iLineStart, int iTag, int iExpectedValueSize, int[] oValue, int[] oActualValueSize);
/**
 * @param iATSUStyle cast=(ATSUStyle)
 * @param iGlyphID cast=(GlyphID)
 * @param iNewPathProc cast=(ATSQuadraticNewPathUPP)
 * @param iLineProc cast=(ATSQuadraticLineUPP)
 * @param iCurveProc cast=(ATSQuadraticCurveUPP)
 * @param iClosePathProc cast=(ATSQuadraticClosePathUPP)
 * @param iCallbackDataPtr cast=(void *)
 * @param oCallbackResult cast=(OSStatus *)
 */
public static final native int ATSUGlyphGetQuadraticPaths(int iATSUStyle, short iGlyphID, int iNewPathProc, int iLineProc, int iCurveProc, int iClosePathProc, int iCallbackDataPtr, int[] oCallbackResult);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iRangeStart cast=(UniCharArrayOffset)
 * @param iRangeLength cast=(UniCharCount)
 * @param iMaximumBreaks cast=(ItemCount)
 * @param oBreaks cast=(UniCharArrayOffset *)
 * @param oBreakCount cast=(ItemCount *)
 */
public static final native int ATSUGetSoftLineBreaks(int iTextLayout, int iRangeStart, int iRangeLength, int iMaximumBreaks, int[] oBreaks, int[] oBreakCount);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param oHighlightRegion cast=(RgnHandle)
 */
public static final native int ATSUGetTextHighlight (int iTextLayout, int iTextBasePointX, int iTextBasePointY, int iHighlightStart, int iHighlightLength, int oHighlightRegion);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param oTextBefore cast=(ATSUTextMeasurement *)
 * @param oTextAfter cast=(ATSUTextMeasurement *)
 * @param oAscent cast=(ATSUTextMeasurement *)
 * @param oDescent cast=(ATSUTextMeasurement *)
 */
public static final native int ATSUGetUnjustifiedBounds(int iTextLayout, int iLineStart, int iLineLength,  int[] oTextBefore, int[] oTextAfter, int[] oAscent, int[] oDescent);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iTextBasePointX cast=(ATSUTextMeasurement)
 * @param iTextBasePointY cast=(ATSUTextMeasurement)
 */
public static final native int ATSUHighlightText(int iTextLayout, int iTextBasePointX, int iTextBasePointY, int iHighlightStart, int iHighlightLength);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iOldOffset cast=(UniCharArrayOffset)
 * @param iMovementType cast=(ATSUCursorMovementType)
 * @param oNewOffset cast=(UniCharArrayOffset *)
 */
public static final native int ATSUNextCursorPosition(int iTextLayout, int iOldOffset, int iMovementType, int[] oNewOffset);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param oCaretIsSplit cast=(Boolean *)
 */
public static final native int ATSUOffsetToPosition(int iTextLayout, int iOffset, boolean iIsLeading, ATSUCaret oMainCaret, ATSUCaret oSecondCaret, boolean[] oCaretIsSplit);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param ioPrimaryOffset cast=(UniCharArrayOffset *)
 * @param oIsLeading cast=(Boolean *)
 * @param oSecondaryOffset cast=(UniCharArrayOffset *)
 */
public static final native int ATSUPositionToOffset(int iTextLayout, int iLocationX, int iLocationY, int[] ioPrimaryOffset,  boolean[] oIsLeading,  int[] oSecondaryOffset);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iOldOffset cast=(UniCharArrayOffset)
 * @param iMovementType cast=(ATSUCursorMovementType)
 * @param oNewOffset cast=(UniCharArrayOffset *)
 */
public static final native int ATSUPreviousCursorPosition(int iTextLayout, int iOldOffset, int iMovementType,  int[] oNewOffset);
/**
 * @param iStyle cast=(ATSUStyle)
 * @param iAttributeCount cast=(ItemCount)
 * @param iTag cast=(ATSUAttributeTag *)
 * @param iValueSize cast=(ByteCount *)
 * @param iValue cast=(ATSUAttributeValuePtr *)
 */
public static final native int ATSUSetAttributes(int iStyle, int iAttributeCount, int[] iTag, int[] iValueSize, int[] iValue); 
/**
 * @param iStyle cast=(ATSUStyle)
 * @param iFeatureCount cast=(ItemCount)
 * @param iType cast=(const ATSUFontFeatureType *)
 * @param iSelector cast=(const ATSUFontFeatureSelector *)
 */
public static final native int ATSUSetFontFeatures(int iStyle, int iFeatureCount,  short[] iType, short[] iSelector);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUSetHighlightingMethod(int iTextLayout, int iMethod, ATSUUnhighlightData iUnhighlightData);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iAttributeCount cast=(ItemCount)
 * @param iTag cast=(ATSUAttributeTag *)
 * @param iValueSize cast=(ByteCount *)
 * @param iValue cast=(ATSUAttributeValuePtr *)
 */
public static final native int ATSUSetLayoutControls(int iTextLayout, int iAttributeCount, int[] iTag, int[] iValueSize, int[] iValue);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iLineStart cast=(UniCharArrayOffset)
 * @param iAttributeCount cast=(ItemCount)
 * @param iTag cast=(const ATSUAttributeTag *)
 * @param iValueSize cast=(const ByteCount *)
 * @param iValue cast=(const ATSUAttributeValuePtr *)
 */
public static final native int ATSUSetLineControls(int iTextLayout, int iLineStart, int iAttributeCount, int[] iTag, int[] iValueSize, int[] iValue);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iStyle cast=(ATSUStyle)
 * @param iRunStart cast=(UniCharArrayOffset)
 * @param iRunLength cast=(UniCharCount)
 */
public static final native int ATSUSetRunStyle(int iTextLayout, int iStyle, int iRunStart, int iRunLength);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUSetSoftLineBreak(int iTextLayout, int iLineBreak);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iTabs cast=(const ATSUTab *)
 */
public static final native int ATSUSetTabArray(int iTextLayout, int iTabs, int iTabCount);
/**
 * @param iTextLayout cast=(ATSUTextLayout)
 * @param iText cast=(ConstUniCharArrayPtr)
 * @param iTextOffset cast=(UniCharArrayOffset)
 * @param iTextLength cast=(UniCharCount)
 * @param iTextTotalLength cast=(UniCharCount)
 */
public static final native int ATSUSetTextPointerLocation(int iTextLayout, int iText, int iTextOffset, int iTextLength, int iTextTotalLength);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUSetTransientFontMatching(int iTextLayout, boolean iTransientFontMatching);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUTextInserted(int iTextLayout, int iInsertionLocation, int iInsertionLength);
/** @param iTextLayout cast=(ATSUTextLayout) */
public static final native int ATSUTextDeleted(int iTextLayout, int iInsertionLocation, int iInsertionLength);
/**
 * @param cHandle cast=(ControlRef)
 * @param containerID cast=(DataBrowserItemID)
 * @param numItems cast=(UInt32)
 * @param itemIDs cast=(const DataBrowserItemID *)
 * @param preSortProperty cast=(DataBrowserPropertyID)
 */
public static final native int AddDataBrowserItems(int cHandle, int containerID, int numItems, int[] itemIDs, int preSortProperty);
/**
 * @param browser cast=(ControlRef)
 * @param columnDesc cast=(DataBrowserListViewColumnDesc *)
 * @param position cast=(DataBrowserTableViewColumnIndex)
 */
public static final native int AddDataBrowserListViewColumn(int browser, DataBrowserListViewColumnDesc columnDesc, int position);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param theType cast=(FlavorType)
 * @param dataPtr cast=(const void *)
 * @param dataSize cast=(Size)
 * @param theFlags cast=(FlavorFlags)
 */
public static final native int AddDragItemFlavor(int theDrag, int theItemRef, int theType, byte[] dataPtr, int dataSize, int theFlags);  
/**
 * @param mHandle cast=(MenuRef)
 * @param sHandle cast=(CFStringRef)
 * @param attributes cast=(MenuItemAttributes)
 * @param commandID cast=(MenuCommand)
 * @param outItemIndex cast=(MenuItemIndex *)
 */
public static final native int AppendMenuItemTextWithCFString(int mHandle, int sHandle, int attributes, int commandID, short[] outItemIndex);
/**
 * @param inQueue cast=(EventQueueRef)
 * @param inList cast=(const EventTypeSpec *)
 */
public static final native int AcquireFirstMatchingEventInQueue(int inQueue, int inNumTypes, int[] inList, int inOptions);
/** @param cHandle cast=(ControlRef) */
public static final native int AutoSizeDataBrowserListViewColumns(int cHandle);
/** @param wHandle cast=(WindowRef) */
public static final native void BringToFront(int wHandle);
/** @param sHandle cast=(CFTypeRef) */
public static final native void CFRelease(int sHandle);
/** @param sHandle cast=(CFTypeRef) */
public static final native void CFRetain(int sHandle);
/** @param inEventLoop cast=(EventLoopRef) */
public static final native int GetCFRunLoopFromEventLoop(int inEventLoop);
/**
 * @param rl cast=(CFRunLoopRef)
 * @param observer cast=(CFRunLoopObserverRef)
 * @param mode cast=(CFStringRef)
 */
public static final native void CFRunLoopAddObserver(int rl, int observer, int mode);
/**
 * @param rl cast=(CFRunLoopRef)
 * @param source cast=(CFRunLoopSourceRef)
 * @param mode cast=(CFStringRef)
 */
public static final native void CFRunLoopAddSource(int rl, int source, int mode);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param activities cast=(CFOptionFlags)
 * @param order cast=(CFIndex)
 * @param callout cast=(CFRunLoopObserverCallBack)
 * @param context cast=(CFRunLoopObserverContext *)
 */
public static final native int CFRunLoopObserverCreate(int allocator, int activities, boolean repeats, int order, int callout, int context);
/** @param observer cast=(CFRunLoopObserverRef) */
public static final native void CFRunLoopObserverInvalidate(int observer);
/**
 * @param mode cast=(CFStringRef)
 * @param seconds cast=(CFTimeInterval)
 */
public static final native int CFRunLoopRunInMode(int mode, double seconds, boolean returnAfterSourceHandled);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param order cast=(CFIndex)
 */
public static final native int CFRunLoopSourceCreate(int allocator, int order, CFRunLoopSourceContext context);
/** @param source cast=(CFRunLoopSourceRef) */
public static final native void CFRunLoopSourceInvalidate(int source);
/** @param source cast=(CFRunLoopSourceRef) */
public static final native void CFRunLoopSourceSignal(int source);
/** @param rl cast=(CFRunLoopRef) */
public static final native void CFRunLoopStop(int rl);
/** @param rl cast=(CFRunLoopRef) */
public static final native void CFRunLoopWakeUp(int rl);
/**
 * @param theArray cast=(CFMutableArrayRef)
 * @param value cast=(const void *)
 */
public static final native void CFArrayAppendValue(int theArray, int value);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param capacity cast=(CFIndex)
 * @param callBacks cast=(const CFArrayCallBacks *)
 */
public static final native int CFArrayCreateMutable(int allocator, int capacity, int callBacks);
/** @param theArray cast=(CFArrayRef) */
public static final native int CFArrayGetCount(int theArray);
/** @param theArray cast=(CFArrayRef) */
public static final native int CFArrayGetValueAtIndex(int theArray, int idx);
/**
 * @param theSet cast=(CFMutableSetRef)
 * @param value cast=(const void *)
 */
public static final native void CFSetAddValue(int theSet, int value);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param capacity cast=(CFIndex)
 * @param callBacks cast=(const CFSetCallBacks *)
 */
public static final native int CFSetCreateMutable(int allocator, int capacity, int callBacks);
/** @param theSet cast=(CFMutableSetRef) */
public static final native int CFSetGetCount(int theSet);
/**
 * @param theSet cast=(CFMutableSetRef)
 * @param values cast=(const void **)
 */
public static final native void CFSetGetValues(int theSet, int[] values);
/**
 * @param theSet cast=(CFMutableSetRef)
 * @param value cast=(const void *)
 */
public static final native void CFSetRemoveValue(int theSet, int value);
/** 
 * @param allocater cast=(CFAllocatorRef)
 * @param directoryURL cast=(CFURLRef)
 * @param bundleType cast=(CFStringRef)
 */
public static final native int CFBundleCreateBundlesFromDirectory(int allocater, int directoryURL, int bundleType);
/** 
 * @param bundle cast=(CFBundleRef)
 * @param cFBundleDocumentTypes cast=(CFStringRef)
 */
public static final native int CFBundleGetValueForInfoDictionaryKey(int bundle, int cFBundleDocumentTypes);
public static final native int CFBundleGetMainBundle();
/** @param bundle cast=(CFBundleRef) */
public static final native int CFBundleGetIdentifier(int bundle);
/**
 * @param bundle cast=(CFBundleRef)
 * @param packageType cast=(UInt32 *)
 * @param packageCreator cast=(UInt32 *)
 */
public static final native void CFBundleGetPackageInfo(int bundle, int[] packageType, int[] packageCreator);
/**
 * @param theData cast=(CFDataRef)
 * @param range flags=struct
 * @param buffer cast=(UInt8 *)
 */
public static final native void CFDataGetBytes(int theData, CFRange range,  byte[] buffer); 
/** @param theData cast=(CFDataRef) */
public static final native int CFDataGetBytePtr(int theData);
/** @param theData cast=(CFDataRef) */
public static final native int CFDataGetLength(int theData);
/**
 * @param theDict cast=(CFDictionaryRef)
 * @param key cast=(const void *)
 * @param value cast=(const void **)
 */
public static final native boolean CFDictionaryGetValueIfPresent(int theDict, int key, int[] value);
/**
 * @param theString cast=(CFStringRef)
 * @param theOtherString cast=(CFStringRef)
 */
public static final native boolean CFEqual(int theString, int theOtherString);
public static final native int CFLocaleCopyCurrent();
/**
 * @param formatter cast=(CFNumberFormatterRef)
 * @param key cast=(CFStringRef)
 */
public static final native int CFNumberFormatterCopyProperty(int formatter, int key);
/**
 * @param alloc cast=(CFAllocatorRef)
 * @param locale cast=(CFLocaleRef)
 * @param style cast=(CFNumberFormatterStyle)
 */
public static final native int CFNumberFormatterCreate(int alloc, int locale, int style);
/**
 * @param alloc cast=(CFAllocatorRef)
 * @param bytes cast=(const UInt8 *)
 * @param numBytes cast=(CFIndex)
 * @param encoding cast=(CFStringEncoding)
 */
public static final native int CFStringCreateWithBytes(int alloc, byte[] bytes, int numBytes, int encoding, boolean isExternalRepresentation);
/**
 * @param alloc cast=(CFAllocatorRef)
 * @param chars cast=(const UniChar *)
 * @param numChars cast=(CFIndex)
 */
public static final native int CFStringCreateWithCharacters(int alloc, char[] chars, int numChars);
/**
 * @param alloc cast=(CFAllocatorRef)
 * @param chars cast=(const UniChar *)
 * @param numChars cast=(CFIndex)
 */
public static final native int CFStringCreateWithCharacters(int alloc, int chars, int numChars);
/**
 * @param theString cast=(CFStringRef)
 * @param range cast=(CFRange *),flags=struct
 * @param encoding cast=(CFStringEncoding)
 * @param lossByte cast=(UInt8)
 * @param isExternalRepresentation cast=(Boolean)
 * @param buffer cast=(UInt8 *)
 * @param maxBufLen cast=(CFIndex)
 * @param usedBufLen cast=(CFIndex *)
 */
public static final native int CFStringGetBytes(int theString, CFRange range, int encoding, byte lossByte, boolean isExternalRepresentation, byte[] buffer, int maxBufLen, int[] usedBufLen);
/**
 * @param theString cast=(CFStringRef)
 * @param range cast=(CFRange *),flags=struct
 * @param buffer cast=(UniChar *)
 */
public static final native void CFStringGetCharacters(int theString, CFRange range, char[] buffer);
/** @param theString cast=(CFStringRef) */
public static final native int CFStringGetLength(int theString);
public static final native int CFStringGetSystemEncoding();
/**
 * @param anURL cast=(CFURLRef)
 * @param pathStyle cast=(CFURLPathStyle)
 */
public static final native int CFURLCopyFileSystemPath(int anURL, int pathStyle);
/** @param url cast=(CFURLRef) */
public static final native int CFURLCopyLastPathComponent(int url);
/** @param url cast=(CFURLRef) */
public static final native int CFURLCopyPathExtension(int url);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param url cast=(CFURLRef)
 * @param encoding cast=(CFStringEncoding)
 * @param escapeWhitespace cast=(Boolean)
 */
public static final native int CFURLCreateData(int allocator, int url, int encoding, boolean escapeWhitespace);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param url cast=(CFURLRef)
 * @param pathComponent cast=(CFStringRef)
 * @param isDirectory cast=(Boolean)
 */
public static final native int CFURLCreateCopyAppendingPathComponent(int allocator, int url, int pathComponent, boolean isDirectory);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param url cast=(CFURLRef)
 * @param extension cast=(CFStringRef)
 */
public static final native int CFURLCreateCopyAppendingPathExtension(int allocator, int url, int extension);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param url cast=(CFURLRef)
 */
public static final native int CFURLCreateCopyDeletingLastPathComponent(int allocator, int url);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param fsRef cast=(const struct FSRef *)
 */
public static final native int CFURLCreateFromFSRef(int allocator, byte[] fsRef);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param URLBytes cast=(const UInt8 *)
 * @param length cast=(CFIndex)
 * @param encoding cast=(CFStringEncoding)
 * @param baseURL cast=(CFURLRef)
 */
public static final native int CFURLCreateWithBytes(int allocator, byte[] URLBytes, int length, int encoding, int baseURL);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param filePath cast=(CFStringRef)
 * @param pathStyle cast=(CFURLPathStyle)
 */
public static final native int CFURLCreateWithFileSystemPath (int allocator, int filePath, int pathStyle, boolean isDirectory);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param buffer cast=(const UInt8 *)
 */
public static final native int CFURLCreateFromFileSystemRepresentation(int allocator, int buffer, int bufLen, boolean isDirectory);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param URLString cast=(CFStringRef)
 * @param baseURL cast=(CFURLRef)
 */
public static final native int CFURLCreateWithString(int allocator, int URLString, int baseURL);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param originalString cast=(CFStringRef)
 * @param charactersToLeaveUnescaped cast=(CFStringRef)
 * @param legalURLCharactersToBeEscaped cast=(CFStringRef)
 */
public static final native int CFURLCreateStringByAddingPercentEscapes(int allocator, int originalString, int charactersToLeaveUnescaped, int legalURLCharactersToBeEscaped, int encoding);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param originalString cast=(CFStringRef)
 * @param charactersToLeaveUnescaped cast=(CFStringRef)
 */
public static final native int CFURLCreateStringByReplacingPercentEscapes(int allocator, int originalString, int charactersToLeaveUnescaped);
/**
 * @param url cast=(CFURLRef)
 * @param fsRef cast=(struct FSRef *)
 */
public static final native boolean CFURLGetFSRef(int url, byte[] fsRef);
/** @method flags=no_gen */
public static final native void CGAffineTransformConcat (float[] t1, float[] t2, float[] result);
/** @method flags=no_gen */
public static final native void CGAffineTransformMake (float a, float b, float c, float d, float tx, float ty, float[] result);
/** @method flags=no_gen */
public static final native void CGAffineTransformTranslate (float[] t, float tx, float ty, float[] result);
/** @method flags=no_gen */
public static final native void CGAffineTransformRotate (float[] t, float angle, float[] result);
/** @method flags=no_gen */
public static final native void CGAffineTransformScale (float[] t, float sx, float sy, float[] result);
/** @method flags=no_gen */
public static final native void CGAffineTransformInvert (float[] t, float[] result);
/**
 * @param inContext cast=(CGContextRef)
 * @param sx cast=(float)
 * @param sy cast=(float)
 */
public static final native void CGContextScaleCTM(int inContext, float sx, float sy);
/**
 * @param inContext cast=(CGContextRef)
 * @param tx cast=(float)
 * @param ty cast=(float)
 */
public static final native void CGContextTranslateCTM(int inContext, float tx, float ty);
/**
 * @param data cast=(void *)
 * @param width cast=(size_t)
 * @param height cast=(size_t)
 * @param bitsPerComponent cast=(size_t)
 * @param bytesPerRow cast=(size_t)
 * @param colorspace cast=(CGColorSpaceRef)
 * @param alphaInfo cast=(CGImageAlphaInfo)
 */
public static final native int CGBitmapContextCreate(int data, int width, int height, int bitsPerComponent, int bytesPerRow, int colorspace, int alphaInfo);
/** @param colorspace cast=(CGColorSpaceRef) */
public static final native int CGColorCreate(int colorspace, float[] components);
/** @param color cast=(CGColorRef) */
public static final native void CGColorRelease(int color);
/** @param baseSpace cast=(CGColorSpaceRef) */
public static final native int CGColorSpaceCreatePattern(int baseSpace);
public static final native int CGColorSpaceCreateDeviceRGB ();
/** @method flags=dynamic */
public static final native int CGBitmapContextCreateImage(int context);
/** @param cs cast=(CGColorSpaceRef) */
public static final native void CGColorSpaceRelease (int cs);
/**
 * @param ctx cast=(CGContextRef)
 * @param x cast=(float)
 * @param y cast=(float)
 * @param radius cast=(float)
 * @param startAngle cast=(float)
 * @param endAngle cast=(float)
 * @param clockwise cast=(Boolean)
 */
public static final native void CGContextAddArc (int ctx, float x, float y, float radius, float startAngle, float endAngle, boolean clockwise);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextAddArcToPoint (int ctx, float x1, float y1, float x2, float y2, float radius);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextAddLineToPoint (int ctx, float x, float y);
/**
 * @param ctx cast=(CGContextRef)
 * @param points cast=(const CGPoint *)
 * @param count cast=(size_t)
 */
public static final native void CGContextAddLines (int ctx, float[] points, int count);
/**
 * @param context cast=(CGContextRef)
 * @param rect flags=struct
 */
public static final native void CGContextAddRect (int context, CGRect rect);
/**
 * @param context cast=(CGContextRef)
 * @param path cast=(CGPathRef)
 */
public static final native void CGContextAddPath (int context, int path);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextBeginPath (int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextClip (int ctx);
/**
 * @param ctx cast=(CGContextRef)
 * @param rect cast=(CGRect *),flags=struct
 */
public static final native void CGContextClearRect (int ctx, CGRect rect);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextClosePath (int ctx);
/**
 * @param context cast=(CGContextRef)
 * @param transform cast=(CGAffineTransform *),flags=struct
 */
public static final native void CGContextConcatCTM (int context, float[] transform);
/**
 * @param ctx cast=(CGContextRef)
 * @param rect cast=(CGRect *),flags=struct
 * @param image cast=(CGImageRef)
 */
public static final native void CGContextDrawImage (int ctx, CGRect rect, int image);
/**
 * @param context cast=(CGContextRef)
 * @param shading cast=(CGShadingRef)
 */
public static final native void CGContextDrawShading (int context, int shading);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextEOClip (int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextEOFillPath (int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextFillPath (int ctx);
/**
 * @param ctx cast=(CGContextRef)
 * @param rect cast=(CGRect *),flags=struct
 */
public static final native void CGContextStrokeRect (int ctx, CGRect rect);
/**
 * @param ctx cast=(CGContextRef)
 * @param rect cast=(CGRect *),flags=struct
 */
public static final native void CGContextFillRect (int ctx, CGRect rect);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextFlush (int ctx);
/** @method flags=no_gen */
public static final native void CGContextGetCTM (int context, float[] result);
/** @param context cast=(CGContextRef) */
public static final native int CGContextGetInterpolationQuality (int context	);
/**
 * @method flags=no_gen
 * @param ctx cast=(CGContextRef)
 */
public static final native void CGContextGetPathBoundingBox(int ctx, CGRect rect);
/**
 * @method flags=no_gen
 * @param ctx cast=(CGContextRef)
 * @param point cast=(CGPoint)
 */
public static final native void CGContextGetTextPosition (int ctx, CGPoint point);
/**
 * @param ctx cast=(CGContextRef)
 * @param x cast=(float)
 * @param y cast=(float)
 */
public static final native void CGContextMoveToPoint (int ctx, float x, float y);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextRelease(int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextRotateCTM(int ctx, float angle);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextRestoreGState(int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextSaveGState(int ctx);
/**
 * @param ctx cast=(CGContextRef)
 * @param name cast=(const char *)
 * @param size cast=(float)
 * @param textEncoding cast=(CGTextEncoding)
 */
public static final native void CGContextSelectFont (int ctx, byte[] name, float size, int textEncoding);
/**
 * @param ctx cast=(CGContextRef)
 * @param colorspace cast=(CGColorSpaceRef)
 */
public static final native void CGContextSetFillColorSpace (int ctx, int colorspace);
/**
 * @param context cast=(CGContextRef)
 * @param pattern cast=(CGPatternRef)
 */
public static final native void CGContextSetFillPattern (int context, int pattern, float[] components);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetAlpha (int context, float alpha);
/**
 * @method flags=dynamic
 * @param context cast=(CGContextRef)
 */
public static final native void CGContextSetBlendMode(int context, int mode);
/**
 * @param ctx cast=(CGContextRef)
 * @param value cast=(const float *)
 */
public static final native void CGContextSetFillColor (int ctx, float[] value);
/**
 * @param ctx cast=(CGContextRef)
 * @param font cast=(CGFontRef)
 */
public static final native void CGContextSetFont (int ctx, int font);
/**
 * @param ctx cast=(CGContextRef)
 * @param size cast=(float)
 */
public static final native void CGContextSetFontSize (int ctx, float size);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetInterpolationQuality (int context, int quality);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetLineCap (int context, int cap); 
/**
 * @param ctx cast=(CGContextRef)
 * @param phase cast=(float)
 * @param lengths cast=(const float *)
 * @param count cast=(size_t)
 */
public static final native void CGContextSetLineDash (int ctx, float phase, float[] lengths, int count);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetLineJoin (int context, int join); 
/**
 * @param ctx cast=(CGContextRef)
 * @param width cast=(float)
 */
public static final native void CGContextSetLineWidth (int ctx, float width);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetMiterLimit (int context, float limit);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextSetShouldAntialias (int ctx, boolean shouldAntialias);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextSetShouldSmoothFonts (int ctx, boolean shouldSmooth);
/**
 * @param ctx cast=(CGContextRef)
 * @param colorspace cast=(CGColorSpaceRef)
 */
public static final native void CGContextSetStrokeColorSpace (int ctx, int colorspace);
/**
 * @param ctx cast=(CGContextRef)
 * @param value cast=(const float *)
 */
public static final native void CGContextSetStrokeColor (int ctx, float[] value);
/**
 * @param context cast=(CGContextRef)
 * @param pattern cast=(CGPatternRef)
 */
public static final native void CGContextSetStrokePattern (int context, int pattern, float[] components);
/** @param context cast=(CGContextRef) */
public static final native void CGContextSetRenderingIntent (int context, int intent);
/**
 * @param ctx cast=(CGContextRef)
 * @param r cast=(float)
 * @param g cast=(float)
 * @param b cast=(float)
 * @param alpha cast=(float)
 */
public static final native void CGContextSetRGBFillColor (int ctx, float r, float g, float b, float alpha);
/**
 * @param ctx cast=(CGContextRef)
 * @param r cast=(float)
 * @param g cast=(float)
 * @param b cast=(float)
 * @param alpha cast=(float)
 */
public static final native void CGContextSetRGBStrokeColor (int ctx, float r, float g, float b, float alpha);
/**
 * @param ctx cast=(CGContextRef)
 * @param mode cast=(CGTextDrawingMode)
 */
public static final native void CGContextSetTextDrawingMode (int ctx, int mode);
/**
 * @param ctx cast=(CGContextRef)
 * @param x cast=(float)
 * @param y cast=(float)
 */
public static final native void CGContextSetTextPosition (int ctx, float x, float y);
/**
 * @param ctx cast=(CGContextRef)
 * @param cstring cast=(const char *)
 * @param length cast=(size_t)
 */
public static final native void CGContextShowText (int ctx, byte[] cstring, int length);
/**
 * @param ctx cast=(CGContextRef)
 * @param x cast=(float)
 * @param y cast=(float)
 * @param cstring cast=(const char *)
 * @param length cast=(size_t)
 */
public static final native void CGContextShowTextAtPoint (int ctx, float x, float y, byte[] cstring, int length);
/**
 * @param ctx cast=(CGContextRef)
 * @param transform cast=(CGAffineTransform *),flags=struct
 */
public static final native void CGContextSetTextMatrix (int ctx, float[] transform);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextStrokePath (int ctx);
/** @param ctx cast=(CGContextRef) */
public static final native void CGContextSynchronize (int ctx);
public static final native boolean CGCursorIsVisible ();
/**
 * @param info cast=(void *)
 * @param domainDimension cast=(size_t)
 * @param domain cast=(const float *)
 * @param rangeDimension cast=(size_t)
 * @param range cast=(const float *)
 * @param callbacks cast=(const CGFunctionCallbacks *)
 */
public static final native int CGFunctionCreate (int info, int domainDimension, float[] domain, int rangeDimension, float[] range, CGFunctionCallbacks callbacks);
/** @param function cast=(CGFunctionRef) */
public static final native void CGFunctionRelease (int function);
/**
 * @param info cast=(void *)
 * @param data cast=(const void *)
 * @param size cast=(size_t)
 * @param releaseData cast=(void *)
 */
public static final native int CGDataProviderCreateWithData (int info, int data, int size, int releaseData);
/** @param url cast=(CFURLRef) */
public static final native int CGDataProviderCreateWithURL (int url);
/** @param provider cast=(CGDataProviderRef) */
public static final native void CGDataProviderRelease (int provider);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayBaseAddress (int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayBitsPerPixel (int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayBitsPerSample (int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayBytesPerRow (int display);
/**
 * @method flags=dynamic
 * @param displayID cast=(CGDirectDisplayID)
 */
public static final native int /*long*/ CGDisplayCreateImage(int displayID);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayPixelsHigh (int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayPixelsWide (int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayHideCursor(int display);
/** @param display cast=(CGDirectDisplayID) */
public static final native int CGDisplayShowCursor(int display);
/**
 * @method flags=no_gen
 * @param display cast=(CGDirectDisplayID)
 * @param result flags=struct
 */
public static final native void CGDisplayBounds(int display, CGRect result);
public static final native int CGMainDisplayID();
public static final native int CGFontCreateWithPlatformFont (int[] platformFontReference);
/** @param font cast=(CGFontRef) */
public static final native void CGFontRelease (int font);
/**
 * @param rect flags=struct
 * @param maxDisplays cast=(CGDisplayCount)
 * @param dspys cast=(CGDirectDisplayID *)
 * @param dspyCnt cast=(CGDisplayCount *)
 */
public static final native int CGGetDisplaysWithRect (CGRect rect, int maxDisplays, int[] dspys, int[] dspyCnt);
/**
 * @param width cast=(size_t)
 * @param height cast=(size_t)
 * @param bitsPerComponent cast=(size_t)
 * @param bitsPerPixel cast=(size_t)
 * @param bytesPerRow cast=(size_t)
 * @param colorspace cast=(CGColorSpaceRef)
 * @param alphaInfo cast=(CGImageAlphaInfo)
 * @param provider cast=(CGDataProviderRef)
 * @param decode cast=(const float *)
 * @param shouldInterpolate cast=(Boolean)
 * @param intent cast=(CGColorRenderingIntent)
 */
public static final native int CGImageCreate (int width, int height, int bitsPerComponent, int bitsPerPixel, int bytesPerRow, int colorspace, int alphaInfo, int provider, float[] decode, boolean shouldInterpolate, int intent);
/**
 * @method flags=dynamic
 */
public static final native int CGImageCreateCopy (int image);
/**
 * @method flags=dynamic
 * @param rect flags=struct
 */
public static final native int CGImageCreateWithImageInRect(int image, CGRect rect);
/** @param source cast=(CGDataProviderRef) */
public static final native int CGImageCreateWithPNGDataProvider (int source, float[] decode, boolean shouldInterpolate, int intent);
/** @param source cast=(CGDataProviderRef) */
public static final native int CGImageCreateWithJPEGDataProvider (int source, float[] decode, boolean shouldInterpolate, int intent);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetAlphaInfo (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetBitsPerComponent (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetBitsPerPixel (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetBytesPerRow (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetDataProvider (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetColorSpace (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetHeight (int image);
/** @param image cast=(CGImageRef) */
public static final native int CGImageGetWidth (int image);
/** @param image cast=(CGImageRef) */
public static final native void CGImageRelease (int image);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 */
public static final native void CGPathAddArc (int path, float[] m, float x, float y, float r, float startAngle, float endAngle, boolean clockwise);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 */
public static final native void CGPathAddCurveToPoint (int path, float[] m, float cx1, float cy1, float cx2, float cy2, float x, float y);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 */
public static final native void CGPathAddLineToPoint (int path, float[] m, float x, float y);
/**
 * @param path1 cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 * @param path2 cast=(CGPathRef)
 */
public static final native void CGPathAddPath (int path1, float[] m, int path2);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 */
public static final native void CGPathAddQuadCurveToPoint (int path, float[] m, float cx, float cy, float x, float y);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 * @param rect flags=struct
 */
public static final native void CGPathAddRect (int path, float[] m, CGRect rect);
/**
 * @param path cast=(CGPathRef)
 * @param info cast=(void *)
 * @param function cast=(CGPathApplierFunction)
 */
public static final native void CGPathApply (int path, int info, int function);
/** @param path cast=(CGMutablePathRef) */
public static final native void CGPathCloseSubpath (int path);
public static final native int CGPathCreateMutable ();
/** @param path cast=(CGPathRef) */
public static final native int CGPathCreateMutableCopy (int path);
/**
 * @method flags=no_gen
 * @param path cast=(CGPathRef)
 */
public static final native void CGPathGetBoundingBox (int path, CGRect rect);
/**
 * @method flags=no_gen
 * @param path cast=(CGPathRef)
 */
public static final native void CGPathGetCurrentPoint (int path, CGPoint point);
/** @param path cast=(CGPathRef) */
public static final native boolean CGPathIsEmpty (int path);
/**
 * @param path cast=(CGMutablePathRef)
 * @param m cast=(const CGAffineTransform *)
 */
public static final native void CGPathMoveToPoint (int path, float[] m, float x, float y);
/** @param path cast=(CGPathRef) */
public static final native void CGPathRelease (int path);
/**
 * @param info cast=(void *)
 * @param bounds flags=struct
 * @param matrix cast=(CGAffineTransform *),flags=struct
 * @param tiling cast=(CGPatternTiling)
 * @param callbacks cast=(const CGPatternCallbacks *)
 */
public static final native int CGPatternCreate (int info, CGRect bounds, float[] matrix, float xStep, float yStep, int tiling, int isColored, CGPatternCallbacks callbacks);
/** @param pattern cast=(CGPatternRef) */
public static final native void CGPatternRelease (int pattern);
/** @method flags=no_gen */
public static final native void CGPointApplyAffineTransform (CGPoint point, float[] t, CGPoint result);
/**
 * @param mouseCursorPosition flags=struct
 * @param updateMouseCursorPosition cast=(boolean_t)
 * @param mouseButtonDown cast=(boolean_t)
 * @param mouseButtonDown2 cast=(boolean_t)
 * @param mouseButtonDown3 cast=(boolean_t)
 * @param mouseButtonDown4 cast=(boolean_t)
 * @param mouseButtonDown5 cast=(boolean_t)
 */
public static final native int CGPostMouseEvent(CGPoint mouseCursorPosition, boolean updateMouseCursorPosition, int buttonCount, boolean mouseButtonDown, boolean mouseButtonDown2, boolean mouseButtonDown3, boolean mouseButtonDown4, boolean mouseButtonDown5);
/**
 * @param keyChar cast=(CGCharCode)
 * @param virtualKey cast=(CGKeyCode)
 * @param keyDown cast=(boolean_t)
 */
public static final native int CGPostKeyboardEvent(int keyChar, int virtualKey, boolean keyDown);
public static final native int CGPostScrollWheelEvent(int wheelCount, int wheel1);
/**
 * @param rect flags=struct
 * @param point flags=struct
 */
public static final native int CGRectContainsPoint(CGRect rect, CGPoint point);
/**
 * @method flags=no_gen
 * @param r1 flags=struct no_out
 * @param r2 flags=struct no_out
 * @param result flags=struct no_in
 */
public static final native void CGRectUnion (CGRect r1, CGRect r2, CGRect result);
/**
 * @param colorspace cast=(CGColorSpaceRef)
 * @param start flags=struct
 * @param end flags=struct
 * @param function cast=(CGFunctionRef)
 */
public static final native int CGShadingCreateAxial (int colorspace, CGPoint start, CGPoint end, int function, boolean extendStart, boolean extendEnd);
/**
 * @param colorspace cast=(CGColorSpaceRef)
 * @param start flags=struct
 * @param end flags=struct
 * @param function cast=(CGFunctionRef)
 */
public static final native int CGShadingCreateRadial (int colorspace, CGPoint start, float startRadius, CGPoint end, float endRadius, int function, boolean extendStart, boolean extendEnd);
/** @param shading cast=(CGShadingRef) */
public static final native void CGShadingRelease (int shading);
/** @method flags=no_gen */
public static final native void CGSizeApplyAffineTransform (CGSize size, float[] t, CGSize result);
/** @param newCursorPosition flags=struct */
public static final native int CGWarpMouseCursorPosition (CGPoint newCursorPosition);
/**
 * @param menu cast=(MenuRef)
 * @param item cast=(MenuItemIndex)
 * @param setTheseAttributes cast=(MenuItemAttributes)
 * @param clearTheseAttributes cast=(MenuItemAttributes)
 */
public static final native int ChangeMenuItemAttributes(int menu, int item, int setTheseAttributes, int clearTheseAttributes);
/**
 * @param windowHandle cast=(WindowRef)
 * @param setAttributes cast=(WindowAttributes)
 * @param clearAttributes cast=(WindowAttributes)
 */
public static final native int ChangeWindowAttributes(int windowHandle, int setAttributes, int clearAttributes);
public static final native int CPSEnableForegroundOperation(int[] psn, int arg2, int arg3, int arg4, int arg5);
public static final native int CPSSetProcessName(int[] psn, byte[] name);
/**
 * @param nextHandler cast=(EventHandlerCallRef)
 * @param eventRefHandle cast=(EventRef)
 */
public static final native int CallNextEventHandler(int nextHandler, int eventRefHandle);
public static final native void Call(int proc, int arg1, int arg2);
/** @param theMenu cast=(MenuRef) */
public static final native void CalcMenuSize(int theMenu);
/** @param inRootMenu cast=(MenuRef) */
public static final native int CancelMenuTracking(int inRootMenu, boolean inImmediate, int inDismissalReason); 
public static final native int ClearCurrentScrap();
/** @param inWindow cast=(WindowRef) */
public static final native int ClearKeyboardFocus(int inWindow);
public static final native void ClearMenuBar();
/**
 * @param inContext cast=(CGContextRef)
 * @param portRect cast=(const Rect *)
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native int ClipCGContextToRegion(int inContext, Rect portRect, int rgnHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param container cast=(DataBrowserItemID)
 */
public static final native int CloseDataBrowserContainer(int cHandle, int container);
public static final native void ClosePicture();
/** @param dstRgn cast=(RgnHandle) */
public static final native void CloseRgn(int dstRgn);
/**
 * @param wHandle cast=(WindowRef)
 * @param collapse cast=(Boolean)
 */
public static final native int CollapseWindow(int wHandle, boolean collapse);
/**
 * @param inMenu cast=(MenuRef)
 * @param inGlobalLocation flags=struct
 * @param inHelpItemString cast=(ConstStr255Param)
 * @param outUserSelectionType cast=(UInt32 *)
 * @param outMenuID cast=(SInt16 *)
 * @param outMenuItem cast=(MenuItemIndex *)
 */
public static final native int ContextualMenuSelect (int inMenu, Point inGlobalLocation, boolean inReserved, int  inHelpType, byte[] inHelpItemString, AEDesc inSelection, int[] outUserSelectionType, short[] outMenuID, short[] outMenuItem);
/**
 * @param inEvent cast=(EventRef)
 * @param outEvent cast=(EventRecord *)
 */
public static final native boolean ConvertEventRefToEventRecord(int inEvent, EventRecord outEvent);
/**
 * @param iTextToUnicodeInfo cast=(TextToUnicodeInfo)
 * @param iPascalStr cast=(ConstStr255Param)
 * @param oUnicodeLen cast=(ByteCount *)
 */
public static final native int ConvertFromPStringToUnicode(int iTextToUnicodeInfo, byte[] iPascalStr, int iOutputBufLen, int[] oUnicodeLen, char[] oUnicodeStr);
/**
 * @param iUnicodeToTextInfo cast=(UnicodeToTextInfo)
 * @param iUnicodeStr cast=(ConstUniCharArrayPtr)
 * @param oPascalStr cast=(unsigned char *)
 */
public static final native int ConvertFromUnicodeToPString (int iUnicodeToTextInfo, int iUnicodeLen, char[] iUnicodeStr, byte[] oPascalStr); 
/**
 * @param srcPixMapHandle cast=(const BitMap *)
 * @param dstPixMapHandle cast=(const BitMap *)
 * @param srcRect cast=(const Rect *)
 * @param dstRect cast=(const Rect *)
 * @param mode cast=(short)
 * @param maskRgn cast=(RgnHandle)
 */
public static final native void CopyBits(int srcPixMapHandle, int dstPixMapHandle, Rect srcRect, Rect dstRect, short mode, int maskRgn);
/**
 * @param cHandle cast=(ControlRef)
 * @param sHandle cast=(CFStringRef *)
 */
public static final native int CopyControlTitleAsCFString(int cHandle, int[] sHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 * @param sHandle cast=(CFStringRef *)
 */
public static final native int CopyMenuItemTextAsCFString(int mHandle, short index, int[] sHandle);
/**
 * @param srcRgnHandle cast=(RgnHandle)
 * @param dstRgnHandle cast=(RgnHandle)
 */
public static final native void CopyRgn(int srcRgnHandle, int dstRgnHandle);
/**
 * @param theDrag cast=(DragRef)
 * @param numItems cast=(UInt16 *)
 */
public static final native int CountDragItems(int theDrag, short[] numItems);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param numFlavors cast=(UInt16 *)
 */
public static final native int CountDragItemFlavors(int theDrag, int theItemRef, short[] numFlavors);
/** @param mHandle cast=(MenuRef) */
public static final native short CountMenuItems(int mHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param count cast=(UInt16 *)
 */
public static final native int CountSubControls(int cHandle, short[] count);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param title cast=(CFStringRef)
 * @param thickness cast=(ControlBevelThickness)
 * @param behavior cast=(ControlBevelButtonBehavior)
 * @param info cast=(ControlButtonContentInfoPtr)
 * @param menuID cast=(SInt16)
 * @param menuBehavior cast=(ControlBevelButtonMenuBehavior)
 * @param menuPlacement cast=(ControlBevelButtonMenuPlacement)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateBevelButtonControl(int window, Rect boundsRect, int title, short thickness, short behavior, int info, short menuID, short menuBehavior, short menuPlacement, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param clockType cast=(ControlClockType)
 * @param clockFlags cast=(ControlClockFlags)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateClockControl(int window, Rect boundsRect, int clockType, int clockFlags, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param title cast=(CFStringRef)
 * @param initialValue cast=(SInt32)
 * @param autoToggle cast=(Boolean)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateCheckBoxControl(int window, Rect boundsRect, int title, int initialValue, boolean autoToggle, int[] outControl);
/**
 * @param inPort cast=(CGrafPtr)
 * @param outContext cast=(CGContextRef *)
 */
public static final native int CreateCGContextForPort(int inPort, int[] outContext);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param style cast=(DataBrowserViewStyle)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateDataBrowserControl(int window, Rect boundsRect, int style,int[] outControl);
/**
 * @param allocator cast=(CFAllocatorRef)
 * @param inClassID cast=(UInt32)
 * @param kind cast=(UInt32)
 * @param when cast=(EventTime)
 * @param flags cast=(EventAttributes)
 * @param outEventRef cast=(EventRef *)
 */
public static final native int CreateEvent(int allocator, int inClassID, int kind, double when, int flags, int[] outEventRef);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param title cast=(CFStringRef)
 * @param primary cast=(Boolean)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateGroupBoxControl(int window, Rect boundsRect, int title, boolean primary, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateIconControl(int window, Rect boundsRect, ControlButtonContentInfo icon, boolean dontTrack, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateLittleArrowsControl(int window, Rect boundsRect, int value, int minimum, int maximum, int increment, int[] outControl);
/**
 * @param menuID cast=(MenuID)
 * @param menuAttributes cast=(MenuAttributes)
 * @param outMenuRef cast=(MenuRef *)
 */
public static final native int CreateNewMenu(short menuID, int menuAttributes, int[] outMenuRef);
/**
 * @param windowClass cast=(WindowClass)
 * @param attributes cast=(WindowAttributes)
 * @param bounds cast=(const Rect *)
 * @param wHandle cast=(WindowRef *)
 */
public static final native int CreateNewWindow(int windowClass, int attributes, Rect bounds, int[] wHandle);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param orientation cast=(ControlPopupArrowOrientation)
 * @param size cast=(ControlPopupArrowSize)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreatePopupArrowControl(int window, Rect boundsRect, short orientation, short size, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param title cast=(CFStringRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreatePopupButtonControl(int window, Rect boundsRect, int title, short menuID, boolean variableWidth, short titleWidth, short titleJustification, int titleStyle, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateProgressBarControl(int window, Rect boundsRect, int value, int minimim, int maximum, boolean indeterminate, int [] outControl);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param title cast=(CFStringRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreatePushButtonControl(int window, Rect boundsRect, int title, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param title cast=(CFStringRef)
 * @param icon cast=(ControlButtonContentInfo *)
 * @param iconAlignment cast=(ControlPushButtonIconAlignment)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreatePushButtonWithIconControl(int window, Rect boundsRect, int title, ControlButtonContentInfo icon, short iconAlignment, int[] outControl);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param title cast=(CFStringRef)
 * @param initialValue cast=(SInt32)
 * @param autoToggle cast=(Boolean)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateRadioButtonControl(int window, Rect boundsRect, int title, int initialValue, boolean autoToggle, int[] outControl);
/**
 * @param windowHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef *)
 */
public static final native int CreateRootControl(int windowHandle, int[] cHandle);
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param value cast=(SInt32)
 * @param minimum cast=(SInt32)
 * @param maximum cast=(SInt32)
 * @param orientation cast=(ControlSliderOrientation)
 * @param numTickMarks cast=(UInt16)
 * @param liveTracking cast=(Boolean)
 * @param liveTrackingProc cast=(ControlActionUPP)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateSliderControl(int window, Rect boundsRect, int value, int minimum, int maximum, int orientation, short numTickMarks, boolean liveTracking, int liveTrackingProc, int [] outControl);
/**
 * @param window cast=(WindowRef)
 * @param liveTrackingProc cast=(ControlActionUPP)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateScrollBarControl(int window, Rect boundsRect, int value, int minimum, int maximum, int viewSize, boolean liveTracking, int liveTrackingProc, int [] outControl);
/**
 * @param window cast=(WindowRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateSeparatorControl(int window, Rect boundsRect, int [] outControl);
/**
 * @param alertType cast=(AlertType)
 * @param errorSHandle cast=(CFStringRef)
 * @param explanationSHandle cast=(CFStringRef)
 * @param alertParamHandle cast=(const AlertStdCFStringAlertParamRec *)
 * @param dialogHandle cast=(DialogRef *)
 */
public static final native int CreateStandardAlert(short alertType, int errorSHandle, int explanationSHandle, AlertStdCFStringAlertParamRec alertParamHandle, int[] dialogHandle);
/**
 * @param window cast=(WindowRef)
 * @param text cast=(CFStringRef)
 * @param style cast=(const ControlFontStyleRec *)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateStaticTextControl(int window, Rect boundsRect, int text, ControlFontStyleRec style, int [] outControl);    
/**
 * @param window cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param size cast=(ControlTabSize)
 * @param direction cast=(ControlTabDirection)
 * @param numTabs cast=(UInt16)
 * @param tabArray cast=(const ControlTabEntry *)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateTabsControl(int window, Rect boundsRect, short size, short direction, short numTabs, int tabArray, int[] outControl);
/**
 * @param iEncoding cast=(TextEncoding)
 * @param oTextToUnicodeInfo cast=(TextToUnicodeInfo *)
 */
public static final native int CreateTextToUnicodeInfoByEncoding(int iEncoding, int[] oTextToUnicodeInfo);
/**
 * @param iEncoding cast=(TextEncoding)
 * @param oUnicodeToTextInfo cast=(UnicodeToTextInfo *)
 */
public static final native int CreateUnicodeToTextInfoByEncoding (int iEncoding, int[] oUnicodeToTextInfo);
/**
 * @param window cast=(WindowRef)
 * @param text cast=(CFStringRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateEditUnicodeTextControl(int window, Rect boundsRect, int text, boolean isPassword, ControlFontStyleRec style, int [] outControl);
/**
 * @param window cast=(WindowRef)
 * @param outControl cast=(ControlRef *)
 */
public static final native int CreateUserPaneControl(int window, Rect boundsRect, int features, int [] outControl);
/**
 * @param inAttributes cast=(WindowGroupAttributes)
 * @param outGroup cast=(WindowGroupRef *)
 */
public static final native int CreateWindowGroup (int inAttributes, int [] outGroup);
/** @method flags=dynamic */
public static final native int DataBrowserChangeAttributes(int inDataBrowser, int inAttributesToSet, int inAttributesToClear);
/** @method flags=dynamic */
public static final native int DataBrowserGetMetric(int inDataBrowser, int inMetric, boolean[] outUsingDefaultValue, float[] outValue);
/** @method flags=dynamic */
public static final native int DataBrowserSetMetric(int inDataBrowser, int inMetric, boolean inUseDefaultValue, float inValue);
/** @method flags=dynamic */
public static final native int DataBrowserGetAttributes(int inDataBrowser, int[] outAttributes); 
/** @param idocID cast=(TSMDocumentID) */
public static final native int DeactivateTSMDocument(int idocID);
/** @param menuID cast=(MenuID) */
public static final native void DeleteMenu(short menuID);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(short)
 */
public static final native void DeleteMenuItem(int mHandle, short index);
/**
 * @param mHandle cast=(MenuRef)
 * @param firstItem cast=(MenuItemIndex)
 * @param numItems cast=(ItemCount)
 */
public static final native int DeleteMenuItems(int mHandle, short firstItem, int numItems);
/** @param idocID cast=(TSMDocumentID) */
public static final native int DeleteTSMDocument(int idocID);
/**
 * @param srcRgnA cast=(RgnHandle)
 * @param srcRgnB cast=(RgnHandle)
 * @param dstRgn cast=(RgnHandle)
 */
public static final native void DiffRgn(int srcRgnA, int srcRgnB, int dstRgn);
/** @param cHandle cast=(ControlRef) */
public static final native int DisableControl(int cHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 */
public static final native void DisableMenuCommand(int mHandle, int commandId);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 */
public static final native void DisableMenuItem(int mHandle, short index);
/** @param cHandle cast=(ControlRef) */
public static final native void DisposeControl(int cHandle);
/** @param theDrag cast=(DragRef) */
public static final native int DisposeDrag(int theDrag);
/** @param offscreenGWorld cast=(GWorldPtr) */
public static final native void DisposeGWorld(int offscreenGWorld);
/** @param handle cast=(Handle) */
public static final native void DisposeHandle(int handle);
/** @param mHandle cast=(MenuRef) */
public static final native void DisposeMenu(int mHandle);
/** @param ptr cast=(Ptr) */
public static final native void DisposePtr(int ptr);
/** @param rgnHandle cast=(RgnHandle) */
public static final native void DisposeRgn(int rgnHandle);
/** @param ioTextToUnicodeInfo cast=(TextToUnicodeInfo *) */
public static final native int DisposeTextToUnicodeInfo(int[] ioTextToUnicodeInfo);
/** @param ioUnicodeToTextInfo cast=(UnicodeToTextInfo *) */
public static final native int DisposeUnicodeToTextInfo(int[] ioUnicodeToTextInfo);
/** @param wHandle cast=(WindowRef) */
public static final native void DisposeWindow(int wHandle);
/** @param inControl cast=(ControlRef) */
public static final native void DrawControlInCurrentPort(int inControl);
public static final native void DrawMenuBar();
/**
 * @param picHandle cast=(PicHandle)
 * @param rect cast=(const Rect *)
 */
public static final native void DrawPicture(int picHandle, Rect rect);
/**
 * @param inBounds cast=(Rect *)
 * @param inKind cast=(ThemeButtonKind)
 * @param inNewInfo cast=(const ThemeButtonDrawInfo *)
 * @param inPrevInfo cast=(const ThemeButtonDrawInfo *)
 * @param inEraseProc cast=(ThemeEraseUPP)
 * @param inLabelProc cast=(ThemeButtonDrawUPP)
 * @param inUserData cast=(UInt32)
 */
public static final native int DrawThemeButton(Rect inBounds, short inKind, ThemeButtonDrawInfo inNewInfo, ThemeButtonDrawInfo inPrevInfo, int inEraseProc, int inLabelProc, int inUserData);
/**
 * @param bounds cast=(const Rect *)
 * @param state cast=(ThemeDrawState)
 */
public static final native int DrawThemeEditTextFrame(Rect bounds, int state);
/**
 * @param bounds cast=(const Rect *)
 * @param hasFocus cast=(Boolean)
 */
public static final native int DrawThemeFocusRect(Rect bounds, boolean hasFocus);
/**
 * @param orientation cast=(ThemeArrowOrientation)
 * @param size cast=(ThemePopupArrowSize)
 * @param state cast=(ThemeDrawState)
 * @param eraseProc cast=(ThemeEraseUPP)
 * @param eraseData cast=(UInt32)
 */
public static final native int DrawThemePopupArrow(Rect bounds,short orientation, short size, int state, int eraseProc, int eraseData); 
/**
 * @param bounds cast=(const Rect *)
 * @param state cast=(ThemeDrawState)
 */
public static final native int DrawThemeSeparator(Rect bounds, int state);
/**
 * @param sHandle cast=(CFStringRef)
 * @param fontID cast=(ThemeFontID)
 * @param state cast=(ThemeDrawState)
 * @param wrapToWidth cast=(Boolean)
 * @param bounds cast=(const Rect *)
 * @param just cast=(SInt16)
 * @param context cast=(void *)
 */
public static final native int DrawThemeTextBox(int sHandle, short fontID, int state, boolean wrapToWidth, Rect bounds, short just, int context);
/**
 * @param inControl cast=(ControlRef)
 * @param inContainer cast=(ControlRef)
 */
public static final native int EmbedControl(int inControl, int inContainer);
/** @param r cast=(const Rect *) */
public static final native boolean EmptyRect(Rect r);
/** @param rgnHandle cast=(RgnHandle) */
public static final native boolean EmptyRgn(int rgnHandle);
/** @param cHandle cast=(ControlRef) */
public static final native int EnableControl(int cHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 */
public static final native void EnableMenuCommand(int mHandle, int commandId);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 */
public static final native void EnableMenuItem(int mHandle, short index);
/** @param bounds cast=(const Rect *) */
public static final native void EraseRect(Rect bounds);
public static final native int Fix2Long(int x);
/**
 * @param inQueue cast=(EventQueueRef)
 * @param inComparator cast=(EventComparatorUPP)
 * @param inCompareData cast=(void *)
 */
public static final native int FindSpecificEventInQueue(int inQueue, int inComparator, int inCompareData);
/** @param x cast=(Fixed) */
public static final native double Fix2X(int x);
/** @param idocID cast=(TSMDocumentID) */
public static final native int FixTSMDocument(int idocID);
public static final native int FMGetATSFontRefFromFont(int iFont);
/** @param name cast=(ConstStr255Param) */
public static final native short FMGetFontFamilyFromName(byte[] name);
/**
 * @param iFont cast=(FMFont)
 * @param oFontFamily cast=(FMFontFamily *)
 * @param oStyle cast=(FMFontStyle *)
 */
public static final native int FMGetFontFamilyInstanceFromFont(int iFont, short[] oFontFamily, short[] oStyle);
public static final native int FMGetFontFromATSFontRef(int iFont);
/**
 * @param iFontFamily cast=(FMFontFamily)
 * @param iStyle cast=(FMFontStyle)
 * @param oFont cast=(FMFont *)
 * @param oIntrinsicStyle cast=(FMFontStyle *)
 */
public static final native int FMGetFontFromFontFamilyInstance(short iFontFamily, short iStyle, int[] oFont, short[] oIntrinsicStyle);
public static final native boolean FPIsFontPanelVisible();
public static final native int FPShowHideFontPanel();
/**
 * @param spec cast=(FSSpec *)
 * @param fndrInfo cast=(FInfo *)
 */
public static final native int FSpGetFInfo(byte[] spec, byte[] fndrInfo);
/**
 * @param source cast=(const FSSpec *)
 * @param newRef cast=(FSRef *)
 */
public static final native int FSpMakeFSRef(byte[] source, byte[] newRef);
/**
 * @param ref cast=(FSRef *)
 * @param whichInfo cast=(FSCatalogInfoBitmap)
 * @param catalogInfo cast=(FSCatalogInfo *)
 * @param outName cast=(HFSUniStr255 *)
 * @param fsSpec cast=(FSSpec *)
 * @param parentRef cast=(FSRef *)
 */
public static final native int FSGetCatalogInfo(byte[] ref, int whichInfo, byte[] catalogInfo, byte[] outName, byte[] fsSpec, byte[] parentRef); 
/**
 * @param where cast=(Point *),flags=struct
 * @param wHandle cast=(WindowRef *)
 */
public static final native short FindWindow(Point where, int[] wHandle);
public static final native int FrontWindow();
/**
 * @param selector cast=(OSType)
 * @param response cast=(long *)
 */
public static final native int Gestalt(int selector, int[] response);
public static final native int GetApplicationEventTarget();
/** @param windowClass cast=(WindowClass) */
public static final native int GetAvailableWindowAttributes(int windowClass);
/**
 * @param inDevice cast=(GDHandle)
 * @param outAvailableRect cast=(Rect *)
 */
public static final native int GetAvailableWindowPositioningBounds(int inDevice, Rect outAvailableRect);
/**
 * @param inControl cast=(ControlRef)
 * @param outRect cast=(Rect *)
 * @param outBaseLineOffset cast=(SInt16 *)
 */
public static final native int GetBestControlRect(int inControl, Rect outRect, short[] outBaseLineOffset);
public static final native int GetCaretTime();
/** @param rgnHandle cast=(RgnHandle) */
public static final native void GetClip(int rgnHandle);
/** @param theControl cast=(ControlRef) */
public static final native int GetControlAction(int theControl	);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControl32BitMaximum(int cHandle);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControl32BitMinimum(int cHandle);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControl32BitValue(int cHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param bounds cast=(Rect *)
 */
public static final native void GetControlBounds(int cHandle, Rect bounds);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, ControlFontStyleRec inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, Rect inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, int[] inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, short[] inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, byte[] inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, ControlEditTextSelectionRec inBuffer, int[] outActualSize);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inBufferSize cast=(Size)
 * @param inBuffer cast=(void *)
 * @param outActualSize cast=(Size *)
 */
public static final native int GetControlData(int inControl, short inPart, int inTagName, int inBufferSize, LongDateRec inBuffer, int[] outActualSize);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControlEventTarget(int cHandle);
/**
 * @param inControl cast=(ControlRef)
 * @param outFeatures cast=(UInt32 *)
 */
public static final native int GetControlFeatures(int inControl, int[] outFeatures);
/** @param inControl cast=(ControlRef) */
public static final native int GetControlKind(int inControl, ControlKind kind);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControlOwner(int cHandle);
/**
 * @param control cast=(ControlRef)
 * @param actualSize cast=(UInt32 *)
 * @param propertyBuffer cast=(void *)
 */
public static final native int GetControlProperty(int control, int  propertyCreator, int propertyTag, int bufferSize, int[] actualSize,  int[] propertyBuffer);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControlReference(int cHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native int GetControlRegion(int cHandle, short inPart, int rgnHandle);
/** @param cHandle cast=(ControlRef) */
public static final native short GetControlValue(int cHandle);
/** @param cHandle cast=(ControlRef) */
public static final native int GetControlViewSize(int cHandle);
public static final native int GetCurrentEventButtonState();
public static final native int GetCurrentEventLoop();
public static final native int GetCurrentEventKeyModifiers();
public static final native int GetCurrentEventQueue();
/** @param psn cast=(ProcessSerialNumber *) */
public static final native int GetCurrentProcess(int[] psn);
/** @param scrap cast=(ScrapRef *) */
public static final native int GetCurrentScrap(int[] scrap);
/**
 * @param browser cast=(ControlRef)
 * @param callbacks cast=(DataBrowserCallbacks *)
 */
public static final native int GetDataBrowserCallbacks(int browser, DataBrowserCallbacks  callbacks);
/** @param browser cast=(ControlRef) */
public static final native int GetDataBrowserHasScrollBars(int browser, boolean [] horiz, boolean [] vert);
/**
 * @param cHandle cast=(ControlRef)
 * @param container cast=(DataBrowserItemID)
 * @param recurse cast=(Boolean)
 * @param state cast=(DataBrowserItemState)
 * @param numItems cast=(UInt32 *)
 */
public static final native int GetDataBrowserItemCount(int cHandle, int container, boolean recurse, int state, int[] numItems);
/**
 * @param itemData cast=(ControlRef)
 * @param theData cast=(ThemeButtonValue *)
 */
public static final native int GetDataBrowserItemDataButtonValue(int itemData, short [] theData);
/**
 * @param cHandle cast=(ControlRef)
 * @param item cast=(DataBrowserItemID)
 * @param property cast=(DataBrowserPropertyID)
 * @param part cast=(DataBrowserPropertyPart)
 * @param bounds cast=(Rect *)
 */
public static final native int GetDataBrowserItemPartBounds(int cHandle, int item, int property, int part, Rect bounds);
/**
 * @param browser cast=(ControlRef)
 * @param container cast=(DataBrowserItemID)
 * @param recurse cast=(Boolean)
 * @param state cast=(DataBrowserItemState)
 * @param items cast=(Handle)
 */
public static final native int GetDataBrowserItems(int browser, int container, boolean recurse, int state, int items);
/**
 * @param browser cast=(ControlRef)
 * @param state cast=(DataBrowserItemState *)
 */
public static final native int GetDataBrowserItemState(int browser, int item, int [] state);
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID *)
 * @param expandableRows cast=(Boolean *)
 */
public static final native int GetDataBrowserListViewDisclosureColumn(int browser, int [] column, boolean [] expandableRows);
/**
 * @param browser cast=(ControlRef)
 * @param height cast=(UInt16 *)
 */
public static final native int GetDataBrowserListViewHeaderBtnHeight(int browser, short [] height);
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID)
 * @param desc cast=(DataBrowserListViewHeaderDesc *)
 */
public static final native int GetDataBrowserListViewHeaderDesc(int browser, int column, DataBrowserListViewHeaderDesc desc);
/**
 * @param browser cast=(ControlRef)
 * @param property cast=(DataBrowserPropertyID)
 * @param flags cast=(DataBrowserPropertyFlags *)
 */
public static final native int GetDataBrowserPropertyFlags(int browser, int property, int [] flags);
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID)
 * @param position cast=(DataBrowserTableViewColumnIndex *)
 */
public static final native int GetDataBrowserTableViewColumnPosition(int browser,int column,int[] position);
/**
 * @param browser cast=(ControlRef)
 * @param row cast=(DataBrowserTableViewRowIndex)
 * @param item cast=(DataBrowserItemID *)
 */
public static final native int GetDataBrowserTableViewItemID(int browser, int row, int [] item);
/**
 * @param browser cast=(ControlRef)
 * @param item cast=(DataBrowserTableViewRowIndex)
 * @param row cast=(DataBrowserItemID *)
 */
public static final native int GetDataBrowserTableViewItemRow(int browser, int item, int [] row);                         
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID)
 * @param width cast=(UInt16 *)
 */
public static final native int GetDataBrowserTableViewNamedColumnWidth(int browser, int column, short [] width);
/**
 * @param browser cast=(ControlRef)
 * @param height cast=(UInt16 *)
 */
public static final native int GetDataBrowserTableViewRowHeight(int browser, short [] height);
/** @param browser cast=(ControlRef) */
public static final native int GetDataBrowserScrollBarInset(int browser, Rect insetRect);
/**
 * @param cHandle cast=(ControlRef)
 * @param top cast=(UInt32 *)
 * @param left cast=(UInt32 *)
 */
public static final native int GetDataBrowserScrollPosition(int cHandle, int[] top, int[] left);
/**
 * @param browser cast=(ControlRef)
 * @param first cast=(UInt32 *)
 * @param last cast=(UInt32 *)
 */
public static final native int GetDataBrowserSelectionAnchor(int browser, int [] first, int [] last);
/**
 * @param browser cast=(ControlRef)
 * @param selectionFlags cast=(DataBrowserSelectionFlags *)
 */
public static final native int GetDataBrowserSelectionFlags(int browser, int [] selectionFlags);
/**
 * @param browser cast=(ControlRef)
 * @param property cast=(DataBrowserPropertyID *)
 */
public static final native int GetDataBrowserSortProperty(int browser, int[] property);
public static final native int GetDblTime();
public static final native int GetDeviceList();
/**
 * @param theDrag cast=(DragRef)
 * @param outActions cast=(DragActions *)
 */
public static final native int GetDragAllowableActions(int theDrag, int[] outActions); 
/**
 * @param theDrag cast=(DragRef)
 * @param outAction cast=(DragActions *)
 */
public static final native int GetDragDropAction(int theDrag, int[] outAction);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef *)
 */
public static final native int GetDragItemReferenceNumber(int theDrag, short index, int[] theItemRef);
/**
 * @param theDrag cast=(DragRef)
 * @param modifiers cast=(SInt16 *)
 * @param mouseDownModifiers cast=(SInt16 *)
 * @param mouseUpModifiers cast=(SInt16 *)
 */
public static final native int GetDragModifiers(int theDrag, short[] modifiers, short[] mouseDownModifiers, short[] mouseUpModifiers);
/**
 * @param theDrag cast=(DragRef)
 * @param mouse cast=(Point *)
 * @param globalPinnedMouse cast=(Point *)
 */
public static final native int GetDragMouse(int theDrag, Point mouse, Point globalPinnedMouse); 
/** @param eHandle cast=(EventRef) */
public static final native int GetEventClass(int eHandle);
public static final native int GetEventDispatcherTarget();
/** @param eHandle cast=(EventRef) */
public static final native int GetEventKind(int eHandle);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, int outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, int[] outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, char[] outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, short[] outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, byte[] outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, boolean[] outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, HICommand outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, Point outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, CGPoint outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, CGRect outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, RGBColor outData);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inDesiredType cast=(EventParamType)
 * @param outActualType cast=(EventParamType *)
 * @param inBufferSize cast=(UInt32)
 * @param outActualSize cast=(UInt32 *)
 * @param outData cast=(void *)
 */
public static final native int GetEventParameter(int inEvent, int inName, int inDesiredType, int[] outActualType, int inBufferSize, int[] outActualSize, Rect outData);
/** @param eHandle cast=(EventRef) */
public static final native double GetEventTime(int eHandle);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param theType cast=(FlavorType)
 * @param dataPtr cast=(void *)
 * @param dataSize cast=(Size *)
 */
public static final native int GetFlavorData(int theDrag, int theItemRef, int theType, byte[] dataPtr, int[] dataSize, int dataOffset);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param theType cast=(FlavorType)
 * @param dataSize cast=(Size *)
 */
public static final native int GetFlavorDataSize(int theDrag, int theItemRef, int theType, int[] dataSize);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param theType cast=(FlavorType *)
 */
public static final native int GetFlavorType(int theDrag,int theItemRef, short index, int[] theType);
/** @param psn cast=(ProcessSerialNumber *) */
public static final native int GetFrontProcess(int [] psn);
/**
 * @param portHandle cast=(CGrafPtr *)
 * @param gdHandle cast=(GDHandle *)
 */
public static final native void GetGWorld(int[] portHandle, int[] gdHandle);
/** @param where cast=(Point *) */
public static final native void GetGlobalMouse(Point where);
/** @param handle cast=(Handle) */
public static final native int GetHandleSize(int handle);
/**
 * @param iconFamily cast=(IconFamilyHandle)
 * @param iconType cast=(OSType)
 * @param h cast=(Handle)
 */
public static final native int GetIconFamilyData(int iconFamily, int iconType, int h);
/** @method flags=dynamic */
public static final native int GetIconRefFromIconFamilyPtr(int inIconFamilyPtr, int inSize, int[] outIconRef);
/**
 * @param inRef cast=(const FSRef *)
 * @param inFileName cast=(const UniChar *)
 * @param inWhichInfo cast=(FSCatalogInfoBitmap)
 * @param inCatalogInfo cast=(const FSCatalogInfo *)
 * @param outIconRef cast=(IconRef *)
 * @param outLabel cast=(SInt16 *)
 */
public static final native int GetIconRefFromFileInfo(byte[] inRef, int inFileNameLength, char[] inFileName, int inWhichInfo, int inCatalogInfo, int inUsageFlags, int[] outIconRef, int[] outLabel);
/**
 * @param vRefNum cast=(SInt16)
 * @param creator cast=(OSType)
 * @param iconType cast=(OSType)
 * @param theIconRef cast=(IconRef *)
 */
public static final native int GetIconRef(short vRefNum, int creator, int iconType, int[] theIconRef);
/**
 * @param mHandle cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 * @param index cast=(UInt32)
 * @param outMenu cast=(MenuRef *)
 * @param outIndex cast=(MenuItemIndex *)
 */
public static final native int GetIndMenuItemWithCommandID(int mHandle, int commandId, int index, int[] outMenu, short[] outIndex);
/**
 * @param cHandle cast=(ControlRef)
 * @param index cast=(UInt16)
 * @param outHandle cast=(ControlRef *)
 */
public static final native int GetIndexedSubControl(int cHandle, short index, int[] outHandle);
/** @param theMenu cast=(MenuRef) */
public static final native void GetItemMark (int theMenu, short item, short[] markChar);
/**
 * @param wHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef *)
 */
public static final native int GetKeyboardFocus(int wHandle, int[] cHandle);
public static final native double GetLastUserEventTime();
public static final native int GetMainDevice();
public static final native int GetMainEventQueue();
public static final native int GetMBarHeight();
/**
 * @param theMenu cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 * @param outMark cast=(UniChar *)
 */
public static final native int GetMenuCommandMark(int theMenu, int commandId, char[] outMark);
/** @param cHandle cast=(MenuRef) */
public static final native int GetMenuEventTarget(int cHandle);
/**
 * @param inMenu cast=(MenuRef)
 * @param outFontID cast=(SInt16 *)
 * @param outFontSize cast=(UInt16 *)
 */
public static final native int GetMenuFont(int inMenu, short[] outFontID, short[] outFontSize);
/** @param inMenu cast=(MenuRef) */
public static final native short GetMenuHeight(int inMenu);
/** @param menu cast=(MenuRef) */
public static final native short GetMenuID(int menu);
/**
 * @param inMenu cast=(MenuRef)
 * @param inItem cast=(SInt16)
 * @param outCommandID cast=(MenuCommand *)
 */
public static final native int GetMenuItemCommandID(int inMenu, short inItem, int[] outCommandID);
/**
 * @param inMenu cast=(MenuRef)
 * @param inItem cast=(SInt16)
 * @param outHierMenu cast=(MenuRef *)
 */
public static final native int GetMenuItemHierarchicalMenu(int inMenu, short inItem, int []outHierMenu);
/**
 * @param inMenu cast=(MenuRef)
 * @param intItem cast=(SInt16)
 * @param outRefCon cast=(UInt32 *)
 */
public static final native int GetMenuItemRefCon(int inMenu, short intItem, int[] outRefCon);
/** @param menu cast=(MenuRef) */
public static final native int GetMenuTrackingData(int menu, MenuTrackingData outData);
/** @param inMenu cast=(MenuRef) */
public static final native short GetMenuWidth(int inMenu);
/** @param where cast=(Point *) */
public static final native void GetMouse(Point where);
/** @param curDevice cast=(GDHandle) */
public static final native int GetNextDevice(int curDevice);
/** @param pHandle cast=(PixMapHandle) */
public static final native short GetPixDepth(int pHandle);
/** @param port cast=(GrafPtr *) */
public static final native void GetPort(int[] port);
/** @param portHandle cast=(CGrafPtr) */
public static final native int GetPortBitMapForCopyBits(int portHandle);
/**
 * @param pHandle cast=(CGrafPtr)
 * @param rect cast=(Rect *)
 */
public static final native void GetPortBounds(int pHandle, Rect rect);
/** @param inWindow cast=(WindowRef) */
public static final native int GetPreviousWindow(int inWindow);
/** @param ptr cast=(Ptr) */
public static final native int GetPtrSize(int ptr);
/**
 * @param rgnHandle cast=(RgnHandle)
 * @param bounds cast=(Rect *)
 */
public static final native void GetRegionBounds(int rgnHandle, Rect bounds);
/**
 * @param windowHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef *)
 */
public static final native int GetRootControl(int windowHandle, int[] cHandle);
/**
 * @param scrap cast=(ScrapRef)
 * @param infoCount cast=(UInt32 *)
 */
public static final native int GetScrapFlavorCount(int scrap, int[] infoCount);
/**
 * @param scrap cast=(ScrapRef)
 * @param flavorType cast=(ScrapFlavorType)
 * @param byteCount cast=(Size *)
 * @param destination cast=(void *)
 */
public static final native int GetScrapFlavorData(int scrap, int flavorType, int[] byteCount, byte[] destination);
/**
 * @param scrap cast=(ScrapRef)
 * @param flavorType cast=(ScrapFlavorType)
 * @param byteCount cast=(Size *)
 * @param destination cast=(void *)
 */
public static final native int GetScrapFlavorData(int scrap, int flavorType, int[] byteCount, char[] destination);
/**
 * @param scrap cast=(ScrapRef)
 * @param infoCount cast=(UInt32 *)
 * @param info cast=(ScrapFlavorInfo *)
 */
public static final native int GetScrapFlavorInfoList(int scrap, int[] infoCount, int[] info);
/**
 * @param scrap cast=(ScrapRef)
 * @param flavorType cast=(ScrapFlavorType)
 * @param byteCount cast=(Size *)
 */
public static final native int GetScrapFlavorSize(int scrap, int flavorType, int[] byteCount);
public static final native int GetScriptManagerVariable(short selector);
/**
 * @param cHandle cast=(ControlRef)
 * @param parentHandle cast=(ControlRef *)
 */
public static final native int GetSuperControl(int cHandle, int[] parentHandle);
/**
 * @param outMode cast=(SystemUIMode *)
 * @param outOptions cast=(SystemUIOptions *)
 */
public static final native void GetSystemUIMode(int[] outMode, int[] outOptions);
/** @param theControl cast=(ControlRef) */
public static final native int GetTabContentRect(int theControl, Rect rect);
public static final native int GetThemeBrushAsColor(short inBrush, short inDepth, boolean inColorDev, RGBColor outColor);
public static final native int GetThemeButtonContentBounds(Rect inBounds, int inKind, ThemeButtonDrawInfo inDrawInfo, Rect outBounds);
/** @param outRegion cast=(RgnHandle) */
public static final native int GetThemeButtonRegion(Rect inBounds, int inKind, ThemeButtonDrawInfo inNewInfo, int outRegion);
/** @param state cast=(ThemeDrawingState *) */
public static final native int GetThemeDrawingState(int[] state);
/**
 * @param themeFontId cast=(ThemeFontID)
 * @param scriptCode cast=(ScriptCode)
 * @param fontName cast=(unsigned char *)
 * @param fontSize cast=(SInt16 *)
 * @param style cast=(Style *)
 */
public static final native int GetThemeFont(short themeFontId, short scriptCode, byte[] fontName, short[] fontSize, byte[] style);
public static final native int GetThemeMenuItemExtra(short inItemType, short[] outHeight, short[] outWidth); 
public static final native int GetThemeMetric(int inMetric, int [] outMetric);
public static final native int GetThemeTextColor(short inColor, short inDepth, boolean inColorDev, RGBColor outColor);
/**
 * @param sHandle cast=(CFStringRef)
 * @param fontID cast=(ThemeFontID)
 * @param state cast=(ThemeDrawState)
 * @param wrapToWidth cast=(Boolean)
 * @param ioBounds cast=(Point *)
 * @param baseLine cast=(SInt16 *)
 */
public static final native int GetThemeTextDimensions(int sHandle, short fontID, int state, boolean wrapToWidth, Point ioBounds, short[] baseLine);
public static final native int GetUserFocusEventTarget();
public static final native int GetUserFocusWindow();
/** @param inWindow cast=(WindowRef) */
public static final native int SetUserFocusWindow(int inWindow);
/**
 * @param inWindow cast=(WindowRef)
 * @param outScope cast=(WindowActivationScope *)
 */
public static final native int GetWindowActivationScope(int inWindow, int[] outScope);
/** @param inWindow cast=(WindowRef) */
public static final native int GetWindowAlpha(int inWindow, float [] outAlpha);
/**
 * @param wHandle cast=(WindowRef)
 * @param windowRegion cast=(WindowRegionCode)
 * @param bounds cast=(Rect *)
 */
public static final native void GetWindowBounds(int wHandle, short windowRegion, Rect bounds);
/**
 * @param inWindow cast=(WindowRef)
 * @param outClass cast=(WindowClass *)
 */
public static final native int GetWindowClass (int inWindow, int[] outClass);
/**
 * @param wHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef *)
 */
public static final native int GetWindowDefaultButton(int wHandle, int[] cHandle);
/** @param wHandle cast=(WindowRef) */
public static final native int GetWindowEventTarget(int wHandle);
/** @param pHandle cast=(CGrafPtr) */
public static final native int GetWindowFromPort(int pHandle);
public static final native int GetWindowGroupOfClass (int windowClass);
public static final native int GetWindowList();
/** @param inWindow cast=(WindowRef) */
public static final native int GetNextWindow(int inWindow);
/**
 * @param inWindow cast=(WindowRef)
 * @param outModalKind cast=(WindowModality *)
 * @param outUnavailableWindow cast=(WindowRef *)
 */
public static final native int GetWindowModality(int inWindow, int[] outModalKind, int[] outUnavailableWindow);
/** @param wHandle cast=(WindowRef) */
public static final native int GetWindowPort(int wHandle);
/**
 * @param window cast=(WindowRef)
 * @param inRegionCode cast=(WindowRegionCode)
 * @param ioWinRgn cast=(RgnHandle)
 */
public static final native int GetWindowRegion(int window, short inRegionCode, int ioWinRgn);
/**
 * @param inWindow cast=(WindowRef)
 * @param inMinLimits cast=(HISize *)
 * @param inMaxLimits cast=(HISize *)
 */
public static final native int GetWindowResizeLimits (int inWindow, CGPoint inMinLimits, CGPoint inMaxLimits);
/**
 * @param intWindow cast=(WindowRef)
 * @param outRect cast=(Rect *)
 */
public static final native void GetWindowStructureWidths(int intWindow, Rect outRect);
/**
 * @method flags=dynamic
 * @param inImage cast=(CGImageRef)
 * @param outImage cast=(CGImageRef *)
 */
public static final native int HICreateTransformedCGImage(int inImage, int inTransform, int[] outImage); 
/**
 * @param control cast=(ControlRef)
 * @param localPoint flags=struct
 * @param modifiers cast=(EventModifiers)
 * @param cursorWasSet cast=(Boolean *)
 */
public static final native int HandleControlSetCursor(int control, Point localPoint, int modifiers, boolean[] cursorWasSet);  
/**
 * @param inComboBox cast=(HIViewRef)
 * @param inText cast=(CFStringRef)
 * @param outIndex cast=(CFIndex *)
 */
public static final native int HIComboBoxAppendTextItem(int inComboBox, int inText, int[] outIndex);
/**
 * @param inComboBox cast=(HIViewRef)
 * @param inIndex cast=(CFIndex)
 * @param outString cast=(CFStringRef *)
 */
public static final native int HIComboBoxCopyTextItemAtIndex(int inComboBox, int inIndex, int[] outString);
/**
 * @param boundsRect cast=(const HIRect *)
 * @param text cast=(CFStringRef)
 * @param style cast=(const ControlFontStyleRec *)
 * @param list cast=(CFArrayRef)
 * @param inAttributes cast=(OptionBits)
 * @param outComboBox cast=(HIViewRef *)
 */
public static final native int HIComboBoxCreate(CGRect boundsRect, int text, ControlFontStyleRec style, int list, int inAttributes, int[] outComboBox);
/** @param inComboBox cast=(HIViewRef) */
public static final native int HIComboBoxGetItemCount(int inComboBox);
/**
 * @param inComboBox cast=(HIViewRef)
 * @param inIndex cast=(CFIndex)
 * @param inText cast=(CFStringRef)
 */
public static final native int HIComboBoxInsertTextItemAtIndex(int inComboBox, int inIndex, int inText);
/**
 * @method flags=dynamic
 * @param inComboBox cast=(HIViewRef)
 */
public static final native boolean HIComboBoxIsListVisible(int inComboBox);
/**
 * @param inComboBox cast=(HIViewRef)
 * @param inIndex cast=(CFIndex)
 */
public static final native int HIComboBoxRemoveItemAtIndex(int inComboBox, int inIndex);
/**
 * @method flags=dynamic
 * @param inComboBox cast=(HIViewRef)
 */
public static final native int HIComboBoxSetListVisible (int inComboBox, boolean inVisible);
/**
 * @param inRole cast=(CFStringRef)
 * @param inSubrole cast=(CFStringRef)
 */
public static final native int HICopyAccessibilityRoleDescription(int inRole, int inSubrole);
/** @param inObject cast=(HIObjectRef) */
public static final native int HIObjectCopyClassID(int inObject);
/**
 * @param inClassID cast=(CFStringRef)
 * @param inConstructData cast=(EventRef)
 * @param outObject cast=(HIObjectRef *)
 */
public static final native int HIObjectCreate(int inClassID, int inConstructData, int[] outObject);
/**
 * @param inClassID cast=(CFStringRef)
 * @param inBaseClassID cast=(CFStringRef)
 * @param inOptions cast=(OptionBits)
 * @param inConstructProc cast=(EventHandlerUPP)
 * @param inNumEvents cast=(UInt32)
 * @param inEventList cast=(const EventTypeSpec *)
 * @param inConstructData cast=(void *)
 * @param outClassRef cast=(HIObjectClassRef *)
 */
public static final native int HIObjectRegisterSubclass(int inClassID, int inBaseClassID, int inOptions, int inConstructProc, int inNumEvents, int[] inEventList, int inConstructData, int[] outClassRef);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewScrollRect(int inView, CGRect inRect, float inDX, float inDY);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewRegionChanged(int inView, int inRegionCode);
/** @method flags=dynamic */
public static final native int HIShapeCreateWithQDRgn(int inRgn);
/** @method flags=dynamic */
public static final native int HIShapeReplacePathInCGContext(int inShape, int inContext);
/** @param outView cast=(HIViewRef*) */
public static final native int HIScrollViewCreate(int inOptions, int[] outView);
/** @param inView cast=(HIViewRef) */
public static final native int HIScrollViewSetScrollBarAutoHide(int inView, boolean inAutoHide);    
/**
 * @param inSearchMenu cast=(MenuRef)
 * @param inDescriptiveText cast=(CFStringRef)
 * @param outRef cast=(HIViewRef*)
 */
public static final native int HISearchFieldCreate(CGRect inBounds, int inAttributes, int inSearchMenu, int inDescriptiveText, int [] outRef);
/**
 * @param inSearchField cast=(HIViewRef)
 * @param inAttributesToSet cast=(OptionBits)
 * @param inAttributesToClear cast=(OptionBits)
 */
public static final native int HISearchFieldChangeAttributes(int inSearchField, int inAttributesToSet, int inAttributesToClear);
/**
 * @param inSearchField cast=(HIViewRef)
 * @param outDescription cast=(CFStringRef *)
 */
public static final native int HISearchFieldCopyDescriptiveText(int inSearchField, int [] outDescription);
/**
 * @param inSearchField cast=(HIViewRef)
 * @param outAttributes cast=(OptionBits*)
 */
public static final native int HISearchFieldGetAttributes(int inSearchField, int [] outAttributes);
/**
 * @param inSearchField cast=(HIViewRef)
 * @param inDescription cast=(CFStringRef)
 */
public static final native int HISearchFieldSetDescriptiveText(int inSearchField, int inDescription);
/** @param outTextView cast=(HIViewRef *) */
public static final native int HITextViewCreate(CGRect inBoundsRect, int inOptions, int inTXNFrameOptions, int[] outTextView);
/** @param inTextView cast=(HIViewRef) */
public static final native int HITextViewGetTXNObject(int inTextView);
/**
 * @param inTextView cast=(HIViewRef)
 * @param inColor cast=(CGColorRef)
 */
public static final native int HITextViewSetBackgroundColor(int inTextView, int inColor); 
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawBackground(CGRect inBounds, HIThemeBackgroundDrawInfo inDrawInfo, int inContext, int inOrientation); 
/**
 * @param inBounds cast=(const HIRect *),flags=no_out
 * @param inDrawInfo cast=(const HIThemeButtonDrawInfo *)
 * @param inContext cast=(CGContextRef)
 * @param inOrientation cast=(HIThemeOrientation)
 * @param outLabelRect cast=(HIRect *),flags=no_in
 */
public static final native int HIThemeDrawButton(CGRect inBounds, HIThemeButtonDrawInfo inDrawInfo, int inContext, int inOrientation, CGRect outLabelRect);
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawFocusRect(CGRect inRect, boolean inHasFocus, int inContext, int inOrientation); 
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawFrame(CGRect inRect, HIThemeFrameDrawInfo inDrawInfo, int inContext, int inOrientation);   
/**
 * @param inRect cast=(const HIRect *)
 * @param info cast=(const HIThemeButtonDrawInfo *)
 * @param inContext cast=(CGContextRef)
 * @param inOrientation cast=(HIThemeOrientation)
 */
public static final native int HIThemeDrawGenericWell(CGRect inRect, HIThemeButtonDrawInfo info, int inContext, int inOrientation);
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawGroupBox(CGRect inRect, HIThemeGroupBoxDrawInfo inDrawInfo, int inContext, int inOrientation);
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawGrowBox(CGPoint inOrigin, HIThemeGrowBoxDrawInfo inDrawInfo, int inContext, int inOrientation);
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawPopupArrow(CGRect inBounds, HIThemePopupArrowDrawInfo inDrawInfo, int inContext, int inOrientation); 
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawSeparator(CGRect inRect, HIThemeSeparatorDrawInfo inDrawInfo, int inContext, int inOrientation);  
/**
 * @param inRect cast=(const HIRect *),flags=no_out
 * @param inDrawInfo cast=(const HIThemeTabDrawInfo *)
 * @param inContext cast=(CGContextRef)
 * @param inOrientation cast=(HIThemeOrientation)
 * @param outLabelRect cast=(HIRect *),flags=no_in
 */
public static final native int HIThemeDrawTab(CGRect inRect, HIThemeTabDrawInfo inDrawInfo, int inContext, int inOrientation, CGRect outLabelRect);
/**
 * @param inRect cast=(const HIRect *)
 * @param inDrawInfo cast=(const HIThemeTabPaneDrawInfo *)
 * @param inContext cast=(CGContextRef)
 * @param inOrientation cast=(HIThemeOrientation)
 */
public static final native int HIThemeDrawTabPane(CGRect inRect, HIThemeTabPaneDrawInfo inDrawInfo, int inContext, int inOrientation);
/**
 * @param inString cast=(CFStringRef)
 * @param inContext cast=(CGContextRef)
 */
public static final native int HIThemeDrawTextBox(int inString, CGRect inBounds, HIThemeTextInfo inTextInfo, int inContext, int inOrientation); 
/** @param inContext cast=(CGContextRef) */
public static final native int HIThemeDrawTrack(HIThemeTrackDrawInfo inDrawInfo, CGRect inGhostRect, int inContext, int inOrientation);
public static final native int HIThemeGetButtonBackgroundBounds(CGRect inBounds, HIThemeButtonDrawInfo inDrawInfo, CGRect outBounds);
public static final native int HIThemeGetButtonContentBounds(CGRect inBounds, HIThemeButtonDrawInfo inDrawInfo, CGRect outBounds);
public static final native int HIThemeGetScrollBarTrackRect(CGRect inBounds, HIScrollBarTrackInfo inTrackInfo, boolean inIsHoriz, CGRect outTrackBounds);     
/** @param inString cast=(CFStringRef) */
public static final native int HIThemeGetTextDimensions(int inString, float inWidth, HIThemeTextInfo inTextInfo, float[] outWidth, float[] outHeight, float[] outBaseline);
public static final native int HIThemeGetTrackBounds(HIThemeTrackDrawInfo inDrawInfo, CGRect outBounds);
public static final native int HIThemeGetTrackPartBounds(HIThemeTrackDrawInfo inDrawInfo, short inPartCode, CGRect outPartBounds);
public static final native int HIThemeGetTrackThumbPositionFromBounds(HIThemeTrackDrawInfo inDrawInfo, CGRect inThumbBounds, float[] outRelativePosition);  
/**
 * @param inDrawInfo cast=(HIThemeTrackDrawInfo *)
 * @param inThumbOffset cast=(HIPoint *)
 */
public static final native int HIThemeGetTrackThumbPositionFromOffset(HIThemeTrackDrawInfo inDrawInfo, CGPoint inThumbOffset, float[] outRelativePosition);
public static final native int HIThemeGetTrackLiveValue(HIThemeTrackDrawInfo inDrawInfo, float inRelativePosition, int[] outValue);
public static final native boolean HIThemeHitTestScrollBarArrows(CGRect inScrollBarBounds, HIScrollBarTrackInfo inTrackInfo, boolean inIsHoriz, CGPoint inPtHit, CGRect outTrackBounds, short[] outPartCode);
public static final native boolean HIThemeHitTestTrack(HIThemeTrackDrawInfo inDrawInfo, CGPoint inMousePoint, short[] outPartHit);
/**
 * @method flags=dynamic
 * @param inBrush cast=(ThemeBrush)
 * @param inInfo cast=(void *)
 * @param inContext cast=(CGContextRef)
 * @param inOrientation cast=(HIThemeOrientation)
 */
public static final native int HIThemeSetFill(int inBrush, int inInfo, int inContext, int inOrientation);
/** @method flags=dynamic */
public static final native int HIThemeSetTextFill(int inColor, int inInfo, int inContext, int inOrientation);
/**
 * @param parent cast=(HIViewRef)
 * @param child cast=(HIViewRef)
 */
public static final native int HIViewAddSubview(int parent, int child);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewChangeAttributes(int inView, int inAttrsToSet, int inAttrsToClear);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewChangeFeatures(int inView, int inFeaturesToSet, int inFeaturesToClear);
/**
 * @param inView cast=(HIViewRef)
 * @param inEvent cast=(EventRef)
 */
public static final native int HIViewClick(int inView, int inEvent);
/**
 * @param ioPoint cast=(HIPoint *)
 * @param inSourceView cast=(HIViewRef)
 * @param inDestView cast=(HIViewRef)
 */
public static final native int HIViewConvertPoint(CGPoint ioPoint, int inSourceView, int inDestView);
/**
 * @param inSourceView cast=(HIViewRef)
 * @param inDestView cast=(HIViewRef)
 */
public static final native int HIViewConvertRect(CGRect ioRect, int inSourceView, int inDestView);  
/**
 * @param ioRgn cast=(RgnHandle)
 * @param inSourceView cast=(HIViewRef)
 * @param inDestView cast=(HIViewRef)
 */
public static final native int HIViewConvertRegion(int ioRgn, int inSourceView, int inDestView); 
/**
 * @param inView cast=(HIViewRef)
 * @param inOptions cast=(OptionBits)
 * @param outFrame cast=(HIRect *)
 * @param outImage cast=(CGImageRef *)
 */
public static final native int HIViewCreateOffscreenImage(int inView, int inOptions, CGRect outFrame, int[] outImage);
/**
 * @param inContext cast=(CGContextRef)
 * @param inImage cast=(CGImageRef)
 */
public static final native int HIViewDrawCGImage(int inContext, CGRect inBounds, int inImage); 
/**
 * @param inStartView cast=(HIViewRef)
 * @param inID cast=(HIViewID *),flags=struct
 * @param outControl cast=(HIViewRef *)
 */
public static final native int HIViewFindByID(int inStartView, int inID, int[] outControl);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetBounds(int inView, CGRect outRect);
/**
 * @param inView cast=(HIViewRef)
 * @param outFeatures cast=(HIViewFeatures *)
 */
public static final native int HIViewGetFeatures(int inView, int[] outFeatures);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetFirstSubview(int inView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetLastSubview(int inView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetLayoutInfo (int inView, HILayoutInfo outLayoutInfo);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetNextView(int inView);
/**
 * @param inView cast=(HIViewRef)
 * @param outRect cast=(HIRect *)
 */
public static final native int HIViewGetFrame(int inView, CGRect outRect);
/** @param inView cast=(HIViewRef) */
public static final native boolean HIViewGetNeedsDisplay(int inView);
/** @param wHandle cast=(WindowRef) */
public static final native int HIViewGetRoot(int wHandle);
/**
 * @param inView cast=(HIViewRef)
 * @param outMinSize cast=(HISize *)
 * @param outMaxSize cast=(HISize *)
 */
public static final native int HIViewGetSizeConstraints(int inView, CGRect outMinSize, CGRect outMaxSize);
/**
 * @param inView cast=(HIViewRef)
 * @param inPoint cast=(CGPoint *)
 * @param inDeep cast=(Boolean)
 * @param outView cast=(HIViewRef *)
 */
public static final native int HIViewGetSubviewHit(int inView, CGPoint inPoint, boolean inDeep, int[] outView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewGetSuperview(int inView);
/**
 * @param inView cast=(HIViewRef)
 * @param inEvent cast=(EventRef)
 * @param outView cast=(HIViewRef *)
 */
public static final native int HIViewGetViewForMouseEvent(int inView, int inEvent, int[] outView);
/** 
 * @param inGrowBoxView cast=(HIViewRef) 
 * @param inTransparent cast=(Boolean)
 */
public static final native int HIGrowBoxViewSetTransparent(int inGrowBoxView, boolean inTransparent);
/** @param inView cast=(HIViewRef) */
public static final native boolean HIViewIsDrawingEnabled (int inView);
/** @param inView cast=(HIViewRef) */
public static final native boolean HIViewIsVisible(int inView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewRemoveFromSuperview(int inView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewRender(int inView);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewSetBoundsOrigin(int inView, float inX, float inY); 
/**
 * @param inView cast=(HIViewRef)
 * @param isEnabled cast=(Boolean)
 */
public static final native int HIViewSetDrawingEnabled(int inView, boolean isEnabled);
/**
 * @param inView cast=(HIViewRef)
 * @param inRect cast=(const HIRect *)
 */
public static final native int HIViewSetFrame(int inView, CGRect inRect);
/** @param inView cast=(HIViewRef) */
public static final native int HIViewSetLayoutInfo (int inView, HILayoutInfo outLayoutInfo);
/**
 * @param inView cast=(HIViewRef)
 * @param inNeedsDisplay cast=(Boolean)
 */
public static final native int HIViewSetNeedsDisplay(int inView, boolean inNeedsDisplay);
/**
 * @param inView cast=(HIViewRef)
 * @param inRgn cast=(RgnHandle)
 * @param inNeedsDisplay cast=(Boolean)
 */
public static final native int HIViewSetNeedsDisplayInRegion(int inView, int inRgn, boolean inNeedsDisplay);
/**
 * @param inView cast=(HIViewRef)
 * @param inVisible cast=(Boolean)
 */
public static final native int HIViewSetVisible(int inView, boolean inVisible);
/**
 * @param inView cast=(HIViewRef)
 * @param inOp cast=(HIViewZOrderOp)
 * @param inOther cast=(HIViewRef)
 */
public static final native int HIViewSetZOrder(int inView, int inOp, int inOther);
/**
 * @param inView cast=(HIViewRef)
 * @param inPartToClick cast=(HIViewPartCode)
 * @param modifiers cast=(UInt32)
 * @param outPartClicked cast=(ControlPartCode *)
 */
public static final native int HIViewSimulateClick(int inView, short inPartToClick, int modifiers, short[] outPartClicked);
/**
 * @param cHandle cast=(ControlRef)
 * @param where flags=struct
 * @param modifiers cast=(EventModifiers)
 * @param actionUPP cast=(ControlActionUPP)
 */
public static final native short HandleControlClick(int cHandle, Point where, int modifiers, int actionUPP);
public static final native short HiWord(int doubleWord);
/** @param wHandle cast=(WindowRef) */
public static final native void HideWindow(int wHandle);
/** @param menuID cast=(MenuID) */
public static final native void HiliteMenu(short menuID);
/** @param h cast=(Handle) */
public static final native void HLock(int h);
/** @param inContent cast=(const HMHelpContentRec *) */
public static final native int HMDisplayTag(HMHelpContentRec inContent);
public static final native int HMGetTagDelay (int [] outDelay);
public static final native int HMHideTag ();
public static final native int HMSetTagDelay (int inDelay);
/**
 * @param inControl cast=(ControlRef)
 * @param inContentUPP cast=(HMControlContentUPP)
 */
public static final native void HMInstallControlContentCallback(int inControl, int inContentUPP);  
/** @param h cast=(Handle) */
public static final native void HUnlock(int h);
/**
 * @param theIconRef cast=(IconRef)
 * @param whichIcons cast=(IconSelectorValue)
 * @param iconFamily cast=(IconFamilyHandle *)
 */
public static final native int IconRefToIconFamily(int theIconRef, int whichIcons, int[] iconFamily);
public static final native int InitContextualMenus();
public static final native void InitCursor();
/** @param window cast=(WindowRef) */
public static final native void HIWindowFlush(int window);
/**
 * @param inWindow cast=(WindowRef)
 * @param outOwner cast=(WindowRef*)
 */
public static final native boolean HIWindowIsDocumentModalTarget(int inWindow, int[] outOwner);  
/** @param callbacks cast=(DataBrowserCallbacks *),flags=init */
public static final native int InitDataBrowserCallbacks(DataBrowserCallbacks callbacks);
public static final native int InitDataBrowserCustomCallbacks(DataBrowserCustomCallbacks callbacks); 
/**
 * @param mHandle cast=(MenuRef)
 * @param beforeID cast=(MenuID)
 */
public static final native void InsertMenu(int mHandle, short beforeID);
/**
 * @param mHandle cast=(MenuRef)
 * @param sHandle cast=(CFStringRef)
 * @param index cast=(MenuItemIndex)
 * @param attributes cast=(MenuItemAttributes)
 * @param commandID cast=(MenuCommand)
 */
public static final native int InsertMenuItemTextWithCFString(int mHandle, int sHandle, short index, int attributes, int commandID);
/**
 * @param inTarget cast=(EventTargetRef)
 * @param inHandler cast=(EventHandlerUPP)
 * @param inNumTypes cast=(UInt32)
 * @param inList cast=(const EventTypeSpec *)
 * @param inUserData cast=(void *)
 * @param outRef cast=(EventHandlerRef *)
 */
public static final native int InstallEventHandler(int inTarget, int inHandler, int inNumTypes, int[] inList, int inUserData, int[] outRef);
/**
 * @param inEventLoop cast=(EventLoopRef)
 * @param inFireDelay cast=(EventTimerInterval)
 * @param inInterval cast=(EventTimerInterval)
 * @param inTimerProc cast=(EventLoopIdleTimerUPP)
 * @param inTimerData cast=(void *)
 * @param outTimer cast=(EventLoopTimerRef *)
 */
public static final native int InstallEventLoopIdleTimer(int inEventLoop, double inFireDelay, double inInterval, int inTimerProc, int inTimerData, int[] outTimer);
/**
 * @param inEventLoop cast=(EventLoopRef)
 * @param inFireDelay cast=(EventTimerInterval)
 * @param inInterval cast=(EventTimerInterval)
 * @param inTimerProc cast=(EventLoopTimerUPP)
 * @param inTimerData cast=(void *)
 * @param outTimer cast=(EventLoopTimerRef *)
 */
public static final native int InstallEventLoopTimer(int inEventLoop, double inFireDelay, double inInterval, int inTimerProc, int inTimerData, int[] outTimer);
/**
 * @param receiveHandler cast=(DragReceiveHandlerUPP)
 * @param theWindow cast=(WindowRef)
 * @param handlerRefCon cast=(void *)
 */
public static final native int InstallReceiveHandler(int receiveHandler,int theWindow, int[] handlerRefCon);
/**
 * @param trackingHandler cast=(DragTrackingHandlerUPP)
 * @param theWindow cast=(WindowRef)
 * @param handlerRefCon cast=(void *)
 */
public static final native int InstallTrackingHandler(int trackingHandler,int theWindow, int[] handlerRefCon);
/**
 * @param wHandle cast=(WindowRef)
 * @param bounds cast=(const Rect *)
 */
public static final native void InvalWindowRect(int wHandle, Rect bounds);
/**
 * @param wHandle cast=(WindowRef)
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native void InvalWindowRgn(int wHandle, int rgnHandle);
/** @param r cast=(const Rect *) */
public static final native void InvertRect(Rect r);
/** @param inControl cast=(ControlRef) */
public static final native boolean IsControlActive(int inControl);
/** @param cHandle cast=(ControlRef) */
public static final native boolean IsControlEnabled(int cHandle);
/** @param cHandle cast=(ControlRef) */
public static final native boolean IsControlVisible(int cHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param itemID cast=(DataBrowserItemID)
 */
public static final native boolean IsDataBrowserItemSelected(int cHandle, int itemID);
/**
 * @param inQueue cast=(EventQueueRef)
 * @param inEvent cast=(EventRef)
 */
public static final native boolean IsEventInQueue(int inQueue, int inEvent);
/**
 * @param mHandle cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 */
public static final native boolean IsMenuCommandEnabled(int mHandle, int commandId);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 */
public static final native boolean IsMenuItemEnabled(int mHandle, short index);
/**
 * @param inStartMenu cast=(MenuRef)
 * @param inEvent cast=(EventRef)
 * @param inOptions cast=(MenuEventOptions)
 * @param outMenu cast=(MenuRef *)
 * @param outMenuItem cast=(MenuItemIndex *)
 */
public static final native boolean IsMenuKeyEvent(int inStartMenu, int inEvent, int inOptions, int[] outMenu, short[] outMenuItem);
/** @param cHandle cast=(ControlRef) */
public static final native boolean IsValidControlHandle(int cHandle);
/** @param mHandle cast=(MenuRef) */
public static final native boolean IsValidMenu(int mHandle);
/** @param grafPort cast=(WindowRef) */
public static final native boolean IsValidWindowPtr(int grafPort);
/** @param window cast=(WindowRef) */
public static final native boolean IsWindowActive(int window);
/** @param window cast=(WindowRef) */
public static final native boolean IsWindowCollapsed(int window);
/** @param window cast=(WindowRef) */
public static final native boolean IsWindowModified(int window);
/** @param window cast=(WindowRef) */
public static final native boolean IsWindowVisible(int window);
/**
 * @param transData cast=(const void *)
 * @param state cast=(UInt32 *)
 */
public static final native int KeyTranslate(int transData, short keycode, int[] state);
/** @param oKeyboardLayout cast=(KeyboardLayoutRef *) */
public static final native int KLGetCurrentKeyboardLayout(int[] oKeyboardLayout);
/**
 * @param iKeyboardLayout cast=(KeyboardLayoutRef)
 * @param iPropertyTag cast=(KeyboardLayoutPropertyTag)
 * @param oValue cast=(const void **)
 */
public static final native int KLGetKeyboardLayoutProperty(int iKeyboardLayout, int iPropertyTag, int[] oValue);
public static final native byte LMGetKbdType();
/**
 * @param keyLayoutPtr cast=(const UCKeyboardLayout *)
 * @param virtualKeyCode cast=(UInt16)
 * @param keyAction cast=(UInt16)
 * @param modifierKeyState cast=(UInt32)
 * @param keyboardType cast=(UInt32)
 * @param keyTranslateOptions cast=(OptionBits)
 * @param deadKeyState cast=(UInt32 *)
 * @param maxStringLength cast=(UniCharCount)
 * @param actualStringLength cast=(UniCharCount *)
 * @param unicodeString cast=(UniChar *)
 */
public static final native int UCKeyTranslate (int keyLayoutPtr, short virtualKeyCode, short keyAction, int modifierKeyState, int keyboardType, int keyTranslateOptions, int[] deadKeyState, int maxStringLength, int[] actualStringLength, char[] unicodeString);
/** @param pictHandle cast=(PicHandle) */
public static final native void KillPicture(int pictHandle);
/**
 * @param h cast=(short)
 * @param v cast=(short)
 */
public static final native void LineTo(short h, short v);
public static final native int Long2Fix(int x);
public static final native short LoWord(int doubleWord);
/**
 * @param inCreator cast=(OSType)
 * @param inBundleID cast=(CFStringRef)
 * @param inName cast=(CFStringRef)
 * @param outAppRef cast=(FSRef *)
 * @param outAppURL cast=(CFURLRef *)
 */
public static final native int LSFindApplicationForInfo(int inCreator, int inBundleID, int inName, byte[] outAppRef, int[] outAppURL);
/**
 * @method flags=dynamic
 * @param inContentType cast=(CFStringRef)
 */
public static final native int LSCopyAllRoleHandlersForContentType(int inContentType, int inRoleMask);
/**
 * @param inItem cast=(const FSRef *)
 * @param inRoles cast=(LSRolesMask)
 * @param inAttributeName cast=(CFStringRef)
 * @param outValue cast=(CFTypeRef *)
 */
public static final native int  LSCopyItemAttribute (byte[] inItem, int inRoles, int inAttributeName, int[] outValue);
/**
 * @param inType cast=(OSType)
 * @param inCreator cast=(OSType)
 * @param inExtension cast=(CFStringRef)
 * @param inRoleMask cast=(LSRolesMask)
 * @param outAppRef cast=(FSRef *)
 * @param outAppURL cast=(CFURLRef *)
 */
public static final native int LSGetApplicationForInfo(int inType, int inCreator,int inExtension, int inRoleMask, byte[] outAppRef, int[] outAppURL);
/**
 * @param inURLs cast=(CFArrayRef)
 * @param inAEParam cast=(const AEKeyDesc *)
 * @param inAppParams cast=(const LSApplicationParameters *)
 * @param outPSNs cast=(ProcessSerialNumber *)
 */
public static final native int LSOpenURLsWithRole(int inURLs, int inRole, int inAEParam, LSApplicationParameters inAppParams, int[] outPSNs, int inMaxPSNCount);
/**
 * @param inURL cast=(CFURLRef)
 * @param outLaunchedURL cast=(CFURLRef *)
 */
public static final native int LSOpenCFURLRef(int inURL, int[] outLaunchedURL);
/** @param outPSN cast=(ProcessSerialNumber *) */
public static final native int LSOpenApplication (LSApplicationParameters inAppParams, int[] outPSN);
/**
 * @param inRef cast=(const FSRef *)
 * @param outDisplayName cast=(CFStringRef *)
 */
public static final native int LSCopyDisplayNameForRef(byte[] inRef, int[] outDisplayName);
/** @param mHandle cast=(Point *),flags=struct */
public static final native int MenuSelect(Point mHandle);
/**
 * @param theControl cast=(ControlRef)
 * @param h cast=(SInt16)
 * @param v cast=(SInt16)
 */
public static final native void MoveControl(int theControl, short h, short v);
/**
 * @param h cast=(short)
 * @param v cast=(short)
 */
public static final native void MoveTo(short h, short v);
/**
 * @param wHandle cast=(WindowRef)
 * @param h cast=(short)
 * @param v cast=(short)
 * @param toFront cast=(Boolean)
 */
public static final native void MoveWindow(int wHandle, short h, short v, boolean toFront);
/**
 * @param inOptions cast=(const NavDialogCreationOptions *)
 * @param inEventProc cast=(NavEventUPP)
 * @param inFilterProc cast=(NavObjectFilterUPP)
 * @param inClientData cast=(void *)
 * @param outDialog cast=(NavDialogRef *)
 */
public static final native int NavCreateChooseFolderDialog(NavDialogCreationOptions inOptions, int inEventProc, int inFilterProc, int inClientData, int[] outDialog);
/**
 * @param inOptions cast=(const NavDialogCreationOptions *)
 * @param inTypeList cast=(NavTypeListHandle)
 * @param inEventProc cast=(NavEventUPP)
 * @param inPreviewProc cast=(NavPreviewUPP)
 * @param inFilterProc cast=(NavObjectFilterUPP)
 * @param inClientData cast=(void *)
 * @param outDialog cast=(NavDialogRef *)
 */
public static final native int NavCreateGetFileDialog(NavDialogCreationOptions inOptions, int inTypeList, int inEventProc, int inPreviewProc, int inFilterProc, int inClientData, int[] outDialog);
/**
 * @param inOptions cast=(const NavDialogCreationOptions *)
 * @param inFileType cast=(OSType)
 * @param inFileCreator cast=(OSType)
 * @param inEventProc cast=(NavEventUPP)
 * @param inClientData cast=(void *)
 * @param outDialog cast=(NavDialogRef *)
 */
public static final native int NavCreatePutFileDialog(NavDialogCreationOptions inOptions, int inFileType, int inFileCreator, int inEventProc, int inClientData, int[] outDialog);
/**
 * @param dialog cast=(NavDialogRef)
 * @param selector cast=(NavCustomControlMessage)
 */
public static final native int NavCustomControl(int dialog, int selector, AEDesc parms);
/**
 * @param dialog cast=(NavDialogRef)
 * @param selector cast=(NavCustomControlMessage)
 */
public static final native int NavCustomControl(int dialog, int selector, NavMenuItemSpec parms);
/** @param dialogHandle cast=(NavDialogRef) */
public static final native void NavDialogDispose(int dialogHandle);
/** @param dialogHandle cast=(NavDialogRef) */
public static final native int NavDialogGetSaveFileName(int dialogHandle);
/** @param dialogHandle cast=(NavDialogRef) */
public static final native int NavDialogGetUserAction(int dialogHandle);
/** @param dialog cast=(NavDialogRef) */
public static final native int NavDialogGetWindow(int dialog);
/** @param dialogHandle cast=(NavDialogRef) */
public static final native int NavDialogRun(int dialogHandle);
/**
 * @param dialogHandle cast=(NavDialogRef)
 * @param fileNameHandle cast=(CFStringRef)
 */
public static final native int NavDialogSetSaveFileName(int dialogHandle, int fileNameHandle);
/** @method flags=dynamic */
public static final native int NavDialogSetFilterTypeIdentifiers(int inGetFileDialog, int inTypeIdentifiers);  
/** @param outOptions cast=(NavDialogCreationOptions *) */
public static final native int NavGetDefaultDialogCreationOptions(NavDialogCreationOptions outOptions);
/**
 * @param inDialog cast=(NavDialogRef)
 * @param outReply cast=(NavReplyRecord *)
 */
public static final native int NavDialogGetReply(int inDialog, NavReplyRecord outReply);
public static final native int NavDisposeReply(NavReplyRecord reply); 
/**
 * @param owningWindow cast=(WindowRef)
 * @param boundsRect cast=(const Rect *)
 * @param controlTitle cast=(ConstStr255Param)
 * @param initiallyVisible cast=(Boolean)
 * @param initialValue cast=(SInt16)
 * @param minimumValue cast=(SInt16)
 * @param maximumValue cast=(SInt16)
 * @param procID cast=(SInt16)
 * @param controlReference cast=(SInt32)
 */
public static final native int NewControl(int owningWindow, Rect boundsRect, byte[] controlTitle, boolean initiallyVisible, short initialValue, short minimumValue, short maximumValue, short procID, int controlReference);
/** @param theDrag cast=(DragRef *) */
public static final native int NewDrag(int[] theDrag); 
/**
 * @param offscreenGWorld cast=(GWorldPtr *)
 * @param PixelFormat cast=(unsigned long)
 * @param boundsRect cast=(const Rect *)
 * @param cTable cast=(CTabHandle)
 * @param aGDevice cast=(GDHandle)
 * @param flags cast=(GWorldFlags)
 * @param newBuffer cast=(Ptr)
 * @param rowBytes cast=(long)
 */
public static final native int NewGWorldFromPtr(int[] offscreenGWorld, int PixelFormat, Rect boundsRect, int cTable, int aGDevice, int flags, int newBuffer, int rowBytes);
/** @param size cast=(Size) */
public static final native int NewHandle(int size);
/** @param size cast=(Size) */
public static final native int NewHandleClear(int size);
/** @param size cast=(Size) */
public static final native int NewPtr(int size);
/** @param size cast=(Size) */
public static final native int NewPtrClear(int size);
public static final native int NewRgn();
/**
 * @param supportedInterfaceTypes cast=(OSType *)
 * @param idocID cast=(TSMDocumentID *)
 */
public static final native int NewTSMDocument(short numOfInterface, int[] supportedInterfaceTypes, int[] idocID, long refcon);
public static final native void OffsetRect(Rect rect, short dh, short dv);
/**
 * @param rgnHandle cast=(RgnHandle)
 * @param dh cast=(short)
 * @param dv cast=(short)
 */
public static final native void OffsetRgn(int rgnHandle, short dh, short dv);
/**
 * @param cHandle cast=(ControlRef)
 * @param container cast=(DataBrowserItemID)
 */
public static final native int OpenDataBrowserContainer(int cHandle, int container);
public static final native void OpenRgn();
/** @param rect cast=(const Rect *) */
public static final native int OpenPicture(Rect rect);
/** @param theColorInfo cast=(ColorPickerInfo *) */
public static final native int PickColor(ColorPickerInfo theColorInfo);
/**
 * @param mHandle cast=(MenuRef)
 * @param top cast=(short)
 * @param left cast=(short)
 * @param popUpItem cast=(short)
 */
public static final native int PopUpMenuSelect(int mHandle, short top, short left, short popUpItem);
/**
 * @param eventNum cast=(EventKind)
 * @param eventMsg cast=(UInt32)
 */
public static final native int PostEvent(short eventNum, int eventMsg);
/**
 * @param inQueue cast=(EventQueueRef)
 * @param inEvent cast=(EventRef)
 * @param inPriority cast=(EventPriority)
 */
public static final native int PostEventToQueue(int inQueue, int inEvent, short inPriority);
/** @param pageFormat cast=(PMPageFormat *) */
public static final native int PMCreatePageFormat(int[] pageFormat);
/** @param printSettings cast=(PMPrintSettings *) */
public static final native int PMCreatePrintSettings(int[] printSettings);
/** @param printSession cast=(PMPrintSession *) */
public static final native int PMCreateSession(int[] printSession);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param flatFormat cast=(Handle *)
 */
public static final native int PMFlattenPageFormat(int pageFormat, int[] flatFormat);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param flatSettings cast=(Handle *)
 */
public static final native int PMFlattenPrintSettings(int printSettings, int[] flatSettings);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param pageRect cast=(PMRect *)
 */
public static final native int PMGetAdjustedPageRect(int pageFormat, PMRect pageRect);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param paperRect cast=(PMRect *)
 */
public static final native int PMGetAdjustedPaperRect(int pageFormat, PMRect paperRect);
/** @param printSettings cast=(PMPrintSettings) */
public static final native int PMGetCollate(int printSettings, boolean[] collate);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param copies cast=(UInt32 *)
 */
public static final native int PMGetCopies(int printSettings, int[] copies);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param first cast=(UInt32 *)
 */
public static final native int PMGetFirstPage(int printSettings, int[] first);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param name cast=(CFStringRef *)
 */
public static final native int PMGetJobNameCFString(int printSettings, int[] name);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param last cast=(UInt32 *)
 */
public static final native int PMGetLastPage(int printSettings, int[] last);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param orientation cast=(PMOrientation *)
 */
public static final native int PMGetOrientation(int pageFormat, short[] orientation);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param minPage cast=(UInt32 *)
 * @param maxPage cast=(UInt32 *)
 */
public static final native int PMGetPageRange(int printSettings, int[] minPage, int[] maxPage);
/**
 * @method flags=dynamic
 * @param i cast=(PMPrinter)
 * @param printSettings cast=(PMPrintSettings)
 * @param resolution cast=(PMResolution *)
 */
public static final native int PMPrinterGetOutputResolution(int i, int printSettings, PMResolution resolution);
/** @param printManagerObject cast=(PMObject) */
public static final native int PMRelease(int printManagerObject);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param resolution cast=(PMResolution *)
 */
public static final native int PMGetResolution(int pageFormat, PMResolution resolution);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 * @param pageFormat cast=(PMPageFormat)
 */
public static final native int PMSessionBeginDocumentNoDialog(int printSession, int printSettings, int pageFormat);
/**
 * @param printSession cast=(PMPrintSession)
 * @param pageFormat cast=(PMPageFormat)
 * @param pageFrame cast=(const PMRect *)
 */
public static final native int PMSessionBeginPageNoDialog(int printSession, int pageFormat, PMRect pageFrame);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 * @param destLocationP cast=(CFURLRef *)
 */
public static final native int PMSessionCopyDestinationLocation(int printSession, int printSettings, int[] destLocationP);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printerList cast=(CFArrayRef *)
 * @param currentIndex cast=(CFIndex *)
 * @param currentPrinter cast=(PMPrinter *)
 */
public static final native int PMSessionCreatePrinterList(int printSession, int[] printerList, int[] currentIndex, int[] currentPrinter);
/**
 * @param printSession cast=(PMPrintSession)
 * @param pageFormat cast=(PMPageFormat)
 */
public static final native int PMSessionDefaultPageFormat(int printSession, int pageFormat);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 */
public static final native int PMSessionDefaultPrintSettings(int printSession, int printSettings);
/** @param printSession cast=(PMPrintSession) */
public static final native int PMSessionEndDocumentNoDialog(int printSession);
/** @param printSession cast=(PMPrintSession) */
public static final native int PMSessionEndPageNoDialog(int printSession);
/** @param printSession cast=(PMPrintSession) */
public static final native int PMSessionError(int printSession);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printer cast=(PMPrinter *)
 */
public static final native int PMSessionGetCurrentPrinter(int printSession, int[] printer);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 * @param destTypeP cast=(PMDestinationType *)
 */
public static final native int PMSessionGetDestinationType(int printSession, int printSettings, short[] destTypeP); 
/**
 * @param printSession cast=(PMPrintSession)
 * @param graphicsType cast=(CFStringRef)
 * @param graphicsContext cast=(void **)
 */
public static final native int PMSessionGetGraphicsContext(int printSession, int graphicsType, int[] graphicsContext);
/**
 * @param printSession cast=(PMPrintSession)
 * @param pageFormat cast=(PMPageFormat)
 * @param result cast=(Boolean *)
 */
public static final native int PMSessionPageSetupDialog(int printSession, int pageFormat, boolean[] result);	
/**
 * @param printSession cast=(PMPrintSession)
 * @param settings cast=(PMPrintSettings)
 * @param pageFormat cast=(PMPageFormat)
 * @param accepted cast=(Boolean *)
 */
public static final native int PMSessionPrintDialog(int printSession, int settings, int pageFormat, boolean[] accepted);
/**
 * @param session cast=(PMPrintSession)
 * @param printerName cast=(CFStringRef)
 */
public static final native int PMSessionSetCurrentPrinter(int session, int printerName);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 * @param destType cast=(PMDestinationType)
 * @param destFormat cast=(CFStringRef)
 * @param destLocation cast=(CFURLRef)
 */
public static final native int PMSessionSetDestination(int printSession, int printSettings, short destType, int destFormat, int destLocation);
/** @param printSession cast=(PMPrintSession) */
public static final native int PMSessionSetError(int printSession, int printError);
/**
 * @param printSession cast=(PMPrintSession)
 * @param docFormat cast=(CFStringRef)
 * @param graphicsContexts cast=(CFArrayRef)
 * @param options cast=(CFTypeRef)
 */
public static final native int PMSessionSetDocumentFormatGeneration(int printSession, int docFormat, int graphicsContexts, int options);
/**
 * @param printSession cast=(PMPrintSession)
 * @param documentWindow cast=(WindowRef)
 * @param sheetDoneProc cast=(PMSheetDoneUPP)
 */
public static final native int PMSessionUseSheets(int printSession, int documentWindow, int sheetDoneProc); 
/**
 * @param printSession cast=(PMPrintSession)
 * @param pageFormat cast=(PMPageFormat)
 * @param result cast=(Boolean *)
 */
public static final native int PMSessionValidatePageFormat(int printSession, int pageFormat, boolean[] result);
/**
 * @param printSession cast=(PMPrintSession)
 * @param printSettings cast=(PMPrintSettings)
 * @param result cast=(Boolean *)
 */
public static final native int PMSessionValidatePrintSettings(int printSession, int printSettings, boolean[] result);
/** @param printSettings cast=(PMPrintSettings) */
public static final native int PMSetCollate(int printSettings, boolean collate);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param copies cast=(UInt32)
 * @param lock cast=(Boolean)
 */
public static final native int PMSetCopies(int printSettings, int copies, boolean lock);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param first cast=(UInt32)
 * @param lock cast=(Boolean)
 */
public static final native int PMSetFirstPage(int printSettings, int first, boolean lock);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param name cast=(CFStringRef)
 */
public static final native int PMSetJobNameCFString(int printSettings, int name); 
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param last cast=(UInt32)
 * @param lock cast=(Boolean)
 */
public static final native int PMSetLastPage(int printSettings, int last, boolean lock);
/**
 * @param pageFormat cast=(PMPageFormat)
 * @param orientation cast=(PMOrientation)
 * @param lock cast=(Boolean)
 */
public static final native void PMSetOrientation(int pageFormat, short orientation, boolean lock);
/**
 * @param printSettings cast=(PMPrintSettings)
 * @param minPage cast=(UInt32)
 * @param maxPage cast=(UInt32)
 */
public static final native int PMSetPageRange(int printSettings, int minPage, int maxPage);
/** @method flags=dynamic */
public static final native int PMShowPrintDialogWithOptions(int printSession, int printSettings, int pageFormat, int printDialogOptions, boolean[] accepted);
/**
 * @param flatFormat cast=(Handle)
 * @param pageFormat cast=(PMPageFormat *)
 */
public static final native int PMUnflattenPageFormat(int flatFormat, int[] pageFormat); 
/**
 * @param flatSettings cast=(Handle)
 * @param printSettings cast=(PMPrintSettings *)
 */
public static final native int PMUnflattenPrintSettings(int flatSettings, int[] printSettings); 
/**
 * @param pt cast=(Point *),flags=struct
 * @param r cast=(const Rect *)
 */
public static final native boolean PtInRect(Point pt, Rect r);
/**
 * @param pt cast=(Point *),flags=struct
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native boolean PtInRgn(Point pt, int rgnHandle);
/**
 * @param scrap cast=(ScrapRef)
 * @param flavorType cast=(ScrapFlavorType)
 * @param flavorFlags cast=(ScrapFlavorFlags)
 * @param flavorSize cast=(Size)
 * @param flavorData cast=(const void *)
 */
public static final native int PutScrapFlavor(int scrap, int flavorType, int flavorFlags, int flavorSize, byte[] flavorData);
/**
 * @param scrap cast=(ScrapRef)
 * @param flavorType cast=(ScrapFlavorType)
 * @param flavorFlags cast=(ScrapFlavorFlags)
 * @param flavorSize cast=(Size)
 * @param flavorData cast=(const void *)
 */
public static final native int PutScrapFlavor(int scrap, int flavorType, int flavorFlags, int flavorSize, char[] flavorData);
/**
 * @param inPort cast=(CGrafPtr)
 * @param outContext cast=(CGContextRef *)
 */
public static final native int QDBeginCGContext(int inPort, int[] outContext);
/**
 * @param inPort cast=(CGrafPtr)
 * @param inoutContext cast=(CGContextRef *)
 */
public static final native int QDEndCGContext(int inPort, int[] inoutContext);
/**
 * @param port cast=(CGrafPtr)
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native void QDFlushPortBuffer(int port, int rgnHandle);
/** @param provider cast=(CGDataProviderRef) */
public static final native int QDPictCreateWithProvider(int provider);
/**
 * @param ctx cast=(CGContextRef)
 * @param rect cast=(CGRect *),flags=struct
 * @param picRef cast=(QDPictRef)
 */
public static final native int QDPictDrawToCGContext(int ctx, CGRect rect, int picRef);
/** @param pictRef cast=(QDPictRef) */
public static final native void QDPictRelease(int pictRef);
/**
 * @method flags=no_gen
 * @param picture cast=(QDPictRef)
 * @param rect cast=(CGRect *)
 */
public static final native void QDPictGetBounds(int picture, CGRect rect);
/**
 * @param rgn cast=(RgnHandle)
 * @param dir cast=(QDRegionParseDirection)
 * @param proc cast=(RegionToRectsUPP)
 * @param userData cast=(void *)
 */
public static final native int QDRegionToRects(int rgn, int dir, int proc, int userData);
/** @param color cast=(const RGBColor *) */
public static final native void RGBBackColor(RGBColor color);
/** @param color cast=(const RGBColor *) */
public static final native void RGBForeColor(RGBColor color);
/**
 * @param iconFile cast=(const FSSpec *)
 * @param iconFamily cast=(IconFamilyHandle *)
 */
public static final native int ReadIconFile (byte[] iconFile, int[] iconFamily);
/**
 * @param inNumTypes cast=(UInt32)
 * @param inList cast=(const EventTypeSpec *)
 * @param inTimeout cast=(EventTimeout)
 * @param inPullEvent cast=(Boolean)
 * @param outEvent cast=(EventRef *)
 */
public static final native int ReceiveNextEvent(int inNumTypes, int[] inList, double inTimeout, boolean inPullEvent, int[] outEvent);
/**
 * @param rect cast=(const Rect *)
 * @param rgnHandle cast=(RgnHandle)
 */
public static final native boolean RectInRgn(Rect rect, int rgnHandle);
/**
 * @param rgnHandle cast=(RgnHandle)
 * @param left cast=(const Rect *)
 */
public static final native void RectRgn(int rgnHandle, Rect left);
public static final native int RegisterAppearanceClient();
/** @param theEvent cast=(EventRef) */
public static final native void ReleaseEvent(int theEvent);
/** @param theIconRef cast=(IconRef) */
public static final native void ReleaseIconRef(int theIconRef);
/** @param mHandle cast=(MenuRef) */
public static final native int ReleaseMenu(int mHandle);
/** @param inGroup cast=(WindowGroupRef) */
public static final native int ReleaseWindowGroup (int inGroup);
/** @param inWindow cast=(WindowRef) */
public static final native int ReleaseWindow(int inWindow); 
/** @param control cast=(ControlRef) */
public static final native int RemoveControlProperty(int control, int propertyCreator, int propertyTag);
/**
 * @param cHandle cast=(ControlRef)
 * @param containerID cast=(DataBrowserItemID)
 * @param numItems cast=(UInt32)
 * @param itemIDs cast=(const DataBrowserItemID *)
 * @param preSortProperty cast=(DataBrowserPropertyID)
 */
public static final native int RemoveDataBrowserItems(int cHandle, int containerID, int numItems, int[] itemIDs, int preSortProperty);
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID)
 */
public static final native int RemoveDataBrowserTableViewColumn(int browser, int column);
/**
 * @param inQueue cast=(EventQueueRef)
 * @param inEvent cast=(EventRef)
 */
public static final native int RemoveEventFromQueue(int inQueue, int inEvent);
/** @param inHandlerRef cast=(EventHandlerRef) */
public static final native int RemoveEventHandler(int inHandlerRef);
/** @param inTimer cast=(EventLoopTimerRef) */
public static final native int RemoveEventLoopTimer(int inTimer);
/**
 * @param receiveHandler cast=(DragReceiveHandlerUPP)
 * @param theWindow cast=(WindowRef)
 */
public static final native int RemoveReceiveHandler(int receiveHandler,int theWindow);
/**
 * @param trackingHandler cast=(DragTrackingHandlerUPP)
 * @param theWindow cast=(WindowRef)
 */
public static final native int RemoveTrackingHandler(int trackingHandler,int theWindow);
/**
 * @param window cast=(WindowRef)
 * @param parentWindow cast=(WindowRef)
 */
public static final native int RepositionWindow(int window, int parentWindow, int method);
/** @param window cast=(WindowRef) */
public static final native int ReshapeCustomWindow(int window);
public static final native int RestoreApplicationDockTileImage();
/** @param inEvent cast=(EventRef) */
public static final native int RetainEvent(int inEvent);
/** @param mHandle cast=(MenuRef) */
public static final native int RetainMenu(int mHandle);
/** @param inWindow cast=(WindowRef) */
public static final native int RetainWindow(int inWindow); 
/**
 * @param browser cast=(ControlRef)
 * @param item cast=(DataBrowserItemID)
 * @param property cast=(DataBrowserPropertyID)
 * @param options cast=(DataBrowserRevealOptions)
 */
public static final native int RevealDataBrowserItem(int browser, int item, int property, byte options);
/**
 * @param dialogHandle cast=(DialogRef)
 * @param modalFilterUPP cast=(ModalFilterUPP)
 * @param itemHit cast=(DialogItemIndex *)
 */
public static final native int RunStandardAlert(int dialogHandle, int modalFilterUPP, short[] itemHit);
/**
 * @param psn1 cast=(ProcessSerialNumber *)
 * @param psn2 cast=(ProcessSerialNumber *)
 */
public static final native int SameProcess(int [] psn1, int[] psn2, boolean[] result); 
/**
 * @param rect cast=(const Rect *)
 * @param dh cast=(short)
 * @param dv cast=(short)
 * @param updateRgn cast=(RgnHandle)
 */
public static final native void ScrollRect(Rect rect, short dh, short dv, int updateRgn);

/**
 * @param certType cast=(CSSM_CERT_TYPE)
 * @param policyOID cast=(CSSM_OID *)
 * @param value cast=(CSSM_DATA *)
 * @param policySearch cast=(SecPolicySearchRef *) 
 */
public static final native int SecPolicySearchCreate(int certType, int policyOID, int value, int[] policySearch);

/**
 * @param searchRef cast=(SecPolicySearchRef)
 * @param policyRef cast=(SecPolicyRef *)
 */
public static final native int SecPolicySearchCopyNext(int searchRef, int[] policyRef);

/** 
 * @param certificates cast=(CFArrayRef)
 * @param policies cast=(CFTypeRef)
 * @param trustRef cast=(SecTrustRef *) 
 */
public static final native int SecTrustCreateWithCertificates(int certificates, int policies, int[] trustRef);

/**
 * @param src1 flags=no_out
 * @param src2 flags=no_out
 * @param dstRect flags=no_in
 */
public static final native boolean SectRect(Rect src1, Rect src2, Rect dstRect);
/**
 * @param srcRgnA cast=(RgnHandle)
 * @param srcRgnB cast=(RgnHandle)
 * @param dstRgn cast=(RgnHandle)
 */
public static final native void SectRgn(int srcRgnA, int srcRgnB, int dstRgn);
/** @param wHandle cast=(WindowRef) */
public static final native void SelectWindow(int wHandle);
/**
 * @param window cast=(WindowRef)
 * @param behindWindow cast=(WindowRef)
 */
public static final native void SendBehind(int window, int behindWindow);
/**
 * @param theEvent cast=(EventRef)
 * @param theTarget cast=(EventTargetRef)
 */
public static final native int SendEventToEventTarget(int theEvent, int theTarget);
/**
 * @param theEvent cast=(EventRef)
 * @param theTarget cast=(EventTargetRef)
 */
public static final native int SendEventToEventTargetWithOptions(int theEvent, int theTarget, int options);
/** @param inImage cast=(CGImageRef) */
public static final native int SetApplicationDockTileImage(int inImage);
/**
 * @param inWindow cast=(WindowRef)
 * @param inTracks cast=(Boolean)
 */
public static final native int SetAutomaticControlDragTrackingEnabledForWindow (int inWindow, boolean inTracks);
/**
 * @param inButton cast=(ControlRef)
 * @param inContent cast=(ControlButtonContentInfoPtr)
 */
public static final native int SetBevelButtonContentInfo(int inButton, ControlButtonContentInfo inContent);
/** @param rgnHandle cast=(RgnHandle) */
public static final native void SetClip(int rgnHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param maximum cast=(SInt32)
 */
public static final native void SetControl32BitMaximum(int cHandle, int maximum);
/**
 * @param cHandle cast=(ControlRef)
 * @param minimum cast=(SInt32)
 */
public static final native void SetControl32BitMinimum(int cHandle, int minimum);
/**
 * @param cHandle cast=(ControlRef)
 * @param value cast=(SInt32)
 */
public static final native void SetControl32BitValue(int cHandle, int value);
/**
 * @param cHandle cast=(ControlRef)
 * @param actionProc cast=(ControlActionUPP)
 */
public static final native void SetControlAction(int cHandle, int actionProc);
/**
 * @param cHandle cast=(ControlRef)
 * @param bounds cast=(const Rect *)
 */
public static final native void SetControlBounds(int cHandle, Rect bounds);
/**
 * @param inControl cast=(ControlRef)
 * @param inProc cast=(ControlColorUPP)
 */
public static final native int SetControlColorProc(int inControl, int inProc);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, ControlButtonContentInfo inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, LongDateRec inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, ControlTabInfoRecV1 inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, Rect inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, short[] inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, int[] inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, int inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, byte[] inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inPart cast=(ControlPartCode)
 * @param inTagName cast=(ResType)
 * @param inSize cast=(Size)
 * @param inData cast=(const void *)
 */
public static final native int SetControlData(int inControl, int inPart, int inTagName, int inSize, ControlEditTextSelectionRec inData);
/**
 * @param inControl cast=(ControlRef)
 * @param inStyle cast=(const ControlFontStyleRec *)
 */
public static final native int SetControlFontStyle(int inControl, ControlFontStyleRec inStyle);
/**
 * @param cHandle cast=(ControlRef)
 * @param popupMenuHandle cast=(MenuRef)
 */
public static final native void SetControlPopupMenuHandle(int cHandle, int popupMenuHandle);
/**
 * @param control cast=(ControlRef)
 * @param propertyData cast=(const void *)
 */
public static final native int SetControlProperty(int control, int propertyCreator, int propertyTag, int propertySize, int[] propertyData);
/**
 * @param cHandle cast=(ControlRef)
 * @param data cast=(SInt32)
 */
public static final native void SetControlReference(int cHandle, int data);
/**
 * @param cHandle cast=(ControlRef)
 * @param sHandle cast=(CFStringRef)
 */
public static final native int SetControlTitleWithCFString(int cHandle, int sHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param viewSize cast=(SInt32)
 */
public static final native void SetControlViewSize(int cHandle, int viewSize);
/** @param inControl cast=(ControlRef) */
public static final native int SetControlVisibility(int inControl, boolean inIsVisible, boolean inDoDraw);
/** @param cursor cast=(const Cursor *) */
public static final native void SetCursor(int cursor);
/**
 * @param browser cast=(ControlRef)
 * @param callbacks cast=(const DataBrowserCallbacks *),flags=init
 */
public static final native int SetDataBrowserCallbacks(int browser, DataBrowserCallbacks  callbacks);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserCustomCallbacks(int browser, DataBrowserCustomCallbacks  callbacks);
/**
 * @param cHandle cast=(ControlRef)
 * @param hScroll cast=(Boolean)
 * @param vScroll cast=(Boolean)
 */
public static final native int SetDataBrowserHasScrollBars(int cHandle, boolean hScroll, boolean vScroll);
/**
 * @param itemRef cast=(DataBrowserItemDataRef)
 * @param data cast=(Boolean)
 */
public static final native int SetDataBrowserItemDataBooleanValue(int itemRef, boolean data);
/**
 * @param itemRef cast=(DataBrowserItemDataRef)
 * @param themeButtonValue cast=(ThemeButtonValue)
 */
public static final native int SetDataBrowserItemDataButtonValue(int itemRef, short themeButtonValue);
/**
 * @param itemRef cast=(DataBrowserItemDataRef)
 * @param iconRef cast=(IconRef)
 */
public static final native int SetDataBrowserItemDataIcon(int itemRef, int iconRef);
/**
 * @param itemRef cast=(DataBrowserItemDataRef)
 * @param itemID cast=(DataBrowserItemID)
 */
public static final native int SetDataBrowserItemDataItemID(int itemRef, int itemID);
/**
 * @param itemRef cast=(DataBrowserItemDataRef)
 * @param sHandle cast=(CFStringRef)
 */
public static final native int SetDataBrowserItemDataText(int itemRef, int sHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param colID cast=(DataBrowserTableViewColumnID)
 * @param b cast=(Boolean)
 */
public static final native int SetDataBrowserListViewDisclosureColumn(int cHandle, int colID, boolean b);
/**
 * @param cHandle cast=(ControlRef)
 * @param height cast=(UInt16)
 */
public static final native int SetDataBrowserListViewHeaderBtnHeight(int cHandle, short height);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserListViewHeaderDesc(int browser, int column, DataBrowserListViewHeaderDesc desc);
/**
 * @param browser cast=(ControlRef)
 * @param property cast=(DataBrowserPropertyID)
 * @param flags cast=(DataBrowserPropertyFlags)
 */
public static final native int SetDataBrowserPropertyFlags(int browser, int property, int flags);
/**
 * @param cHandle cast=(ControlRef)
 * @param top cast=(UInt32)
 * @param left cast=(UInt32)
 */
public static final native int SetDataBrowserScrollPosition(int cHandle, int top, int left);
/**
 * @param cHandle cast=(ControlRef)
 * @param numItems cast=(UInt32)
 * @param items cast=(const DataBrowserItemID *)
 * @param operation cast=(DataBrowserSetOption)
 */
public static final native int SetDataBrowserSelectedItems(int cHandle, int numItems, int[] items, int operation);
/**
 * @param cHandle cast=(ControlRef)
 * @param selectionFlags cast=(DataBrowserSelectionFlags)
 */
public static final native int SetDataBrowserSelectionFlags(int cHandle, int selectionFlags);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserSortOrder(int browser, short order);
/**
 * @param browser cast=(ControlRef)
 * @param property cast=(DataBrowserPropertyID)
 */
public static final native int SetDataBrowserSortProperty(int browser, int property);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserTableViewColumnPosition(int browser, int column, int position);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserTableViewHiliteStyle(int browser, int hiliteStyle);  
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserTableViewItemRow(int browser, int item, int row);
/**
 * @param browser cast=(ControlRef)
 * @param column cast=(DataBrowserTableViewColumnID)
 * @param width cast=(UInt16)
 */
public static final native int SetDataBrowserTableViewNamedColumnWidth(int browser, int column, short width);
/** @param browser cast=(ControlRef) */
public static final native int SetDataBrowserTableViewRowHeight(int browser, short height	);
/**
 * @param cHandle cast=(ControlRef)
 * @param rootID cast=(DataBrowserItemID)
 */
public static final native int SetDataBrowserTarget(int cHandle, int rootID);
/**
 * @param theDrag cast=(DragRef)
 * @param inActions cast=(DragActions)
 * @param isLocal cast=(Boolean)
 */
public static final native int SetDragAllowableActions(int theDrag, int inActions, boolean isLocal);
/**
 * @param theDrag cast=(DragRef)
 * @param inAction cast=(DragActions)
 */
public static final native int SetDragDropAction(int theDrag, int inAction);
/**
 * @param inDrag cast=(DragRef)
 * @param inCGImage cast=(CGImageRef)
 * @param inImageOffsetPt cast=(HIPoint *)
 * @param inImageFlags cast=(DragImageFlags)
 */
public static final native int SetDragImageWithCGImage(int inDrag, int inCGImage, CGPoint inImageOffsetPt, int inImageFlags);
/**
 * @param theDrag cast=(DragRef)
 * @param inputProc cast=(DragInputUPP)
 * @param dragInputRefCon cast=(void *)
 */
public static final native int SetDragInputProc(int theDrag, int inputProc, int dragInputRefCon);
/**
 * @param theDrag cast=(DragRef)
 * @param theItemRef cast=(DragItemRef)
 * @param theType cast=(FlavorType)
 * @param dataPtr cast=(const void *)
 * @param dataSize cast=(Size)
 * @param dataOffset cast=(UInt32)
 */
public static final native int SetDragItemFlavorData (int theDrag, int theItemRef, int theType, byte[] dataPtr, int dataSize, int dataOffset);
/**
 * @param theDrag cast=(DragRef)
 * @param sendProc cast=(DragSendDataUPP)
 * @param dragSendRefCon cast=(void *)
 */
public static final native int SetDragSendProc(int theDrag, int sendProc, int dragSendRefCon);
/**
 * @param inTimer cast=(EventLoopTimerRef)
 * @param inNextFire cast=(EventTimerInterval)
 */
public static final native int SetEventLoopTimerNextFireTime(int inTimer, double inNextFire);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, Point inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, HICommand inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, char[] inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, short[] inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, int[] inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, boolean[] inDataPtr);
/**
 * @param inEvent cast=(EventRef)
 * @param inName cast=(EventParamName)
 * @param inType cast=(EventParamType)
 * @param inSize cast=(UInt32)
 * @param inDataPtr cast=(const void *)
 */
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, CGPoint inDataPtr);
/**
 * @param iStyleType cast=(OSType)
 * @param iNumStyles cast=(UInt32)
 * @param iStyles cast=(void *)
 * @param iFPEventTarget cast=(void *)
 */
public static final native int SetFontInfoForSelection(int iStyleType, int iNumStyles, int iStyles, int iFPEventTarget);
/** @param psn cast=(const ProcessSerialNumber *) */
public static final native int SetFrontProcess(int[] psn);
/** @param psn cast=(const ProcessSerialNumber *) */
public static final native int SetFrontProcessWithOptions(int[] psn, int inOptions);
/** @param handle cast=(Handle) */
public static final native void SetHandleSize(int handle, int size);
/**
 * @param portHandle cast=(CGrafPtr)
 * @param gdHandle cast=(GDHandle)
 */
public static final native void SetGWorld(int portHandle, int gdHandle);
/**
 * @param iconFamily cast=(IconFamilyHandle)
 * @param iconType cast=(OSType)
 * @param h cast=(Handle)
 */
public static final native int SetIconFamilyData(int iconFamily, int iconType, int h);
/** @param theMenu cast=(MenuRef) */
public static final native void SetItemMark(int theMenu, short item, short markChar);
/**
 * @param wHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef)
 * @param inPart cast=(ControlFocusPart)
 */
public static final native int SetKeyboardFocus(int wHandle, int cHandle, short inPart);
/**
 * @param mHandle cast=(MenuRef)
 * @param commandId cast=(MenuCommand)
 * @param mark cast=(UniChar)
 */
public static final native int SetMenuCommandMark(int mHandle, int commandId, char mark);
/**
 * @param mHandle cast=(MenuRef)
 * @param fontID cast=(SInt16)
 * @param size cast=(UInt16)
 */
public static final native int SetMenuFont(int mHandle, short fontID, short size);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 * @param virtualKey cast=(Boolean)
 * @param key cast=(UInt16)
 */
public static final native int SetMenuItemCommandKey(int mHandle, short index, boolean virtualKey, char key);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 * @param hierMenuHandle cast=(MenuRef)
 */
public static final native int SetMenuItemHierarchicalMenu(int mHandle, short index, int hierMenuHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param item cast=(SInt16)
 * @param iconType cast=(UInt8)
 * @param iconHandle cast=(Handle)
 */
public static final native int SetMenuItemIconHandle(int mHandle, short item, byte iconType, int iconHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(SInt16)
 * @param glyph cast=(SInt16)
 */
public static final native int SetMenuItemKeyGlyph(int mHandle, short index, short glyph);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(SInt16)
 * @param modifiers cast=(UInt8)
 */
public static final native int SetMenuItemModifiers(int mHandle, short index, byte modifiers);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(SInt16)
 * @param refCon cast=(UInt32)
 */
public static final native int SetMenuItemRefCon(int mHandle, short index, int refCon);
/**
 * @param mHandle cast=(MenuRef)
 * @param index cast=(MenuItemIndex)
 * @param sHandle cast=(CFStringRef)
 */
public static final native int SetMenuItemTextWithCFString(int mHandle, short index, int sHandle);
/**
 * @param mHandle cast=(MenuRef)
 * @param sHandle cast=(CFStringRef)
 */
public static final native int SetMenuTitleWithCFString(int mHandle, int sHandle);
/** @param pHandle cast=(GrafPtr) */
public static final native void SetPort(int pHandle);
/**
 * @param p cast=(Point *)
 * @param h cast=(short)
 * @param v cast=(short)
 */
public static final native void SetPt(Point p, short h, short v);
/**
 * @param r cast=(Rect *)
 * @param left cast=(short)
 * @param top cast=(short)
 * @param right cast=(short)
 * @param bottom cast=(short)
 */
public static final native void SetRect(Rect r, short left, short top, short right, short bottom);
/**
 * @param rgnHandle cast=(RgnHandle)
 * @param left cast=(short)
 * @param top cast=(short)
 * @param right cast=(short)
 * @param bottom cast=(short)
 */
public static final native void SetRectRgn(int rgnHandle, short left, short top, short right, short bottom);
/** @param mHandle cast=(MenuRef) */
public static final native int SetRootMenu(int mHandle);
/**
 * @param inMode cast=(SystemUIMode)
 * @param inOptions cast=(SystemUIOptions)
 */
public static final native int SetSystemUIMode(int inMode, int inOptions);
/**
 * @param inBrush cast=(ThemeBrush)
 * @param depth cast=(SInt16)
 * @param isColorDevice cast=(Boolean)
 */
public static final native int SetThemeBackground(short inBrush, short depth, boolean isColorDevice);
/** @param themeCursor cast=(ThemeCursor) */
public static final native int SetThemeCursor(int themeCursor);
/**
 * @param state cast=(ThemeDrawingState)
 * @param disposeNow cast=(Boolean)
 */
public static final native int SetThemeDrawingState(int state, boolean disposeNow);
public static final native int SetThemeTextColor(short inBrush, short depth, boolean isColorDevice);
/**
 * @param wHandle cast=(WindowRef)
 * @param brush cast=(ThemeBrush)
 * @param update cast=(Boolean)
 */
public static final native int SetThemeWindowBackground(int wHandle, short brush, boolean update);
/**
 * @param cHandle cast=(ControlRef)
 * @param depth cast=(SInt16)
 * @param isColorDevice cast=(Boolean)
 */
public static final native int SetUpControlBackground(int cHandle, short depth, boolean isColorDevice);
/**
 * @param wHandle cast=(WindowRef)
 * @param scope cast=(WindowActivationScope)
 */
public static final native int SetWindowActivationScope(int wHandle, int scope);
/** @param inWindow cast=(WindowRef) */
public static final native int SetWindowAlpha(int inWindow, float inAlpha);
/**
 * @param window cast=(WindowRef)
 * @param regionCode cast=(WindowRegionCode)
 * @param globalBounds cast=(Rect *)
 */
public static final native void SetWindowBounds(int window, int regionCode, Rect globalBounds);
/**
 * @param wHandle cast=(WindowRef)
 * @param cHandle cast=(ControlRef)
 */
public static final native int SetWindowDefaultButton(int wHandle, int cHandle);
/**
 * @param inWindow cast=(WindowRef)
 * @param inNewGroup cast=(WindowGroupRef)
 */
public static final native int SetWindowGroup(int inWindow, int inNewGroup);
/**
 * @param inGroup cast=(WindowGroupRef)
 * @param inWindow cast=(WindowRef)
 */
public static final native int SetWindowGroupOwner(int inGroup, int inWindow);
/**
 * @param inGroup cast=(WindowGroupRef)
 * @param inNewGroup cast=(WindowGroupRef)
 */
public static final native int SetWindowGroupParent(int inGroup, int inNewGroup);
/**
 * @param inWindow cast=(WindowRef)
 * @param inModalKind cast=(WindowModality)
 * @param inUnavailableWindow cast=(WindowRef)
 */
public static final native int SetWindowModality(int inWindow, int inModalKind, int inUnavailableWindow);
/**
 * @param inWindow cast=(WindowRef)
 */
public static final native int SetWindowModified(int inWindow, boolean modified);
/**
 * @param inWindow cast=(WindowRef)
 * @param inMinLimits cast=(HISize *)
 * @param inMaxLimits cast=(HISize *)
 */
public static final native int SetWindowResizeLimits (int inWindow, CGPoint inMinLimits, CGPoint inMaxLimits);
/**
 * @param wHandle cast=(WindowRef)
 * @param sHandle cast=(CFStringRef)
 */
public static final native int SetWindowTitleWithCFString(int wHandle, int sHandle);
/** @param wHandle cast=(WindowRef) */
public static final native void ShowWindow(int wHandle);
/**
 * @param cHandle cast=(ControlRef)
 * @param w cast=(SInt16)
 * @param h cast=(SInt16)
 */
public static final native void SizeControl(int cHandle, short w, short h);
/**
 * @param wHandle cast=(WindowRef)
 * @param w cast=(short)
 * @param h cast=(short)
 * @param update cast=(Boolean)
 */
public static final native void SizeWindow(int wHandle, short w, short h, boolean update);
public static final native boolean StillDown();
/** @param duration cast=(short) */
public static final native void SysBeep(short duration);
/** @param txHandle cast=(TXNObject) */
public static final native int TXNCopy(int txHandle);
/** @param txHandle cast=(TXNObject) */
public static final native int TXNCut(int txHandle);
/** @param txHandle cast=(TXNObject) */
public static final native int TXNDataSize(int txHandle);
/** @param txHandle cast=(TXNObject) */
public static final native void TXNDeleteObject(int txHandle);
/**
 * @param txHandle cast=(TXNObject)
 * @param echoCharacter cast=(UniChar)
 * @param encoding cast=(TextEncoding)
 * @param on cast=(Boolean)
 */
public static final native int TXNEchoMode(int txHandle, char echoCharacter, int encoding, boolean on);
/**
 * @param txHandle cast=(TXNObject)
 * @param startOffset cast=(TXNOffset)
 * @param endOffset cast=(TXNOffset)
 * @param dataHandle cast=(Handle *)
 */
public static final native int TXNGetData(int txHandle, int startOffset, int endOffset, int[] dataHandle);
/**
 * @param txHandle cast=(TXNObject)
 * @param lineTotal cast=(ItemCount *)
 */
public static final native int TXNGetLineCount(int txHandle, int[] lineTotal);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iLineNumber cast=(UInt32)
 * @param oLineWidth cast=(Fixed *)
 * @param oLineHeight cast=(Fixed *)
 */
public static final native int TXNGetLineMetrics(int iTXNObject, int iLineNumber, int [] oLineWidth, int [] oLineHeight);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iControlCount cast=(ItemCount)
 * @param iControlTags cast=(const TXNControlTag *)
 * @param oControlData cast=(TXNControlData *)
 */
public static final native int TXNGetTXNObjectControls(int iTXNObject, int iControlCount, int [] iControlTags, int [] oControlData);
/** @param iTXNObject cast=(TXNObject) */
public static final native int TXNGetHIRect(int iTXNObject, int iTXNRectKey, CGRect oRectangle);
/**
 * @param txHandle cast=(TXNObject)
 * @param startOffset cast=(TXNOffset *)
 * @param endOffset cast=(TXNOffset *)
 */
public static final native void TXNGetSelection(int txHandle, int[] startOffset, int[] endOffset);
/** @param iTXNObject cast=(TXNObject) */
public static final native void TXNGetViewRect (int iTXNObject, Rect oViewRect);
/**
 * @param iDefaultFonts cast=(const TXNMacOSPreferredFontDescription *)
 * @param iCountDefaultFonts cast=(ItemCount)
 * @param iUsageFlags cast=(TXNInitOptions)
 */
public static final native int TXNInitTextension(int iDefaultFonts, int iCountDefaultFonts, int iUsageFlags);
/**
 * @param txHandle cast=(TXNObject)
 * @param offset cast=(TXNOffset)
 * @param point cast=(HIPoint *)
 */
public static final native int TXNOffsetToHIPoint(int txHandle, int offset, CGPoint point);
/** @param txHandle cast=(TXNObject) */
public static final native int TXNPaste(int txHandle);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iPoint cast=(HIPoint *)
 * @param oOffset cast=(TXNOffset *)
 */
public static final native int TXNHIPointToOffset (int iTXNObject, CGPoint iPoint, int [] oOffset);
/** @param txHandle cast=(TXNObject) */
public static final native void TXNSelectAll(int txHandle);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iBackgroundInfo cast=(const TXNBackground *)
 */
public static final native int TXNSetBackground(int iTXNObject, TXNBackground iBackgroundInfo);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iDataType cast=(TXNDataType)
 * @param iDataPtr cast=(const void *)
 * @param iDataSize cast=(ByteCount)
 * @param iStartOffset cast=(TXNOffset)
 * @param iEndOffset cast=(TXNOffset)
 */
public static final native int TXNSetData(int iTXNObject, int iDataType, char[] iDataPtr, int iDataSize, int iStartOffset, int iEndOffset);
/**
 * @param txHandle cast=(TXNObject)
 * @param top cast=(SInt32)
 * @param left cast=(SInt32)
 * @param bottom cast=(SInt32)
 * @param right cast=(SInt32)
 * @param frameID cast=(TXNFrameID)
 */
public static final native void TXNSetFrameBounds(int txHandle, int top, int left, int bottom, int right, int frameID);
/**
 * @param txHandle cast=(TXNObject)
 * @param startOffset cast=(TXNOffset)
 * @param endOffset cast=(TXNOffset)
 */
public static final native int TXNSetSelection(int txHandle, int startOffset, int endOffset);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iAttrCount cast=(ItemCount)
 * @param iAttributes cast=(const TXNTypeAttributes *)
 * @param iStartOffset cast=(TXNOffset)
 * @param iEndOffset cast=(TXNOffset)
 */
public static final native int TXNSetTypeAttributes(int iTXNObject, int iAttrCount, int iAttributes, int iStartOffset, int iEndOffset);
/**
 * @param iTXNObject cast=(TXNObject)
 * @param iClearAll cast=(Boolean)
 * @param iControlCount cast=(ItemCount)
 * @param iControlTags cast=(const TXNControlTag *)
 * @param iControlData cast=(const TXNControlData *)
 */
public static final native int TXNSetTXNObjectControls(int iTXNObject, boolean iClearAll, int iControlCount, int[] iControlTags, int[] iControlData);
/**
 * @param txHandle cast=(TXNObject)
 * @param showEnd cast=(Boolean)
 */
public static final native void TXNShowSelection(int txHandle, boolean showEnd);
/** @param face cast=(StyleParameter) */
public static final native void TextFace(short face);
/** @param fontID cast=(short) */
public static final native void TextFont(short fontID);
/** @param size cast=(short) */
public static final native void TextSize(short size);
/**
 * @param theDrag cast=(DragRef)
 * @param theEvent cast=(const EventRecord *)
 * @param theRegion cast=(RgnHandle)
 */
public static final native int TrackDrag(int theDrag, EventRecord theEvent, int theRegion);
/**
 * @param inPort cast=(GrafPtr)
 * @param inOptions cast=(OptionBits)
 * @param inTime cast=(EventTimeout)
 * @param outPt cast=(Point *)
 * @param outModifiers cast=(UInt32 *)
 * @param outResult cast=(MouseTrackingResult *)
 */
public static final native int TrackMouseLocationWithOptions(int inPort, int inOptions, double inTime, Point outPt, int [] outModifiers, short[] outResult);
/**
 * @param inUTI cast=(CFStringRef)
 * @param inConformsToUTI cast=(CFStringRef)
 */
public static final native boolean UTTypeConformsTo(int inUTI, int inConformsToUTI);
/**
 * @param inTagClass cast=(CFStringRef)
 * @param inTag cast=(CFStringRef)
 * @param inConformingToUTI cast=(CFStringRef)
 */
public static final native int UTTypeCreatePreferredIdentifierForTag(int inTagClass, int inTag, int inConformingToUTI);
/**
 * @param inTagClass cast=(CFStringRef)
 * @param inTag cast=(CFStringRef)
 * @param inConformingToUTI cast=(CFStringRef)
 */
public static final native int UTTypeCreateAllIdentifiersForTag(int inTagClass, int inTag, int inConformingToUTI);
/**
 * @param inUTI1 cast=(CFStringRef)
 * @param inUTI2 cast=(CFStringRef)
 */
public static final native boolean UTTypeEqual(int inUTI1, int inUTI2);
/**
 * @param srcA flags=no_out
 * @param srcB flags=no_out
 * @param dst flags=no_in
 */
public static final native void UnionRect(Rect srcA, Rect srcB, Rect dst);
/**
 * @param srcRgnA cast=(RgnHandle)
 * @param srcRgnB cast=(RgnHandle)
 * @param dstRgn cast=(RgnHandle)
 */
public static final native void UnionRgn(int srcRgnA, int srcRgnB, int dstRgn);
/**
 * @param cHandle cast=(ControlRef)
 * @param container cast=(DataBrowserItemID)
 * @param numItems cast=(UInt32)
 * @param items cast=(const DataBrowserItemID *)
 * @param preSortProperty cast=(DataBrowserPropertyID)
 * @param propertyID cast=(DataBrowserPropertyID)
 */
public static final native int UpdateDataBrowserItems(int cHandle, int container, int numItems, int[] items, int preSortProperty, int propertyID);
/**
 * @param iTextScriptID cast=(ScriptCode)
 * @param iTextLanguageID cast=(LangCode)
 * @param iRegionID cast=(RegionCode)
 * @param iTextFontname cast=(ConstStr255Param)
 * @param oEncoding cast=(TextEncoding *)
 */
public static final native int UpgradeScriptInfoToTextEncoding(short iTextScriptID, short iTextLanguageID, short iRegionID, byte[] iTextFontname, int[] oEncoding); 
/** @param idocID cast=(TSMDocumentID) */
public static final native int UseInputWindow(int idocID, boolean useWindow);
/** @param initialGlobalMouse flags=struct */
public static final native boolean WaitMouseMoved(Point initialGlobalMouse);
public static final native int X2Fix(double x);
/**
 * @param inWindow cast=(WindowRef)
 * @param inPartCode cast=(WindowPartCode)
 * @param ioIdealSize cast=(Point *)
 */
public static final native int ZoomWindowIdeal(int inWindow, short inPartCode, Point ioIdealSize);
/** @method flags=const */
public static final native int kCFNumberFormatterDecimalSeparator();
public static final native int getpid();
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(NavCBRec dest, int src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(NavFileOrFolderInfo dest, int src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(NavMenuItemSpec dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(ATSTrapezoid dest, int src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(RGBColor dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(CGPathElement dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(TextRange dest, int src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, PixMap src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, Cursor src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(GDevice dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(PixMap dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(HMHelpContentRec dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(ATSLayoutRecord dest, int src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *),flags=critical no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(org.eclipse.swt.internal.carbon.Point dest, int[] src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, HMHelpContentRec src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, BitMap src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, RGBColor src, int n);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 * @param n cast=(size_t)
 */
public static final native void memmove(Rect dest, int src, int n);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param n cast=(size_t)
 */
public static final native void memmove(int dest, Rect src, int n);
/**
 * @param dest cast=(void *),flags=critical no_in
 * @param src cast=(const void *),flags=critical no_out
 * @param size cast=(size_t)
 */
public static final native void memmove(char[] dest, byte[] src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 * @param size cast=(size_t)
 */
public static final native void memmove(int dest, ATSUTab src, int size);
/**
 * @param dest cast=(void *),flags=critical no_in
 * @param src cast=(const void *),flags=no_out
 * @param size cast=(size_t)
 */
public static final native void memmove(int[] dest, TXNTab src, int size);

/**
 * @param inHIObject cast=(HIObjectRef)
 * @param inIdentifier cast=(UInt64)
 */
public static final native int AXUIElementCreateWithHIObjectAndIdentifier(int inHIObject, long inIdentifier);
/** @method flags=dynamic */
public static final native int AXUIElementCreateWithDataBrowserAndItemInfo(int inDataBrowser, DataBrowserAccessibilityItemInfo inInfo);
/**
 * @param inNotification cast=(CFStringRef)
 * @param inHIObject cast=(HIObjectRef)
 * @param inIdentifier cast=(UInt64)
 */
public static final native void AXNotificationHIObjectNotify(int inNotification, int inHIObject, long inIdentifier);
/**
 * @param inUIElement cast=(AXUIElementRef)
 * @param outIdentifier cast=(UInt64 *)
 */
public static final native void AXUIElementGetIdentifier(int inUIElement, long[] outIdentifier);
/** @param inUIElement cast=(AXUIElementRef) */
public static final native int AXUIElementGetHIObject(int inUIElement);
/** @method flags=dynamic */
public static final native int AXUIElementGetDataBrowserItemInfo(int inElement, int inDataBrowser, int inDesiredInfoVersion, DataBrowserAccessibilityItemInfo outInfo);
/**
 * @param theType cast=(AXValueType)
 * @param range cast=(CFRange *)
 */
public static final native int AXValueCreate (int theType, CFRange range);
/**
 * @param value cast=(AXValueRef)
 * @param theType cast=(AXValueType)
 * @param range cast=(CFRange *)
 */
public static final native boolean AXValueGetValue (int value, int theType, CFRange range);
/** @param inObject cast=(HIObjectRef) */
public static final native int HIObjectSetAccessibilityIgnored(int inObject, boolean inIgnored);
/**
 * @param inHIObject cast=(HIObjectRef)
 * @param inIdentifier cast=(UInt64)
 * @param inAttributeName cast=(CFStringRef)
 * @param inAttributeData cast=(CFTypeRef)
 */
public static final native int HIObjectSetAuxiliaryAccessibilityAttribute(int inHIObject, long inIdentifier, int inAttributeName, int inAttributeData);
/**
 * @param element cast=(AXUIElementRef)
 * @param attribute cast=(CFStringRef)
 * @param value cast=(CFTypeRef *)
 */
public static final native int AXUIElementCopyAttributeValue (int element, int attribute, int [] value);


/**
 * @param ctx cast=(JSContextRef)
 * @param script cast=(JSStringRef)
 * @param thisObject cast=(JSObjectRef)
 * @param sourceURL cast=(JSStringRef)
 * @param exception cast=(JSValueRef *)
 */
public static final native int JSEvaluateScript (int ctx, int script, int thisObject, int sourceURL, int startingLineNumber, int[] exception);

/**
 * @param string cast=(const char *)
 */
public static final native int JSStringCreateWithUTF8CString (byte[] string);

/**
 * @param string cast=(JSStringRef)
 */
public static final native void JSStringRelease (int string);


public static final int kEventClassAccessibility = ('a'<<24) + ('c'<<16) + ('c'<<8) + 'e';

public static final int kEventAccessibleGetChildAtPoint = 1;
public static final int kEventAccessibleGetFocusedChild = 2;
public static final int kEventAccessibleGetAllAttributeNames = 21;
public static final int kEventAccessibleGetAllParameterizedAttributeNames = 25;
public static final int kEventAccessibleGetNamedAttribute = 22;
public static final int kEventAccessibleSetNamedAttribute = 23;
public static final int kEventAccessibleIsNamedAttributeSettable = 24;
public static final int kEventAccessibleGetAllActionNames = 41;
public static final int kEventAccessiblePerformNamedAction = 42;
public static final int kEventAccessibleGetNamedActionDescription = 44;

public static final int kEventParamAccessibleObject = ('a'<<24) + ('o'<<16) + ('b'<<8) + 'j';
public static final int kEventParamAccessibleChild = ('a'<<24) + ('c'<<16) + ('h'<<8) + 'l';
public static final int kEventParamAccessibleAttributeName = ('a'<<24) + ('t'<<16) + ('n'<<8) + 'm';
public static final int kEventParamAccessibleAttributeNames = ('a'<<24) + ('t'<<16) + ('n'<<8) + 's';
public static final int kEventParamAccessibleAttributeValue = ('a'<<24) + ('t'<<16) + ('v'<<8) + 'l';
public static final int kEventParamAccessibleAttributeSettable = ('a'<<24) + ('t'<<16) + ('s'<<8) + 't';
public static final int kEventParamAccessibleAttributeParameter = ('a'<<24) + ('t'<<16) + ('p'<<8) + 'a';
public static final int kEventParamAccessibleActionName = ('a'<<24) + ('c'<<16) + ('n'<<8) + 'm';
public static final int kEventParamAccessibleActionNames = ('a'<<24) + ('c'<<16) + ('n'<<8) + 's';
public static final int kEventParamAccessibleActionDescription = ('a'<<24) + ('c'<<16) + ('d'<<8) + 's';
public static final int kEventParamAccessibleEventQueued = ('a'<<24) + ('e'<<16) + ('q'<<8) + 'u';

public static final String kAXApplicationRole  = "AXApplication";
public static final String kAXSystemWideRole   = "AXSystemWide";
public static final String kAXWindowRole       = "AXWindow";
public static final String kAXSheetRole        = "AXSheet";
public static final String kAXDrawerRole       = "AXDrawer";
public static final String kAXGrowAreaRole     = "AXGrowArea";
public static final String kAXImageRole        = "AXImage";
public static final String kAXUnknownRole      = "AXUnknown";
public static final String kAXButtonRole       = "AXButton";
public static final String kAXRadioButtonRole  = "AXRadioButton";
public static final String kAXCheckBoxRole     = "AXCheckBox";
public static final String kAXPopUpButtonRole  = "AXPopUpButton";
public static final String kAXMenuButtonRole   = "AXMenuButton";
public static final String kAXTabGroupRole     = "AXTabGroup";
public static final String kAXTableRole        = "AXTable";
public static final String kAXColumnRole       = "AXColumn";
public static final String kAXRowRole          = "AXRow";
public static final String kAXOutlineRole      = "AXOutline";
public static final String kAXBrowserRole      = "AXBrowser";
public static final String kAXScrollAreaRole   = "AXScrollArea";
public static final String kAXScrollBarRole    = "AXScrollBar";
public static final String kAXRadioGroupRole   = "AXRadioGroup";
public static final String kAXListRole         = "AXList";
public static final String kAXGroupRole        = "AXGroup";
public static final String kAXValueIndicatorRole = "AXValueIndicator";
public static final String kAXComboBoxRole     = "AXComboBox";
public static final String kAXSliderRole       = "AXSlider";
public static final String kAXIncrementorRole  = "AXIncrementor";
public static final String kAXBusyIndicatorRole = "AXBusyIndicator";
public static final String kAXProgressIndicatorRole = "AXProgressIndicator";
public static final String kAXRelevanceIndicatorRole = "AXRelevanceIndicator";
public static final String kAXToolbarRole      = "AXToolbar";
public static final String kAXDisclosureTriangleRole = "AXDisclosureTriangle";
public static final String kAXTextFieldRole = "AXTextField";
public static final String kAXTextAreaRole     = "AXTextArea";
public static final String kAXStaticTextRole   = "AXStaticText";
public static final String kAXMenuBarRole      = "AXMenuBar";
public static final String kAXMenuBarItemRole  = "AXMenuBarItem";
public static final String kAXMenuRole         = "AXMenu";
public static final String kAXMenuItemRole     = "AXMenuItem";
public static final String kAXSplitGroupRole   = "AXSplitGroup";
public static final String kAXSplitterRole     = "AXSplitter";
public static final String kAXColorWellRole    = "AXColorWell";
public static final String kAXTimeFieldRole    = "AXTimeField";
public static final String kAXDateFieldRole    = "AXDateField";
public static final String kAXHelpTagRole      = "AXHelpTag";
public static final String kAXMatteRole        = "AXMatteRole";
public static final String kAXDockItemRole     = "AXDockItem";
public static final String kAXLinkRole         = "AXLink";  // as seen in WebKit

public static final String kAXCloseButtonSubrole       = "AXCloseButton";
public static final String kAXMinimizeButtonSubrole    = "AXMinimizeButton";
public static final String kAXZoomButtonSubrole        = "AXZoomButton";
public static final String kAXToolbarButtonSubrole     = "AXToolbarButton";
public static final String kAXSecureTextFieldSubrole   = "AXSecureTextField";
public static final String kAXTableRowSubrole          = "AXTableRow";
public static final String kAXOutlineRowSubrole        = "AXOutlineRow";
public static final String kAXUnknownSubrole           = "AXUnknown";
public static final String kAXStandardWindowSubrole    = "AXStandardWindow";
public static final String kAXDialogSubrole            = "AXDialog";
public static final String kAXSystemDialogSubrole      = "AXSystemDialog";
public static final String kAXFloatingWindowSubrole    = "AXFloatingWindow";
public static final String kAXSystemFloatingWindowSubrole = "AXSystemFloatingWindow";
public static final String kAXIncrementArrowSubrole    = "AXIncrementArrow";
public static final String kAXDecrementArrowSubrole    = "AXDecrementArrow";
public static final String kAXIncrementPageSubrole     = "AXIncrementPage";
public static final String kAXDecrementPageSubrole     = "AXDecrementPage";
public static final String kAXSortButtonSubrole        = "AXSortButton";
public static final String kAXSearchFieldSubrole       = "AXSearchField";
public static final String kAXApplicationDockItemSubrole = "AXApplicationDockItem";
public static final String kAXDocumentDockItemSubrole  = "AXDocumentDockItem";
public static final String kAXFolderDockItemSubrole    = "AXFolderDockItem";
public static final String kAXMinimizedWindowDockItemSubrole= "AXMinimizedWindowDockItem";
public static final String kAXURLDockItemSubrole       = "AXURLDockItem";
public static final String kAXDockExtraDockItemSubrole = "AXDockExtraDockItem";
public static final String kAXTrashDockItemSubrole     = "AXTrashDockItem";
public static final String kAXProcessSwitcherListSubrole = "AXProcessSwitcherList";

//General attributes
public static final String kAXRoleAttribute                    = "AXRole";
public static final String kAXSubroleAttribute                 = "AXSubrole";
public static final String kAXRoleDescriptionAttribute         = "AXRoleDescription";
public static final String kAXHelpAttribute                    = "AXHelp";
public static final String kAXTitleAttribute                   = "AXTitle";
public static final String kAXValueAttribute                   = "AXValue";
public static final String kAXMinValueAttribute                = "AXMinValue";
public static final String kAXMaxValueAttribute                = "AXMaxValue";
public static final String kAXValueIncrementAttribute          = "AXValueIncrement";
public static final String kAXAllowedValuesAttribute           = "AXAllowedValues";
public static final String kAXEnabledAttribute                 = "AXEnabled";
public static final String kAXFocusedAttribute                 = "AXFocused";
public static final String kAXParentAttribute                  = "AXParent";
public static final String kAXChildrenAttribute                = "AXChildren";
public static final String kAXSelectedChildrenAttribute        = "AXSelectedChildren";
public static final String kAXVisibleChildrenAttribute         = "AXVisibleChildren";
public static final String kAXWindowAttribute                  = "AXWindow";
public static final String kAXTopLevelUIElementAttribute       = "AXTopLevelUIElement";
public static final String kAXPositionAttribute                = "AXPosition";
public static final String kAXSizeAttribute                    = "AXSize";
public static final String kAXOrientationAttribute             = "AXOrientation";
public static final String kAXDescriptionAttribute             = "AXDescription";

//   Text-specific attributes
public static final String kAXSelectedTextAttribute            = "AXSelectedText";
public static final String kAXVisibleCharacterRangeAttribute   = "AXVisibleCharacterRange";
public static final String kAXSelectedTextRangeAttribute       = "AXSelectedTextRange";
public static final String kAXNumberOfCharactersAttribute      = "AXNumberOfCharacters";
public static final String kAXSharedTextUIElementsAttribute    = "AXSharedTextUIElements";
public static final String kAXSharedCharacterRangeAttribute    = "AXSharedCharacterRange";
     
//   Window-specific attributes
public static final String kAXMainAttribute                    = "AXMain";
public static final String kAXMinimizedAttribute               = "AXMinimized";
public static final String kAXCloseButtonAttribute             = "AXCloseButton";
public static final String kAXZoomButtonAttribute              = "AXZoomButton";
public static final String kAXMinimizeButtonAttribute          = "AXMinimizeButton";
public static final String kAXToolbarButtonAttribute           = "AXToolbarButton";
public static final String kAXGrowAreaAttribute                = "AXGrowArea";
public static final String kAXProxyAttribute                   = "AXProxy";
public static final String kAXModalAttribute                   = "AXModal";
public static final String kAXDefaultButtonAttribute           = "AXDefaultButton";
public static final String kAXCancelButtonAttribute            = "AXCancelButton";
     
//   Menu-specific attributes
public static final String kAXMenuItemCmdCharAttribute         = "AXMenuItemCmdChar";
public static final String kAXMenuItemCmdVirtualKeyAttribute   = "AXMenuItemCmdVirtualKey";
public static final String kAXMenuItemCmdGlyphAttribute        = "AXMenuItemCmdGlyph";
public static final String kAXMenuItemCmdModifiersAttribute    = "AXMenuItemCmdModifiers";
public static final String kAXMenuItemMarkCharAttribute        = "AXMenuItemMarkChar";
public static final String kAXMenuItemPrimaryUIElementAttribute = "AXMenuItemPrimaryUIElement";
     
//   Application-specific attributes
public static final String kAXMenuBarAttribute                 = "AXMenuBar";
public static final String kAXWindowsAttribute                 = "AXWindows";
public static final String kAXFrontmostAttribute               = "AXFrontmost";
public static final String kAXHiddenAttribute                  = "AXHidden";
public static final String kAXMainWindowAttribute              = "AXMainWindow";
public static final String kAXFocusedWindowAttribute           = "AXFocusedWindow";
public static final String kAXFocusedUIElementAttribute        = "AXFocusedUIElement"; 
     
//   Miscellaneous attributes
public static final String kAXHeaderAttribute                  = "AXHeader";
public static final String kAXEditedAttribute                  = "AXEdited";
public static final String kAXValueWrapsAttribute              = "AXValueWraps";
public static final String kAXTabsAttribute                    = "AXTabs";
public static final String kAXTitleUIElementAttribute          = "AXTitleUIElement";
public static final String kAXHorizontalScrollBarAttribute     = "AXHorizontalScrollBar";
public static final String kAXVerticalScrollBarAttribute       = "AXVerticalScrollBar";
public static final String kAXOverflowButtonAttribute          = "AXOverflowButton";
public static final String kAXFilenameAttribute                = "AXFilename";
public static final String kAXExpandedAttribute                = "AXExpanded";
public static final String kAXSelectedAttribute                = "AXSelected";
public static final String kAXSplittersAttribute               = "AXSplitters";
public static final String kAXNextContentsAttribute            = "AXNextContents";
public static final String kAXDocumentAttribute                = "AXDocument";
public static final String kAXDecrementButtonAttribute         = "AXDecrementButton";
public static final String kAXIncrementButtonAttribute         = "AXIncrementButton";
public static final String kAXPreviousContentsAttribute        = "AXPreviousContents";
public static final String kAXContentsAttribute                = "AXContents";
public static final String kAXIncrementorAttribute             = "AXIncrementor";
public static final String kAXHourFieldAttribute               = "AXHourField";
public static final String kAXMinuteFieldAttribute             = "AXMinuteField";
public static final String kAXSecondFieldAttribute             = "AXSecondField";
public static final String kAXAMPMFieldAttribute               = "AXAMPMField";
public static final String kAXDayFieldAttribute                = "AXDayField";
public static final String kAXMonthFieldAttribute              = "AXMonthField";
public static final String kAXYearFieldAttribute               = "AXYearField";
public static final String kAXColumnTitleAttribute             = "AXColumnTitles";
public static final String kAXURLAttribute                     = "AXURL";
public static final String kAXLabelUIElementsAttribute         = "AXLabelUIElements";
public static final String kAXLabelValueAttribute              = "AXLabelValue";
public static final String kAXShownMenuUIElementAttribute      = "AXShownMenuUIElement";
public static final String kAXServesAsTitleForUIElementsAttribute = "AXServesAsTitleForUIElements";
public static final String kAXLinkedUIElementsAttribute        = "AXLinkedUIElements";
     
//   Table and outline view attributes
public static final String kAXRowsAttribute                    = "AXRows";
public static final String kAXVisibleRowsAttribute             = "AXVisibleRows";
public static final String kAXSelectedRowsAttribute            = "AXSelectedRows";
public static final String kAXColumnsAttribute                 = "AXColumns";
public static final String kAXVisibleColumnsAttribute          = "AXVisibleColumns";
public static final String kAXSelectedColumnsAttribute         = "AXSelectedColumns";
public static final String kAXSortDirectionAttribute           = "AXSortDirection";
public static final String kAXColumnHeaderUIElementsAttribute  = "AXColumnHeaderUIElements";
public static final String kAXIndexAttribute                   = "AXIndex";
public static final String kAXDisclosingAttribute              = "AXDisclosing";
public static final String kAXDisclosedRowsAttribute           = "AXDisclosedRows";
public static final String kAXDisclosedByRowAttribute          = "AXDisclosedByRow";
     
//   Matte attributes
public static final String kAXMatteHoleAttribute               = "AXMatteHole";
public static final String kAXMatteContentUIElementAttribute   = "AXMatteContentUIElement";
     
//   Dock attributes
public static final String kAXIsApplicationRunningAttribute    = "AXIsApplicationRunning";
     
//   System-wide attributes
public static final String kAXFocusedApplicationAttribute      = "AXFocusedApplication";

// Text-suite parameterized attributes
public static final String kAXLineForIndexParameterizedAttribute = "AXLineForIndex";
public static final String kAXRangeForLineParameterizedAttribute = "AXRangeForLine";
public static final String kAXStringForRangeParameterizedAttribute = "AXStringForRange";
public static final String kAXRangeForPositionParameterizedAttribute = "AXRangeForPosition";
public static final String kAXRangeForIndexParameterizedAttribute = "AXRangeForIndex";
public static final String kAXBoundsForRangeParameterizedAttribute = "AXBoundsForRange";
public static final String kAXRTFForRangeParameterizedAttribute = "AXRTFForRange";
public static final String kAXAttributedStringForRangeParameterizedAttribute = "AXAttributedStringForRange";
public static final String kAXStyleRangeForIndexParameterizedAttribute = "AXStyleRangeForIndex";
public static final String kAXInsertionPointLineNumberAttribute = "AXInsertionPointLineNumber";

// Accessibility actions.
public static final String kAXPressAction          = "AXPress";
public static final String kAXIncrementAction      = "AXIncrement";
public static final String kAXDecrementAction      = "AXDecrement";
public static final String kAXConfirmAction        = "AXConfirm";
public static final String kAXCancelAction         = "AXCancel";
public static final String kAXRaiseAction          = "AXRaise";
public static final String kAXShowMenuAction       = "AXShowMenu";

// Focus notifications
public static final String kAXMainWindowChangedNotification = "AXMainWindowChanged";
public static final String kAXFocusedWindowChangedNotification = "AXFocusedWindowChanged";
public static final String kAXFocusedUIElementChangedNotification = "AXFocusedUIElementChanged";
     
//   Application notifications
public static final String kAXApplicationActivatedNotification = "AXApplicationActivated";
public static final String kAXApplicationDeactivatedNotification = "AXApplicationDeactivated";
public static final String kAXApplicationHiddenNotification = "AXApplicationHidden";
public static final String kAXApplicationShownNotification = "AXApplicationShown";
     
//   Window notifications
public static final String kAXWindowCreatedNotification    = "AXWindowCreated";
public static final String kAXWindowMovedNotification      = "AXWindowMoved";
public static final String kAXWindowResizedNotification    = "AXWindowResized";
public static final String kAXWindowMiniaturizedNotification = "AXWindowMiniaturized";
public static final String kAXWindowDeminiaturizedNotification = "AXWindowDeminiaturized";
     
//   New drawer, sheet, and help tag notifications
public static final String kAXDrawerCreatedNotification    = "AXDrawerCreated";
public static final String kAXSheetCreatedNotification     = "AXSheetCreated";
public static final String kAXHelpTagCreatedNotification   = "AXHelpTagCreated";
     
//   Element notifications
public static final String kAXValueChangedNotification     = "AXValueChanged";
public static final String kAXUIElementDestroyedNotification = "AXUIElementDestroyed";
     
//   Menu notifications
public static final String kAXMenuOpenedNotification       = "AXMenuOpened";
public static final String kAXMenuClosedNotification       = "AXMenuClosed";
public static final String kAXMenuItemSelectedNotification = "AXMenuItemSelected";
     
//   Table and outline view notifications
public static final String kAXRowCountChangedNotification  = "AXRowCountChanged";
     
//   Miscellaneous notifications
public static final String kAXSelectedChildrenChangedNotification = "AXSelectedChildrenChanged";
public static final String kAXSelectedTextChangedNotification = "AXSelectedTextChanged";
public static final String kAXResizedNotification          = "AXResized";
public static final String kAXMovedNotification            = "AXMoved";
public static final String kAXCreatedNotification          = "AXCreated";

// AXValue types
public static final int kAXValueCFRangeType = 4;

// AXValue Constants
public static final String kAXAscendingSortDirectionValue  = "AXAscendingSortDirection";
public static final String kAXDescendingSortDirectionValue = "AXDescendingSortDirection";
public static final String kAXHorizontalOrientationValue   = "AXHorizontalOrientation";
public static final String kAXUnknownOrientationValue      = "AXUnknownOrientation";
public static final String kAXUnknownSortDirectionValue    = "AXUnknownSortDirection";
public static final String kAXVerticalOrientationValue     = "AXVerticalOrientation";

// Error codes
public static final int kAXErrorIllegalArgument = -25201;
public static final int kAXErrorInvalidUIElement = -25202;
public static final int kAXErrorInvalidUIElementObserver = -25203;
public static final int kAXErrorCannotComplete = -25204;
public static final int kAXErrorAttributeUnsupported = -25205;
public static final int kAXErrorActionUnsupported = -25206;
public static final int kAXErrorAPIDisabled = -25211;
public static final int kAXErrorParameterizedAttributeUnsupported = -25213;


}