pub unsafe extern "C" fn OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer(
    nativeBuffer: *mut OH_NativeBuffer,
) -> *mut OHNativeWindowBuffer
Available on crate features api-11 and 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 nativeBuffer Indicates the pointer to a native buffer. The type is <b>OH_NativeBuffer*</b>.
@return Returns the pointer to the <b>OHNativeWindowBuffer</b> instance created.
@since 11
@version 1.0