OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer

Function OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(
    pSurfaceBuffer: *mut c_void,
) -> *mut NativeWindowBuffer
👎Deprecated since 12
Available on crate feature native_window only.
Expand description

Creates a OHNativeWindowBuffer instance. A new OHNativeWindowBuffer instance is created each time this function is called.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • pSurfaceBuffer - Indicates the pointer to a produce buffer. The type is sptrOHOS::SurfaceBuffer.

§Returns

  • Returns the pointer to the OHNativeWindowBuffer instance created.

Available since API-level: 8

Version: 1.0

Deprecated since 12 OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer