Skip to main content

ohos_arkui_binding/
lib.rs

1#![allow(dead_code)]
2//! ArkUI Rust bindings and high-level wrappers.
3//!
4//! This crate is organized by capability modules instead of exposing every
5//! symbol at the crate root.
6
7/// Animation types and helpers.
8pub mod animate;
9/// ArkUI native API wrappers.
10pub mod api;
11/// Core shared types such as node handles and errors.
12pub mod common;
13/// Component builders and attribute traits.
14pub mod component;
15/// Dialog abstractions.
16pub mod dialog;
17/// Event wrappers.
18pub mod event;
19/// Gesture builders and gesture data.
20pub mod gesture;
21/// ArkUI enums and value types.
22pub mod r#type;
23
24/// Alias for [`r#type`] with a non-keyword module name.
25pub use r#type as types;
26
27/// Re-export of the low-level arkui input binding crate.
28pub use ohos_arkui_input_binding as arkui_input_binding;
29/// Re-export of the image binding crate.
30#[cfg(feature = "image")]
31pub use ohos_image_binding as image_binding;
32/// Re-export of the image-native binding crate.
33#[cfg(feature = "image")]
34pub use ohos_image_native_binding as image_native_binding;
35
36pub use common::handle::ArkUIHandle;
37pub use component::built_in_component::XComponent;
38pub use component::root::RootNode;
39
40// Internal compatibility re-exports for in-crate paths.
41pub(crate) use animate::*;
42pub(crate) use api::*;
43pub(crate) use common::*;
44pub(crate) use component::*;
45pub(crate) use dialog::*;
46pub(crate) use event::*;
47pub(crate) use gesture::*;
48pub(crate) use r#type::*;