1#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6#[cfg(feature = "api-13")]
7use ohos_sys_opaque_types::ArkUI_AccessibilityProvider;
8#[cfg(feature = "api-19")]
9use ohos_sys_opaque_types::{ArkUI_NodeHandle, OHNativeWindow};
10
11pub const OH_NATIVE_XCOMPONENT_OBJ: &::core::ffi::CStr = c"__NATIVE_XCOMPONENT_OBJ__";
12pub const OH_NATIVE_XCOMPONENT_MAX_TOUCH_POINTS_NUMBER: u32 = 10;
13impl OH_NativeXComponent_KeyCode {
14 pub const KEY_UNKNOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(-1);
15 pub const KEY_FN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(0);
16 pub const KEY_HOME: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(1);
17 pub const KEY_BACK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2);
18 pub const KEY_MEDIA_PLAY_PAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(10);
19 pub const KEY_MEDIA_STOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(11);
20 pub const KEY_MEDIA_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(12);
21 pub const KEY_MEDIA_PREVIOUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(13);
22 pub const KEY_MEDIA_REWIND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(14);
23 pub const KEY_MEDIA_FAST_FORWARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(15);
24 pub const KEY_VOLUME_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(16);
25 pub const KEY_VOLUME_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(17);
26 pub const KEY_POWER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(18);
27 pub const KEY_CAMERA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(19);
28 pub const KEY_VOLUME_MUTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(22);
29 pub const KEY_MUTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(23);
30 pub const KEY_BRIGHTNESS_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(40);
31 pub const KEY_BRIGHTNESS_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(41);
32 pub const KEY_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2000);
33 pub const KEY_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2001);
34 pub const KEY_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2002);
35 pub const KEY_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2003);
36 pub const KEY_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2004);
37 pub const KEY_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2005);
38 pub const KEY_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2006);
39 pub const KEY_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2007);
40 pub const KEY_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2008);
41 pub const KEY_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2009);
42 pub const KEY_STAR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2010);
43 pub const KEY_POUND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2011);
44 pub const KEY_DPAD_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2012);
45 pub const KEY_DPAD_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2013);
46 pub const KEY_DPAD_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2014);
47 pub const KEY_DPAD_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2015);
48 pub const KEY_DPAD_CENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2016);
49 pub const KEY_A: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2017);
50 pub const KEY_B: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2018);
51 pub const KEY_C: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2019);
52 pub const KEY_D: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2020);
53 pub const KEY_E: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2021);
54 pub const KEY_F: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2022);
55 pub const KEY_G: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2023);
56 pub const KEY_H: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2024);
57 pub const KEY_I: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2025);
58 pub const KEY_J: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2026);
59 pub const KEY_K: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2027);
60 pub const KEY_L: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2028);
61 pub const KEY_M: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2029);
62 pub const KEY_N: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2030);
63 pub const KEY_O: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2031);
64 pub const KEY_P: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2032);
65 pub const KEY_Q: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2033);
66 pub const KEY_R: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2034);
67 pub const KEY_S: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2035);
68 pub const KEY_T: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2036);
69 pub const KEY_U: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2037);
70 pub const KEY_V: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2038);
71 pub const KEY_W: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2039);
72 pub const KEY_X: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2040);
73 pub const KEY_Y: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2041);
74 pub const KEY_Z: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2042);
75 pub const KEY_COMMA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2043);
76 pub const KEY_PERIOD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2044);
77 pub const KEY_ALT_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2045);
78 pub const KEY_ALT_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2046);
79 pub const KEY_SHIFT_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2047);
80 pub const KEY_SHIFT_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2048);
81 pub const KEY_TAB: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2049);
82 pub const KEY_SPACE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2050);
83 pub const KEY_SYM: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2051);
84 pub const KEY_EXPLORER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2052);
85 pub const KEY_ENVELOPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2053);
86 pub const KEY_ENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2054);
87 pub const KEY_DEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2055);
88 pub const KEY_GRAVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2056);
89 pub const KEY_MINUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2057);
90 pub const KEY_EQUALS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2058);
91 pub const KEY_LEFT_BRACKET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2059);
92 pub const KEY_RIGHT_BRACKET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2060);
93 pub const KEY_BACKSLASH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2061);
94 pub const KEY_SEMICOLON: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2062);
95 pub const KEY_APOSTROPHE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2063);
96 pub const KEY_SLASH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2064);
97 pub const KEY_AT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2065);
98 pub const KEY_PLUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2066);
99 pub const KEY_MENU: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2067);
100 pub const KEY_PAGE_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2068);
101 pub const KEY_PAGE_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2069);
102 pub const KEY_ESCAPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2070);
103 pub const KEY_FORWARD_DEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2071);
104 pub const KEY_CTRL_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2072);
105 pub const KEY_CTRL_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2073);
106 pub const KEY_CAPS_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2074);
107 pub const KEY_SCROLL_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2075);
108 pub const KEY_META_LEFT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2076);
109 pub const KEY_META_RIGHT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2077);
110 pub const KEY_FUNCTION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2078);
111 pub const KEY_SYSRQ: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2079);
112 pub const KEY_BREAK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2080);
113 pub const KEY_MOVE_HOME: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2081);
114 pub const KEY_MOVE_END: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2082);
115 pub const KEY_INSERT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2083);
116 pub const KEY_FORWARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2084);
117 pub const KEY_MEDIA_PLAY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2085);
118 pub const KEY_MEDIA_PAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2086);
119 pub const KEY_MEDIA_CLOSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2087);
120 pub const KEY_MEDIA_EJECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2088);
121 pub const KEY_MEDIA_RECORD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2089);
122 pub const KEY_F1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2090);
123 pub const KEY_F2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2091);
124 pub const KEY_F3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2092);
125 pub const KEY_F4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2093);
126 pub const KEY_F5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2094);
127 pub const KEY_F6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2095);
128 pub const KEY_F7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2096);
129 pub const KEY_F8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2097);
130 pub const KEY_F9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2098);
131 pub const KEY_F10: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2099);
132 pub const KEY_F11: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2100);
133 pub const KEY_F12: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2101);
134 pub const KEY_NUM_LOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2102);
135 pub const KEY_NUMPAD_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2103);
136 pub const KEY_NUMPAD_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2104);
137 pub const KEY_NUMPAD_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2105);
138 pub const KEY_NUMPAD_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2106);
139 pub const KEY_NUMPAD_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2107);
140 pub const KEY_NUMPAD_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2108);
141 pub const KEY_NUMPAD_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2109);
142 pub const KEY_NUMPAD_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2110);
143 pub const KEY_NUMPAD_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2111);
144 pub const KEY_NUMPAD_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2112);
145 pub const KEY_NUMPAD_DIVIDE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2113);
146 pub const KEY_NUMPAD_MULTIPLY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2114);
147 pub const KEY_NUMPAD_SUBTRACT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2115);
148 pub const KEY_NUMPAD_ADD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2116);
149 pub const KEY_NUMPAD_DOT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2117);
150 pub const KEY_NUMPAD_COMMA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2118);
151 pub const KEY_NUMPAD_ENTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2119);
152 pub const KEY_NUMPAD_EQUALS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2120);
153 pub const KEY_NUMPAD_LEFT_PAREN: OH_NativeXComponent_KeyCode =
154 OH_NativeXComponent_KeyCode(2121);
155 pub const KEY_NUMPAD_RIGHT_PAREN: OH_NativeXComponent_KeyCode =
156 OH_NativeXComponent_KeyCode(2122);
157 pub const KEY_VIRTUAL_MULTITASK: OH_NativeXComponent_KeyCode =
158 OH_NativeXComponent_KeyCode(2210);
159 pub const KEY_SLEEP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2600);
160 pub const KEY_ZENKAKU_HANKAKU: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2601);
161 pub const KEY_102ND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2602);
162 pub const KEY_RO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2603);
163 pub const KEY_KATAKANA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2604);
164 pub const KEY_HIRAGANA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2605);
165 pub const KEY_HENKAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2606);
166 pub const KEY_KATAKANA_HIRAGANA: OH_NativeXComponent_KeyCode =
167 OH_NativeXComponent_KeyCode(2607);
168 pub const KEY_MUHENKAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2608);
169 pub const KEY_LINEFEED: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2609);
170 pub const KEY_MACRO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2610);
171 pub const KEY_NUMPAD_PLUSMINUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2611);
172 pub const KEY_SCALE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2612);
173 pub const KEY_HANGUEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2613);
174 pub const KEY_HANJA: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2614);
175 pub const KEY_YEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2615);
176 pub const KEY_STOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2616);
177 pub const KEY_AGAIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2617);
178 pub const KEY_PROPS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2618);
179 pub const KEY_UNDO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2619);
180 pub const KEY_COPY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2620);
181 pub const KEY_OPEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2621);
182 pub const KEY_PASTE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2622);
183 pub const KEY_FIND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2623);
184 pub const KEY_CUT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2624);
185 pub const KEY_HELP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2625);
186 pub const KEY_CALC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2626);
187 pub const KEY_FILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2627);
188 pub const KEY_BOOKMARKS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2628);
189 pub const KEY_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2629);
190 pub const KEY_PLAYPAUSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2630);
191 pub const KEY_PREVIOUS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2631);
192 pub const KEY_STOPCD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2632);
193 pub const KEY_CONFIG: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2634);
194 pub const KEY_REFRESH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2635);
195 pub const KEY_EXIT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2636);
196 pub const KEY_EDIT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2637);
197 pub const KEY_SCROLLUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2638);
198 pub const KEY_SCROLLDOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2639);
199 pub const KEY_NEW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2640);
200 pub const KEY_REDO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2641);
201 pub const KEY_CLOSE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2642);
202 pub const KEY_PLAY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2643);
203 pub const KEY_BASSBOOST: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2644);
204 pub const KEY_PRINT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2645);
205 pub const KEY_CHAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2646);
206 pub const KEY_FINANCE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2647);
207 pub const KEY_CANCEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2648);
208 pub const KEY_KBDILLUM_TOGGLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2649);
209 pub const KEY_KBDILLUM_DOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2650);
210 pub const KEY_KBDILLUM_UP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2651);
211 pub const KEY_SEND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2652);
212 pub const KEY_REPLY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2653);
213 pub const KEY_FORWARDMAIL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2654);
214 pub const KEY_SAVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2655);
215 pub const KEY_DOCUMENTS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2656);
216 pub const KEY_VIDEO_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2657);
217 pub const KEY_VIDEO_PREV: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2658);
218 pub const KEY_BRIGHTNESS_CYCLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2659);
219 pub const KEY_BRIGHTNESS_ZERO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2660);
220 pub const KEY_DISPLAY_OFF: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2661);
221 pub const KEY_BTN_MISC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2662);
222 pub const KEY_GOTO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2663);
223 pub const KEY_INFO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2664);
224 pub const KEY_PROGRAM: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2665);
225 pub const KEY_PVR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2666);
226 pub const KEY_SUBTITLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2667);
227 pub const KEY_FULL_SCREEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2668);
228 pub const KEY_KEYBOARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2669);
229 pub const KEY_ASPECT_RATIO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2670);
230 pub const KEY_PC: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2671);
231 pub const KEY_TV: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2672);
232 pub const KEY_TV2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2673);
233 pub const KEY_VCR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2674);
234 pub const KEY_VCR2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2675);
235 pub const KEY_SAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2676);
236 pub const KEY_CD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2677);
237 pub const KEY_TAPE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2678);
238 pub const KEY_TUNER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2679);
239 pub const KEY_PLAYER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2680);
240 pub const KEY_DVD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2681);
241 pub const KEY_AUDIO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2682);
242 pub const KEY_VIDEO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2683);
243 pub const KEY_MEMO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2684);
244 pub const KEY_CALENDAR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2685);
245 pub const KEY_RED: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2686);
246 pub const KEY_GREEN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2687);
247 pub const KEY_YELLOW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2688);
248 pub const KEY_BLUE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2689);
249 pub const KEY_CHANNELUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2690);
250 pub const KEY_CHANNELDOWN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2691);
251 pub const KEY_LAST: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2692);
252 pub const KEY_RESTART: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2693);
253 pub const KEY_SLOW: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2694);
254 pub const KEY_SHUFFLE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2695);
255 pub const KEY_VIDEOPHONE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2696);
256 pub const KEY_GAMES: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2697);
257 pub const KEY_ZOOMIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2698);
258 pub const KEY_ZOOMOUT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2699);
259 pub const KEY_ZOOMRESET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2700);
260 pub const KEY_WORDPROCESSOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2701);
261 pub const KEY_EDITOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2702);
262 pub const KEY_SPREADSHEET: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2703);
263 pub const KEY_GRAPHICSEDITOR: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2704);
264 pub const KEY_PRESENTATION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2705);
265 pub const KEY_DATABASE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2706);
266 pub const KEY_NEWS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2707);
267 pub const KEY_VOICEMAIL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2708);
268 pub const KEY_ADDRESSBOOK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2709);
269 pub const KEY_MESSENGER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2710);
270 pub const KEY_BRIGHTNESS_TOGGLE: OH_NativeXComponent_KeyCode =
271 OH_NativeXComponent_KeyCode(2711);
272 pub const KEY_SPELLCHECK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2712);
273 pub const KEY_COFFEE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2713);
274 pub const KEY_MEDIA_REPEAT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2714);
275 pub const KEY_IMAGES: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2715);
276 pub const KEY_BUTTONCONFIG: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2716);
277 pub const KEY_TASKMANAGER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2717);
278 pub const KEY_JOURNAL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2718);
279 pub const KEY_CONTROLPANEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2719);
280 pub const KEY_APPSELECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2720);
281 pub const KEY_SCREENSAVER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2721);
282 pub const KEY_ASSISTANT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2722);
283 pub const KEY_KBD_LAYOUT_NEXT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2723);
284 pub const KEY_BRIGHTNESS_MIN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2724);
285 pub const KEY_BRIGHTNESS_MAX: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2725);
286 pub const KEY_KBDINPUTASSIST_PREV: OH_NativeXComponent_KeyCode =
287 OH_NativeXComponent_KeyCode(2726);
288 pub const KEY_KBDINPUTASSIST_NEXT: OH_NativeXComponent_KeyCode =
289 OH_NativeXComponent_KeyCode(2727);
290 pub const KEY_KBDINPUTASSIST_PREVGROUP: OH_NativeXComponent_KeyCode =
291 OH_NativeXComponent_KeyCode(2728);
292 pub const KEY_KBDINPUTASSIST_NEXTGROUP: OH_NativeXComponent_KeyCode =
293 OH_NativeXComponent_KeyCode(2729);
294 pub const KEY_KBDINPUTASSIST_ACCEPT: OH_NativeXComponent_KeyCode =
295 OH_NativeXComponent_KeyCode(2730);
296 pub const KEY_KBDINPUTASSIST_CANCEL: OH_NativeXComponent_KeyCode =
297 OH_NativeXComponent_KeyCode(2731);
298 pub const KEY_FRONT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2800);
299 pub const KEY_SETUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2801);
300 pub const KEY_WAKEUP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2802);
301 pub const KEY_SENDFILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2803);
302 pub const KEY_DELETEFILE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2804);
303 pub const KEY_XFER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2805);
304 pub const KEY_PROG1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2806);
305 pub const KEY_PROG2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2807);
306 pub const KEY_MSDOS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2808);
307 pub const KEY_SCREENLOCK: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2809);
308 pub const KEY_DIRECTION_ROTATE_DISPLAY: OH_NativeXComponent_KeyCode =
309 OH_NativeXComponent_KeyCode(2810);
310 pub const KEY_CYCLEWINDOWS: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2811);
311 pub const KEY_COMPUTER: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2812);
312 pub const KEY_EJECTCLOSECD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2813);
313 pub const KEY_ISO: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2814);
314 pub const KEY_MOVE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2815);
315 pub const KEY_F13: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2816);
316 pub const KEY_F14: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2817);
317 pub const KEY_F15: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2818);
318 pub const KEY_F16: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2819);
319 pub const KEY_F17: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2820);
320 pub const KEY_F18: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2821);
321 pub const KEY_F19: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2822);
322 pub const KEY_F20: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2823);
323 pub const KEY_F21: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2824);
324 pub const KEY_F22: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2825);
325 pub const KEY_F23: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2826);
326 pub const KEY_F24: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2827);
327 pub const KEY_PROG3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2828);
328 pub const KEY_PROG4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2829);
329 pub const KEY_DASHBOARD: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2830);
330 pub const KEY_SUSPEND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2831);
331 pub const KEY_HP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2832);
332 pub const KEY_SOUND: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2833);
333 pub const KEY_QUESTION: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2834);
334 pub const KEY_CONNECT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2836);
335 pub const KEY_SPORT: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2837);
336 pub const KEY_SHOP: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2838);
337 pub const KEY_ALTERASE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2839);
338 pub const KEY_SWITCHVIDEOMODE: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2841);
339 pub const KEY_BATTERY: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2842);
340 pub const KEY_BLUETOOTH: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2843);
341 pub const KEY_WLAN: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2844);
342 pub const KEY_UWB: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2845);
343 pub const KEY_WWAN_WIMAX: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2846);
344 pub const KEY_RFKILL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(2847);
345 pub const KEY_CHANNEL: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3001);
346 pub const KEY_BTN_0: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3100);
347 pub const KEY_BTN_1: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3101);
348 pub const KEY_BTN_2: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3102);
349 pub const KEY_BTN_3: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3103);
350 pub const KEY_BTN_4: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3104);
351 pub const KEY_BTN_5: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3105);
352 pub const KEY_BTN_6: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3106);
353 pub const KEY_BTN_7: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3107);
354 pub const KEY_BTN_8: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3108);
355 pub const KEY_BTN_9: OH_NativeXComponent_KeyCode = OH_NativeXComponent_KeyCode(3109);
356}
357#[repr(transparent)]
358#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
365pub struct OH_NativeXComponent_KeyCode(pub ::core::ffi::c_int);
366impl OH_NativeXComponent_KeyAction {
367 pub const OH_NATIVEXCOMPONENT_KEY_ACTION_UNKNOWN: OH_NativeXComponent_KeyAction =
368 OH_NativeXComponent_KeyAction(-1);
369 pub const OH_NATIVEXCOMPONENT_KEY_ACTION_DOWN: OH_NativeXComponent_KeyAction =
370 OH_NativeXComponent_KeyAction(0);
371 pub const OH_NATIVEXCOMPONENT_KEY_ACTION_UP: OH_NativeXComponent_KeyAction =
372 OH_NativeXComponent_KeyAction(1);
373}
374#[repr(transparent)]
375#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
382pub struct OH_NativeXComponent_KeyAction(pub ::core::ffi::c_int);
383pub const OH_XCOMPONENT_ID_LEN_MAX: u32 = 128;
384pub const OH_MAX_TOUCH_POINTS_NUMBER: u32 = 10;
385impl OH_NativeXComponent_TouchEventType {
386 pub const OH_NATIVEXCOMPONENT_DOWN: OH_NativeXComponent_TouchEventType =
388 OH_NativeXComponent_TouchEventType(0);
389 pub const OH_NATIVEXCOMPONENT_UP: OH_NativeXComponent_TouchEventType =
391 OH_NativeXComponent_TouchEventType(1);
392 pub const OH_NATIVEXCOMPONENT_MOVE: OH_NativeXComponent_TouchEventType =
394 OH_NativeXComponent_TouchEventType(2);
395 pub const OH_NATIVEXCOMPONENT_CANCEL: OH_NativeXComponent_TouchEventType =
397 OH_NativeXComponent_TouchEventType(3);
398 pub const OH_NATIVEXCOMPONENT_UNKNOWN: OH_NativeXComponent_TouchEventType =
400 OH_NativeXComponent_TouchEventType(4);
401}
402#[repr(transparent)]
403#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
410pub struct OH_NativeXComponent_TouchEventType(pub ::core::ffi::c_uint);
411impl OH_NativeXComponent_TouchPointToolType {
412 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN: OH_NativeXComponent_TouchPointToolType =
414 OH_NativeXComponent_TouchPointToolType(0);
415 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER: OH_NativeXComponent_TouchPointToolType =
417 OH_NativeXComponent_TouchPointToolType(1);
418 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN: OH_NativeXComponent_TouchPointToolType =
420 OH_NativeXComponent_TouchPointToolType(2);
421 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER: OH_NativeXComponent_TouchPointToolType =
423 OH_NativeXComponent_TouchPointToolType(3);
424 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH: OH_NativeXComponent_TouchPointToolType =
426 OH_NativeXComponent_TouchPointToolType(4);
427 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL: OH_NativeXComponent_TouchPointToolType =
429 OH_NativeXComponent_TouchPointToolType(5);
430 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH: OH_NativeXComponent_TouchPointToolType =
432 OH_NativeXComponent_TouchPointToolType(6);
433 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE: OH_NativeXComponent_TouchPointToolType =
435 OH_NativeXComponent_TouchPointToolType(7);
436 pub const OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS: OH_NativeXComponent_TouchPointToolType =
438 OH_NativeXComponent_TouchPointToolType(8);
439}
440#[repr(transparent)]
441#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
448pub struct OH_NativeXComponent_TouchPointToolType(pub ::core::ffi::c_uint);
449impl OH_NativeXComponent_EventSourceType {
450 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN: OH_NativeXComponent_EventSourceType =
452 OH_NativeXComponent_EventSourceType(0);
453 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE: OH_NativeXComponent_EventSourceType =
455 OH_NativeXComponent_EventSourceType(1);
456 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN: OH_NativeXComponent_EventSourceType =
458 OH_NativeXComponent_EventSourceType(2);
459 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD: OH_NativeXComponent_EventSourceType =
461 OH_NativeXComponent_EventSourceType(3);
462 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK: OH_NativeXComponent_EventSourceType =
464 OH_NativeXComponent_EventSourceType(4);
465 pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType =
472 OH_NativeXComponent_EventSourceType(5);
473}
474#[repr(transparent)]
475#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
482pub struct OH_NativeXComponent_EventSourceType(pub ::core::ffi::c_uint);
483impl OH_NativeXComponent_MouseEventAction {
484 pub const OH_NATIVEXCOMPONENT_MOUSE_NONE: OH_NativeXComponent_MouseEventAction =
485 OH_NativeXComponent_MouseEventAction(0);
486 pub const OH_NATIVEXCOMPONENT_MOUSE_PRESS: OH_NativeXComponent_MouseEventAction =
487 OH_NativeXComponent_MouseEventAction(1);
488 pub const OH_NATIVEXCOMPONENT_MOUSE_RELEASE: OH_NativeXComponent_MouseEventAction =
489 OH_NativeXComponent_MouseEventAction(2);
490 pub const OH_NATIVEXCOMPONENT_MOUSE_MOVE: OH_NativeXComponent_MouseEventAction =
491 OH_NativeXComponent_MouseEventAction(3);
492 #[cfg(feature = "api-18")]
496 #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
497 pub const OH_NATIVEXCOMPONENT_MOUSE_CANCEL: OH_NativeXComponent_MouseEventAction =
498 OH_NativeXComponent_MouseEventAction(4);
499}
500#[repr(transparent)]
501#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
508pub struct OH_NativeXComponent_MouseEventAction(pub ::core::ffi::c_uint);
509impl OH_NativeXComponent_MouseEventButton {
510 pub const OH_NATIVEXCOMPONENT_NONE_BUTTON: OH_NativeXComponent_MouseEventButton =
511 OH_NativeXComponent_MouseEventButton(0);
512 pub const OH_NATIVEXCOMPONENT_LEFT_BUTTON: OH_NativeXComponent_MouseEventButton =
513 OH_NativeXComponent_MouseEventButton(1);
514 pub const OH_NATIVEXCOMPONENT_RIGHT_BUTTON: OH_NativeXComponent_MouseEventButton =
515 OH_NativeXComponent_MouseEventButton(2);
516 pub const OH_NATIVEXCOMPONENT_MIDDLE_BUTTON: OH_NativeXComponent_MouseEventButton =
517 OH_NativeXComponent_MouseEventButton(4);
518 pub const OH_NATIVEXCOMPONENT_BACK_BUTTON: OH_NativeXComponent_MouseEventButton =
519 OH_NativeXComponent_MouseEventButton(8);
520 pub const OH_NATIVEXCOMPONENT_FORWARD_BUTTON: OH_NativeXComponent_MouseEventButton =
521 OH_NativeXComponent_MouseEventButton(16);
522}
523#[repr(transparent)]
524#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
531pub struct OH_NativeXComponent_MouseEventButton(pub ::core::ffi::c_uint);
532impl OH_NativeXComponent_TouchEvent_SourceTool {
533 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_UNKNOWN: OH_NativeXComponent_TouchEvent_SourceTool =
534 OH_NativeXComponent_TouchEvent_SourceTool(0);
535 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_FINGER: OH_NativeXComponent_TouchEvent_SourceTool =
536 OH_NativeXComponent_TouchEvent_SourceTool(1);
537 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_PEN: OH_NativeXComponent_TouchEvent_SourceTool =
538 OH_NativeXComponent_TouchEvent_SourceTool(2);
539 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_RUBBER: OH_NativeXComponent_TouchEvent_SourceTool =
540 OH_NativeXComponent_TouchEvent_SourceTool(3);
541 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_BRUSH: OH_NativeXComponent_TouchEvent_SourceTool =
542 OH_NativeXComponent_TouchEvent_SourceTool(4);
543 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_PENCIL: OH_NativeXComponent_TouchEvent_SourceTool =
544 OH_NativeXComponent_TouchEvent_SourceTool(5);
545 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_AIRBRUSH: OH_NativeXComponent_TouchEvent_SourceTool =
546 OH_NativeXComponent_TouchEvent_SourceTool(6);
547 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_MOUSE: OH_NativeXComponent_TouchEvent_SourceTool =
548 OH_NativeXComponent_TouchEvent_SourceTool(7);
549 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_LENS: OH_NativeXComponent_TouchEvent_SourceTool =
550 OH_NativeXComponent_TouchEvent_SourceTool(8);
551 pub const OH_NATIVEXCOMPONENT_SOURCETOOL_TOUCHPAD: OH_NativeXComponent_TouchEvent_SourceTool =
552 OH_NativeXComponent_TouchEvent_SourceTool(9);
553}
554#[repr(transparent)]
555#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
562pub struct OH_NativeXComponent_TouchEvent_SourceTool(pub ::core::ffi::c_uint);
563#[repr(C)]
570#[derive(Debug, Copy, Clone)]
571pub struct OH_NativeXComponent_HistoricalPoint {
572 pub id: i32,
574 pub screenX: f32,
576 pub screenY: f32,
578 pub x: f32,
580 pub y: f32,
582 pub type_: OH_NativeXComponent_TouchEventType,
584 pub size: f64,
586 pub force: f32,
588 pub timeStamp: i64,
590 pub titlX: f32,
592 pub titlY: f32,
594 pub sourceTool: OH_NativeXComponent_TouchEvent_SourceTool,
596}
597#[repr(C)]
604#[derive(Debug, Copy, Clone)]
605pub struct OH_NativeXComponent_TouchPoint {
606 pub id: i32,
608 pub screenX: f32,
610 pub screenY: f32,
612 pub x: f32,
614 pub y: f32,
616 pub type_: OH_NativeXComponent_TouchEventType,
618 pub size: f64,
620 pub force: f32,
622 pub timeStamp: i64,
624 pub isPressed: bool,
626}
627#[repr(C)]
634#[derive(Debug, Copy, Clone)]
635pub struct OH_NativeXComponent_TouchEvent {
636 pub id: i32,
638 pub screenX: f32,
640 pub screenY: f32,
642 pub x: f32,
644 pub y: f32,
646 pub type_: OH_NativeXComponent_TouchEventType,
648 pub size: f64,
650 pub force: f32,
652 pub deviceId: i64,
654 pub timeStamp: i64,
656 pub touchPoints: [OH_NativeXComponent_TouchPoint; 10usize],
658 pub numPoints: u32,
660}
661#[repr(C)]
668#[derive(Debug, Copy, Clone)]
669pub struct OH_NativeXComponent_MouseEvent {
670 pub x: f32,
672 pub y: f32,
674 pub screenX: f32,
676 pub screenY: f32,
678 pub timestamp: i64,
680 pub action: OH_NativeXComponent_MouseEventAction,
682 pub button: OH_NativeXComponent_MouseEventButton,
684}
685#[repr(C)]
692pub struct OH_NativeXComponent {
693 _unused: [u8; 0],
694}
695#[repr(C)]
702#[derive(Debug, Copy, Clone)]
703pub struct OH_NativeXComponent_Callback {
704 pub OnSurfaceCreated: ::core::option::Option<
706 unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
707 >,
708 pub OnSurfaceChanged: ::core::option::Option<
710 unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
711 >,
712 pub OnSurfaceDestroyed: ::core::option::Option<
714 unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
715 >,
716 pub DispatchTouchEvent: ::core::option::Option<
718 unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
719 >,
720}
721#[repr(C)]
728#[derive(Debug, Copy, Clone)]
729pub struct OH_NativeXComponent_MouseEvent_Callback {
730 pub DispatchMouseEvent: ::core::option::Option<
732 unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut ::core::ffi::c_void),
733 >,
734 pub DispatchHoverEvent: ::core::option::Option<
736 unsafe extern "C" fn(component: *mut OH_NativeXComponent, isHover: bool),
737 >,
738}
739#[repr(C)]
746pub struct OH_NativeXComponent_KeyEvent {
747 _unused: [u8; 0],
748}
749#[cfg(feature = "api-11")]
756#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
757#[repr(C)]
758#[derive(Debug, Copy, Clone)]
759pub struct OH_NativeXComponent_ExpectedRateRange {
760 pub min: i32,
762 pub max: i32,
764 pub expected: i32,
766}
767#[cfg(feature = "api-20")]
775#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
776#[repr(C)]
777pub struct OH_NativeXComponent_ExtraMouseEventInfo {
778 _unused: [u8; 0],
779}
780#[cfg(feature = "api-19")]
785#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
786#[repr(C)]
787pub struct OH_ArkUI_SurfaceHolder {
788 _unused: [u8; 0],
789}
790#[cfg(feature = "api-19")]
795#[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
796#[repr(C)]
797pub struct OH_ArkUI_SurfaceCallback {
798 _unused: [u8; 0],
799}
800extern "C" {
801 pub fn OH_NativeXComponent_GetXComponentId(
825 component: *mut OH_NativeXComponent,
826 id: *mut ::core::ffi::c_char,
827 size: *mut u64,
828 ) -> i32;
829 pub fn OH_NativeXComponent_GetXComponentSize(
849 component: *mut OH_NativeXComponent,
850 window: *const ::core::ffi::c_void,
851 width: *mut u64,
852 height: *mut u64,
853 ) -> i32;
854 pub fn OH_NativeXComponent_GetXComponentOffset(
874 component: *mut OH_NativeXComponent,
875 window: *const ::core::ffi::c_void,
876 x: *mut f64,
877 y: *mut f64,
878 ) -> i32;
879 pub fn OH_NativeXComponent_GetTouchEvent(
897 component: *mut OH_NativeXComponent,
898 window: *const ::core::ffi::c_void,
899 touchEvent: *mut OH_NativeXComponent_TouchEvent,
900 ) -> i32;
901 pub fn OH_NativeXComponent_GetTouchPointToolType(
919 component: *mut OH_NativeXComponent,
920 pointIndex: u32,
921 toolType: *mut OH_NativeXComponent_TouchPointToolType,
922 ) -> i32;
923 pub fn OH_NativeXComponent_GetTouchPointTiltX(
941 component: *mut OH_NativeXComponent,
942 pointIndex: u32,
943 tiltX: *mut f32,
944 ) -> i32;
945 pub fn OH_NativeXComponent_GetTouchPointTiltY(
963 component: *mut OH_NativeXComponent,
964 pointIndex: u32,
965 tiltY: *mut f32,
966 ) -> i32;
967 #[cfg(feature = "api-12")]
993 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
994 pub fn OH_NativeXComponent_GetTouchPointWindowX(
995 component: *mut OH_NativeXComponent,
996 pointIndex: u32,
997 windowX: *mut f32,
998 ) -> i32;
999 #[cfg(feature = "api-12")]
1025 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1026 pub fn OH_NativeXComponent_GetTouchPointWindowY(
1027 component: *mut OH_NativeXComponent,
1028 pointIndex: u32,
1029 windowY: *mut f32,
1030 ) -> i32;
1031 #[cfg(feature = "api-12")]
1057 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1058 pub fn OH_NativeXComponent_GetTouchPointDisplayX(
1059 component: *mut OH_NativeXComponent,
1060 pointIndex: u32,
1061 displayX: *mut f32,
1062 ) -> i32;
1063 #[cfg(feature = "api-12")]
1089 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1090 pub fn OH_NativeXComponent_GetTouchPointDisplayY(
1091 component: *mut OH_NativeXComponent,
1092 pointIndex: u32,
1093 displayY: *mut f32,
1094 ) -> i32;
1095 pub fn OH_NativeXComponent_GetHistoricalPoints(
1115 component: *mut OH_NativeXComponent,
1116 window: *const ::core::ffi::c_void,
1117 size: *mut i32,
1118 historicalPoints: *mut *mut OH_NativeXComponent_HistoricalPoint,
1119 ) -> i32;
1120 pub fn OH_NativeXComponent_GetMouseEvent(
1138 component: *mut OH_NativeXComponent,
1139 window: *const ::core::ffi::c_void,
1140 mouseEvent: *mut OH_NativeXComponent_MouseEvent,
1141 ) -> i32;
1142 pub fn OH_NativeXComponent_RegisterCallback(
1158 component: *mut OH_NativeXComponent,
1159 callback: *mut OH_NativeXComponent_Callback,
1160 ) -> i32;
1161 pub fn OH_NativeXComponent_RegisterMouseEventCallback(
1177 component: *mut OH_NativeXComponent,
1178 callback: *mut OH_NativeXComponent_MouseEvent_Callback,
1179 ) -> i32;
1180 #[cfg(feature = "api-20")]
1198 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1199 pub fn OH_NativeXComponent_GetExtraMouseEventInfo(
1200 component: *mut OH_NativeXComponent,
1201 extraMouseEventInfo: *mut *mut OH_NativeXComponent_ExtraMouseEventInfo,
1202 ) -> i32;
1203 #[cfg(feature = "api-20")]
1223 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1224 pub fn OH_NativeXComponent_GetMouseEventModifierKeyStates(
1225 extraMouseEventInfo: *mut OH_NativeXComponent_ExtraMouseEventInfo,
1226 keys: *mut u64,
1227 ) -> i32;
1228 pub fn OH_NativeXComponent_RegisterFocusEventCallback(
1244 component: *mut OH_NativeXComponent,
1245 callback: ::core::option::Option<
1246 unsafe extern "C" fn(
1247 component: *mut OH_NativeXComponent,
1248 window: *mut ::core::ffi::c_void,
1249 ),
1250 >,
1251 ) -> i32;
1252 pub fn OH_NativeXComponent_RegisterKeyEventCallback(
1268 component: *mut OH_NativeXComponent,
1269 callback: ::core::option::Option<
1270 unsafe extern "C" fn(
1271 component: *mut OH_NativeXComponent,
1272 window: *mut ::core::ffi::c_void,
1273 ),
1274 >,
1275 ) -> i32;
1276 pub fn OH_NativeXComponent_RegisterBlurEventCallback(
1292 component: *mut OH_NativeXComponent,
1293 callback: ::core::option::Option<
1294 unsafe extern "C" fn(
1295 component: *mut OH_NativeXComponent,
1296 window: *mut ::core::ffi::c_void,
1297 ),
1298 >,
1299 ) -> i32;
1300 pub fn OH_NativeXComponent_GetKeyEvent(
1316 component: *mut OH_NativeXComponent,
1317 keyEvent: *mut *mut OH_NativeXComponent_KeyEvent,
1318 ) -> i32;
1319 pub fn OH_NativeXComponent_GetKeyEventAction(
1335 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1336 action: *mut OH_NativeXComponent_KeyAction,
1337 ) -> i32;
1338 pub fn OH_NativeXComponent_GetKeyEventCode(
1354 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1355 code: *mut OH_NativeXComponent_KeyCode,
1356 ) -> i32;
1357 pub fn OH_NativeXComponent_GetKeyEventSourceType(
1373 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1374 sourceType: *mut OH_NativeXComponent_EventSourceType,
1375 ) -> i32;
1376 pub fn OH_NativeXComponent_GetKeyEventDeviceId(
1392 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1393 deviceId: *mut i64,
1394 ) -> i32;
1395 pub fn OH_NativeXComponent_GetKeyEventTimestamp(
1411 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1412 timestamp: *mut i64,
1413 ) -> i32;
1414 #[cfg(feature = "api-20")]
1434 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1435 pub fn OH_NativeXComponent_GetKeyEventModifierKeyStates(
1436 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1437 keys: *mut u64,
1438 ) -> i32;
1439 #[cfg(feature = "api-20")]
1457 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1458 pub fn OH_NativeXComponent_GetKeyEventNumLockState(
1459 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1460 isNumLockOn: *mut bool,
1461 ) -> i32;
1462 #[cfg(feature = "api-20")]
1480 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1481 pub fn OH_NativeXComponent_GetKeyEventCapsLockState(
1482 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1483 isCapsLockOn: *mut bool,
1484 ) -> i32;
1485 #[cfg(feature = "api-20")]
1503 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
1504 pub fn OH_NativeXComponent_GetKeyEventScrollLockState(
1505 keyEvent: *mut OH_NativeXComponent_KeyEvent,
1506 isScrollLockOn: *mut bool,
1507 ) -> i32;
1508 #[cfg(feature = "api-11")]
1524 #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
1525 pub fn OH_NativeXComponent_SetExpectedFrameRateRange(
1526 component: *mut OH_NativeXComponent,
1527 range: *mut OH_NativeXComponent_ExpectedRateRange,
1528 ) -> i32;
1529 #[cfg(feature = "api-11")]
1545 #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
1546 pub fn OH_NativeXComponent_RegisterOnFrameCallback(
1547 component: *mut OH_NativeXComponent,
1548 callback: ::core::option::Option<
1549 unsafe extern "C" fn(
1550 component: *mut OH_NativeXComponent,
1551 timestamp: u64,
1552 targetTimestamp: u64,
1553 ),
1554 >,
1555 ) -> i32;
1556 #[cfg(feature = "api-11")]
1570 #[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
1571 pub fn OH_NativeXComponent_UnregisterOnFrameCallback(
1572 component: *mut OH_NativeXComponent,
1573 ) -> i32;
1574 #[cfg(feature = "api-12")]
1590 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1591 pub fn OH_NativeXComponent_RegisterSurfaceShowCallback(
1592 component: *mut OH_NativeXComponent,
1593 callback: ::core::option::Option<
1594 unsafe extern "C" fn(
1595 component: *mut OH_NativeXComponent,
1596 window: *mut ::core::ffi::c_void,
1597 ),
1598 >,
1599 ) -> i32;
1600 #[cfg(feature = "api-12")]
1616 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1617 pub fn OH_NativeXComponent_RegisterSurfaceHideCallback(
1618 component: *mut OH_NativeXComponent,
1619 callback: ::core::option::Option<
1620 unsafe extern "C" fn(
1621 component: *mut OH_NativeXComponent,
1622 window: *mut ::core::ffi::c_void,
1623 ),
1624 >,
1625 ) -> i32;
1626 #[cfg(feature = "api-12")]
1642 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1643 pub fn OH_NativeXComponent_SetNeedSoftKeyboard(
1644 component: *mut OH_NativeXComponent,
1645 needSoftKeyboard: bool,
1646 ) -> i32;
1647 #[cfg(feature = "api-12")]
1667 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
1668 pub fn OH_NativeXComponent_GetTouchEventSourceType(
1669 component: *mut OH_NativeXComponent,
1670 pointId: i32,
1671 sourceType: *mut OH_NativeXComponent_EventSourceType,
1672 ) -> i32;
1673 #[cfg(feature = "api-13")]
1689 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1690 pub fn OH_NativeXComponent_GetNativeAccessibilityProvider(
1691 component: *mut OH_NativeXComponent,
1692 handle: *mut *mut ArkUI_AccessibilityProvider,
1693 ) -> i32;
1694 #[cfg(feature = "api-14")]
1714 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1715 pub fn OH_NativeXComponent_RegisterKeyEventCallbackWithResult(
1716 component: *mut OH_NativeXComponent,
1717 callback: ::core::option::Option<
1718 unsafe extern "C" fn(
1719 component: *mut OH_NativeXComponent,
1720 window: *mut ::core::ffi::c_void,
1721 ) -> bool,
1722 >,
1723 ) -> i32;
1724 #[cfg(feature = "api-19")]
1736 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1737 pub fn OH_ArkUI_SurfaceHolder_Create(node: ArkUI_NodeHandle) -> *mut OH_ArkUI_SurfaceHolder;
1738 #[cfg(feature = "api-19")]
1746 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1747 pub fn OH_ArkUI_SurfaceHolder_Dispose(surfaceHolder: *mut OH_ArkUI_SurfaceHolder);
1748 #[cfg(feature = "api-19")]
1765 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1766 pub fn OH_ArkUI_SurfaceHolder_SetUserData(
1767 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1768 userData: *mut ::core::ffi::c_void,
1769 ) -> i32;
1770 #[cfg(feature = "api-19")]
1782 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1783 pub fn OH_ArkUI_SurfaceHolder_GetUserData(
1784 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1785 ) -> *mut ::core::ffi::c_void;
1786 #[cfg(feature = "api-19")]
1795 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1796 pub fn OH_ArkUI_SurfaceCallback_Create() -> *mut OH_ArkUI_SurfaceCallback;
1797 #[cfg(feature = "api-19")]
1805 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1806 pub fn OH_ArkUI_SurfaceCallback_Dispose(callback: *mut OH_ArkUI_SurfaceCallback);
1807 #[cfg(feature = "api-19")]
1818 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1819 pub fn OH_ArkUI_SurfaceCallback_SetSurfaceCreatedEvent(
1820 callback: *mut OH_ArkUI_SurfaceCallback,
1821 onSurfaceCreated: ::core::option::Option<
1822 unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
1823 >,
1824 );
1825 #[cfg(feature = "api-19")]
1836 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1837 pub fn OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent(
1838 callback: *mut OH_ArkUI_SurfaceCallback,
1839 onSurfaceChanged: ::core::option::Option<
1840 unsafe extern "C" fn(
1841 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1842 width: u64,
1843 height: u64,
1844 ),
1845 >,
1846 );
1847 #[cfg(feature = "api-19")]
1858 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1859 pub fn OH_ArkUI_SurfaceCallback_SetSurfaceDestroyedEvent(
1860 callback: *mut OH_ArkUI_SurfaceCallback,
1861 onSurfaceDestroyed: ::core::option::Option<
1862 unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
1863 >,
1864 );
1865 #[cfg(feature = "api-19")]
1881 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1882 pub fn OH_ArkUI_SurfaceHolder_AddSurfaceCallback(
1883 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1884 callback: *mut OH_ArkUI_SurfaceCallback,
1885 ) -> i32;
1886 #[cfg(feature = "api-19")]
1903 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1904 pub fn OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback(
1905 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1906 callback: *mut OH_ArkUI_SurfaceCallback,
1907 ) -> i32;
1908 #[cfg(feature = "api-19")]
1920 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1921 pub fn OH_ArkUI_XComponent_GetNativeWindow(
1922 surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
1923 ) -> *mut OHNativeWindow;
1924 #[cfg(feature = "api-19")]
1943 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1944 pub fn OH_ArkUI_XComponent_SetAutoInitialize(
1945 node: ArkUI_NodeHandle,
1946 autoInitialize: bool,
1947 ) -> i32;
1948 #[cfg(feature = "api-19")]
1963 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1964 pub fn OH_ArkUI_XComponent_Initialize(node: ArkUI_NodeHandle) -> i32;
1965 #[cfg(feature = "api-19")]
1980 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1981 pub fn OH_ArkUI_XComponent_Finalize(node: ArkUI_NodeHandle) -> i32;
1982 #[cfg(feature = "api-19")]
1998 #[cfg_attr(docsrs, doc(cfg(feature = "api-19")))]
1999 pub fn OH_ArkUI_XComponent_IsInitialized(
2000 node: ArkUI_NodeHandle,
2001 isInitialized: *mut bool,
2002 ) -> i32;
2003 #[cfg(feature = "api-20")]
2021 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2022 pub fn OH_ArkUI_XComponent_SetExpectedFrameRateRange(
2023 node: ArkUI_NodeHandle,
2024 range: OH_NativeXComponent_ExpectedRateRange,
2025 ) -> i32;
2026 #[cfg(feature = "api-20")]
2044 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2045 pub fn OH_ArkUI_XComponent_RegisterOnFrameCallback(
2046 node: ArkUI_NodeHandle,
2047 callback: ::core::option::Option<
2048 unsafe extern "C" fn(node: ArkUI_NodeHandle, timestamp: u64, targetTimestamp: u64),
2049 >,
2050 ) -> i32;
2051 #[cfg(feature = "api-20")]
2067 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2068 pub fn OH_ArkUI_XComponent_UnregisterOnFrameCallback(node: ArkUI_NodeHandle) -> i32;
2069 #[cfg(feature = "api-20")]
2085 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2086 pub fn OH_ArkUI_XComponent_SetNeedSoftKeyboard(
2087 node: ArkUI_NodeHandle,
2088 needSoftKeyboard: bool,
2089 ) -> i32;
2090 #[cfg(feature = "api-20")]
2102 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2103 pub fn OH_ArkUI_AccessibilityProvider_Create(
2104 node: ArkUI_NodeHandle,
2105 ) -> *mut ArkUI_AccessibilityProvider;
2106 #[cfg(feature = "api-20")]
2114 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2115 pub fn OH_ArkUI_AccessibilityProvider_Dispose(provider: *mut ArkUI_AccessibilityProvider);
2116 #[cfg(feature = "api-20")]
2126 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2127 pub fn OH_ArkUI_SurfaceCallback_SetSurfaceShowEvent(
2128 callback: *mut OH_ArkUI_SurfaceCallback,
2129 onSurfaceShow: ::core::option::Option<
2130 unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
2131 >,
2132 );
2133 #[cfg(feature = "api-20")]
2143 #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
2144 pub fn OH_ArkUI_SurfaceCallback_SetSurfaceHideEvent(
2145 callback: *mut OH_ArkUI_SurfaceCallback,
2146 onSurfaceHide: ::core::option::Option<
2147 unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder),
2148 >,
2149 );
2150}