summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
blob: acdc4c17c5d76bc2a89a060aaed7d93e602a932f (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
/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 * 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.photon;

 
import org.eclipse.swt.internal.*;

public class OS extends C {

	public static final int QNX_MAJOR;
	public static final int QNX_MINOR;
	public static final int QNX_MICRO;
	static {		
		/* Gather machine information (just like "uname -a") */
		utsname udata = new utsname();
		OS.uname(udata);
		
		/*
		* Parse out the release information into integers that
		* can be used at runtime for version checks.
		*/
		int value = 0;
		int i = 0;
		while( udata.release[i] != '.' ) {
			value = value * 10;
			value += udata.release[i] - '0';
			i++;
		}
		QNX_MAJOR = value;
		
		value = 0;
		i++;
		while( udata.release[i] != '.' ) {
			value = value * 10;
			value += udata.release[i] - '0';
			i++;
		}
		QNX_MINOR = value;
		
		value = 0;
		i++;
		while( udata.release[i] != 0 ) {
			value = value * 10;
			value += udata.release[i] - '0';
			i++;
		}
		QNX_MICRO = value;
	}

	/** Constants */
	public static final int MAX_DESC_LENGTH = 0x20;
	public static final int MAX_FONT_TAG = 0x50;
	public static final int MAX_URL_LENGTH=1024;
	public static final int NAME_MAX = 0xff;
	public static final int PATH_MAX = 0x400;
	public static final int PF_STYLE_BOLD = 0x1;
	public static final int PF_STYLE_ITALIC = 0x2;
	public static final int PHFONT_ALL_FONTS = 0x33;
	public static final int PHFONT_ALL_SYMBOLS = 0xffffffff;
	public static final int PHFONT_BITMAP = 0x2;
	public static final int PHFONT_DONT_SHOW_LEGACY = 0x40;
	public static final int PHFONT_FIXED = 0x20;
	public static final int PHFONT_INFO_BLDITC = 0x8;
	public static final int PHFONT_INFO_BOLD = 0x2;
	public static final int PHFONT_INFO_FIXED = 0x10;
	public static final int PHFONT_INFO_ITALIC = 0x4;
	public static final int PHFONT_INFO_PLAIN = 0x1;
	public static final int PHFONT_INFO_PROP = 0x20;
	public static final int PHFONT_PROP = 0x10;
	public static final int PHFONT_SCALABLE = 0x1;
	public static final int Pg_ALPHA_OP_SRC_GLOBAL = 0x40000;
	public static final int Pg_ALPHA_OP_SRC_MAP = 0x80000;
	public static final int Pg_ARC = 0x2000;
	public static final int Pg_ARC_PIE = 0x1000;
	public static final int Pg_BACK_FILL = 0x100;
	public static final int Pg_BEVEL_JOIN = 0x02;
	public static final int Pg_BLEND_DST_ONE_MINUS_SRC_ALPHA = 0x5;
	public static final int Pg_BLEND_SRC_SRC_ALPHA = 0x400;
	public static final int Pg_BUTT_CAP = 0;
	public static final int Pg_CLOSED = 0x1000;
	public static final int Pg_DRAWMODE_OPAQUE = 0x0;
	public static final int Pg_DRAWMODE_XOR = 0x1;
	public static final int Pg_DRAW_FILL = 0x20;
	public static final int Pg_DRAW_STROKE = 0x10;
	public static final int Pg_DrawModeDSx = 0x6680;
	public static final int Pg_DrawModeS = 0xcc80;
	public static final int Pg_EXTENT_BASED = 0x100;
	public static final int Pg_GRAD_HORIZONTAL = 0x3;
	public static final int Pg_GRAD_LINEAR = 0x0;
	public static final int Pg_GRAD_VERTICAL = 0x4;
	public static final int Pg_IMAGE_CLASS_DIRECT = 0x20;
	public static final int Pg_IMAGE_CLASS_MASK = 0x38;
	public static final int Pg_IMAGE_CLASS_PALETTE = 0x10;
	public static final int Pg_IMAGE_DIRECT_444 = 0x24;
	public static final int Pg_IMAGE_DIRECT_555 = 0x23;
	public static final int Pg_IMAGE_DIRECT_565 = 0x22;
	public static final int Pg_IMAGE_DIRECT_888 = 0x21;
	public static final int Pg_IMAGE_DIRECT_8888 = 0x20;
	public static final int Pg_IMAGE_PALETTE_BYTE = 0x10;
	public static final int Pg_IMAGE_PALETTE_NIBBLE = 0x11;
	public static final int Pg_INDEX_COLOR = 0x2000000;
	public static final int Pg_MITER_JOIN = 0;
	public static final int Pg_PALSET_SOFT = 0x0;
	public static final byte[] Pg_PAT_HALF = {(byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55};
	public static final int Pg_ROUND_CAP = 0x01;
	public static final int Pg_ROUND_JOIN = 0x01;
	public static final int Pg_SQUARE_CAP = 2;
	public static final int Pg_TEXT_LEFT = 0x1000;
	public static final int Pg_TEXT_TOP = 0x4000;
	public static final int Pg_TRANSPARENT = 0xffffffff;
	public static final int Ph_BUTTON_ADJUST = 0x2;
	public static final int Ph_BUTTON_MENU = 0x1;
	public static final int Ph_BUTTON_SELECT = 0x4;
	public static final int Ph_CONSUMED = 0x4;
	public static final int Ph_CURSOR_BITMAP = 0xfb;
	public static final int Ph_CURSOR_CLOCK = 0xe908;
	public static final int Ph_CURSOR_CROSSHAIR = 0xe906;
	public static final int Ph_CURSOR_DEFAULT_COLOR = 0xffffe0;
	public static final int Ph_CURSOR_DONT = 0xe90a;
	public static final int Ph_CURSOR_DRAG_BL = 0xe916;
	public static final int Ph_CURSOR_DRAG_BOTTOM = 0xe910;
	public static final int Ph_CURSOR_DRAG_BR = 0xe914;
	public static final int Ph_CURSOR_DRAG_HORIZONTAL = 0xe912;
	public static final int Ph_CURSOR_DRAG_LEFT = 0xe912;
	public static final int Ph_CURSOR_DRAG_RIGHT = 0xe912;
	public static final int Ph_CURSOR_DRAG_TL = 0xe914;
	public static final int Ph_CURSOR_DRAG_TOP = 0xe910;
	public static final int Ph_CURSOR_DRAG_TR = 0xe916;
	public static final int Ph_CURSOR_DRAG_VERTICAL = 0xe910;
	public static final int Ph_CURSOR_FINGER = 0xe90c;
	public static final int Ph_CURSOR_INHERIT = 0x0;
	public static final int Ph_CURSOR_INSERT = 0xe90e;
	public static final int Ph_CURSOR_MOVE = 0xe904;
	public static final int Ph_CURSOR_NO_INHERIT = 0x1;
	public static final int Ph_CURSOR_POINTER = 0xe900;
	public static final int Ph_CURSOR_POINT_WAIT = 0xe918;
	public static final int Ph_CURSOR_QUESTION_POINT = 0xe91c;
	public static final int Ph_DEV_RID = 0x1;
	public static final int Ph_DRAG_KEY_MOTION = 0x20;
	public static final int Ph_DRAG_TRACK = 0x10;
	public static final int Ph_EVENT_DIRECT = 0x10;
	public static final int Ph_EVENT_MSG = 0x1;
	public static final int Ph_EV_BOUNDARY = 0x20;
	public static final int Ph_EV_BUT_PRESS = 0x2;
	public static final int Ph_EV_BUT_RELEASE = 0x4;
	public static final int Ph_EV_DRAG = 0x200;
	public static final int Ph_EV_DRAG_COMPLETE = 0x2;
	public static final int Ph_EV_DRAG_KEY_EVENT = 0x3;
	public static final int Ph_EV_DRAG_MOTION_EVENT = 0x4;
	public static final int Ph_EV_KEY = 0x1;
	public static final int Ph_EV_PTR_ENTER = 0x0;
	public static final int Ph_EV_PTR_ENTER_FROM_CHILD = 0x4;
	public static final int Ph_EV_PTR_LEAVE = 0x1;
	public static final int Ph_EV_PTR_LEAVE_TO_CHILD = 0x5;
	public static final int Ph_EV_PTR_MOTION = 0x18;
	public static final int Ph_EV_PTR_MOTION_BUTTON = 0x10;
	public static final int Ph_EV_PTR_MOTION_NOBUTTON = 0x8;
	public static final int Ph_EV_PTR_STEADY = 0x2;
	public static final int Ph_EV_PTR_UNSTEADY = 0x3;
	public static final int Ph_EV_RELEASE_PHANTOM = 0x1;
	public static final int Ph_EV_RELEASE_REAL = 0x0;
	public static final int Ph_EV_TIMER = 0x10000;
	public static final int Ph_FAKE_EVENT = 0x1;
	public static final int Ph_FORCE_BOUNDARY = 0x400000;
	public static final int Ph_GRAFX_REGION = 0x4;
	public static final int Ph_NOT_CUAKEY = 0x10;
	public static final int Ph_QUERY_CONSOLE = 0x0;
	public static final int Ph_QUERY_GRAPHICS = 0x4;
	public static final int Ph_QUERY_WORKSPACE = 0x2;
	public static final int Ph_RELEASE_IMAGE_ALL = 0x1f;
	public static final int Ph_RESIZE_MSG = 0x3;
	public static final int Ph_TRACK_DRAG = 0xf;
	public static final int Ph_WM_CLOSE = 0x1;
	public static final int Ph_WM_EVSTATE_FOCUS = 0x0;
	public static final int Ph_WM_EVSTATE_FOCUSLOST = 0x1;
	public static final int Ph_WM_EVSTATE_HIDE = 0x0;
	public static final int Ph_WM_EVSTATE_UNHIDE = 0x1;
	public static final int Ph_WM_FOCUS = 0x4;
	public static final int Ph_WM_HIDE = 0x40;
	public static final int Ph_WM_ICON = 0x400;
	public static final int Ph_WM_MAX = 0x800;
	public static final int Ph_WM_MOVE = 0x200;
	public static final int Ph_WM_RENDER_BORDER = 0x10;
	public static final int Ph_WM_RENDER_MAX = 0x2000;
	public static final int Ph_WM_RENDER_MENU = 0x100;
	public static final int Ph_WM_RENDER_MIN = 0x1000;
	public static final int Ph_WM_RENDER_RESIZE = 0x20;
	public static final int Ph_WM_RENDER_TITLE = 0x80;
	public static final int Ph_WM_RESIZE = 0x100;
	public static final int Ph_WM_RESTORE = 0x8000;
	public static final int Ph_WM_STATE_ISFOCUS = 0x8000;
	public static final int Ph_WM_STATE_ISFRONT = 0x100;
	public static final int Ph_WM_STATE_ISHIDDEN = 0x1;
	public static final int Ph_WM_STATE_ISICONIFIED = 0x40;
	public static final int Ph_WM_STATE_ISMAX = 0x2;
	public static final int Ph_WM_STATE_ISMAXING = 0x4000;
	public static final int Pk_Alt_L = 0xf0e9;
	public static final int Pk_Alt_R = 0xf0ea;
	public static final int Pk_BackSpace = 0xf008;
	public static final int Pk_Break = 0xF06B;
	public static final int Pk_Cancel = 0xf069;
	public static final int Pk_Caps_Lock = 0xf0e5;
	public static final int Pk_Clear = 0xf00b;
	public static final int Pk_Control_L = 0xf0e3;
	public static final int Pk_Control_R = 0xf0e4;
	public static final int Pk_Delete = 0xf0ff;
	public static final int Pk_Down = 0xf054;
	public static final int Pk_End = 0xf057;
	public static final int Pk_Escape = 0xf01b;
	public static final int Pk_F1 = 0xf0be;
	public static final int Pk_F10 = 0xf0c7;
	public static final int Pk_F11 = 0xf0c8;
	public static final int Pk_F12 = 0xf0c9;
	public static final int Pk_F13 = 0xf0cA;
	public static final int Pk_F14 = 0xf0cB;
	public static final int Pk_F15 = 0xf0cC;
	public static final int Pk_F2 = 0xf0bf;
	public static final int Pk_F3 = 0xf0c0;
	public static final int Pk_F4 = 0xf0c1;
	public static final int Pk_F5 = 0xf0c2;
	public static final int Pk_F6 = 0xf0c3;
	public static final int Pk_F7 = 0xf0c4;
	public static final int Pk_F8 = 0xf0c5;
	public static final int Pk_F9 = 0xf0c6;
	public static final int Pk_Home = 0xf050;
	public static final int Pk_Help = 0xF06a;
	public static final int Pk_Hyper_L = 0xf0ed;
	public static final int Pk_Hyper_R = 0xf0ee;
	public static final int Pk_Insert = 0xf063;
	public static final int Pk_KF_Cap_Valid = 0x80;
	public static final int Pk_KF_Key_Down = 0x1;
	public static final int Pk_KF_Key_Repeat = 0x2;
	public static final int Pk_KF_Scan_Valid = 0x20;
	public static final int Pk_KF_Sym_Valid = 0x40;
	public static final int Pk_KM_Alt = 0x4;
	public static final int Pk_KM_Ctrl = 0x2;
	public static final int Pk_KM_Num_Lock = 0x00020000;
	public static final int Pk_KM_Shift = 0x1;
	public static final int Pk_KP_Enter = 0xF08D;
	public static final int Pk_KP_Tab = 0xf089;
	public static final int Pk_KP_Equal = 0xF0BD;
	public static final int Pk_KP_Multiply = 0xF0AA;
	public static final int Pk_KP_Add = 0xF0AB;
	public static final int Pk_KP_Separator = 0xF0AC;
	public static final int Pk_KP_Subtract = 0xF0AD;
	public static final int Pk_KP_Decimal = 0xF0AE;
	public static final int Pk_KP_Divide = 0xF0AF;
	public static final int Pk_KP_0 = 0xF0B0;
	public static final int Pk_KP_1 = 0xF0B1;
	public static final int Pk_KP_2 = 0xF0B2;
	public static final int Pk_KP_3 = 0xF0B3;
	public static final int Pk_KP_4 = 0xF0B4;
	public static final int Pk_KP_5 = 0xF0B5;
	public static final int Pk_KP_6 = 0xF0B6;
	public static final int Pk_KP_7 = 0xF0B7;
	public static final int Pk_KP_8 = 0xF0B8;
	public static final int Pk_KP_9 = 0xF0B9;
	public static final int Pk_Left = 0xf051;
	public static final int Pk_Linefeed = 0xf00a;
	public static final int Pk_Menu = 0xf067;
	public static final int Pk_Next = 0xf056;
	public static final int Pk_Num_Lock = 0xf07f;
	public static final int Pk_Pause = 0xf013;
	public static final int Pk_Pg_Down = 0xf056;
	public static final int Pk_Pg_Up = 0xf055;
	public static final int Pk_Print = 0xf061;
	public static final int Pk_Prior = 0xf055;
	public static final int Pk_Return = 0xf00d;
	public static final int Pk_Right = 0xf053;
	public static final int Pk_Scroll_Lock = 0xf014;
	public static final int Pk_Shift_L = 0xf0e1;
	public static final int Pk_Shift_R = 0xf0e2;
	public static final int Pk_Tab = 0xf009;
	public static final int Pk_Up = 0xf052;
	public static final int Pt_ALL_BEVELS = 0xf00;
	public static final int Pt_ALL_BUTTONS = 0x800000;
	public static final int Pt_ALL_ETCHES = 0xf;
	public static final int Pt_ALL_INLINES = 0xf000;
	public static final int Pt_ALL_OUTLINES = 0xf0;
	public static final int Pt_ALWAYS = 0x1;
	public static final int Pt_ARG_ACCEL_KEY = 0xbca;
	public static final int Pt_ARG_ACCEL_TEXT = 0x1b58;
	public static final int Pt_ARG_ANCHOR_FLAGS = 0x2711;
	public static final int Pt_ARG_AREA = 0x3e8;
	public static final int Pt_ARG_BALLOON_COLOR = 0xbcc;
	public static final int Pt_ARG_BALLOON_FILL_COLOR = 0xbcb;
	public static final int Pt_ARG_BALLOON_POSITION = 0xbc8;
	public static final int Pt_ARG_BASIC_FLAGS = 0x7df;
	public static final int Pt_ARG_BEVEL_COLOR = 0x7e5;
	public static final int Pt_ARG_BEVEL_CONTRAST = 0x7e4;
	public static final int Pt_ARG_BEVEL_WIDTH = 0x3e9;
	public static final int Pt_ARG_BITMAP_CURSOR = 0x3f9;
	public static final int Pt_ARG_BUTTON_TYPE = 0x1b5a;
	public static final int Pt_ARG_CBOX_FLAGS = 0x7918;
	public static final int Pt_ARG_CBOX_MAX_VISIBLE_COUNT = 0x792b;
	public static final int Pt_ARG_CBOX_SELECTION_ITEM = 0x7919;
	public static final int Pt_ARG_CLIENT_NAME = 0x182BC;
	public static final int Pt_ARG_COLOR = 0x7d1;
	public static final int Pt_ARG_CONTAINER_FLAGS = 0x2715;
	public static final int Pt_ARG_CURSOR_POSITION = 0xfa3;
	public static final int Pt_ARG_CURSOR_TYPE = 0x3ea;
	public static final int Pt_ARG_DARK_BEVEL_COLOR = 0x7d6;
	public static final int Pt_ARG_FILL_COLOR = 0x7d2;
	public static final int Pt_ARG_FLAGS = 0x3ee;
	public static final int Pt_ARG_GAUGE_FLAGS = 0x5208;
	public static final int Pt_ARG_GAUGE_FONT = 0x5209;
	public static final int Pt_ARG_GAUGE_VALUE = 0x520c;
	public static final int Pt_ARG_GROUP_FLAGS = 0x2af8;
	public static final int Pt_ARG_GROUP_ORIENTATION = 0x2afa;
	public static final int Pt_ARG_HEIGHT = 0x400;
	public static final int Pt_ARG_HORIZONTAL_ALIGNMENT = 0xbb8;
	public static final int Pt_ARG_INCREMENT = 0x7149;
	public static final int Pt_ARG_INDICATOR_TYPE = 0x232a;
	public static final int Pt_ARG_ITEMS = 0x59d9;
	public static final int Pt_ARG_LABEL_IMAGE = 0xbb9;
	public static final int Pt_ARG_LABEL_TYPE = 0xbbb;
	public static final int Pt_ARG_LIGHT_BEVEL_COLOR = 0x7d0;
	public static final int Pt_ARG_LINE_SPACING = 0xbcd;
	public static final int Pt_ARG_LIST_FLAGS = 0x59da;
	public static final int Pt_ARG_LIST_FONT = 0x59db;
	public static final int Pt_ARG_LIST_ITEM_COUNT = 0x59e6;
	public static final int Pt_ARG_LIST_SEL_COUNT = 0x59e7;
	public static final int Pt_ARG_LIST_TOTAL_HEIGHT = 0x59e8;
	public static final int Pt_ARG_MARGIN_BOTTOM = 0xbbc;
	public static final int Pt_ARG_MARGIN_HEIGHT = 0x7d4;
	public static final int Pt_ARG_MARGIN_LEFT = 0xbbd;
	public static final int Pt_ARG_MARGIN_RIGHT = 0xbbe;
	public static final int Pt_ARG_MARGIN_TOP = 0xbbf;
	public static final int Pt_ARG_MARGIN_WIDTH = 0x7d5;
	public static final int Pt_ARG_MAXIMUM = 0x520b;
	public static final int Pt_ARG_MAX_LENGTH = 0xfa5;
	public static final int Pt_ARG_MENU_FLAGS = 0x4a38;
	public static final int Pt_ARG_MINIMUM = 0x520a;
	public static final int Pt_ARG_MIN_HEIGHT = 1000 * 18 + 6;
	public static final int Pt_ARG_MIN_WIDTH = 1000 * 18 + 7;
	public static final int Pt_ARG_MODIFIER_KEYS = 0x1b5c;
	public static final int Pt_ARG_MULTITEXT_LINE_SPACING = 0x138b;
	public static final int Pt_ARG_MULTITEXT_NUM_LINES = 0x138e;
	public static final int Pt_ARG_MULTITEXT_QUERY_LINE = 0x1392;
	public static final int Pt_ARG_MULTITEXT_TABS = 0x1395;
	public static final int Pt_ARG_MULTITEXT_TOP_LINE = 0x138f;
	public static final int Pt_ARG_MULTITEXT_WRAP_FLAGS = 0x1389;
	public static final int Pt_ARG_NUMERIC_FLAGS = 0xcf09;
	public static final int Pt_ARG_NUMERIC_INCREMENT = 0xcf0b;
	public static final int Pt_ARG_NUMERIC_MAX = 0xcf0e;
	public static final int Pt_ARG_NUMERIC_MIN = 0xcf0d;
	public static final int Pt_ARG_NUMERIC_SPACING = 0xcf19;
	public static final int Pt_ARG_NUMERIC_UPDOWN_WIDTH = 0xcf0a;
	public static final int Pt_ARG_NUMERIC_VALUE = 0xcf0c;
	public static final int Pt_ARG_ORIENTATION = 0x520d;
	public static final int Pt_ARG_OUTLINE_COLOR = 0x7e6;
	public static final int Pt_ARG_PAGE_INCREMENT = 0x714d;
	public static final int Pt_ARG_PG_CURRENT_INDEX = 0xfa05;
	public static final int Pt_ARG_PG_FLAGS = 64 * 1000;
	public static final int Pt_ARG_PG_PANEL_TITLES = 0xfa02;
	public static final int Pt_ARG_POS = 0x3ef;
	public static final int Pt_ARG_REGION_FLAGS = 0x3a9b;
	public static final int Pt_ARG_REGION_OPAQUE = 0x3a9d;
	public static final int Pt_ARG_REGION_SENSE = 0x3aa0;
	public static final int Pt_ARG_RESIZE_FLAGS = 0x3f0;
	public static final int Pt_ARG_SCROLLBAR_X_DISPLAY = 0x32ce;
	public static final int Pt_ARG_SCROLLBAR_Y_DISPLAY = 0x32d0;
	public static final int Pt_ARG_SELECTION_FILL_COLOR = 0x59e4;
	public static final int Pt_ARG_SELECTION_INDEXES = 0x59de;
	public static final int Pt_ARG_SELECTION_MODE = 0x59df;
	public static final int Pt_ARG_SELECTION_TEXT_COLOR = 0x59e5;
	public static final int Pt_ARG_SEP_FLAGS = 0x7530;
	public static final int Pt_ARG_SEP_TYPE = 0x7532;
	public static final int Pt_ARG_SLIDER_SIZE = 0x714f;
	public static final int Pt_ARG_TEXT_CURSOR_WIDTH = 0xbf2;
	public static final int Pt_ARG_TEXT_FLAGS = 0xfa8;
	public static final int Pt_ARG_TEXT_FONT = 0xbc2;
	public static final int Pt_ARG_TEXT_STRING = 0xbc3;
	public static final int Pt_ARG_TIMER_INITIAL = 0xa028;
	public static final int Pt_ARG_TITLE = 0x2717;
	public static final int Pt_ARG_TITLE_FONT = 0x2718;
	public static final int Pt_ARG_TOOLBAR_FLAGS = 0xee48;
	public static final int Pt_ARG_TOP_ITEM_POS = 0x59e0;
	public static final int Pt_ARG_USER_DATA = 0x3f6;
	public static final int Pt_ARG_VERTICAL_ALIGNMENT = 0xbc7;
	public static final int Pt_ARG_VISIBLE_COUNT = 0x59e1;
	public static final int Pt_ARG_WEB_DATA = 0x186B6;
	public static final int Pt_ARG_WEB_GET_URL = 0x186A0;
	public static final int Pt_ARG_WEB_NAVIGATE_PAGE = 0x186A1;
	public static final int Pt_ARG_WEB_OPTION = 0x186AC;
	public static final int Pt_ARG_WEB_RELOAD = 0x186A6;
	public static final int Pt_ARG_WEB_SERVER = 0x186A9;
	public static final int Pt_ARG_WEB_STOP = 0x186A7;
	public static final int Pt_ARG_WIDTH = 0x3ff;
	public static final int Pt_ARG_WINDOW_MANAGED_FLAGS = 0x465b;
	public static final int Pt_ARG_WINDOW_NOTIFY_FLAGS = 0x465c;
	public static final int Pt_ARG_WINDOW_RENDER_FLAGS = 0x465d;
	public static final int Pt_ARG_WINDOW_STATE = 0x465e;
	public static final int Pt_ARG_WINDOW_TITLE = 0x465f;
	public static final int Pt_BALLOON_BOTTOM = 0x3;
	public static final int Pt_BALLOON_RIGHT = 0x0;
	public static final int Pt_BLOCKED = 0x20000;
	public static final int Pt_BOTTOM_ANCHORED_BOTTOM = 0x00000080;
	public static final int Pt_BOTTOM_ANCHORED_TOP = 0x00000800;
	public static final int Pt_BOTTOM_BEVEL = 0x200;
	public static final int Pt_BOTTOM_ETCH = 0x2;
	public static final int Pt_BOTTOM_INLINE = 0x2000;
	public static final int Pt_BOTTOM_OUTLINE = 0x20;
	public static final int Pt_CALLBACKS_ACTIVE = 0x4000000;
	public static final int Pt_CB_ACTIVATE = 0x7d9;
	public static final int Pt_CB_ARM = 0x7d7;
	public static final int Pt_CB_GOT_FOCUS = 0x7da;
	public static final int Pt_CB_LOST_FOCUS = 0x7db;
	public static final int Pt_CB_MODIFY_VERIFY = 0xfa9;
	public static final int Pt_CB_NUMERIC_CHANGED = 0xcf17;
	public static final int Pt_CB_OUTBOUND = 0x3fe;
	public static final int Pt_CB_PG_PANEL_SWITCHING = 0xfa0a;
	public static final int Pt_CB_REALIZED = 0x3f4;
	public static final int Pt_CB_RESIZE = 0x2713;
	public static final int Pt_CB_SCROLL_MOVE = 0x7152;
	public static final int Pt_CB_SELECTION = 0x59e2;
	public static final int Pt_CB_SLIDER_MOVE = 0x5601;
	public static final int Pt_CB_TEXT_CHANGED = 0xfaa;
	public static final int Pt_CB_TIMER_ACTIVATE = 0xa02a;
	public static final int Pt_CB_UNREALIZED = 0x3f5;
	public static final int Pt_CB_WEB_CLOSE_WINDOW = 0x18713;
	public static final int Pt_CB_WEB_COMPLETE = 0x18704;
	public static final int Pt_CB_WEB_DATA_REQ = 0x1870F;
	public static final int Pt_CB_WEB_METADATA = 0x18705;
	public static final int Pt_CB_WEB_NEW_WINDOW = 0x18711;
	public static final int Pt_CB_WEB_START = 0x1870B;
	public static final int Pt_CB_WEB_STATUS = 0x18708;
	public static final int Pt_CB_WEB_URL = 0x18706;
	public static final int Pt_CB_WINDOW = 0x4661;
	public static final int Pt_CENTER = 0x2;
	public static final int Pt_COLORSELECT_ACCEPT = 0x8000;
	public static final int Pt_COLORSELECT_MODAL = 0x4;
	public static final int Pt_COMBOBOX_STATIC = 0x20;
	public static final int Pt_CONSUME = 0x2;
	public static final int Pt_CONTINUE = 0x0;
	public static final int Pt_DELAY_REALIZE = 0x40;
	public static final int Pt_EDITABLE = 0x2;
	public static final int Pt_EMT_CHAR = 0x2;
	public static final int Pt_EMT_NEWLINE = 0x4;
	public static final int Pt_EMT_WORD = 0x1;
	public static final int Pt_ENABLE_CUA = 0x10;
	public static final int Pt_ENABLE_CUA_ARROWS = 0x20;
	public static final int Pt_END = 0x2;
	public static final int Pt_ETCHED_IN = 0x4;
	public static final int Pt_ETCHED_OUT = 0x5;
	public static final int Pt_ETCH_TITLE_AREA = 0x200;
	public static final int Pt_FLAT_FILL = 0x10000;
	public static final int Pt_FSDIALOG_BTN2 = 0x2;
	public static final int Pt_FSR_NO_FCHECK = 0x100;
	public static final int Pt_FSR_NO_SELECT_FILES = 0x2000;
	public static final int Pt_FSR_SELECT_DIRS = 0x4000;
	public static final int Pt_GAUGE_INDETERMINATE = 0x80;
	public static final int Pt_GETS_FOCUS = 0x400;
	public static final int Pt_GHOST = 0x1000000;
	public static final int Pt_GROUP_EQUAL_SIZE = 0x2;
	public static final int Pt_GROUP_EQUAL_SIZE_VERTICAL = 0x200;
	public static final int Pt_GROUP_HORIZONTAL = 0x0;
	public static final int Pt_HIGHLIGHTED = 0x100;
	public static final int Pt_HORIZONTAL = 0x1;
	public static final int Pt_HORIZONTAL_GRADIENT = 0x40000;
	public static final int Pt_HOTKEYS_FIRST = 0x80;
	public static final int Pt_IMAGE = 0x4;
	public static final int Pt_LEFT = 0x0;
	public static final int Pt_LEFT_ANCHORED_LEFT = 0x00000100;
	public static final int Pt_LEFT_BEVEL = 0x400;
	public static final int Pt_LEFT_ETCH = 0x4;
	public static final int Pt_LEFT_INLINE = 0x4000;
	public static final int Pt_LEFT_OUTLINE = 0x40;
	public static final int Pt_LIST_SCROLLBAR_ALWAYS = 0x1;
	public static final int Pt_LIST_SCROLLBAR_AS_REQUIRED = 0x2;
	public static final int Pt_LIST_SELECTION_FINAL = 0x0;
	public static final int Pt_MENUABLE = 0x8000000;
	public static final int Pt_MENU_CHILD = 0x8;
	public static final int Pt_MENU_RIGHT = 0x2;
	public static final int Pt_MENU_TEXT = 0x1;
	public static final int Pt_MODAL = 0x84;
	public static final int Pt_NEVER = 0x0;
	public static final int Pt_NOLINE = 0x6;
	public static final int Pt_NO_PARENT = 0x1;
	public static final int Pt_N_OF_MANY = 0x0;
	public static final int Pt_NUMERIC_CHANGED = 0x1;
	public static final int Pt_NUMERIC_UPDOWN_ACTIVATE = 0x8;
	public static final int Pt_NUMERIC_UPDOWN_REPEAT = 0x4;	
	public static final int Pt_NUMERIC_WRAP= 0x04;
	public static final int Pt_ONE_OF_MANY = 0x1;
	public static final int Pt_PG_INVALID = 0xffff;
	public static final int Pt_PG_SELECTOR_ON_BOTTOM = 0x0001;
	public static final int Pt_PROCESS = 0x0;
	public static final int Pt_RESIZE_XY_BITS = 0x3f00000;
	public static final int Pt_RESIZE_X_ALWAYS = 0x800000;
	public static final int Pt_RESIZE_Y_ALWAYS = 0x100000;
	public static final int Pt_RIGHT = 0x1;
	public static final int Pt_RIGHT_ANCHORED_RIGHT = 0x00000020;
	public static final int Pt_RIGHT_BEVEL = 0x800;
	public static final int Pt_RIGHT_ETCH = 0x8;
	public static final int Pt_RIGHT_INLINE = 0x8000;
	public static final int Pt_RIGHT_OUTLINE = 0x80;
	public static final int Pt_SCROLL_DECREMENT = 0x1;
	public static final int Pt_SCROLL_DRAGGED = 0x7;
	public static final int Pt_SCROLL_INCREMENT = 0x2;
	public static final int Pt_SCROLL_PAGE_DECREMENT = 0x4;
	public static final int Pt_SCROLL_PAGE_INCREMENT = 0x3;
	public static final int Pt_SCROLL_TO_MAX = 0x5;
	public static final int Pt_SCROLL_TO_MIN = 0x6;
	public static final int Pt_SELECTABLE = 0x80;
	public static final int Pt_SELECTION_MODE_AUTO = 0x8200;
	public static final int Pt_SELECTION_MODE_MULTIPLE = 0x8000;
	public static final int Pt_SELECTION_MODE_NOCLEAR = 0x8400;
	public static final int Pt_SELECTION_MODE_NOFOCUS = 0x9000;
	public static final int Pt_SELECTION_MODE_NOMOVE = 0x8080;
	public static final int Pt_SELECTION_MODE_SINGLE = 0x8020;
	public static final int Pt_SELECTION_MODE_TOGGLE = 0x8800;
	public static final int Pt_SELECT_NOREDRAW = 0x80000;
	public static final int Pt_SEP_HORIZONTAL = 0x1;
	public static final int Pt_SEP_VERTICAL = 0x0;
	public static final int Pt_SET = 0x2;
	public static final int Pt_SET_DRAW_F = 0x170014;
	public static final int Pt_SHOW_TITLE = 0x100;
	public static final int Pt_STATIC_GRADIENT = 0x100000;
	public static final int Pt_TEXT_IMAGE = 0x8;
	public static final int Pt_TOGGLE = 0x8;
	public static final int Pt_TOOLBAR_DRAGGABLE = 0x1;
	public static final int Pt_TOOLBAR_END_SEPARATOR = 0x40;
	public static final int Pt_TOP = 0x0;
	public static final int Pt_TOP_ANCHORED_TOP = 0x00000400;
	public static final int Pt_TOP_BEVEL = 0x100;
	public static final int Pt_TOP_ETCH = 0x1;
	public static final int Pt_TOP_INLINE = 0x1000;
	public static final int Pt_TOP_OUTLINE = 0x10;
	public static final int Pt_VERTICAL = 0x0;
	public static final int Pt_WEB_ACTION_DISPLAY = 0x1;
	public static final int Pt_WEB_DATA_HEADER = 1;
	public static final int Pt_WEB_DATA_BODY = 2;
	public static final int Pt_WEB_DATA_CLOSE = 3;
	public static final int Pt_WEB_DIRECTION_BACK = 6;
	public static final int Pt_WEB_DIRECTION_CANCEL = 7;
	public static final int Pt_WEB_DIRECTION_FWD = 5;
	public static final int Pt_WEB_STATUS_CONNECT = 2;
	public static final int Pt_WEB_STATUS_DEFAULT = 6;
	public static final int Pt_WEB_STATUS_INFO = 4;
	public static final int Pt_WEB_STATUS_MOUSE = 1;
	public static final int Pt_WEB_STATUS_PROGRESS = 3;
	public static final int Pt_WEB_STATUS_PRINT = 5;
	public static final int Pt_Z_STRING = 0x1;

/** Natives */
public static final native int PfDecomposeStemToID(byte[] pkszStem);
/**
 * @param font cast=(const char *)
 * @param str cast=(const char *)
 */
public static final native int PfExtentText(PhRect_t extent, PhPoint_t pos, int font, int str, int len);
/**
 * @param font cast=(const char *)
 * @param str cast=(const char *)
 */
public static final native int PfExtentText(PhRect_t extent, PhPoint_t pos, byte[] font, byte[] str, int len);
/**
 * @param font cast=(const char *)
 * @param str cast=(const uint16_t *)
 */
public static final native int PfExtentWideText(PhRect_t extent, PhPoint_t pos, byte[] font, char[] str, int len);
/** @param ptsID cast=(FontID *) */
public static final native int PfFontDescription(int ptsID);
/** @param ptsID cast=(FontID *) */
public static final native int PfFontFlags(int ptsID);
/** @param ptsID cast=(FontID *) */
public static final native int PfFontSize(int ptsID);
/** @param ptsID cast=(FontID *) */
public static final native int PfFreeFont(int ptsID);
/**
 * @param pkucDescription cast=(char const *)
 * @param pucBuff cast=(char *)
 */
public static final native int PfGenerateFontName(byte[] pkucDescription, int kuiFlags, int kuiSize, byte[] pucBuff);
/** @param font cast=(const char *) */
public static final native int PfLoadMetrics(byte[] font);
/**
 * @param font cast=(const char *)
 * @param info cast=(FontQueryInfo *)
 */
public static final native int PfQueryFontInfo(byte[] font, FontQueryInfo info);
/** @param list cast=(FontDetails *) */
public static final native int PfQueryFonts(int symbol, int flags, int list, int n);
public static final native void PgAlphaOff();
public static final native void PgAlphaOn();
public static final native int PgCreateGC(int size);
/** @param GC cast=(PhGC_t *) */
public static final native void PgDestroyGC(int GC);
public static final native int PgDrawArc(PhPoint_t center, PhPoint_t radii, int start, int end, int flags);
/** @param color cast=(PgColor_t) */
public static final native void PgDrawArrow(PhRect_t rect, short unknown, int color, int flags);
/**
 * @param ptr cast=(void const *)
 * @param flags cast=(int)
 * @param pos cast=(PhPoint_t *)
 * @param size cast=(PhPoint_t *)
 * @param bpl cast=(int)
 * @param tag cast=(long)
 */
public static final native int PgDrawBitmap(int ptr, int flags, PhPoint_t pos, PhDim_t size, int bpl, int tag);
public static final native int PgDrawEllipse(PhPoint_t center, PhPoint_t radii, int flags);
/**
 * @param color1 cast=(PgColor_t)
 * @param color2 cast=(PgColor_t)
 * @param color3 cast=(PgColor_t)
 * @param color4 cast=(PgColor_t)
 * @param transition_table cast=(unsigned char *)
 */
public static final native int PgDrawGradient(PhPoint_t ul, PhPoint_t lr, int gradient_type, int transition_type, int num_color_pts, int color1, int color2, int color3, int color4, int table_size, byte[] transition_table);
public static final native int PgDrawILine(int x1, int y1, int x2, int y2);
public static final native int PgDrawIPixel(int x,int y);
public static final native int PgDrawIRect(int ulx, int uly, int lrx, int lry, int flags);
/** @param ptr cast=(void const *) */
public static final native int PgDrawImage(int ptr, int type, PhPoint_t pos, PhDim_t size, int bpl, int tag);
/** @param text cast=(char *) */
public static final native int PgDrawMultiTextArea(byte[] text, int len, PhRect_t canvas, int text_flags, int canvas_flags, int linespacing);
/** @param image cast=(PhImage_t const *) */
public static final native int PgDrawPhImageRectmx(PhPoint_t pos, int image, PhRect_t rect, int flags);
/**
 * @param ptr cast=(PhPoint_t const *)
 * @param pos cast=(PhPoint_t const *)
 */
public static final native int PgDrawPolygon(short[] ptr, int num, PhPoint_t pos, int flags);
/**
 * @param rect cast=(PhRect_t const *)
 * @param radii cast=(PhPoint_t const *)
 */
public static final native int PgDrawRoundRect(PhRect_t rect, PhPoint_t radii, int flags);
/**
 * @param ptr cast=(void const *)
 * @param pos cast=(PhPoint_t const *)
 * @param size cast=(PhDim_t const *)
 * @param TransPtr cast=(void const *)
 */
public static final native int PgDrawTImage(int ptr, int type, PhPoint_t pos, PhDim_t size, int bpl, int tag, int TransPtr, int TransBPl);
/**
 * @param ptr cast=(char const *)
 * @param pos cast=(PhPoint_t *)
 */
public static final native int PgDrawText(byte[] ptr, int len, PhPoint_t pos, int flags);
/**
 * @param extent cast=(PhRect_t *)
 * @param pos cast=(PhPoint_t *)
 * @param font cast=(char *)
 * @param str cast=(char *)
 */
public static final native int PgExtentMultiText(PhRect_t extent, PhPoint_t pos, byte[] font, byte[] str, int n, int linespacing);
public static final native int PgFlush();
/** @param settings cast=(PgDisplaySettings_t *),flags=init */
public static final native int PgGetVideoMode(PgDisplaySettings_t settings);
/** @param mode_info cast=(PgVideoModeInfo_t *) */
public static final native int PgGetVideoModeInfo(short mode_number, PgVideoModeInfo_t mode_info);
/**
 * @param rect cast=(PhRect_t *)
 * @param buffer cast=(void *)
 */
public static final native int PgReadScreen(PhRect_t rect, int buffer);
/** @param rect cast=(PhRect_t *) */
public static final native int PgReadScreenSize(PhRect_t rect);
/**
 * @param src_alpha_map cast=(PgMap_t const *)
 * @param src_alpha_gradient cast=(PgGradient_t const *)
 */
public static final native void PgSetAlpha(int alpha_op, PgMap_t src_alpha_map, int src_alpha_gradient, byte src_global_alpha, byte dst_global_alpha);
/** @param rects cast=(PhRect_t const *) */
public static final native void PgSetClipping(short n, int rects);
public static final native int PgSetDrawBufferSize(int cmd_buf_len);
public static final native int PgSetDrawMode(int mode);
/** @param color cast=(PgColor_t) */
public static final native int PgSetFillColor(int color);
/** @param pat cast=(PgPattern_t) */
public static final native void PgSetFillTransPat(byte[] pat);
/** @param ff cast=(char const *) */
public static final native void PgSetFont(byte[] ff);
/** @param GC cast=(PhGC_t *) */
public static final native int PgSetGC(int GC);
/** @param clip_list cast=(PhRect_t const *) */
public static final native int PgSetMultiClip(int num, int clip_list);
public static final native int PgSetMultiClipTiles (int tile);
/** @param palette cast=(PgColor_t const *) */
public static final native int PgSetPalette(int palette, int palette_id, short first_color, short num_colors, int flags, int tag);
/** @param rid cast=(PhRid_t) */
public static final native void PgSetRegion(int rid);
public static final native int PgSetStrokeCap(int cap);
/** @param color cast=(PgColor_t) */
public static final native int PgSetStrokeColor(int color);
/** @param DashList cast=(unsigned char const *) */
public static final native void PgSetStrokeDash(byte[] DashList, int ListLen, int DashScale);
public static final native int PgSetStrokeJoin(int join);
public static final native int PgSetStrokeWidth(int width);
/** @param color cast=(PgColor_t) */
public static final native int PgSetTextColor(int color);
/**
 * @param frgd cast=(PgColor_t)
 * @param bkgd cast=(PgColor_t)
 */
public static final native void PgSetTextXORColor(int frgd, int bkgd);
public static final native void PgSetTranslation (PhPoint_t point, int flags);
/** @param ClipRect cast=(PhRect_t const *) */
public static final native void PgSetUserClip(PhRect_t ClipRect);
/** @param name cast=(char const *) */
public static final native int PgShmemCreate(int size, byte[] name);
/** @param addr cast=(void *) */
public static final native int PgShmemDestroy(int addr);
/**
 * @param tiles cast=(PhTile_t *)
 * @param add_tiles cast=(PhTile_t *)
 * @param added cast=(int *)
 */
public static final native int PhAddMergeTiles(int tiles, int add_tiles, int[] added);
/**
 * @param area cast=(PhArea_t const *)
 * @param rect cast=(PhRect_t *)
 */
public static final native void PhAreaToRect(PhArea_t area, PhRect_t rect);
/**
 * @param rid cast=(PhRid_t)
 * @param rect cast=(const PhRect_t *)
 * @param offset cast=(const PhPoint_t *)
 */
public static final native void PhBlit(int rid, PhRect_t rect, PhPoint_t offset);
/**
 * @param tiles cast=(PhTile_t *)
 * @param clip_tiles cast=(PhTile_t *)
 * @param intersection cast=(PhTile_t **)
 */
public static final native int PhClipTilings(int tiles, int clip_tiles, int[] intersection);
/** @param clip cast=(PhClipHeader const *) */
public static final native int PhClipboardCopy(short ig, int n, byte[] clip);
/** @param string cast=(const char *) */
public static final native int PhClipboardCopyString(short ig, byte[] string);
/** @param cbdata cast=(void *) */
public static final native void PhClipboardPasteFinish(int cbdata);
public static final native int PhClipboardPasteStart(short ig);
public static final native int PhClipboardPasteString(short ig);
/** @param cbdata cast=(void *) */
public static final native int PhClipboardPasteType(int cbdata, byte[] type);
/** @param cbdata cast=(void *) */
public static final native int PhClipboardPasteTypeN(int cbdata, int n);
/** @param tiles cast=(PhTile_t *) */
public static final native int PhCoalesceTiles(int tiles);
/** @param tile cast=(PhTile_t *) */
public static final native int PhCopyTiles(int tile);
/**
 * @param buffer cast=(PhImage_t *)
 * @param palette cast=(PgColor_t const *)
 */
public static final native int PhCreateImage(PhImage_t buffer, short width, short height, int type, int palette, int ncolors, int shmem);
/** @param draw_context cast=(void *) */
public static final native int PhDCSetCurrent(int draw_context);
/**
 * @param tile cast=(PhTile_t *)
 * @param point_subtract cast=(PhPoint_t const *)
 */
public static final native int PhDeTranslateTiles(int tile, int point_subtract);
/** @param buffer cast=(void *) */
public static final native int PhEventNext(int buffer, int size);
/** @param buffer cast=(void *) */
public static final native int PhEventPeek(int buffer, int size);
/** @param tiles cast=(PhTile_t *) */
public static final native void PhFreeTiles(int tiles);
/** @param event cast=(PhEvent_t *) */
public static final native int PhGetData(int event);
/** @param event_buf cast=(PhEvent_t const *) */
public static final native int PhGetMsgSize(int event_buf);
/** @param event cast=(PhEvent_t *) */
public static final native int PhGetRects(int event);
/** @method flags=no_gen */
public static final native int PhGetTile();
/**
 * @param rid cast=(PhRid_t)
 * @param rect cast=(const PhRect_t *)
 * @param boundary cast=(const PhRect_t *)
 * @param min cast=(PhDim_t *)
 * @param max cast=(PhDim_t *)
 * @param step cast=(PhDim_t *)
 * @param ptrpos cast=(PhPoint_t *)
 * @param cursor cast=(PhCursorDescription_t *)
 */
public static final native int PhInitDrag(int rid, int flags, PhRect_t rect, PhRect_t boundary, int input_group, PhDim_t min, PhDim_t max, PhDim_t step, PhPoint_t ptrpos, short[] cursor);
/** @param event cast=(PhEvent_t *) */
public static final native int PhInputGroup(int event);
/**
 * @param tile1 cast=(PhTile_t const *)
 * @param tile2 cast=(PhTile_t const *)
 */
public static final native int PhIntersectTilings(int tile1, int tile2, short[] num_intersect_tiles);
/** @param buffer cast=(char *) */
public static final native int PhKeyToMb(byte[] buffer,PhKeyEvent_t keyevent);
/** @param image cast=(PhImage_t *) */
public static final native int PhMakeGhostBitmap(int image);
/**
 * @param image cast=(PhImage_t *)
 * @param trans_color cast=(PgColor_t)
 */
public static final native int PhMakeTransBitmap(int image, int trans_color);
/** @param tiles cast=(PhTile_t *) */
public static final native int PhMergeTiles(int tiles);
public static final native void PhMoveCursorAbs(int input_group, int x, int y);
/** @param buf cast=(PhCursorInfo_t *) */
public static final native int PhQueryCursor(short ig, PhCursorInfo_t buf);
/**
 * @param rid cast=(PhRid_t)
 * @param emitter cast=(PhRid_t)
 * @param rect cast=(const PhRect_t *)
 * @param rids cast=(PhRid_t *)
 */
public static final native int PhQueryRids(int flags, int rid, int input_group, int type, int sense, int emitter, PhRect_t rect, int[] rids, int num);
/**
 * @param rect1 cast=(PhRect_t *)
 * @param rect2 cast=(PhRect_t const *)
 */
public static final native int PhRectIntersect(int rect1, int rect2);
/**
 * @param rect1 cast=(PhRect_t *)
 * @param rect2 cast=(PhRect_t const *)
 */
public static final native int PhRectUnion(int rect1, int rect2);
/**
 * @param rect1 cast=(PhRect_t *)
 * @param rect2 cast=(PhRect_t const *)
 */
public static final native int PhRectUnion(PhRect_t rect1, PhRect_t rect2);
/** @param rects cast=(PhRect_t *) */
public static final native int PhRectsToTiles(int rects, int num_rects);
/**
 * @param rid cast=(PhRid_t)
 * @param region cast=(PhRegion_t *)
 * @param rect cast=(PhRect_t *)
 * @param data cast=(void *)
 */
public static final native int PhRegionQuery(int rid, PhRegion_t region, PhRect_t rect, int data, int data_len);
/** @param image cast=(PhImage_t *) */
public static final native void PhReleaseImage(int image);
/** @param tiles cast=(PhTile_t *) */
public static final native int PhSortTiles(int tiles);
/**
 * @param tiles cast=(PhTile_t *)
 * @param num_rects cast=(int *)
 */
public static final native int PhTilesToRects(int tiles, int[] num_rects);
/**
 * @param tile cast=(PhTile_t *)
 * @param point_add cast=(PhPoint_t const *)
 */
public static final native int PhTranslateTiles(int tile, PhPoint_t point_add);
/**
 * @param rid cast=(PhRid_t)
 * @param rect cast=(PhRect_t *)
 */
public static final native int PhWindowQueryVisible(int flag, int rid, int input_group, PhRect_t rect);
/**
 * @param image cast=(PhImage_t *)
 * @param bounds cast=(PhRect_t const *)
 */
public static final native int PiCropImage(int image, PhRect_t bounds, int flags);
/** @param image cast=(PhImage_t *) */
public static final native int PiDuplicateImage(int image, int flags);
/**
 * @param image cast=(PhImage_t *)
 * @param dim cast=(PhDim_t *)
 * @param translation cast=(PhPoint_t *)
 */
public static final native int PmMemCreateMC(int image, PhDim_t dim, PhPoint_t translation);
/**
 * @param mc cast=(PmMemoryContext_t *)
 * @param image cast=(PhImage_t *)
 */
public static final native int PmMemFlush(int mc, int image);
/** @param mc cast=(PmMemoryContext_t *) */
public static final native void PmMemReleaseMC(int mc);
/** @param mc cast=(PmMemoryContext_t *) */
public static final native int PmMemStart(int mc);
/** @param mc cast=(PmMemoryContext_t *) */
public static final native int PmMemStop(int mc);
/**
 * @param widget cast=(PtWidget_t *)
 * @param callback cast=(PtCallbackF_t *)
 * @param data cast=(void *)
 */
public static final native void PtAddCallback(int widget, int callback_type, int callback, int data);
/**
 * @param widget cast=(PtWidget_t *)
 * @param callback cast=(PtCallbackF_t *)
 * @param data cast=(void *)
 */
public static final native void PtAddEventHandler(int widget, int event_mask, int callback, int data);
/**
 * @param widget cast=(PtWidget_t *)
 * @param callback cast=(PtCallbackF_t *)
 * @param data cast=(void *)
 */
public static final native void PtAddFilterCallback(int widget, int event_mask, int callback, int data);
/**
 * @param widget cast=(PtWidget_t *)
 * @param data cast=(void *)
 * @param callback cast=(PtCallbackF_t *)
 */
public static final native void PtAddHotkeyHandler(int widget, int key_sym_cap, int key_mods, short flags, int data, int callback);
/**
 * @param parent cast=(PtWidget_t *)
 * @param location cast=(PhPoint_t const *)
 * @param title cast=(char const *)
 * @param image cast=(PhImage_t const *)
 * @param message cast=(char const *)
 * @param msgFont cast=(char const *)
 * @param buttons cast=(char const **)
 * @param btnFonts cast=(char const **)
 */
public static final native int PtAlert(int parent, PhPoint_t location, byte[] title, int image, byte[] message, byte[] msgFont, int btnCount, int[] buttons, int[] btnFonts, int defBtn, int escBtn, int flags);
/**
 * @param app_context cast=(PtAppContext_t)
 * @param pid cast=(pid_t)
 * @param input_func cast=(PtInputCallbackProc_t)
 * @param data cast=(void *)
 */
public static final native int PtAppAddInput(int app_context, int pid, int input_func, int data);
/**
 * @param app_context cast=(PtAppContext_t)
 * @param work_func cast=(PtWorkProc_t)
 * @param data cast=(void *)
 */
public static final native int PtAppAddWorkProc(int app_context, int work_func, int data);
/** @param app cast=(PtAppContext_t) */
public static final native int PtAppCreatePulse(int app, int priority);
/**
 * @param app cast=(PtAppContext_t)
 * @param pulse_pid cast=(pid_t)
 */
public static final native int PtAppDeletePulse(int app, int pulse_pid);
/** @param app_context cast=(PtAppContext_t) */
public static final native void PtAppProcessEvent(int app_context);
/**
 * @param app cast=(PtAppContext_t)
 * @param pulse cast=(pid_t)
 */
public static final native int PtAppPulseTrigger(int app, int pulse);
/**
 * @param app_context cast=(PtAppContext_t)
 * @param input_id cast=(PtInputId_t *)
 */
public static final native void PtAppRemoveInput(int app_context, int input_id);
/**
 * @param app_context cast=(PtAppContext_t)
 * @param WorkProc_id cast=(PtWorkProcId_t *)
 */
public static final native void PtAppRemoveWorkProc(int app_context, int WorkProc_id);
public static final native int PtBeep();
/**
 * @param widget cast=(PtWidget_t const *)
 * @param source cast=(PhRect_t const *)
 * @param delta cast=(PhPoint_t const *)
 */
public static final native int PtBlit(int widget, PhRect_t source, PhPoint_t delta);
/**
 * @param skip cast=(PtWidget_t *)
 * @param cursor_color cast=(PgColor_t)
 */
public static final native int PtBlockAllWindows(int skip, short cursor, int cursor_color);
/**
 * @param window cast=(PtWidget_t *)
 * @param cursor_color cast=(PgColor_t)
 */
public static final native int PtBlockWindow(int window, short cursor, int cursor_color);
/** @method flags=const */
public static final native int PtButton();
/** @param widget cast=(PtWidget_t *) */
public static final native void PtCalcBorder(int widget, PhRect_t rect);
/**
 * @param widget cast=(PtWidget_t *)
 * @param canvas_rect cast=(PhRect_t *)
 */
public static final native int PtCalcCanvas(int widget, PhRect_t canvas_rect);
/**
 * @param widget cast=(PtWidget_t const *)
 * @param src cast=(PhTile_t const *)
 * @param delta cast=(PhPoint_t const *)
 * @param clip cast=(PhTile_t const *)
 */
public static final native int PtClippedBlit(int widget, int src, PhPoint_t delta, int clip);
/**
 * @param parent cast=(PtWidget_t *)
 * @param title cast=(char *)
 */
public static final native int PtColorSelect(int parent, byte[] title, PtColorSelectInfo_t info);
/** @method flags=const */
public static final native int PtComboBox();
/** @method flags=const */
public static final native int PtContainer();
/** @param family_member cast=(PtWidget_t *) */
public static final native int PtContainerFindFocus(int family_member);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtContainerFocusNext(int widget, PhEvent_t event);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtContainerFocusPrev(int widget, PhEvent_t event);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtContainerGiveFocus(int widget, PhEvent_t event);
/** @param container_widget cast=(PtWidget_t *) */
public static final native int PtContainerHold(int container_widget);
/** @param container_widget cast=(PtWidget_t *) */
public static final native int PtContainerRelease(int container_widget);
public static final native int PtCreateAppContext();
/**
 * @param clazz cast=(PtWidgetClassRef_t *)
 * @param parent cast=(PtWidget_t *)
 * @param args cast=(PtArg_t const *)
 */
public static final native int PtCreateWidget(int clazz, int parent, int n_args, int[] args);
/**
 * @param superclass_ref cast=(PtWidgetClassRef_t *)
 * @param arg cast=(PtArg_t const *)
 */
public static final native int PtCreateWidgetClass(int superclass_ref, int size, int num_args, int[] arg);
/**
 * @param widget cast=(PtWidget_t *)
 * @param extent cast=(PhRect_t const *)
 */
public static final native int PtDamageExtent(int widget, PhRect_t extent);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtDamageWidget(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtDestroyWidget(int widget);
/** @method flags=const */
public static final native int PtDisjoint();
public static final native int PtEnter(int flags);
/** @param event cast=(PhEvent_t *) */
public static final native int PtEventHandler(int event);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtExtentWidget(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtExtentWidgetFamily(int widget);
/**
 * @param parent cast=(PtWidget_t *)
 * @param pos cast=(PhPoint_t const *)
 * @param title cast=(char const *)
 * @param root_dir cast=(char const *)
 * @param file_spec cast=(char const *)
 * @param btn1 cast=(char const *)
 * @param btn2 cast=(char const *)
 * @param format cast=(char const *)
 * @param info cast=(PtFileSelectionInfo_t *),flags=init
 */
public static final native int PtFileSelection(int parent, PhPoint_t pos, byte[] title, byte[] root_dir, byte[] file_spec, byte[] btn1, byte[] btn2, byte[] format, PtFileSelectionInfo_t info, int flags);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtFindDisjoint(int widget);
public static final native int PtFlush();
/**
 * @param parent cast=(PtWidget_t *)
 * @param pos cast=(const PhPoint_t *)
 * @param title cast=(const char *)
 * @param font cast=(const char *)
 * @param sample cast=(const char *)
 */
public static final native int PtFontSelection(int parent, PhPoint_t pos, byte[] title, byte[] font, int symbol, int flags, byte[] sample);
/** @param event cast=(PhWindowEvent_t const *) */
public static final native int PtForwardWindowEvent(PhWindowEvent_t event);
public static final native void PtFrameSize(int widget, int border_width, int[] left_border, int[] top_border, int[] right_border, int[] bottom_border);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtGetAbsPosition(int widget, short[] x, short[] y);
/**
 * @param widget cast=(PtWidget_t *)
 * @param args cast=(PtArg_t *)
 */
public static final native int PtGetResources(int widget, int n_args, int[] args);
public static final native int PtGetVisibleTiles (int widget);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtGlobalFocusNext(int widget, PhEvent_t event);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtGlobalFocusNextContainer(int widget, PhEvent_t event);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtGlobalFocusPrev(int widget, PhEvent_t event);
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native int PtGlobalFocusPrevContainer(int widget, PhEvent_t event);
/** @method flags=const */
public static final native int PtGroup();
/**
 * @param container cast=( PtWidget_t *)
 * @param rect cast=(PhRect_t const *)
 */
public static final native int PtHit(int container, int n, PhRect_t rect);
public static final native int PtHold();
/**
 * @param win cast=(PtWidget_t *)
 * @param me cast=(PtWidget_t *)
 * @param string cast=(char const *)
 * @param font cast=(char const *)
 * @param fill cast=(PgColor_t)
 * @param text_color cast=(PgColor_t)
 */
public static final native int PtInflateBalloon(int win, int me, int position, byte[] string, byte[] font, int fill, int text_color);
/** @param name cast=(char const *) */
public static final native int PtInit(byte[] name);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtIsFocused(int widget);
/** @method flags=const */
public static final native int PtLabel();
public static final native int PtLeave(int flags);
/** @method flags=const */
public static final native int PtList();
/**
 * @param widget cast=(PtWidget_t *)
 * @param items cast=(const char **)
 */
public static final native int PtListAddItems(int widget, int[] items, int item_count, int position);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtListDeleteAllItems(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtListDeleteItemPos(int widget, int item_count, int position);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtListGotoPos(int widget, int pos);
/**
 * @param widget cast=(PtWidget_t *)
 * @param item cast=(const char *)
 */
public static final native int PtListItemPos(int widget, byte[] item);
/**
 * @param widget cast=(PtWidget_t *)
 * @param new_items cast=(const char **)
 */
public static final native int PtListReplaceItemPos(int widget, int[] new_items, int item_count, int position);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtListSelectPos(int widget, int pos);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtListUnselectPos(int widget, int pos);
public static final native void PtMainLoop();
/** @method flags=const */
public static final native int PtMenu();
/** @method flags=const */
public static final native int PtMenuBar();
/** @method flags=const */
public static final native int PtMenuButton();
/** @method flags=const */
public static final native int PtMultiText();
/** @param widget cast=(PtWidget_t *) */
public static final native int PtNextTopLevelWidget(int widget);
/** @method flags=const */
public static final native int PtNumericInteger ();
/** @method flags=const */
public static final native int PtPane();
/** @method flags=const */
public static final native int PtPanelGroup();
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native void PtPositionMenu(int widget, PhEvent_t event);
/** @method flags=const */
public static final native int PtProgress();
/**
 * @param widget cast=(PtWidget_t *)
 * @param parent cast=(PtWidget_t *)
 */
public static final native int PtReParentWidget(int widget, int parent);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtRealizeWidget(int widget);
/** @method flags=const */
public static final native int PtRegion();
public static final native int PtRelease();
/**
 * @param widget cast=(PtWidget_t *)
 * @param callback cast=(PtCallbackF_t *)
 * @param data cast=(void *)
 */
public static final native void PtRemoveCallback(int widget, int callback_type, int callback, int data);
/**
 * @param widget cast=(PtWidget_t *)
 * @param data cast=(void *)
 * @param callback cast=(PtCallbackF_t *)
 */
public static final native void PtRemoveHotkeyHandler(int widget, int key_sym_cap, int key_mods, short flags, int data, int callback);
/** @method flags=const */
public static final native int PtScrollArea();
/** @method flags=const */
public static final native int PtScrollContainer();
/** @method flags=const */
public static final native int PtScrollbar();
/**
 * @param widget cast=(PtWidget_t *)
 * @param event cast=(PhEvent_t *)
 */
public static final native void PtSendEventToWidget(int widget, int event);
/** @method flags=const */
public static final native int PtSeparator();
/** @param widget cast=(PtWidget_t *) */
public static final native int PtSetAreaFromWidgetCanvas(int widget, PhRect_t canvas_rect, PhArea_t area);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtSetParentWidget(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtSetResource(int widget, int type, int value, int length);
/**
 * @param widget cast=(PtWidget_t *)
 * @param args cast=(PtArg_t *)
 */
public static final native int PtSetResources(int widget, int n_args, int[] args);
/** @method flags=const */
public static final native int PtSlider();
/**
 * @param wc_ref cast=(PtWidgetClassRef_t *)
 * @param widget cast=(PtWidget_t *)
 * @param damage cast=(PhTile_t const *)
 */
public static final native void PtSuperClassDraw(int wc_ref, int widget, int damage);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtSyncWidget(int widget);
/** @method flags=const */
public static final native int PtText();
/** @param widget cast=(PtWidget_t *) */
public static final native int PtTextGetSelection(int widget, int[] start, int[] end);
/**
 * @param widget cast=(PtWidget_t *)
 * @param text cast=(char const *)
 */
public static final native int PtTextModifyText(int widget, int start, int end, int insert_pos, byte[] text, int length);
/**
 * @param widget cast=(PtWidget_t *)
 * @param text cast=(char const *)
 */
public static final native int PtTextModifyText(int widget, int start, int end, int insert_pos, int text, int length);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtTextSetSelection(int widget, int[] start, int[] end);
/** @method flags=const */
public static final native int PtTimer();
/** @method flags=const */
public static final native int PtToggleButton();
/** @method flags=const */
public static final native int PtToolbar();
/** @param bl cast=(PtBlockedList_t *) */
public static final native void PtUnblockWindows(int bl);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtUnrealizeWidget(int widget);
/**
 * @param widget_parent cast=(PtWidget_t *)
 * @param class_ref cast=(PtWidgetClassRef_t *)
 */
public static final native int PtValidParent(int widget_parent, int class_ref);
/** @method flags=const */
public static final native int PtWebClient();
/**
 * @param widget cast=(PtWidget_t *)
 * @param area cast=(PhArea_t *)
 */
public static final native int PtWidgetArea(int widget, PhArea_t area);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetBrotherBehind(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetBrotherInFront(int widget);
/**
 * @param widget cast=(PtWidget_t *)
 * @param canvas_rect cast=(PhRect_t *)
 */
public static final native int PtWidgetCanvas(int widget, int canvas_rect);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetCanvas(int widget, PhRect_t canvas_rect);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetChildBack(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetChildFront(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetClass(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetExtent(int widget, int extent);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetExtent(int widget, PhRect_t extent);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetFlags(int widget);
/**
 * @param widget cast=(PtWidget_t *)
 * @param new_sibling cast=(PtWidget_t *)
 */
public static final native int PtWidgetInsert(int widget, int new_sibling, int behind);
/**
 * @param widget cast=(PtWidget_t *)
 * @param clazz cast=(PtWidgetClassRef_t *)
 */
public static final native int PtWidgetIsClassMember(int widget, int clazz);
/** @param widget cast=(PtWidget_t *) */
public static final native boolean PtWidgetIsRealized(int widget);
/**
 * @param widget cast=(PtWidget_t *)
 * @param offset cast=(PhPoint_t *)
 */
public static final native int PtWidgetOffset(int widget, PhPoint_t offset);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetParent(int widget);
/**
 * @param widget cast=(PtWidget_t *)
 * @param dim cast=(PhDim_t *)
 */
public static final native int PtWidgetPreferredSize(int widget, PhDim_t dim);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetRid(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetToBack(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWidgetToFront(int widget);
/** @method flags=const */
public static final native int PtWindow();
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWindowFocus(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native int PtWindowGetState(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtWindowToBack(int widget);
/** @param widget cast=(PtWidget_t *) */
public static final native void PtWindowToFront(int widget);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhPoint_t src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhTile_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhTile_t dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PtCallbackInfo_t dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhWindowEvent_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhRect_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhRect_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhImage_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhImage_t dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(FontDetails dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhPointerEvent_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhPointerEvent_t dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhEvent_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhEvent_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhKeyEvent_t dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PtScrollbarCallback_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhArea_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in init
 * @param src cast=(const void *)
 */
public static final native void memmove(PgAlpha_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out init
 */
public static final native void memmove(int dest, PgAlpha_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PtTextCallback_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PtTextCallback_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PgMap_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *),flags=no_out
 */
public static final native void memmove(int dest, PhCursorDef_t src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(PhClipHeader dest, int src, int size);
/**
 * @param dest cast=(void *),flags=no_in
 * @param src cast=(const void *)
 */
public static final native void memmove(byte[] dest, PhClipHeader src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 */
public static final native void memmove(PtWebStatusCallback_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 */
public static final native void memmove(PtWebDataReqCallback_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 */
public static final native void memmove(PtWebWindowCallback_t dest, int src, int size);
/**
 * @param dest cast=(void *)
 * @param src cast=(const void *)
 */
public static final native void memmove(PtWebMetaDataCallback_t dest, int src, int size);
public static final native void memmove(int dest, PtWebClient2Data_t src, int size);
/** @param string cast=(const char *) */
public static final native int strdup(int string);
/** @param udata cast=(utsname *) */
public static final native int uname(utsname udata);

}