pub unsafe extern "C" fn OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(
    pSurfaceBuffer: *mut c_void,
) -> *mut OHNativeWindowBuffer
Available on crate feature native_window only.
Expand description

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

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param pSurfaceBuffer Indicates the pointer to a produce buffer. The type is sptrOHOS::SurfaceBuffer. @return Returns the pointer to the OHNativeWindowBuffer instance created. @since 8 @version 1.0