1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Native XComponent bindings
//
// ## When to Use
//
// NativeXComponent provides an instance for the <XComponent> at the native layer, which can be
// used as a bridge for binding with the <XComponent> at the JS layer. The NDK APIs provided by the
// <XComponent> depend on this instance. The provided APIs include those for obtaining a native
// window, obtaining the layout or event information of the <XComponent>, registering the lifecycle
// callbacks of the <XComponent>, and registering the callbacks for the touch, mouse, and key events
// of the <XComponent>. You can use the provided APIs in the following scenarios:
//
// * Register the lifecycle and event callbacks of the <XComponent>.
// * Initialize the environment, obtain the current state, and respond to various events via these callbacks.
// * Use the native window and EGL APIs to develop custom drawing content, and apply for and submit buffers to the graphics queue.
//! Source:
//!
//! [English Documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/ui/napi-xcomponent-guidelines.md)
//! [Chinese Documentation](https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/ui/napi-xcomponent-guidelines.md)
//!
//! ## Feature flags
extern "C"
pub use *;
pub use *;
/// Enumerates the API access states.
///
/// Available since API 8.
;
// assert that our handwritten binding matches the size of the generated binding.
// needs to be updated when regenerating the bindings, since the bindgen type name
// may change.
const ASSERT_SIZE_OK: =
assert!;