pub unsafe extern "C" fn OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer(
nativeBuffer: *mut OH_NativeBuffer,
) -> *mut NativeWindowBufferAvailable on crate features
native_window and api-11 only.Expand description
Creates a OHNativeWindowBuffer instance.
A new OHNativeWindowBuffer instance is created each time this function is called.
This interface needs to be used in conjunction with OH_NativeWindow_DestroyNativeWindowBuffer, otherwise memory leaks will occur.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow
§Arguments
nativeBuffer- Indicates the pointer to a native buffer. The type is OH_NativeBuffer*.
§Returns
- Returns the pointer to the OHNativeWindowBuffer instance created.
Available since API-level: 11
Version: 1.0