ohos_window_manager_sys/display_capture/display_capture_ffi.rs
1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6#[cfg(feature = "api-12")]
7use crate::display_info::NativeDisplayManagerResult;
8#[cfg(feature = "api-14")]
9use ohos_sys_opaque_types::OH_PixelmapNative;
10
11extern "C" {
12 /// Capture a screen pixelmap of the specified display.
13 ///
14 /// `ohos.permission.CUSTOM_SCREEN_CAPTURE`
15 /// # Arguments
16 ///
17 /// * `displayId` - The ID of the display to be captured.
18 ///
19 /// * `pixelMap` - The output pixel map of the captured display.
20 ///
21 /// # Returns
22 ///
23 /// * { DISPLAY_MANAGER_OK } If the operation is successful.
24 /// { DISPLAY_MANAGER_ERROR_NO_PERMISSION } If no permission.
25 /// { DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error.
26 /// { DISPLAY_MANAGER_ERROR_DEVICE_NOT_SUPPORTED } If device not support.
27 /// { DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
28 ///
29 /// Available since API-level: 14
30 #[cfg(feature = "api-14")]
31 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
32 pub fn OH_NativeDisplayManager_CaptureScreenPixelmap(
33 displayId: u32,
34 pixelMap: *mut *mut OH_PixelmapNative,
35 ) -> NativeDisplayManagerResult;
36}