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