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
// automatically generated by rust-bindgen 0.71.1
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#[cfg(feature = "api-13")]
use ohos_sys_opaque_types::ArkUI_AccessibilityProvider;
#[cfg(feature = "api-19")]
use ohos_sys_opaque_types::{ArkUI_NodeHandle, OHNativeWindow};
pub const OH_NATIVE_XCOMPONENT_OBJ: &::core::ffi::CStr = c"__NATIVE_XCOMPONENT_OBJ__";
pub const OH_NATIVE_XCOMPONENT_MAX_TOUCH_POINTS_NUMBER: u32 = 10;
impl OH_NativeXComponent_KeyCode {
pub const KEY_UNKNOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(-1);
pub const KEY_FN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(0);
pub const KEY_HOME: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(1);
pub const KEY_BACK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2);
pub const KEY_MEDIA_PLAY_PAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(10);
pub const KEY_MEDIA_STOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(11);
pub const KEY_MEDIA_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(12);
pub const KEY_MEDIA_PREVIOUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(13);
pub const KEY_MEDIA_REWIND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(14);
pub const KEY_MEDIA_FAST_FORWARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(15);
pub const KEY_VOLUME_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(16);
pub const KEY_VOLUME_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(17);
pub const KEY_POWER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(18);
pub const KEY_CAMERA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(19);
pub const KEY_VOLUME_MUTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(22);
pub const KEY_MUTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(23);
pub const KEY_BRIGHTNESS_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(40);
pub const KEY_BRIGHTNESS_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(41);
pub const KEY_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2000);
pub const KEY_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2001);
pub const KEY_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2002);
pub const KEY_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2003);
pub const KEY_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2004);
pub const KEY_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2005);
pub const KEY_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2006);
pub const KEY_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2007);
pub const KEY_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2008);
pub const KEY_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2009);
pub const KEY_STAR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2010);
pub const KEY_POUND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2011);
pub const KEY_DPAD_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2012);
pub const KEY_DPAD_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2013);
pub const KEY_DPAD_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2014);
pub const KEY_DPAD_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2015);
pub const KEY_DPAD_CENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2016);
pub const KEY_A: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2017);
pub const KEY_B: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2018);
pub const KEY_C: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2019);
pub const KEY_D: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2020);
pub const KEY_E: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2021);
pub const KEY_F: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2022);
pub const KEY_G: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2023);
pub const KEY_H: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2024);
pub const KEY_I: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2025);
pub const KEY_J: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2026);
pub const KEY_K: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2027);
pub const KEY_L: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2028);
pub const KEY_M: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2029);
pub const KEY_N: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2030);
pub const KEY_O: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2031);
pub const KEY_P: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2032);
pub const KEY_Q: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2033);
pub const KEY_R: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2034);
pub const KEY_S: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2035);
pub const KEY_T: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2036);
pub const KEY_U: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2037);
pub const KEY_V: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2038);
pub const KEY_W: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2039);
pub const KEY_X: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2040);
pub const KEY_Y: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2041);
pub const KEY_Z: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2042);
pub const KEY_COMMA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2043);
pub const KEY_PERIOD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2044);
pub const KEY_ALT_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2045);
pub const KEY_ALT_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2046);
pub const KEY_SHIFT_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2047);
pub const KEY_SHIFT_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2048);
pub const KEY_TAB: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2049);
pub const KEY_SPACE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2050);
pub const KEY_SYM: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2051);
pub const KEY_EXPLORER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2052);
pub const KEY_ENVELOPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2053);
pub const KEY_ENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2054);
pub const KEY_DEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2055);
pub const KEY_GRAVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2056);
pub const KEY_MINUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2057);
pub const KEY_EQUALS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2058);
pub const KEY_LEFT_BRACKET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2059);
pub const KEY_RIGHT_BRACKET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2060);
pub const KEY_BACKSLASH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2061);
pub const KEY_SEMICOLON: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2062);
pub const KEY_APOSTROPHE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2063);
pub const KEY_SLASH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2064);
pub const KEY_AT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2065);
pub const KEY_PLUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2066);
pub const KEY_MENU: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2067);
pub const KEY_PAGE_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2068);
pub const KEY_PAGE_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2069);
pub const KEY_ESCAPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2070);
pub const KEY_FORWARD_DEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2071);
pub const KEY_CTRL_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2072);
pub const KEY_CTRL_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2073);
pub const KEY_CAPS_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2074);
pub const KEY_SCROLL_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2075);
pub const KEY_META_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2076);
pub const KEY_META_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2077);
pub const KEY_FUNCTION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2078);
pub const KEY_SYSRQ: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2079);
pub const KEY_BREAK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2080);
pub const KEY_MOVE_HOME: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2081);
pub const KEY_MOVE_END: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2082);
pub const KEY_INSERT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2083);
pub const KEY_FORWARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2084);
pub const KEY_MEDIA_PLAY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2085);
pub const KEY_MEDIA_PAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2086);
pub const KEY_MEDIA_CLOSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2087);
pub const KEY_MEDIA_EJECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2088);
pub const KEY_MEDIA_RECORD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2089);
pub const KEY_F1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2090);
pub const KEY_F2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2091);
pub const KEY_F3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2092);
pub const KEY_F4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2093);
pub const KEY_F5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2094);
pub const KEY_F6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2095);
pub const KEY_F7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2096);
pub const KEY_F8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2097);
pub const KEY_F9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2098);
pub const KEY_F10: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2099);
pub const KEY_F11: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2100);
pub const KEY_F12: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2101);
pub const KEY_NUM_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2102);
pub const KEY_NUMPAD_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2103);
pub const KEY_NUMPAD_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2104);
pub const KEY_NUMPAD_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2105);
pub const KEY_NUMPAD_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2106);
pub const KEY_NUMPAD_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2107);
pub const KEY_NUMPAD_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2108);
pub const KEY_NUMPAD_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2109);
pub const KEY_NUMPAD_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2110);
pub const KEY_NUMPAD_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2111);
pub const KEY_NUMPAD_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2112);
pub const KEY_NUMPAD_DIVIDE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2113);
pub const KEY_NUMPAD_MULTIPLY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2114);
pub const KEY_NUMPAD_SUBTRACT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2115);
pub const KEY_NUMPAD_ADD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2116);
pub const KEY_NUMPAD_DOT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2117);
pub const KEY_NUMPAD_COMMA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2118);
pub const KEY_NUMPAD_ENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2119);
pub const KEY_NUMPAD_EQUALS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2120);
pub const KEY_NUMPAD_LEFT_PAREN: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2121);
pub const KEY_NUMPAD_RIGHT_PAREN: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2122);
pub const KEY_VIRTUAL_MULTITASK: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2210);
pub const KEY_SLEEP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2600);
pub const KEY_ZENKAKU_HANKAKU: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2601);
pub const KEY_102ND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2602);
pub const KEY_RO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2603);
pub const KEY_KATAKANA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2604);
pub const KEY_HIRAGANA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2605);
pub const KEY_HENKAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2606);
pub const KEY_KATAKANA_HIRAGANA: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2607);
pub const KEY_MUHENKAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2608);
pub const KEY_LINEFEED: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2609);
pub const KEY_MACRO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2610);
pub const KEY_NUMPAD_PLUSMINUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2611);
pub const KEY_SCALE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2612);
pub const KEY_HANGUEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2613);
pub const KEY_HANJA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2614);
pub const KEY_YEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2615);
pub const KEY_STOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2616);
pub const KEY_AGAIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2617);
pub const KEY_PROPS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2618);
pub const KEY_UNDO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2619);
pub const KEY_COPY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2620);
pub const KEY_OPEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2621);
pub const KEY_PASTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2622);
pub const KEY_FIND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2623);
pub const KEY_CUT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2624);
pub const KEY_HELP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2625);
pub const KEY_CALC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2626);
pub const KEY_FILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2627);
pub const KEY_BOOKMARKS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2628);
pub const KEY_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2629);
pub const KEY_PLAYPAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2630);
pub const KEY_PREVIOUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2631);
pub const KEY_STOPCD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2632);
pub const KEY_CONFIG: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2634);
pub const KEY_REFRESH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2635);
pub const KEY_EXIT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2636);
pub const KEY_EDIT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2637);
pub const KEY_SCROLLUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2638);
pub const KEY_SCROLLDOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2639);
pub const KEY_NEW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2640);
pub const KEY_REDO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2641);
pub const KEY_CLOSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2642);
pub const KEY_PLAY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2643);
pub const KEY_BASSBOOST: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2644);
pub const KEY_PRINT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2645);
pub const KEY_CHAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2646);
pub const KEY_FINANCE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2647);
pub const KEY_CANCEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2648);
pub const KEY_KBDILLUM_TOGGLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2649);
pub const KEY_KBDILLUM_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2650);
pub const KEY_KBDILLUM_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2651);
pub const KEY_SEND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2652);
pub const KEY_REPLY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2653);
pub const KEY_FORWARDMAIL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2654);
pub const KEY_SAVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2655);
pub const KEY_DOCUMENTS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2656);
pub const KEY_VIDEO_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2657);
pub const KEY_VIDEO_PREV: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2658);
pub const KEY_BRIGHTNESS_CYCLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2659);
pub const KEY_BRIGHTNESS_ZERO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2660);
pub const KEY_DISPLAY_OFF: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2661);
pub const KEY_BTN_MISC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2662);
pub const KEY_GOTO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2663);
pub const KEY_INFO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2664);
pub const KEY_PROGRAM: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2665);
pub const KEY_PVR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2666);
pub const KEY_SUBTITLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2667);
pub const KEY_FULL_SCREEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2668);
pub const KEY_KEYBOARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2669);
pub const KEY_ASPECT_RATIO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2670);
pub const KEY_PC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2671);
pub const KEY_TV: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2672);
pub const KEY_TV2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2673);
pub const KEY_VCR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2674);
pub const KEY_VCR2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2675);
pub const KEY_SAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2676);
pub const KEY_CD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2677);
pub const KEY_TAPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2678);
pub const KEY_TUNER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2679);
pub const KEY_PLAYER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2680);
pub const KEY_DVD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2681);
pub const KEY_AUDIO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2682);
pub const KEY_VIDEO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2683);
pub const KEY_MEMO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2684);
pub const KEY_CALENDAR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2685);
pub const KEY_RED: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2686);
pub const KEY_GREEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2687);
pub const KEY_YELLOW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2688);
pub const KEY_BLUE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2689);
pub const KEY_CHANNELUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2690);
pub const KEY_CHANNELDOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2691);
pub const KEY_LAST: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2692);
pub const KEY_RESTART: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2693);
pub const KEY_SLOW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2694);
pub const KEY_SHUFFLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2695);
pub const KEY_VIDEOPHONE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2696);
pub const KEY_GAMES: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2697);
pub const KEY_ZOOMIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2698);
pub const KEY_ZOOMOUT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2699);
pub const KEY_ZOOMRESET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2700);
pub const KEY_WORDPROCESSOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2701);
pub const KEY_EDITOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2702);
pub const KEY_SPREADSHEET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2703);
pub const KEY_GRAPHICSEDITOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2704);
pub const KEY_PRESENTATION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2705);
pub const KEY_DATABASE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2706);
pub const KEY_NEWS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2707);
pub const KEY_VOICEMAIL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2708);
pub const KEY_ADDRESSBOOK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2709);
pub const KEY_MESSENGER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2710);
pub const KEY_BRIGHTNESS_TOGGLE: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2711);
pub const KEY_SPELLCHECK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2712);
pub const KEY_COFFEE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2713);
pub const KEY_MEDIA_REPEAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2714);
pub const KEY_IMAGES: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2715);
pub const KEY_BUTTONCONFIG: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2716);
pub const KEY_TASKMANAGER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2717);
pub const KEY_JOURNAL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2718);
pub const KEY_CONTROLPANEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2719);
pub const KEY_APPSELECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2720);
pub const KEY_SCREENSAVER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2721);
pub const KEY_ASSISTANT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2722);
pub const KEY_KBD_LAYOUT_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2723);
pub const KEY_BRIGHTNESS_MIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2724);
pub const KEY_BRIGHTNESS_MAX: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2725);
pub const KEY_KBDINPUTASSIST_PREV: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2726);
pub const KEY_KBDINPUTASSIST_NEXT: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2727);
pub const KEY_KBDINPUTASSIST_PREVGROUP: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2728);
pub const KEY_KBDINPUTASSIST_NEXTGROUP: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2729);
pub const KEY_KBDINPUTASSIST_ACCEPT: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2730);
pub const KEY_KBDINPUTASSIST_CANCEL: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2731);
pub const KEY_FRONT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2800);
pub const KEY_SETUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2801);
pub const KEY_WAKEUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2802);
pub const KEY_SENDFILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2803);
pub const KEY_DELETEFILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2804);
pub const KEY_XFER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2805);
pub const KEY_PROG1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2806);
pub const KEY_PROG2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2807);
pub const KEY_MSDOS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2808);
pub const KEY_SCREENLOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2809);
pub const KEY_DIRECTION_ROTATE_DISPLAY: OH_NativeXComponent_KeyCode =
OH_NativeXComponent_KeyCode(2810);
pub const KEY_CYCLEWINDOWS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2811);
pub const KEY_COMPUTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2812);
pub const KEY_EJECTCLOSECD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2813);
pub const KEY_ISO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2814);
pub const KEY_MOVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2815);
pub const KEY_F13: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2816);
pub const KEY_F14: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2817);
pub const KEY_F15: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2818);
pub const KEY_F16: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2819);
pub const KEY_F17: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2820);
pub const KEY_F18: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2821);
pub const KEY_F19: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2822);
pub const KEY_F20: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2823);
pub const KEY_F21: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2824);
pub const KEY_F22: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2825);
pub const KEY_F23: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2826);
pub const KEY_F24: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2827);
pub const KEY_PROG3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2828);
pub const KEY_PROG4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2829);
pub const KEY_DASHBOARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2830);
pub const KEY_SUSPEND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2831);
pub const KEY_HP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2832);
pub const KEY_SOUND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2833);
pub const KEY_QUESTION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2834);
pub const KEY_CONNECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2836);
pub const KEY_SPORT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2837);
pub const KEY_SHOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2838);
pub const KEY_ALTERASE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2839);
pub const KEY_SWITCHVIDEOMODE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2841);
pub const KEY_BATTERY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2842);
pub const KEY_BLUETOOTH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2843);
pub const KEY_WLAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2844);
pub const KEY_UWB: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2845);
pub const KEY_WWAN_WIMAX: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2846);
pub const KEY_RFKILL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2847);
pub const KEY_CHANNEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3001);
pub const KEY_BTN_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3100);
pub const KEY_BTN_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3101);
pub const KEY_BTN_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3102);
pub const KEY_BTN_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3103);
pub const KEY_BTN_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3104);
pub const KEY_BTN_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3105);
pub const KEY_BTN_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3106);
pub const KEY_BTN_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3107);
pub const KEY_BTN_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3108);
pub const KEY_BTN_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3109);
}
#[repr(transparent)]
/// Represents the key event code.
///
///
/// Available since API-level: 10
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_KeyCode(pub ::core::ffi::c_int);
impl OH_NativeXComponent_KeyAction {
pub const OH_NATIVEXCOMPONENT_KEY_ACTION_UNKNOWN: OH_NativeXComponent_KeyAction =
OH_NativeXComponent_KeyAction(-1);
pub const OH_NATIVEXCOMPONENT_KEY_ACTION_DOWN: OH_NativeXComponent_KeyAction =
OH_NativeXComponent_KeyAction(0);
pub const OH_NATIVEXCOMPONENT_KEY_ACTION_UP: OH_NativeXComponent_KeyAction =
OH_NativeXComponent_KeyAction(1);
}
#[repr(transparent)]
/// Represents the key event action.
///
///
/// Available since API-level: 10
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_KeyAction(pub ::core::ffi::c_int);
pub const OH_XCOMPONENT_ID_LEN_MAX: u32 = 128;
pub const OH_MAX_TOUCH_POINTS_NUMBER: u32 = 10;
impl OH_NativeXComponent_TouchEventType {
/// Trigger a touch event when a finger is pressed.
pub const OH_NATIVEXCOMPONENT_DOWN: OH_NativeXComponent_TouchEventType =
OH_NativeXComponent_TouchEventType(0);
/// Trigger a touch event when a finger is lifted.
pub const OH_NATIVEXCOMPONENT_UP: OH_NativeXComponent_TouchEventType =
OH_NativeXComponent_TouchEventType(1);
/// Trigger a touch event when a finger moves on the screen in pressed state.
pub const OH_NATIVEXCOMPONENT_MOVE: OH_NativeXComponent_TouchEventType =
OH_NativeXComponent_TouchEventType(2);
/// Trigger an event when a touch event is canceled.
pub const OH_NATIVEXCOMPONENT_CANCEL: OH_NativeXComponent_TouchEventType =
OH_NativeXComponent_TouchEventType(3);
/// Invalid touch type.
pub const OH_NATIVEXCOMPONENT_UNKNOWN: OH_NativeXComponent_TouchEventType =
OH_NativeXComponent_TouchEventType(4);
}
#[repr(transparent)]
/// Represents the type of touch event.
///
///
/// Available since API-level: 8
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_TouchEventType(pub ::core::ffi::c_uint);
impl OH_NativeXComponent_TouchPointToolType {
/// Indicates invalid tool type.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(0);
/// Indicates a finger.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(1);
/// Indicates a stylus.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(2);
/// Indicates a eraser.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(3);
/// Indicates a brush.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(4);
/// Indicates a pencil.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(5);
/// Indicates a brush.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(6);
/// Indicates a mouse.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(7);
/// Indicates a lens.
pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS: OH_NativeXComponent_TouchPointToolType =
OH_NativeXComponent_TouchPointToolType(8);
}
#[repr(transparent)]
/// Represents the touch point tool type.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_TouchPointToolType(pub ::core::ffi::c_uint);
impl OH_NativeXComponent_EventSourceType {
/// Indicates an unknown input source type.
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(0);
/// Indicates that the input source generates a mouse multi-touch event.
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(1);
/// Indicates that the input source generates a touchscreen multi-touch event.
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(2);
/// Indicates that the input source generates a touchpad multi-touch event.
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(3);
/// Indicates that the input source generates a joystick multi-touch event.
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(4);
/// Indicates that the input source generates a keyboard event.
///
///
/// Available since API-level: 10
///
/// Version: 1.0
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType =
OH_NativeXComponent_EventSourceType(5);
}
#[repr(transparent)]
/// Represents the touch event source type.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_EventSourceType(pub ::core::ffi::c_uint);
impl OH_NativeXComponent_MouseEventAction {
pub const OH_NATIVEXCOMPONENT_MOUSE_NONE: OH_NativeXComponent_MouseEventAction =
OH_NativeXComponent_MouseEventAction(0);
pub const OH_NATIVEXCOMPONENT_MOUSE_PRESS: OH_NativeXComponent_MouseEventAction =
OH_NativeXComponent_MouseEventAction(1);
pub const OH_NATIVEXCOMPONENT_MOUSE_RELEASE: OH_NativeXComponent_MouseEventAction =
OH_NativeXComponent_MouseEventAction(2);
pub const OH_NATIVEXCOMPONENT_MOUSE_MOVE: OH_NativeXComponent_MouseEventAction =
OH_NativeXComponent_MouseEventAction(3);
/// Triggered when the mouse event is canceled.
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_NATIVEXCOMPONENT_MOUSE_CANCEL: OH_NativeXComponent_MouseEventAction =
OH_NativeXComponent_MouseEventAction(4);
}
#[repr(transparent)]
/// Represents the mouse event action.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_MouseEventAction(pub ::core::ffi::c_uint);
impl OH_NativeXComponent_MouseEventButton {
pub const OH_NATIVEXCOMPONENT_NONE_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(0);
pub const OH_NATIVEXCOMPONENT_LEFT_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(1);
pub const OH_NATIVEXCOMPONENT_RIGHT_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(2);
pub const OH_NATIVEXCOMPONENT_MIDDLE_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(4);
pub const OH_NATIVEXCOMPONENT_BACK_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(8);
pub const OH_NATIVEXCOMPONENT_FORWARD_BUTTON: OH_NativeXComponent_MouseEventButton =
OH_NativeXComponent_MouseEventButton(16);
}
#[repr(transparent)]
/// Represents the mouse event button.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_MouseEventButton(pub ::core::ffi::c_uint);
impl OH_NativeXComponent_TouchEvent_SourceTool {
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_UNKNOWN: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(0);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_FINGER: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(1);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_PEN: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(2);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_RUBBER: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(3);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_BRUSH: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(4);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_PENCIL: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(5);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_AIRBRUSH: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(6);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_MOUSE: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(7);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_LENS: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(8);
pub const OH_NATIVEXCOMPONENT_SOURCETOOL_TOUCHPAD: OH_NativeXComponent_TouchEvent_SourceTool =
OH_NativeXComponent_TouchEvent_SourceTool(9);
}
#[repr(transparent)]
/// Represents the source tool type of TouchEvent
///
///
/// Available since API-level: 10
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_NativeXComponent_TouchEvent_SourceTool(pub ::core::ffi::c_uint);
/// Represents the historical point.
///
///
/// Available since API-level: 10
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_HistoricalPoint {
/// Unique identifier of a finger.
pub id: i32,
/// X coordinate of the touch point relative to the left edge of the screen.
pub screenX: f32,
/// Y coordinate of the touch point relative to the upper edge of the screen.
pub screenY: f32,
/// X coordinate of the touch point relative to the left edge of the element to touch.
pub x: f32,
/// Y coordinate of the touch point relative to the upper edge of the element to touch.
pub y: f32,
/// Touch type of the touch event.
pub type_: OH_NativeXComponent_TouchEventType,
/// Contact area between the finger pad and the screen.
pub size: f64,
/// Pressure of the current touch event.
pub force: f32,
/// Timestamp of the current touch event.
pub timeStamp: i64,
/// The angle betweenprojection on plane-X-Y and axis-Z of the current touch event.
pub titlX: f32,
/// The angle betweenprojection on plane-Y-Z and axis-Z of the current touch event.
pub titlY: f32,
/// The sourceTool of the current touch event.
pub sourceTool: OH_NativeXComponent_TouchEvent_SourceTool,
}
/// Represents the touch point information of touch event.
///
///
/// Available since API-level: 8
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_TouchPoint {
/// Unique identifier of a finger.
pub id: i32,
/// X coordinate of the touch point relative to the left edge of the screen.
pub screenX: f32,
/// Y coordinate of the touch point relative to the upper edge of the screen.
pub screenY: f32,
/// X coordinate of the touch point relative to the left edge of the element to touch.
pub x: f32,
/// Y coordinate of the touch point relative to the upper edge of the element to touch.
pub y: f32,
/// Touch type of the touch event.
pub type_: OH_NativeXComponent_TouchEventType,
/// Contact area between the finger pad and the screen.
pub size: f64,
/// Pressure of the current touch event.
pub force: f32,
/// Timestamp of the current touch event.
pub timeStamp: i64,
/// Whether the current point is pressed.
pub isPressed: bool,
}
/// Represents the touch event.
///
///
/// Available since API-level: 8
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_TouchEvent {
/// Unique identifier of a finger.
pub id: i32,
/// X coordinate of the touch point relative to the left edge of the screen.
pub screenX: f32,
/// Y coordinate of the touch point relative to the upper edge of the screen.
pub screenY: f32,
/// X coordinate of the touch point relative to the left edge of the element to touch.
pub x: f32,
/// Y coordinate of the touch point relative to the upper edge of the element to touch.
pub y: f32,
/// Touch type of the touch event.
pub type_: OH_NativeXComponent_TouchEventType,
/// Contact area between the finger pad and the screen.
pub size: f64,
/// Pressure of the current touch event.
pub force: f32,
/// ID of the device where the current touch event is generated.
pub deviceId: i64,
/// Timestamp of the current touch event.
pub timeStamp: i64,
/// Array of the current touch points.
pub touchPoints: [OH_NativeXComponent_TouchPoint; 10usize],
/// Number of current touch points.
pub numPoints: u32,
}
/// Represents the mouse event information.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_MouseEvent {
/// X coordinate of the mouse point relative to the left edge of the element to mouse.
pub x: f32,
/// Y coordinate of the mouse point relative to the upper edge of the element to mouse.
pub y: f32,
/// X coordinate of the mouse point relative to the left edge of the screen.
pub screenX: f32,
/// Y coordinate of the mouse point relative to the upper edge of the screen.
pub screenY: f32,
/// Timestamp of the current mouse event.
pub timestamp: i64,
/// Mouse event action.
pub action: OH_NativeXComponent_MouseEventAction,
/// Mouse event button.
pub button: OH_NativeXComponent_MouseEventButton,
}
/// Provides an encapsulated <b>OH_NativeXComponent</b> instance.
///
///
/// Available since API-level: 8
///
/// Version: 1.0
#[repr(C)]
pub struct OH_NativeXComponent {
_unused: [u8; 0],
}
/// Registers the surface lifecycle and touch event callbacks.
///
///
/// Available since API-level: 8
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_Callback {
/// Called when the surface is created.
pub OnSurfaceCreated: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
>,
/// Called when the surface is changed.
pub OnSurfaceChanged: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
>,
/// Called when the surface is destroyed.
pub OnSurfaceDestroyed: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
>,
/// Called when a touch event is triggered.
pub DispatchTouchEvent: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
>,
}
/// Registers the mouse event callbacks.
///
///
/// Available since API-level: 9
///
/// Version: 1.0
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_MouseEvent_Callback {
/// Called when a mouse event is triggered.
pub DispatchMouseEvent: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
>,
/// Called when a hover event is triggered.
pub DispatchHoverEvent: ::core::option::Option<
unsafe extern "C" fn(component: *mut OH_NativeXComponent, isHover: bool),
>,
}
/// Provides an encapsulated <b>OH_NativeXComponent_KeyEvent</b> instance.
///
///
/// Available since API-level: 10
///
/// Version: 1.0
#[repr(C)]
pub struct OH_NativeXComponent_KeyEvent {
_unused: [u8; 0],
}
/// Defines the expected frame rate range struct.
///
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_NativeXComponent_ExpectedRateRange {
/// The minimum frame rate of dynamical callback rate range.
pub min: i32,
/// The maximum frame rate of dynamical callback rate range.
pub max: i32,
/// The expected frame rate of dynamical callback rate range.
pub expected: i32,
}
/// Provides an encapsulated <b>OH_NativeXComponent_ExtraMouseEventInfo</b>
/// instance which has extra info compared to OH_NativeXComponent_MouseEvent.
///
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
#[repr(C)]
pub struct OH_NativeXComponent_ExtraMouseEventInfo {
_unused: [u8; 0],
}
/// Provides an encapsulated <b>OH_ArkUI_SurfaceHolder</b> instance.
///
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
#[repr(C)]
pub struct OH_ArkUI_SurfaceHolder {
_unused: [u8; 0],
}
/// Define the surface lifecycle callback.
///
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
#[repr(C)]
pub struct OH_ArkUI_SurfaceCallback {
_unused: [u8; 0],
}
extern "C" {
/// Obtains the ID of the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `id` - Indicates the char buffer to keep the ID of this <b>OH_NativeXComponent</b> instance.
///
/// Notice that a null-terminator will be appended to the char buffer, so the size of the
///
/// char buffer should be at least as large as the size of the real id length plus 1.
///
/// It is recommended that the size of the char buffer be [OH_XCOMPONENT_ID_LEN_MAX + 1].
///
/// * `size` - Indicates the pointer to the length of <b>id</b>, which you can receive.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 8
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetXComponentId(
component: *mut OH_NativeXComponent,
id: *mut ::core::ffi::c_char,
size: *mut u64,
) -> i32;
/// Obtains the size of the surface held by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `window` - Indicates the native window handler.
///
/// * `width` - Indicates the pointer to the width of the current surface.
///
/// * `height` - Indicates the pointer to the height of the current surface.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 8
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetXComponentSize(
component: *mut OH_NativeXComponent,
window: *const ::core::ffi::c_void,
width: *mut u64,
height: *mut u64,
) -> i32;
/// Obtains the offset of the surface held by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `window` - Indicates the native window handler.
///
/// * `x` - Indicates the pointer to the x coordinate of the current surface.
///
/// * `y` - Indicates the pointer to the y coordinate of the current surface.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 8
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetXComponentOffset(
component: *mut OH_NativeXComponent,
window: *const ::core::ffi::c_void,
x: *mut f64,
y: *mut f64,
) -> i32;
/// Obtains the touch event dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `window` - Indicates the native window handler.
///
/// * `touchEvent` - Indicates the pointer to the current touch event.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 8
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetTouchEvent(
component: *mut OH_NativeXComponent,
window: *const ::core::ffi::c_void,
touchEvent: *mut OH_NativeXComponent_TouchEvent,
) -> i32;
/// Obtains the touch pointer tool type by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `toolType` - Indicates the tool Type of the pointer.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 9
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetTouchPointToolType(
component: *mut OH_NativeXComponent,
pointIndex: u32,
toolType: *mut OH_NativeXComponent_TouchPointToolType,
) -> i32;
/// Obtains the touch pointer tiltX by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `tiltX` - Indicates the x tilt of the pointer.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 9
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetTouchPointTiltX(
component: *mut OH_NativeXComponent,
pointIndex: u32,
tiltX: *mut f32,
) -> i32;
/// Obtains the touch pointer tiltX by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `tiltY` - Indicates the y tilt of the pointer.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 9
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetTouchPointTiltY(
component: *mut OH_NativeXComponent,
pointIndex: u32,
tiltY: *mut f32,
) -> i32;
/// Obtains the x coordinate of a specific touch point relative to the upper left corner of
///
/// the current application window from the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `windowX` - Indicates the x coordinate relative to the upper left corner of the current
///
/// application window.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] get windowX success.
/// [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] component is NULL, windowX is NULL
///
/// or native XComponent is NULL.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_GetTouchPointWindowX(
component: *mut OH_NativeXComponent,
pointIndex: u32,
windowX: *mut f32,
) -> i32;
/// Obtains the y coordinate of a specific touch point relative to the upper left corner of
///
/// the current application window from the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `windowY` - Indicates the y coordinate relative to the upper left corner of the current
///
/// application window.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] get windowY success.
/// [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] component is NULL, windowY is NULL
///
/// or native XComponent is NULL.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_GetTouchPointWindowY(
component: *mut OH_NativeXComponent,
pointIndex: u32,
windowY: *mut f32,
) -> i32;
/// Obtains the x coordinate of a specific touch point relative to the upper left corner of
///
/// the current screen from the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `displayX` - Indicates the x coordinate relative to the upper left corner of the current
///
/// screen.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] get displayX success.
/// [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] component is NULL, displayX is NULL
///
/// or native XComponent is NULL.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_GetTouchPointDisplayX(
component: *mut OH_NativeXComponent,
pointIndex: u32,
displayX: *mut f32,
) -> i32;
/// Obtains the y coordinate of a specific touch point relative to the upper left corner of
///
/// the current screen from the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointIndex` - Indicates the pointer index in the touchPoints.
///
/// * `displayY` - Indicates the y coordinate relative to the upper left corner of the current
///
/// screen.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] get displayY success.
/// [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] component is NULL, displayY is NULL
///
/// or native XComponent is NULL.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_GetTouchPointDisplayY(
component: *mut OH_NativeXComponent,
pointIndex: u32,
displayY: *mut f32,
) -> i32;
/// Obtains the touch event dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `window` - Indicates the native window handler.
///
/// * `size` - Length of the historical touch point array.
///
/// * `historicalPoints` - Pointer to the historical touch point array.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetHistoricalPoints(
component: *mut OH_NativeXComponent,
window: *const ::core::ffi::c_void,
size: *mut i32,
historicalPoints: *mut *mut OH_NativeXComponent_HistoricalPoint,
) -> i32;
/// Obtains the mouse event dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `window` - Indicates the native window handler.
///
/// * `mouseEvent` - Indicates the pointer to the current mouse event.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 9
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetMouseEvent(
component: *mut OH_NativeXComponent,
window: *const ::core::ffi::c_void,
mouseEvent: *mut OH_NativeXComponent_MouseEvent,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a surface lifecycle and touch event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 8
///
/// Version: 1.0
pub fn OH_NativeXComponent_RegisterCallback(
component: *mut OH_NativeXComponent,
callback: *mut OH_NativeXComponent_Callback,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a mouse event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 9
///
/// Version: 1.0
pub fn OH_NativeXComponent_RegisterMouseEventCallback(
component: *mut OH_NativeXComponent,
callback: *mut OH_NativeXComponent_MouseEvent_Callback,
) -> i32;
/// Obtains the extra mouse event dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `extraMouseEventInfo` - Indicates the pointer to pointer of <b>OH_NativeXComponent_ExtraMouseEventInfo</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetExtraMouseEventInfo(
component: *mut OH_NativeXComponent,
extraMouseEventInfo: *mut *mut OH_NativeXComponent_ExtraMouseEventInfo,
) -> i32;
/// Obtains the state of the modifier keys of the mouse event.
///
/// # Arguments
///
/// * `extraMouseEventInfo` - Indicates the pointer to this <b>OH_NativeXComponent_ExtraMouseEventInfo</b> instance.
///
/// * `keys` - Pointer to a variable where the current combination of pressed modifier keys will be returned.
/// The application can use bitwise operations to determine the state of each modifier key.
/// Modifier keys can be referred to [`ArkUI_ModifierKeyName`].
///
/// # Returns
///
/// * Returns the result code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetMouseEventModifierKeyStates(
extraMouseEventInfo: *mut OH_NativeXComponent_ExtraMouseEventInfo,
keys: *mut u64,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a focus event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_RegisterFocusEventCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
),
>,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a key event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_RegisterKeyEventCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
),
>,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a blur event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_RegisterBlurEventCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
),
>,
) -> i32;
/// Obtains the key event dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `keyEvent` - Indicates the pointer to pointer of <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEvent(
component: *mut OH_NativeXComponent,
keyEvent: *mut *mut OH_NativeXComponent_KeyEvent,
) -> i32;
/// Obtains the action of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `action` - Indicates the action of the <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEventAction(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
action: *mut OH_NativeXComponent_KeyAction,
) -> i32;
/// Obtains the keyCode of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `code` - Indicates the keyCode of the <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEventCode(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
code: *mut OH_NativeXComponent_KeyCode,
) -> i32;
/// Obtains the sourceType of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `sourceType` - Indicates the sourceType of the <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEventSourceType(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
sourceType: *mut OH_NativeXComponent_EventSourceType,
) -> i32;
/// Obtains the deviceId of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `deviceId` - Indicates the deviceId of the <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEventDeviceId(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
deviceId: *mut i64,
) -> i32;
/// Obtains the timestamp of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `timestamp` - Indicates the timestamp of the <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_NativeXComponent_GetKeyEventTimestamp(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
timestamp: *mut i64,
) -> i32;
/// Obtains the state of the modifier keys of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `keys` - Pointer to a variable where the current combination of pressed modifier keys will be returned.
/// The application can use bitwise operations to determine the state of each modifier key.
/// Modifier keys can be referred to [`ArkUI_ModifierKeyName`].
///
/// # Returns
///
/// * Returns the result code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetKeyEventModifierKeyStates(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
keys: *mut u64,
) -> i32;
/// Obtains the Num Lock state of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `isNumLockOn` - Return whether the Num Lock is on.
///
/// # Returns
///
/// * Returns the result code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetKeyEventNumLockState(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
isNumLockOn: *mut bool,
) -> i32;
/// Obtains the Caps Lock state of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `isCapsLockOn` - Return whether the Caps Lock is on.
///
/// # Returns
///
/// * Returns the result code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetKeyEventCapsLockState(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
isCapsLockOn: *mut bool,
) -> i32;
/// Obtains the Scroll Lock state of the key event.
///
/// # Arguments
///
/// * `keyEvent` - Indicates the pointer to this <b>OH_NativeXComponent_KeyEvent</b> instance.
///
/// * `isScrollLockOn` - Return whether the Scroll Lock is on.
///
/// # Returns
///
/// * Returns the result code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_NativeXComponent_GetKeyEventScrollLockState(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
isScrollLockOn: *mut bool,
) -> i32;
/// Set the Expected FrameRateRange.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `range` - Indicates the pointer to a expected rate range.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub fn OH_NativeXComponent_SetExpectedFrameRateRange(
component: *mut OH_NativeXComponent,
range: *mut OH_NativeXComponent_ExpectedRateRange,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a onFrame callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub fn OH_NativeXComponent_RegisterOnFrameCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
timestamp: u64,
targetTimestamp: u64,
),
>,
) -> i32;
/// UnRegister a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
pub fn OH_NativeXComponent_UnregisterOnFrameCallback(
component: *mut OH_NativeXComponent,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a surface show event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_RegisterSurfaceShowCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
),
>,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a surface hide event callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_RegisterSurfaceHideCallback(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
),
>,
) -> i32;
/// Set whether the <b>OH_NativeXComponent</b> instance needs soft keyboard.
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `needSoftKeyboard` - Indicates whether the <b>OH_NativeXComponent</b> instance needs soft keyboard or not.
/// Default value is false.
///
/// # Returns
///
/// * Returns the status code of the execution.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_SetNeedSoftKeyboard(
component: *mut OH_NativeXComponent,
needSoftKeyboard: bool,
) -> i32;
/// Obtains the touch event's source type dispatched by the ArkUI XComponent.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `pointId` - Indicates the id of the touch point which triggers this touch event.
///
/// * `sourceType` - Indicates the source type of this touch event.
///
/// # Returns
///
/// * Returns OH_NATIVEXCOMPONENT_RESULT_SUCCESS if success.
/// Returns OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER if a parameter exception occurs.
/// Returns OH_NATIVEXCOMPONENT_RESULT_FAILED if other exceptions occur.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_NativeXComponent_GetTouchEventSourceType(
component: *mut OH_NativeXComponent,
pointId: i32,
sourceType: *mut OH_NativeXComponent_EventSourceType,
) -> i32;
/// Obtains the pointer to the <b> ArkUI_AccessibilityProvider</b>
/// instance of this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to the <b>OH_NativeXComponent</b> instance.
///
/// * `handle` - Indicates the pointer to the <b>ArkUI_AccessibilityProvider</b> instance.
///
/// # Returns
///
/// * Returns [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] if the operation is successful.
/// Returns [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] if a parameter error occurs.
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
pub fn OH_NativeXComponent_GetNativeAccessibilityProvider(
component: *mut OH_NativeXComponent,
handle: *mut *mut ArkUI_AccessibilityProvider,
) -> i32;
/// Registers a callback for this <b>OH_NativeXComponent</b> instance.
///
/// # Arguments
///
/// * `component` - Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
///
/// * `callback` - Indicates the pointer to a key event callback with result.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`OH_NATIVEXCOMPONENT_RESULT_SUCCESS`] the callback function is successfully registered.
///
/// [`OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER`] component is nullptr or callback is nullptr.
///
///
/// Available since API-level: 14
///
/// Version: 1.0
#[cfg(feature = "api-14")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
pub fn OH_NativeXComponent_RegisterKeyEventCallbackWithResult(
component: *mut OH_NativeXComponent,
callback: ::core::option::Option<
unsafe extern "C" fn(
component: *mut OH_NativeXComponent,
window: *mut ::core::ffi::c_void,
) -> bool,
>,
) -> i32;
/// Create a <b>OH_ArkUI_SurfaceHolder</b> object from an XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// # Returns
///
/// * Returns the created <b>OH_ArkUI_SurfaceHolder</b> object's pointer.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_Create(node: ArkUI_NodeHandle) -> *mut OH_ArkUI_SurfaceHolder;
/// Disposes of a <b>OH_ArkUI_SurfaceHolder</b> object.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to <b>OH_ArkUI_SurfaceHolder</b> object needed to dispose.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_Dispose(surfaceHolder: *mut OH_ArkUI_SurfaceHolder);
/// Saves custom data on the <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Arguments
///
/// * `surfaceHolder` - Indicates the <b>OH_ArkUI_SurfaceHolder</b> instance
/// on which the custom data will be saved.
///
/// * `userData` - Indicates the custom data to be saved.
///
/// # Returns
///
/// * Returns the error code.
/// Returns [`ARKUI_ERROR_CODE_NO_ERROR`] if the operation is successful.
/// Returns [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_SetUserData(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
userData: *mut ::core::ffi::c_void,
) -> i32;
/// Obtains the custom data saved on the <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Arguments
///
/// * `surfaceHolder` - Indicates the target <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Returns
///
/// * Returns the custom data.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_GetUserData(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
) -> *mut ::core::ffi::c_void;
/// Create a <b>OH_ArkUI_SurfaceCallback</b> object.
///
///
/// # Returns
///
/// * Returns the created <b>OH_ArkUI_SurfaceCallback</b> object's pointer.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceCallback_Create() -> *mut OH_ArkUI_SurfaceCallback;
/// Disposes of a <b>OH_ArkUI_SurfaceCallback</b> object.
///
/// # Arguments
///
/// * `callback` - Indicates the pointer to <b>OH_ArkUI_SurfaceCallback</b> object needed to dispose.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceCallback_Dispose(callback: *mut OH_ArkUI_SurfaceCallback);
/// Set the surface created event of the surface callback.
///
/// # Arguments
///
/// * `callback` - Indicated the pointer to the surface callback.
///
/// * `onSurfaceCreated` - Indicates the surface created callback event
/// which will called when the surface is created.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceCallback_SetSurfaceCreatedEvent(
callback: *mut OH_ArkUI_SurfaceCallback,
onSurfaceCreated: ::core::option::Option<
unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
>,
);
/// Set the surface changed event of the surface callback.
///
/// # Arguments
///
/// * `callback` - Indicated the pointer to the surface callback.
///
/// * `onSurfaceChanged` - Indicates the surface changed callback event
/// which will called when the surface is changed.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent(
callback: *mut OH_ArkUI_SurfaceCallback,
onSurfaceChanged: ::core::option::Option<
unsafe extern "C" fn(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
width: u64,
height: u64,
),
>,
);
/// Set the surface destroyed event of the surface callback.
///
/// # Arguments
///
/// * `callback` - Indicated the pointer to the surface callback.
///
/// * `onSurfaceDestroyed` - Indicates the surface destroyed callback event
/// which will called when the surface is destroyed.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceCallback_SetSurfaceDestroyedEvent(
callback: *mut OH_ArkUI_SurfaceCallback,
onSurfaceDestroyed: ::core::option::Option<
unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
>,
);
/// Adds a surface lifecycle callback for this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Arguments
///
/// * `surfaceHolder` - Indicates the pointer to this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// * `callback` - Indicates the pointer to this new callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_AddSurfaceCallback(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
callback: *mut OH_ArkUI_SurfaceCallback,
) -> i32;
/// Removes a previously added surface lifecycle callback
/// from this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Arguments
///
/// * `surfaceHolder` - Indicates the pointer to this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// * `callback` - Indicates the pointer to the callback needed to remove.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
callback: *mut OH_ArkUI_SurfaceCallback,
) -> i32;
/// Obtains the nativeWindow associated with a <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Arguments
///
/// * `surfaceHolder` - Indicates the pointer to this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// # Returns
///
/// * Returns the nativeWindow associated with this <b>OH_ArkUI_SurfaceHolder</b> instance.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_XComponent_GetNativeWindow(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
) -> *mut OHNativeWindow;
/// Set whether the XComponent node needs to initialize automatically.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// * `autoInitialize` - Indicates whether the XComponent node needs to initialize automatically or not.
/// If the value is true, OnSurfaceCreated will be called when the node is mounted and
/// OnSurfaceDestroyed will be called when the node is unmounted.
/// Default value is true.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if the node is invalid.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_XComponent_SetAutoInitialize(
node: ArkUI_NodeHandle,
autoInitialize: bool,
) -> i32;
/// Initialize the XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if the node is invalid.
/// [`ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID`] if the node has initialized.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_XComponent_Initialize(node: ArkUI_NodeHandle) -> i32;
/// Finalize the XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if the node is invalid.
/// [`ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID`] if the node has finalized.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_XComponent_Finalize(node: ArkUI_NodeHandle) -> i32;
/// Obtains whether the XComponent node has initalized or not.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// * `isInitialized` - Indicates whether the XComponent node has initalized.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if the node is invalid.
///
/// Available since API-level: 19
#[cfg(feature = "api-19")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
pub fn OH_ArkUI_XComponent_IsInitialized(
node: ArkUI_NodeHandle,
isInitialized: *mut bool,
) -> i32;
/// Set the Expected FrameRateRange for the XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// * `range` - Indicates the expected rate range.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_XComponent_SetExpectedFrameRateRange(
node: ArkUI_NodeHandle,
range: OH_NativeXComponent_ExpectedRateRange,
) -> i32;
/// Registers an onFrame callback for the XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// * `callback` - Indicates the pointer to an onFrame callback.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_XComponent_RegisterOnFrameCallback(
node: ArkUI_NodeHandle,
callback: ::core::option::Option<
unsafe extern "C" fn(node: ArkUI_NodeHandle, timestamp: u64, targetTimestamp: u64),
>,
) -> i32;
/// UnRegister the onFrame callback for the XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
///
/// Version: 1.0
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_XComponent_UnregisterOnFrameCallback(node: ArkUI_NodeHandle) -> i32;
/// Set whether the XComponent node needs soft keyboard when focused.
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// * `needSoftKeyboard` - Indicates whether the XComponent node needs soft keyboard or not.
/// Default value is false.
///
/// # Returns
///
/// * Returns the status code of the execution.
/// [`ARKUI_ERROR_CODE_NO_ERROR`] the execution is successful.
/// [`ARKUI_ERROR_CODE_PARAM_INVALID`] if a parameter error occurs.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_XComponent_SetNeedSoftKeyboard(
node: ArkUI_NodeHandle,
needSoftKeyboard: bool,
) -> i32;
/// Create a <b>ArkUI_AccessibilityProvider</b> object from an XComponent node.
///
/// # Arguments
///
/// * `node` - Indicates the pointer to the XComponent node.
///
/// # Returns
///
/// * Returns the created <b>ArkUI_AccessibilityProvider</b> object's pointer.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_AccessibilityProvider_Create(
node: ArkUI_NodeHandle,
) -> *mut ArkUI_AccessibilityProvider;
/// Disposes of an <b>ArkUI_AccessibilityProvider</b> object.
///
/// # Arguments
///
/// * `provider` - Indicates the pointer to <b>ArkUI_AccessibilityProvider</b> object needed to dispose.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_AccessibilityProvider_Dispose(provider: *mut ArkUI_AccessibilityProvider);
/// Set the surface show event of the surface callback.
///
/// # Arguments
///
/// * `callback` - Indicated the pointer to the surface callback.
///
/// * `onSurfaceShow` - Indicates the surface show callback event which will called when the surface is shown.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_SurfaceCallback_SetSurfaceShowEvent(
callback: *mut OH_ArkUI_SurfaceCallback,
onSurfaceShow: ::core::option::Option<
unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
>,
);
/// Set the surface hide event of the surface callback.
///
/// # Arguments
///
/// * `callback` - Indicated the pointer to the surface callback.
///
/// * `onSurfaceHide` - Indicates the surface hide callback event which will called when the surface is hide.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_ArkUI_SurfaceCallback_SetSurfaceHideEvent(
callback: *mut OH_ArkUI_SurfaceCallback,
onSurfaceHide: ::core::option::Option<
unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
>,
);
}