ohos-window-manager-sys 0.1.0

Raw Bindings to the `window_manager` API of OpenHarmony
Documentation
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

pub type WindowManagerResult = Result<(), WindowManagerErrorCode>;
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
impl WindowManagerErrorCode {
    /// window id is invaild.
    pub const INVAILD_WINDOW_ID: WindowManagerErrorCode =
        WindowManagerErrorCode(const { core::num::NonZero::new(1000).unwrap() });
    /// failed.
    pub const SERVICE_ERROR: WindowManagerErrorCode =
        WindowManagerErrorCode(const { core::num::NonZero::new(2000).unwrap() });
}
#[repr(transparent)]
/// Enumerates the result types of the wm interface
///
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct WindowManagerErrorCode(pub core::num::NonZero<::core::ffi::c_uint>);