ohos-window-sys 0.1.6

Raw Bindings to the OpenHarmony native window
Documentation
//! Native Window bindings
//!
//! The native window module is a local platform-based window that represents the producer of a
//! graphics queue. It provides APIs for you to request and flush a buffer and configure buffer attributes.
//! The following scenarios are common for native window development:
//!  * Request a graphics buffer by using the native window API, write the produced graphics content
//!    to the buffer, and flush the buffer to the graphics queue.
//!  *  Request and flush a buffer when adapting to the `eglswapbuffer` interface at the EGL.
//!
//! Source:
//!
//! [English Documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/graphics/native-window-guidelines.md)
//! [Chinese Documentation](https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/graphics/native-window-guidelines.md)

#[link(name = "ace_ndk.z")]
#[link(name = "native_window")]
extern "C" {}

mod buffer_handle;
mod external_window;
// the graphic_error_code header file is duplicated across the different graphics modules
// native_image, native_buffer, native_window and native_vsync. We just generate one version.
pub(crate) mod graphic_error_code;

pub use buffer_handle::BufferHandle;
pub use external_window::*;