arkui_sys/native_interface_accessibility/
native_interface_accessibility_ffi.rs

1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6use crate::native_type::*;
7use ohos_sys_opaque_types::ArkUI_AccessibilityProvider;
8
9#[repr(C)]
10pub struct ArkUI_AccessibilityElementInfo {
11    _unused: [u8; 0],
12}
13#[repr(C)]
14pub struct ArkUI_AccessibilityEventInfo {
15    _unused: [u8; 0],
16}
17#[repr(C)]
18pub struct ArkUI_AccessibilityActionArguments {
19    _unused: [u8; 0],
20}
21#[cfg(feature = "api-13")]
22#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
23impl ArkUI_Accessibility_ActionType {
24    /// Invalid action.
25    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_INVALID: ArkUI_Accessibility_ActionType =
26        ArkUI_Accessibility_ActionType(0);
27}
28#[cfg(feature = "api-13")]
29#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
30impl ArkUI_Accessibility_ActionType {
31    /// Response to a click.
32    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_CLICK: ArkUI_Accessibility_ActionType =
33        ArkUI_Accessibility_ActionType(16);
34}
35#[cfg(feature = "api-13")]
36#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
37impl ArkUI_Accessibility_ActionType {
38    /// Response to a long click.
39    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_LONG_CLICK: ArkUI_Accessibility_ActionType =
40        ArkUI_Accessibility_ActionType(32);
41}
42#[cfg(feature = "api-13")]
43#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
44impl ArkUI_Accessibility_ActionType {
45    /// Accessibility focus acquisition.
46    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_GAIN_ACCESSIBILITY_FOCUS:
47        ArkUI_Accessibility_ActionType = ArkUI_Accessibility_ActionType(64);
48}
49#[cfg(feature = "api-13")]
50#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
51impl ArkUI_Accessibility_ActionType {
52    /// Accessibility focus clearance.
53    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_CLEAR_ACCESSIBILITY_FOCUS:
54        ArkUI_Accessibility_ActionType = ArkUI_Accessibility_ActionType(128);
55}
56#[cfg(feature = "api-13")]
57#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
58impl ArkUI_Accessibility_ActionType {
59    /// Forward scroll action.
60    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_SCROLL_FORWARD:
61        ArkUI_Accessibility_ActionType = ArkUI_Accessibility_ActionType(256);
62}
63#[cfg(feature = "api-13")]
64#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
65impl ArkUI_Accessibility_ActionType {
66    /// Backward scroll action.
67    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_SCROLL_BACKWARD:
68        ArkUI_Accessibility_ActionType = ArkUI_Accessibility_ActionType(512);
69}
70#[cfg(feature = "api-13")]
71#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
72impl ArkUI_Accessibility_ActionType {
73    /// Copy action for text content.
74    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_COPY: ArkUI_Accessibility_ActionType =
75        ArkUI_Accessibility_ActionType(1024);
76}
77#[cfg(feature = "api-13")]
78#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
79impl ArkUI_Accessibility_ActionType {
80    /// Paste action for text content.
81    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_PASTE: ArkUI_Accessibility_ActionType =
82        ArkUI_Accessibility_ActionType(2048);
83}
84#[cfg(feature = "api-13")]
85#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
86impl ArkUI_Accessibility_ActionType {
87    /// Cut action for text content.
88    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_CUT: ArkUI_Accessibility_ActionType =
89        ArkUI_Accessibility_ActionType(4096);
90}
91#[cfg(feature = "api-13")]
92#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
93impl ArkUI_Accessibility_ActionType {
94    /// Text selection action, requiring the setting of <b>selectTextBegin</b>, <b>TextEnd</b>, and <b>TextInForward</b>
95    /// parameters to select a text segment in the text box.
96    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_SELECT_TEXT: ArkUI_Accessibility_ActionType =
97        ArkUI_Accessibility_ActionType(8192);
98}
99#[cfg(feature = "api-13")]
100#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
101impl ArkUI_Accessibility_ActionType {
102    /// Text content setting action.
103    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_SET_TEXT: ArkUI_Accessibility_ActionType =
104        ArkUI_Accessibility_ActionType(16384);
105}
106#[cfg(feature = "api-13")]
107#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
108impl ArkUI_Accessibility_ActionType {
109    /// Cursor position setting action.
110    pub const ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_SET_CURSOR_POSITION:
111        ArkUI_Accessibility_ActionType = ArkUI_Accessibility_ActionType(1048576);
112}
113#[repr(transparent)]
114/// Defines an enum for accessibility action types.
115///
116///
117/// Available since API-level: 13
118#[cfg(feature = "api-13")]
119#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
120#[derive(Clone, Hash, PartialEq, Eq)]
121pub struct ArkUI_Accessibility_ActionType(pub ::core::ffi::c_uint);
122#[cfg(feature = "api-13")]
123#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
124impl ArkUI_AccessibilityEventType {
125    /// Invalid event.
126    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_INVALID: ArkUI_AccessibilityEventType =
127        ArkUI_AccessibilityEventType(0);
128}
129#[cfg(feature = "api-13")]
130#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
131impl ArkUI_AccessibilityEventType {
132    /// Click event, sent after the UI component responds.
133    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_CLICKED: ArkUI_AccessibilityEventType =
134        ArkUI_AccessibilityEventType(1);
135}
136#[cfg(feature = "api-13")]
137#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
138impl ArkUI_AccessibilityEventType {
139    /// Long click event, sent after the UI component responds.
140    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_LONG_CLICKED: ArkUI_AccessibilityEventType =
141        ArkUI_AccessibilityEventType(2);
142}
143#[cfg(feature = "api-13")]
144#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
145impl ArkUI_AccessibilityEventType {
146    /// Selection event, sent after the UI component responds.
147    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_SELECTED: ArkUI_AccessibilityEventType =
148        ArkUI_AccessibilityEventType(4);
149}
150#[cfg(feature = "api-13")]
151#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
152impl ArkUI_AccessibilityEventType {
153    /// Text update event, sent when text is updated.
154    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_TEXT_UPDATE: ArkUI_AccessibilityEventType =
155        ArkUI_AccessibilityEventType(16);
156}
157#[cfg(feature = "api-13")]
158#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
159impl ArkUI_AccessibilityEventType {
160    /// Page state update event, sent when the page transitions, switches, resizes, or moves.
161    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_PAGE_STATE_UPDATE:
162        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(32);
163}
164#[cfg(feature = "api-13")]
165#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
166impl ArkUI_AccessibilityEventType {
167    /// Page content update event, sent when the page content changes.
168    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_PAGE_CONTENT_UPDATE:
169        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(2048);
170}
171#[cfg(feature = "api-13")]
172#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
173impl ArkUI_AccessibilityEventType {
174    /// Scrolled event, sent when a scrollable component experiences a scroll event.
175    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_SCROLLED: ArkUI_AccessibilityEventType =
176        ArkUI_AccessibilityEventType(4096);
177}
178#[cfg(feature = "api-13")]
179#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
180impl ArkUI_AccessibilityEventType {
181    /// Accessibility focus event, sent after the UI component responds.
182    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_ACCESSIBILITY_FOCUSED:
183        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(32768);
184}
185#[cfg(feature = "api-13")]
186#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
187impl ArkUI_AccessibilityEventType {
188    /// Accessibility focus cleared event, sent after the UI component responds.
189    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_ACCESSIBILITY_FOCUS_CLEARED:
190        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(65536);
191}
192#[cfg(feature = "api-13")]
193#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
194impl ArkUI_AccessibilityEventType {
195    /// FOcus request for a specific node.
196    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_REQUEST_ACCESSIBILITY_FOCUS:
197        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(33554432);
198}
199#[cfg(feature = "api-13")]
200#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
201impl ArkUI_AccessibilityEventType {
202    /// Page open event reported by the UI component.
203    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_PAGE_OPEN: ArkUI_AccessibilityEventType =
204        ArkUI_AccessibilityEventType(536870912);
205}
206#[cfg(feature = "api-13")]
207#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
208impl ArkUI_AccessibilityEventType {
209    /// Page close event reported by the UI component.
210    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_PAGE_CLOSE: ArkUI_AccessibilityEventType =
211        ArkUI_AccessibilityEventType(134217728);
212}
213#[cfg(feature = "api-13")]
214#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
215impl ArkUI_AccessibilityEventType {
216    /// Announcement event, indicating a request to proactively announce specified content.
217    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_ANNOUNCE_FOR_ACCESSIBILITY:
218        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(268435456);
219}
220#[cfg(feature = "api-13")]
221#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
222impl ArkUI_AccessibilityEventType {
223    /// Focus update event, used for focus update scenarios.
224    pub const ARKUI_ACCESSIBILITY_NATIVE_EVENT_TYPE_FOCUS_NODE_UPDATE:
225        ArkUI_AccessibilityEventType = ArkUI_AccessibilityEventType(268435457);
226}
227#[repr(transparent)]
228/// Defines an enum for accessibility event types.
229///
230///
231/// Available since API-level: 13
232#[cfg(feature = "api-13")]
233#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
234#[derive(Clone, Hash, PartialEq, Eq)]
235pub struct ArkUI_AccessibilityEventType(pub ::core::ffi::c_uint);
236/// Defines a struct for the accessible action.
237///
238///
239/// Available since API-level: 13
240#[cfg(feature = "api-13")]
241#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
242#[repr(C)]
243pub struct ArkUI_AccessibleAction {
244    /// Action type.
245    pub actionType: ArkUI_Accessibility_ActionType,
246    /// Action description.
247    pub description: *const ::core::ffi::c_char,
248}
249/// Defines a struct for the accessible rectangle.
250///
251///
252/// Available since API-level: 13
253#[cfg(feature = "api-13")]
254#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
255#[repr(C)]
256pub struct ArkUI_AccessibleRect {
257    /// X coordinate of the upper left corner.
258    pub leftTopX: i32,
259    /// Y coordinate of the upper left corner.
260    pub leftTopY: i32,
261    /// X coordinate of the lower right corner.
262    pub rightBottomX: i32,
263    /// Y coordinate of the lower right corner.
264    pub rightBottomY: i32,
265}
266/// Define a struct for the accessible range information.
267///
268///
269/// Available since API-level: 13
270#[cfg(feature = "api-13")]
271#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
272#[repr(C)]
273pub struct ArkUI_AccessibleRangeInfo {
274    /// Minimum value.
275    pub min: f64,
276    /// Maximum value.
277    pub max: f64,
278    /// Current value.
279    pub current: f64,
280}
281/// Defines a struct for the accessible grid information.
282///
283///
284/// Available since API-level: 13
285#[cfg(feature = "api-13")]
286#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
287#[repr(C)]
288pub struct ArkUI_AccessibleGridInfo {
289    /// Number of rows.
290    pub rowCount: i32,
291    /// Number of columns.
292    pub columnCount: i32,
293    /// Selection mode. The value <b>0</b> indicates that only one row can be selected.
294    pub selectionMode: i32,
295}
296/// Defines a struct for the accessible grid item information.
297///
298///
299/// Available since API-level: 13
300#[cfg(feature = "api-13")]
301#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
302#[repr(C)]
303pub struct ArkUI_AccessibleGridItemInfo {
304    /// Whether it is a header.
305    pub heading: bool,
306    /// Whether it is selected.
307    pub selected: bool,
308    /// Column index.
309    pub columnIndex: i32,
310    /// Row index.
311    pub rowIndex: i32,
312    /// Column span.
313    pub columnSpan: i32,
314    /// Row span.
315    pub rowSpan: i32,
316}
317#[cfg(feature = "api-13")]
318#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
319impl ArkUI_AcessbilityErrorCode {
320    /// Success.
321    pub const ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL: ArkUI_AcessbilityErrorCode =
322        ArkUI_AcessbilityErrorCode(0);
323}
324#[cfg(feature = "api-13")]
325#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
326impl ArkUI_AcessbilityErrorCode {
327    /// Failure.
328    pub const ARKUI_ACCESSIBILITY_NATIVE_RESULT_FAILED: ArkUI_AcessbilityErrorCode =
329        ArkUI_AcessbilityErrorCode(-1);
330}
331#[cfg(feature = "api-13")]
332#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
333impl ArkUI_AcessbilityErrorCode {
334    /// Invalid parameter.
335    pub const ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER: ArkUI_AcessbilityErrorCode =
336        ArkUI_AcessbilityErrorCode(-2);
337}
338#[cfg(feature = "api-13")]
339#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
340impl ArkUI_AcessbilityErrorCode {
341    /// Out of memory.
342    pub const ARKUI_ACCESSIBILITY_NATIVE_RESULT_OUT_OF_MEMORY: ArkUI_AcessbilityErrorCode =
343        ArkUI_AcessbilityErrorCode(-3);
344}
345#[repr(transparent)]
346/// Enumerates the accessibility error codes.
347///
348///
349/// Available since API-level: 13
350#[cfg(feature = "api-13")]
351#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
352#[derive(Clone, Hash, PartialEq, Eq)]
353pub struct ArkUI_AcessbilityErrorCode(pub ::core::ffi::c_int);
354#[cfg(feature = "api-13")]
355#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
356impl ArkUI_AccessibilitySearchMode {
357    /// Search for current nodes.
358    pub const ARKUI_ACCESSIBILITY_NATIVE_SEARCH_MODE_PREFETCH_CURRENT:
359        ArkUI_AccessibilitySearchMode = ArkUI_AccessibilitySearchMode(0);
360}
361#[cfg(feature = "api-13")]
362#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
363impl ArkUI_AccessibilitySearchMode {
364    /// Search for parent nodes.
365    pub const ARKUI_ACCESSIBILITY_NATIVE_SEARCH_MODE_PREFETCH_PREDECESSORS:
366        ArkUI_AccessibilitySearchMode = ArkUI_AccessibilitySearchMode(1);
367}
368#[cfg(feature = "api-13")]
369#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
370impl ArkUI_AccessibilitySearchMode {
371    /// Search for sibling nodes.
372    pub const ARKUI_ACCESSIBILITY_NATIVE_SEARCH_MODE_PREFETCH_SIBLINGS:
373        ArkUI_AccessibilitySearchMode = ArkUI_AccessibilitySearchMode(2);
374}
375#[cfg(feature = "api-13")]
376#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
377impl ArkUI_AccessibilitySearchMode {
378    /// Search for child nodes at the next level.
379    pub const ARKUI_ACCESSIBILITY_NATIVE_SEARCH_MODE_PREFETCH_CHILDREN:
380        ArkUI_AccessibilitySearchMode = ArkUI_AccessibilitySearchMode(4);
381}
382#[cfg(feature = "api-13")]
383#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
384impl ArkUI_AccessibilitySearchMode {
385    /// Search for all child nodes.
386    pub const ARKUI_ACCESSIBILITY_NATIVE_SEARCH_MODE_PREFETCH_RECURSIVE_CHILDREN:
387        ArkUI_AccessibilitySearchMode = ArkUI_AccessibilitySearchMode(8);
388}
389#[repr(transparent)]
390/// Defines an enum for the accessibility search modes.
391///
392///
393/// Available since API-level: 13
394#[cfg(feature = "api-13")]
395#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
396#[derive(Clone, Hash, PartialEq, Eq)]
397pub struct ArkUI_AccessibilitySearchMode(pub ::core::ffi::c_uint);
398#[cfg(feature = "api-13")]
399#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
400impl ArkUI_AccessibilityFocusType {
401    /// Invalid type.
402    pub const ARKUI_ACCESSIBILITY_NATIVE_FOCUS_TYPE_INVALID: ArkUI_AccessibilityFocusType =
403        ArkUI_AccessibilityFocusType(-1);
404}
405#[cfg(feature = "api-13")]
406#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
407impl ArkUI_AccessibilityFocusType {
408    /// Input focus type.
409    pub const ARKUI_ACCESSIBILITY_NATIVE_FOCUS_TYPE_INPUT: ArkUI_AccessibilityFocusType =
410        ArkUI_AccessibilityFocusType(1);
411}
412#[cfg(feature = "api-13")]
413#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
414impl ArkUI_AccessibilityFocusType {
415    /// Accessibility focus type.
416    pub const ARKUI_ACCESSIBILITY_NATIVE_FOCUS_TYPE_ACCESSIBILITY: ArkUI_AccessibilityFocusType =
417        ArkUI_AccessibilityFocusType(2);
418}
419#[repr(transparent)]
420/// Defines an enum for the accessibility focus types.
421///
422///
423/// Available since API-level: 13
424#[cfg(feature = "api-13")]
425#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
426#[derive(Clone, Hash, PartialEq, Eq)]
427pub struct ArkUI_AccessibilityFocusType(pub ::core::ffi::c_int);
428#[cfg(feature = "api-13")]
429#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
430impl ArkUI_AccessibilityFocusMoveDirection {
431    /// Invalid direction.
432    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_INVALID: ArkUI_AccessibilityFocusMoveDirection =
433        ArkUI_AccessibilityFocusMoveDirection(0);
434}
435#[cfg(feature = "api-13")]
436#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
437impl ArkUI_AccessibilityFocusMoveDirection {
438    /// Up.
439    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_UP: ArkUI_AccessibilityFocusMoveDirection =
440        ArkUI_AccessibilityFocusMoveDirection(1);
441}
442#[cfg(feature = "api-13")]
443#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
444impl ArkUI_AccessibilityFocusMoveDirection {
445    /// Down.
446    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_DOWN: ArkUI_AccessibilityFocusMoveDirection =
447        ArkUI_AccessibilityFocusMoveDirection(2);
448}
449#[cfg(feature = "api-13")]
450#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
451impl ArkUI_AccessibilityFocusMoveDirection {
452    /// Left.
453    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_LEFT: ArkUI_AccessibilityFocusMoveDirection =
454        ArkUI_AccessibilityFocusMoveDirection(4);
455}
456#[cfg(feature = "api-13")]
457#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
458impl ArkUI_AccessibilityFocusMoveDirection {
459    /// Right.
460    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_RIGHT: ArkUI_AccessibilityFocusMoveDirection =
461        ArkUI_AccessibilityFocusMoveDirection(8);
462}
463#[cfg(feature = "api-13")]
464#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
465impl ArkUI_AccessibilityFocusMoveDirection {
466    /// Forward.
467    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_FORWARD: ArkUI_AccessibilityFocusMoveDirection =
468        ArkUI_AccessibilityFocusMoveDirection(16);
469}
470#[cfg(feature = "api-13")]
471#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
472impl ArkUI_AccessibilityFocusMoveDirection {
473    /// Backward.
474    pub const ARKUI_ACCESSIBILITY_NATIVE_DIRECTION_BACKWARD: ArkUI_AccessibilityFocusMoveDirection =
475        ArkUI_AccessibilityFocusMoveDirection(32);
476}
477#[repr(transparent)]
478/// Enumerates the directions for moving the accessibility focus.
479///
480///
481/// Available since API-level: 13
482#[cfg(feature = "api-13")]
483#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
484#[derive(Clone, Hash, PartialEq, Eq)]
485pub struct ArkUI_AccessibilityFocusMoveDirection(pub ::core::ffi::c_uint);
486#[repr(C)]
487pub struct ArkUI_AccessibilityElementInfoList {
488    _unused: [u8; 0],
489}
490/// Registers callbacks for the accessibility provider.
491///
492///
493/// Available since API-level: 13
494#[cfg(feature = "api-13")]
495#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
496#[repr(C)]
497pub struct ArkUI_AccessibilityProviderCallbacks {
498    /// Called to obtain element information based on a specified node.
499    ///
500    /// # Arguments
501    ///
502    /// * `elementId` - Indicates the element ID.
503    ///
504    /// * `mode` - Indicates accessibility search mode.
505    ///
506    /// * `requestId` - Indicates the request ID.
507    ///
508    /// * `elementList` - Indicates accessibility elementInfo list.
509    ///
510    /// # Returns
511    ///
512    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
513    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
514    pub findAccessibilityNodeInfosById: ::core::option::Option<
515        unsafe extern "C" fn(
516            elementId: i64,
517            mode: ArkUI_AccessibilitySearchMode,
518            requestId: i32,
519            elementList: *mut ArkUI_AccessibilityElementInfoList,
520        ) -> i32,
521    >,
522    /// Called to obtain element information based on a specified node and text content.
523    ///
524    /// # Arguments
525    ///
526    /// * `elementId` - Indicates the element ID.
527    ///
528    /// * `text` - Indicates accessibility text.
529    ///
530    /// * `requestId` - Indicates the request ID.
531    ///
532    /// * `elementList` - Indicates accessibility elementInfo list.
533    ///
534    /// # Returns
535    ///
536    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
537    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
538    pub findAccessibilityNodeInfosByText: ::core::option::Option<
539        unsafe extern "C" fn(
540            elementId: i64,
541            text: *const ::core::ffi::c_char,
542            requestId: i32,
543            elementList: *mut ArkUI_AccessibilityElementInfoList,
544        ) -> i32,
545    >,
546    /// Called to obtain focused element information based on a specified node.
547    ///
548    /// # Arguments
549    ///
550    /// * `elementId` - Indicates the element ID.
551    ///
552    /// * `focusType` - Indicates focus type.
553    ///
554    /// * `requestId` - Indicates the request ID.
555    ///
556    /// * `elementInfo` - Indicates accessibility elementInfo.
557    ///
558    /// # Returns
559    ///
560    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
561    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
562    pub findFocusedAccessibilityNode: ::core::option::Option<
563        unsafe extern "C" fn(
564            elementId: i64,
565            focusType: ArkUI_AccessibilityFocusType,
566            requestId: i32,
567            elementInfo: *mut ArkUI_AccessibilityElementInfo,
568        ) -> i32,
569    >,
570    /// Called to find the next focusable node based on the reference node.
571    ///
572    /// # Arguments
573    ///
574    /// * `elementId` - Indicates the element ID.
575    ///
576    /// * `direction` - Indicates direction.
577    ///
578    /// * `requestId` - Indicates the request ID.
579    ///
580    /// * `elementInfo` - Indicates accessibility elementInfo.
581    ///
582    /// # Returns
583    ///
584    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
585    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
586    pub findNextFocusAccessibilityNode: ::core::option::Option<
587        unsafe extern "C" fn(
588            elementId: i64,
589            direction: ArkUI_AccessibilityFocusMoveDirection,
590            requestId: i32,
591            elementInfo: *mut ArkUI_AccessibilityElementInfo,
592        ) -> i32,
593    >,
594    /// Called to execute a specified action on a specified node.
595    ///
596    /// # Arguments
597    ///
598    /// * `elementId` - Indicates the element ID.
599    ///
600    /// * `action` - Indicates action.
601    ///
602    /// * `actionArguments` - Indicates action arguments.
603    ///
604    /// * `requestId` - Indicates the request ID.
605    ///
606    /// # Returns
607    ///
608    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
609    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
610    pub executeAccessibilityAction: ::core::option::Option<
611        unsafe extern "C" fn(
612            elementId: i64,
613            action: ArkUI_Accessibility_ActionType,
614            actionArguments: *mut ArkUI_AccessibilityActionArguments,
615            requestId: i32,
616        ) -> i32,
617    >,
618    /// Called to clear the focus state of the current focused node.
619    ///
620    ///
621    /// # Returns
622    ///
623    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
624    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_FAILED`] if the operation is failed.
625    pub clearFocusedFocusAccessibilityNode: ::core::option::Option<unsafe extern "C" fn() -> i32>,
626    /// Called to query the current cursor position of the specified node.
627    ///
628    /// # Arguments
629    ///
630    /// * `elementId` - Indicates the element ID.
631    ///
632    /// * `requestId` - Indicates the request ID.
633    ///
634    /// * `index` - Indicates index.
635    ///
636    /// # Returns
637    ///
638    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
639    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
640    pub getAccessibilityNodeCursorPosition: ::core::option::Option<
641        unsafe extern "C" fn(elementId: i64, requestId: i32, index: *mut i32) -> i32,
642    >,
643}
644extern "C" {
645    /// Registers a callback for this <b>ArkUI_AccessibilityProvider</b> instance.
646    ///
647    /// # Arguments
648    ///
649    /// * `provider` - Indicates the pointer to the <b>ArkUI_AccessibilityProvider</b> instance.
650    ///
651    /// * `callbacks` - Indicates the pointer to the <b>GetAccessibilityNodeCursorPosition</b> callback.
652    ///
653    /// # Returns
654    ///
655    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
656    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
657    ///
658    /// Available since API-level: 13
659    #[cfg(feature = "api-13")]
660    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
661    pub fn OH_ArkUI_AccessibilityProviderRegisterCallback(
662        provider: *mut ArkUI_AccessibilityProvider,
663        callbacks: *mut ArkUI_AccessibilityProviderCallbacks,
664    ) -> i32;
665    /// Sends accessibility event information.
666    ///
667    /// # Arguments
668    ///
669    /// * `provider` - Indicates the pointer to the <b>ArkUI_AccessibilityProvider</b> instance.
670    ///
671    /// * `eventInfo` - Indicates the pointer to the accessibility event information.
672    ///
673    /// * `callback` - Indicates the pointer to the callback that is called after the event is sent.
674    ///
675    /// Available since API-level: 13
676    #[cfg(feature = "api-13")]
677    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
678    pub fn OH_ArkUI_SendAccessibilityAsyncEvent(
679        provider: *mut ArkUI_AccessibilityProvider,
680        eventInfo: *mut ArkUI_AccessibilityEventInfo,
681        callback: ::core::option::Option<unsafe extern "C" fn(errorCode: i32)>,
682    );
683    /// Adds and obtains the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
684    ///
685    /// # Arguments
686    ///
687    /// * `list` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfoList</b> object.
688    ///
689    /// # Returns
690    ///
691    /// * Returns the pointer to the <b>ArkUI_AccessibilityElementInfo</b> object.
692    ///
693    /// Available since API-level: 13
694    #[cfg(feature = "api-13")]
695    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
696    pub fn OH_ArkUI_AddAndGetAccessibilityElementInfo(
697        list: *mut ArkUI_AccessibilityElementInfoList,
698    ) -> *mut ArkUI_AccessibilityElementInfo;
699    /// Sets the element ID for an <b>ArkUI_AccessibilityElementInfo</b> object.
700    ///
701    /// # Arguments
702    ///
703    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
704    ///
705    /// * `elementId` - Indicates the element ID.
706    ///
707    /// # Returns
708    ///
709    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
710    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
711    ///
712    /// Available since API-level: 13
713    #[cfg(feature = "api-13")]
714    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
715    pub fn OH_ArkUI_AccessibilityElementInfoSetElementId(
716        elementInfo: *mut ArkUI_AccessibilityElementInfo,
717        elementId: i32,
718    ) -> i32;
719    /// Sets the parent ID for an <b>ArkUI_AccessibilityElementInfo</b> object.
720    ///
721    /// # Arguments
722    ///
723    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
724    ///
725    /// * `parentId` - Indicates the parent ID.
726    ///
727    /// # Returns
728    ///
729    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
730    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
731    ///
732    /// Available since API-level: 13
733    #[cfg(feature = "api-13")]
734    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
735    pub fn OH_ArkUI_AccessibilityElementInfoSetParentId(
736        elementInfo: *mut ArkUI_AccessibilityElementInfo,
737        parentId: i32,
738    ) -> i32;
739    /// Sets the component type for an <b>ArkUI_AccessibilityElementInfo</b> object.
740    ///
741    /// # Arguments
742    ///
743    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
744    ///
745    /// * `componentType` - Indicates the component type.
746    ///
747    /// # Returns
748    ///
749    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
750    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
751    ///
752    /// Available since API-level: 13
753    #[cfg(feature = "api-13")]
754    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
755    pub fn OH_ArkUI_AccessibilityElementInfoSetComponentType(
756        elementInfo: *mut ArkUI_AccessibilityElementInfo,
757        componentType: *const ::core::ffi::c_char,
758    ) -> i32;
759    /// Sets the component content for an <b>ArkUI_AccessibilityElementInfo</b> object.
760    ///
761    /// # Arguments
762    ///
763    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
764    ///
765    /// * `contents` - Indicates the component content.
766    ///
767    /// # Returns
768    ///
769    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
770    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
771    ///
772    /// Available since API-level: 13
773    #[cfg(feature = "api-13")]
774    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
775    pub fn OH_ArkUI_AccessibilityElementInfoSetContents(
776        elementInfo: *mut ArkUI_AccessibilityElementInfo,
777        contents: *const ::core::ffi::c_char,
778    ) -> i32;
779    /// Sets the hint text for an <b>ArkUI_AccessibilityElementInfo</b> object.
780    ///
781    /// # Arguments
782    ///
783    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
784    ///
785    /// * `hintText` - Indicates the hint text.
786    ///
787    /// # Returns
788    ///
789    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
790    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
791    ///
792    /// Available since API-level: 13
793    #[cfg(feature = "api-13")]
794    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
795    pub fn OH_ArkUI_AccessibilityElementInfoSetHintText(
796        elementInfo: *mut ArkUI_AccessibilityElementInfo,
797        hintText: *const ::core::ffi::c_char,
798    ) -> i32;
799    /// Sets the accessibility text for an <b>ArkUI_AccessibilityElementInfo</b> object.
800    ///
801    /// # Arguments
802    ///
803    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
804    ///
805    /// * `accessibilityText` - Indicates the accessibility text.
806    ///
807    /// # Returns
808    ///
809    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
810    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
811    ///
812    /// Available since API-level: 13
813    #[cfg(feature = "api-13")]
814    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
815    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityText(
816        elementInfo: *mut ArkUI_AccessibilityElementInfo,
817        accessibilityText: *const ::core::ffi::c_char,
818    ) -> i32;
819    /// Sets the accessibility description for an <b>ArkUI_AccessibilityElementInfo</b> object.
820    ///
821    /// # Arguments
822    ///
823    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
824    ///
825    /// * `accessibilityDescription` - Indicates the accessibility description.
826    ///
827    /// # Returns
828    ///
829    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
830    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
831    ///
832    /// Available since API-level: 13
833    #[cfg(feature = "api-13")]
834    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
835    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityDescription(
836        elementInfo: *mut ArkUI_AccessibilityElementInfo,
837        accessibilityDescription: *const ::core::ffi::c_char,
838    ) -> i32;
839    /// Set the number of child nodes and child node IDs for an <b>ArkUI_AccessibilityElementInfo</b> object.
840    ///
841    /// # Arguments
842    ///
843    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
844    ///
845    /// * `childCount` - Indicates the number of child nodes.
846    ///
847    /// * `childNodeIds` - Indicates an array of child node IDs.
848    ///
849    /// # Returns
850    ///
851    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
852    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
853    ///
854    /// Available since API-level: 13
855    #[cfg(feature = "api-13")]
856    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
857    pub fn OH_ArkUI_AccessibilityElementInfoSetChildNodeIds(
858        elementInfo: *mut ArkUI_AccessibilityElementInfo,
859        childCount: i32,
860        childNodeIds: *mut i64,
861    ) -> i32;
862    /// Sets the operation actions for an <b>ArkUI_AccessibilityElementInfo</b> object.
863    ///
864    /// # Arguments
865    ///
866    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
867    ///
868    /// * `operationCount` - Indicates the operation count.
869    ///
870    /// * `operationActions` - Indicates the operation actions.
871    ///
872    /// # Returns
873    ///
874    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
875    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
876    ///
877    /// Available since API-level: 13
878    #[cfg(feature = "api-13")]
879    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
880    pub fn OH_ArkUI_AccessibilityElementInfoSetOperationActions(
881        elementInfo: *mut ArkUI_AccessibilityElementInfo,
882        operationCount: i32,
883        operationActions: *mut ArkUI_AccessibleAction,
884    ) -> i32;
885    /// Sets the screen area for an <b>ArkUI_AccessibilityElementInfo</b> object.
886    ///
887    /// # Arguments
888    ///
889    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
890    ///
891    /// * `screenRect` - Indicates the screen area.
892    ///
893    /// # Returns
894    ///
895    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
896    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
897    ///
898    /// Available since API-level: 13
899    #[cfg(feature = "api-13")]
900    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
901    pub fn OH_ArkUI_AccessibilityElementInfoSetScreenRect(
902        elementInfo: *mut ArkUI_AccessibilityElementInfo,
903        screenRect: *mut ArkUI_AccessibleRect,
904    ) -> i32;
905    /// Sets whether the element is checkable for an <b>ArkUI_AccessibilityElementInfo</b> object.
906    ///
907    /// # Arguments
908    ///
909    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
910    ///
911    /// * `checkable` - Indicates whether the element is checkable.
912    ///
913    /// # Returns
914    ///
915    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
916    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
917    ///
918    /// Available since API-level: 13
919    #[cfg(feature = "api-13")]
920    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
921    pub fn OH_ArkUI_AccessibilityElementInfoSetCheckable(
922        elementInfo: *mut ArkUI_AccessibilityElementInfo,
923        checkable: bool,
924    ) -> i32;
925    /// Sets whether the element is checked for an <b>ArkUI_AccessibilityElementInfo</b> object.
926    ///
927    /// # Arguments
928    ///
929    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
930    ///
931    /// * `checked` - Indicates whether the element is checked.
932    ///
933    /// # Returns
934    ///
935    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
936    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
937    ///
938    /// Available since API-level: 13
939    #[cfg(feature = "api-13")]
940    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
941    pub fn OH_ArkUI_AccessibilityElementInfoSetChecked(
942        elementInfo: *mut ArkUI_AccessibilityElementInfo,
943        checked: bool,
944    ) -> i32;
945    /// Sets whether the element is focusable for an <b>ArkUI_AccessibilityElementInfo</b> object.
946    /// # Arguments
947    ///
948    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
949    ///
950    /// * `focusable` - Indicates whether the element is focusable.
951    ///
952    /// # Returns
953    ///
954    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
955    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
956    ///
957    /// Available since API-level: 13
958    #[cfg(feature = "api-13")]
959    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
960    pub fn OH_ArkUI_AccessibilityElementInfoSetFocusable(
961        elementInfo: *mut ArkUI_AccessibilityElementInfo,
962        focusable: bool,
963    ) -> i32;
964    /// Sets whether the element is focused for an <b>ArkUI_AccessibilityElementInfo</b> object.
965    ///
966    /// # Arguments
967    ///
968    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
969    ///
970    /// * `isFocused` - Indicates whether the element is focused.
971    ///
972    /// # Returns
973    ///
974    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
975    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
976    ///
977    /// Available since API-level: 13
978    #[cfg(feature = "api-13")]
979    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
980    pub fn OH_ArkUI_AccessibilityElementInfoSetFocused(
981        elementInfo: *mut ArkUI_AccessibilityElementInfo,
982        isFocused: bool,
983    ) -> i32;
984    /// Sets whether the element is visible for an <b>ArkUI_AccessibilityElementInfo</b> object.
985    ///
986    /// # Arguments
987    ///
988    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
989    ///
990    /// * `isVisible` - Indicates whether the element is visible.
991    ///
992    /// # Returns
993    ///
994    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
995    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
996    ///
997    /// Available since API-level: 13
998    #[cfg(feature = "api-13")]
999    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1000    pub fn OH_ArkUI_AccessibilityElementInfoSetVisible(
1001        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1002        isVisible: bool,
1003    ) -> i32;
1004    /// Sets the accessibility focus state for an <b>ArkUI_AccessibilityElementInfo</b> object.
1005    ///
1006    /// # Arguments
1007    ///
1008    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1009    ///
1010    /// * `accessibilityFocused` - Indicates whether the element has accessibility focus.
1011    ///
1012    /// # Returns
1013    ///
1014    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1015    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1016    ///
1017    /// Available since API-level: 13
1018    #[cfg(feature = "api-13")]
1019    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1020    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityFocused(
1021        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1022        accessibilityFocused: bool,
1023    ) -> i32;
1024    /// Sets whether the element is selected for an <b>ArkUI_AccessibilityElementInfo</b> object.
1025    ///
1026    /// # Arguments
1027    ///
1028    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1029    ///
1030    /// * `selected` - Indicates whether the element is selected.
1031    ///
1032    /// # Returns
1033    ///
1034    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1035    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1036    ///
1037    /// Available since API-level: 13
1038    #[cfg(feature = "api-13")]
1039    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1040    pub fn OH_ArkUI_AccessibilityElementInfoSetSelected(
1041        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1042        selected: bool,
1043    ) -> i32;
1044    /// Sets whether the element is clickable for an <b>ArkUI_AccessibilityElementInfo</b> object.
1045    ///
1046    /// # Arguments
1047    ///
1048    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1049    ///
1050    /// * `clickable` - Indicates whether the element is clickable.
1051    ///
1052    /// # Returns
1053    ///
1054    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1055    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1056    ///
1057    /// Available since API-level: 13
1058    #[cfg(feature = "api-13")]
1059    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1060    pub fn OH_ArkUI_AccessibilityElementInfoSetClickable(
1061        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1062        clickable: bool,
1063    ) -> i32;
1064    /// Sets whether the element is long clickable for an <b>ArkUI_AccessibilityElementInfo</b> object.
1065    ///
1066    /// # Arguments
1067    ///
1068    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1069    ///
1070    /// * `longClickable` - Indicates whether the element is long clickable.
1071    ///
1072    /// # Returns
1073    ///
1074    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1075    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1076    ///
1077    /// Available since API-level: 13
1078    #[cfg(feature = "api-13")]
1079    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1080    pub fn OH_ArkUI_AccessibilityElementInfoSetLongClickable(
1081        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1082        longClickable: bool,
1083    ) -> i32;
1084    /// Sets whether the element is enabled for an <b>ArkUI_AccessibilityElementInfo</b> object.
1085    ///
1086    /// # Arguments
1087    ///
1088    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1089    ///
1090    /// * `isEnabled` - Indicates whether the element is enabled.
1091    ///
1092    /// # Returns
1093    ///
1094    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1095    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1096    ///
1097    /// Available since API-level: 13
1098    #[cfg(feature = "api-13")]
1099    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1100    pub fn OH_ArkUI_AccessibilityElementInfoSetEnabled(
1101        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1102        isEnabled: bool,
1103    ) -> i32;
1104    /// Sets whether the element is a password for an <b>ArkUI_AccessibilityElementInfo</b> object.
1105    ///
1106    /// # Arguments
1107    ///
1108    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1109    ///
1110    /// * `isPassword` - Indicates whether the element is a password.
1111    ///
1112    /// # Returns
1113    ///
1114    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1115    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1116    ///
1117    /// Available since API-level: 13
1118    #[cfg(feature = "api-13")]
1119    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1120    pub fn OH_ArkUI_AccessibilityElementInfoSetIsPassword(
1121        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1122        isPassword: bool,
1123    ) -> i32;
1124    /// Sets whether the element is scrollable for an <b>ArkUI_AccessibilityElementInfo</b> object.
1125    ///
1126    /// # Arguments
1127    ///
1128    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1129    ///
1130    /// * `scrollable` - Indicates whether the element is scrollable.
1131    ///
1132    /// # Returns
1133    ///
1134    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1135    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1136    ///
1137    /// Available since API-level: 13
1138    #[cfg(feature = "api-13")]
1139    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1140    pub fn OH_ArkUI_AccessibilityElementInfoSetScrollable(
1141        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1142        scrollable: bool,
1143    ) -> i32;
1144    /// Sets whether the element is editable for an <b>ArkUI_AccessibilityElementInfo</b> object.
1145    ///
1146    /// # Arguments
1147    ///
1148    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1149    ///
1150    /// * `editable` - Indicates whether the element is editable.
1151    ///
1152    /// # Returns
1153    ///
1154    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1155    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1156    ///
1157    /// Available since API-level: 13
1158    #[cfg(feature = "api-13")]
1159    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1160    pub fn OH_ArkUI_AccessibilityElementInfoSetEditable(
1161        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1162        editable: bool,
1163    ) -> i32;
1164    /// Sets whether the element is a hint for an <b>ArkUI_AccessibilityElementInfo</b> object.
1165    ///
1166    /// # Arguments
1167    ///
1168    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1169    ///
1170    /// * `isHint` - Indicates whether the element is a hint.
1171    ///
1172    /// # Returns
1173    ///
1174    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1175    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1176    ///
1177    /// Available since API-level: 13
1178    #[cfg(feature = "api-13")]
1179    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1180    pub fn OH_ArkUI_AccessibilityElementInfoSetIsHint(
1181        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1182        isHint: bool,
1183    ) -> i32;
1184    /// Sets the range information for an <b>ArkUI_AccessibilityElementInfo</b> object.
1185    ///
1186    /// # Arguments
1187    ///
1188    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1189    ///
1190    /// * `rangeInfo` - Indicates the range information.
1191    ///
1192    /// # Returns
1193    ///
1194    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1195    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1196    ///
1197    /// Available since API-level: 13
1198    #[cfg(feature = "api-13")]
1199    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1200    pub fn OH_ArkUI_AccessibilityElementInfoSetRangeInfo(
1201        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1202        rangeInfo: *mut ArkUI_AccessibleRangeInfo,
1203    ) -> i32;
1204    /// Sets the grid information for an <b>ArkUI_AccessibilityElementInfo</b> object.
1205    ///
1206    /// # Arguments
1207    ///
1208    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1209    ///
1210    /// * `gridInfo` - Indicates the grid information.
1211    ///
1212    /// # Returns
1213    ///
1214    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1215    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1216    ///
1217    /// Available since API-level: 13
1218    #[cfg(feature = "api-13")]
1219    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1220    pub fn OH_ArkUI_AccessibilityElementInfoSetGridInfo(
1221        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1222        gridInfo: *mut ArkUI_AccessibleGridInfo,
1223    ) -> i32;
1224    /// Sets the grid item for an <b>ArkUI_AccessibilityElementInfo</b> object.
1225    ///
1226    /// # Arguments
1227    ///
1228    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1229    ///
1230    /// * `gridItem` - Indicates the grid item.
1231    ///
1232    /// # Returns
1233    ///
1234    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1235    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1236    ///
1237    /// Available since API-level: 13
1238    #[cfg(feature = "api-13")]
1239    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1240    pub fn OH_ArkUI_AccessibilityElementInfoSetGridItemInfo(
1241        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1242        gridItem: *mut ArkUI_AccessibleGridItemInfo,
1243    ) -> i32;
1244    /// Sets the starting index of the selected text for an <b>ArkUI_AccessibilityElementInfo</b> object.
1245    ///
1246    /// # Arguments
1247    ///
1248    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1249    ///
1250    /// * `selectedTextStart` - Indicates the starting index of the selected text
1251    ///
1252    /// # Returns
1253    ///
1254    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1255    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1256    ///
1257    /// Available since API-level: 13
1258    #[cfg(feature = "api-13")]
1259    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1260    pub fn OH_ArkUI_AccessibilityElementInfoSetSelectedTextStart(
1261        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1262        selectedTextStart: i32,
1263    ) -> i32;
1264    /// Sets the end index of the selected text for an <b>ArkUI_AccessibilityElementInfo</b> object.
1265    ///
1266    /// # Arguments
1267    ///
1268    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1269    ///
1270    /// * `selectedTextEnd` - Indicates the end index of the selected text
1271    ///
1272    /// # Returns
1273    ///
1274    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1275    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1276    ///
1277    /// Available since API-level: 13
1278    #[cfg(feature = "api-13")]
1279    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1280    pub fn OH_ArkUI_AccessibilityElementInfoSetSelectedTextEnd(
1281        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1282        selectedTextEnd: i32,
1283    ) -> i32;
1284    /// Sets the index of the currently selected item for an <b>ArkUI_AccessibilityElementInfo</b> object.
1285    ///
1286    /// # Arguments
1287    ///
1288    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1289    ///
1290    /// * `currentItemIndex` - Indicates the index of the currently selected item.
1291    ///
1292    /// # Returns
1293    ///
1294    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1295    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1296    ///
1297    /// Available since API-level: 13
1298    #[cfg(feature = "api-13")]
1299    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1300    pub fn OH_ArkUI_AccessibilityElementInfoSetCurrentItemIndex(
1301        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1302        currentItemIndex: i32,
1303    ) -> i32;
1304    /// Sets the index of the first item for an <b>ArkUI_AccessibilityElementInfo</b> object.
1305    ///
1306    /// # Arguments
1307    ///
1308    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1309    ///
1310    /// * `startItemIndex` - Indicates the index of the first item.
1311    ///
1312    /// # Returns
1313    ///
1314    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1315    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1316    ///
1317    /// Available since API-level: 13
1318    #[cfg(feature = "api-13")]
1319    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1320    pub fn OH_ArkUI_AccessibilityElementInfoSetStartItemIndex(
1321        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1322        startItemIndex: i32,
1323    ) -> i32;
1324    /// Sets the index of the last item for an <b>ArkUI_AccessibilityElementInfo</b> object.
1325    ///
1326    /// # Arguments
1327    ///
1328    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1329    ///
1330    /// * `endItemIndex` - Indicates the index of the last item.
1331    ///
1332    /// # Returns
1333    ///
1334    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1335    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1336    ///
1337    /// Available since API-level: 13
1338    #[cfg(feature = "api-13")]
1339    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1340    pub fn OH_ArkUI_AccessibilityElementInfoSetEndItemIndex(
1341        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1342        endItemIndex: i32,
1343    ) -> i32;
1344    /// Sets the number of items for an <b>ArkUI_AccessibilityElementInfo</b> object.
1345    ///
1346    /// # Arguments
1347    ///
1348    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1349    ///
1350    /// * `itemCount` - Indicates the number of items.
1351    ///
1352    /// # Returns
1353    ///
1354    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1355    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1356    ///
1357    /// Available since API-level: 13
1358    #[cfg(feature = "api-13")]
1359    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1360    pub fn OH_ArkUI_AccessibilityElementInfoSetItemCount(
1361        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1362        itemCount: i32,
1363    ) -> i32;
1364    /// Sets the offset for an <b>ArkUI_AccessibilityElementInfo</b> object.
1365    ///
1366    /// # Arguments
1367    ///
1368    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1369    ///
1370    /// * `offset` - Indicates the scroll pixel offset relative to the top of the element.
1371    ///
1372    /// # Returns
1373    ///
1374    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1375    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1376    ///
1377    /// Available since API-level: 13
1378    #[cfg(feature = "api-13")]
1379    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1380    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityOffset(
1381        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1382        offset: i32,
1383    ) -> i32;
1384    /// Sets the accessibility group for an <b>ArkUI_AccessibilityElementInfo</b> object.
1385    ///
1386    /// # Arguments
1387    ///
1388    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1389    ///
1390    /// * `accessibilityGroup` - Indicates the accessibility group.
1391    ///
1392    /// # Returns
1393    ///
1394    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1395    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1396    ///
1397    /// Available since API-level: 13
1398    #[cfg(feature = "api-13")]
1399    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1400    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityGroup(
1401        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1402        accessibilityGroup: bool,
1403    ) -> i32;
1404    /// Sets the accessibility level for an <b>ArkUI_AccessibilityElementInfo</b> object.
1405    ///
1406    /// # Arguments
1407    ///
1408    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1409    ///
1410    /// * `accessibilityLevel` - Indicates the accessibility level.
1411    ///
1412    /// # Returns
1413    ///
1414    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1415    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1416    ///
1417    /// Available since API-level: 13
1418    #[cfg(feature = "api-13")]
1419    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1420    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityLevel(
1421        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1422        accessibilityLevel: *const ::core::ffi::c_char,
1423    ) -> i32;
1424    /// Sets the z-index for an <b>ArkUI_AccessibilityElementInfo</b> object.
1425    ///
1426    /// # Arguments
1427    ///
1428    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1429    ///
1430    /// * `zIndex` - Indicates the z-index value.
1431    ///
1432    /// # Returns
1433    ///
1434    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1435    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1436    ///
1437    /// Available since API-level: 13
1438    #[cfg(feature = "api-13")]
1439    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1440    pub fn OH_ArkUI_AccessibilityElementInfoSetZIndex(
1441        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1442        zIndex: i32,
1443    ) -> i32;
1444    /// Sets the opacity for an <b>ArkUI_AccessibilityElementInfo</b> object.
1445    ///
1446    /// # Arguments
1447    ///
1448    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1449    ///
1450    /// * `opacity` - Indicates the opacity.
1451    ///
1452    /// # Returns
1453    ///
1454    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1455    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1456    ///
1457    /// Available since API-level: 13
1458    #[cfg(feature = "api-13")]
1459    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1460    pub fn OH_ArkUI_AccessibilityElementInfoSetAccessibilityOpacity(
1461        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1462        opacity: f32,
1463    ) -> i32;
1464    /// Sets the background color for an <b>ArkUI_AccessibilityElementInfo</b> object.
1465    ///
1466    /// # Arguments
1467    ///
1468    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1469    ///
1470    /// * `backgroundColor` - Indicates the background color.
1471    ///
1472    /// # Returns
1473    ///
1474    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1475    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1476    ///
1477    /// Available since API-level: 13
1478    #[cfg(feature = "api-13")]
1479    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1480    pub fn OH_ArkUI_AccessibilityElementInfoSetBackgroundColor(
1481        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1482        backgroundColor: *const ::core::ffi::c_char,
1483    ) -> i32;
1484    /// Sets the background image for an <b>ArkUI_AccessibilityElementInfo</b> object.
1485    ///
1486    /// # Arguments
1487    ///
1488    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1489    ///
1490    /// * `backgroundImage` - Indicates the backgroundImage.
1491    ///
1492    /// # Returns
1493    ///
1494    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1495    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1496    ///
1497    /// Available since API-level: 13
1498    #[cfg(feature = "api-13")]
1499    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1500    pub fn OH_ArkUI_AccessibilityElementInfoSetBackgroundImage(
1501        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1502        backgroundImage: *const ::core::ffi::c_char,
1503    ) -> i32;
1504    /// Sets the blur effect for an <b>ArkUI_AccessibilityElementInfo</b> object.
1505    ///
1506    /// # Arguments
1507    ///
1508    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1509    ///
1510    /// * `blur` - Indicates the blur effect.
1511    ///
1512    /// # Returns
1513    ///
1514    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1515    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1516    ///
1517    /// Available since API-level: 13
1518    #[cfg(feature = "api-13")]
1519    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1520    pub fn OH_ArkUI_AccessibilityElementInfoSetBlur(
1521        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1522        blur: *const ::core::ffi::c_char,
1523    ) -> i32;
1524    /// Sets the hit test behavior for an <b>ArkUI_AccessibilityElementInfo</b> object.
1525    ///
1526    /// # Arguments
1527    ///
1528    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1529    ///
1530    /// * `hitTestBehavior` - Indicates the hit test behavior.
1531    ///
1532    /// # Returns
1533    ///
1534    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1535    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1536    ///
1537    /// Available since API-level: 13
1538    #[cfg(feature = "api-13")]
1539    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1540    pub fn OH_ArkUI_AccessibilityElementInfoSetHitTestBehavior(
1541        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1542        hitTestBehavior: *const ::core::ffi::c_char,
1543    ) -> i32;
1544    /// Creates an <b>ArkUI_AccessibilityElementInfo</b> object.
1545    ///
1546    ///
1547    /// # Returns
1548    ///
1549    /// * Returns the <b>ArkUI_AccessibilityElementInfo</b> object, or NULL if it fails to create.
1550    /// The possible reason for failure is that the memory error occurred during object creation.
1551    ///
1552    /// Available since API-level: 13
1553    ///
1554    /// Version: 1.0
1555    #[cfg(feature = "api-13")]
1556    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1557    pub fn OH_ArkUI_CreateAccessibilityElementInfo() -> *mut ArkUI_AccessibilityElementInfo;
1558    /// Destroys an <b>ArkUI_AccessibilityElementInfo</b> object.
1559    ///
1560    /// # Arguments
1561    ///
1562    /// * `elementInfo` - Indicates the pointer to the <b>ArkUI_AccessibilityElementInfo</b> object to destroy.
1563    ///
1564    /// Available since API-level: 13
1565    ///
1566    /// Version: 1.0
1567    #[cfg(feature = "api-13")]
1568    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1569    pub fn OH_ArkUI_DestoryAccessibilityElementInfo(
1570        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1571    );
1572    /// Creates an <b>ArkUI_AccessibilityEventInfo</b> object.
1573    ///
1574    ///
1575    /// # Returns
1576    ///
1577    /// * Returns the <b>ArkUI_AccessibilityEventInfo</b> object, or NULL if it fails to create.
1578    /// The possible reason for failure is that the memory error occurred during object creation.
1579    ///
1580    /// Available since API-level: 13
1581    #[cfg(feature = "api-13")]
1582    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1583    pub fn OH_ArkUI_CreateAccessibilityEventInfo() -> *mut ArkUI_AccessibilityEventInfo;
1584    /// Destroys an <b>ArkUI_AccessibilityEventInfo</b> object.
1585    ///
1586    /// # Arguments
1587    ///
1588    /// * `eventInfo` - Indicates the pointer to the <b>ArkUI_AccessibilityEventInfo</b> object to destroy.
1589    ///
1590    /// Available since API-level: 13
1591    #[cfg(feature = "api-13")]
1592    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1593    pub fn OH_ArkUI_DestoryAccessibilityEventInfo(eventInfo: *mut ArkUI_AccessibilityEventInfo);
1594    /// Sets the event type for an <b>ArkUI_AccessibilityEventInfo</b> object.
1595    ///
1596    /// # Arguments
1597    ///
1598    /// * `eventInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityEventInfo</b> object.
1599    ///
1600    /// * `eventType` - Indicates the event type.
1601    ///
1602    /// # Returns
1603    ///
1604    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1605    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1606    ///
1607    /// Available since API-level: 13
1608    #[cfg(feature = "api-13")]
1609    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1610    pub fn OH_ArkUI_AccessibilityEventSetEventType(
1611        eventInfo: *mut ArkUI_AccessibilityEventInfo,
1612        eventType: ArkUI_AccessibilityEventType,
1613    ) -> i32;
1614    /// Sets the text announced for accessibility for an <b>ArkUI_AccessibilityEventInfo</b> object.
1615    ///
1616    /// # Arguments
1617    ///
1618    /// * `eventInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityEventInfo</b> object.
1619    ///
1620    /// * `textAnnouncedForAccessibility` - Indicates the text announced for accessibility.
1621    ///
1622    /// # Returns
1623    ///
1624    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1625    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1626    ///
1627    /// Available since API-level: 13
1628    #[cfg(feature = "api-13")]
1629    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1630    pub fn OH_ArkUI_AccessibilityEventSetTextAnnouncedForAccessibility(
1631        eventInfo: *mut ArkUI_AccessibilityEventInfo,
1632        textAnnouncedForAccessibility: *const ::core::ffi::c_char,
1633    ) -> i32;
1634    /// Sets the request focus ID for an <b>ArkUI_AccessibilityEventInfo</b> object.
1635    ///
1636    /// # Arguments
1637    ///
1638    /// * `eventInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityEventInfo</b> object.
1639    ///
1640    /// * `requestFocusId` - Indicates the request focus ID.
1641    ///
1642    /// # Returns
1643    ///
1644    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1645    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1646    ///
1647    /// Available since API-level: 13
1648    #[cfg(feature = "api-13")]
1649    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1650    pub fn OH_ArkUI_AccessibilityEventSetRequestFocusId(
1651        eventInfo: *mut ArkUI_AccessibilityEventInfo,
1652        requestFocusId: i32,
1653    ) -> i32;
1654    /// Sets the element information for an <b>ArkUI_AccessibilityEventInfo</b> object.
1655    ///
1656    /// # Arguments
1657    ///
1658    /// * `eventInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityEventInfo</b> object.
1659    ///
1660    /// * `elementInfo` - Indicates the pointer to an <b>ArkUI_AccessibilityElementInfo</b> object.
1661    ///
1662    /// # Returns
1663    ///
1664    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1665    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1666    ///
1667    /// Available since API-level: 13
1668    #[cfg(feature = "api-13")]
1669    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1670    pub fn OH_ArkUI_AccessibilityEventSetElementInfo(
1671        eventInfo: *mut ArkUI_AccessibilityEventInfo,
1672        elementInfo: *mut ArkUI_AccessibilityElementInfo,
1673    ) -> i32;
1674    /// Obtains the value of a key from an <b>ArkUI_AccessibilityActionArguments</b> object.
1675    ///
1676    /// # Arguments
1677    ///
1678    /// * `arguments` - Indicates the pointer to an <b>ArkUI_AccessibilityActionArguments</b> object.
1679    ///
1680    /// * `key` - Indicates the key.
1681    ///
1682    /// * `value` - Indicates the value.
1683    ///
1684    /// # Returns
1685    ///
1686    /// * Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL`] if the operation is successful.
1687    /// Returns [`ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER`] if a parameter is incorrect.
1688    ///
1689    /// Available since API-level: 13
1690    #[cfg(feature = "api-13")]
1691    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1692    pub fn OH_ArkUI_FindAccessibilityActionArgumentByKey(
1693        arguments: *mut ArkUI_AccessibilityActionArguments,
1694        key: *const ::core::ffi::c_char,
1695        value: *mut *mut ::core::ffi::c_char,
1696    ) -> i32;
1697}