ohos_window_sys/native_window/
mod.rs

1//! Native Window bindings
2//!
3//! The native window module is a local platform-based window that represents the producer of a
4//! graphics queue. It provides APIs for you to request and flush a buffer and configure buffer attributes.
5//! The following scenarios are common for native window development:
6//!  * Request a graphics buffer by using the native window API, write the produced graphics content
7//!    to the buffer, and flush the buffer to the graphics queue.
8//!  *  Request and flush a buffer when adapting to the `eglswapbuffer` interface at the EGL.
9//!
10//! Source:
11//!
12//! [English Documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/graphics/native-window-guidelines.md)
13//! [Chinese Documentation](https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/graphics/native-window-guidelines.md)
14
15#[link(name = "ace_ndk.z")]
16#[link(name = "native_window")]
17extern "C" {}
18
19mod buffer_handle;
20mod external_window;
21// the graphic_error_code header file is duplicated across the different graphics modules
22// native_image, native_buffer, native_window and native_vsync. We just generate one version.
23pub(crate) mod graphic_error_code;
24
25pub use buffer_handle::BufferHandle;
26pub use external_window::*;