OH_NativeWindow_GetBufferHandleFromNative

Function OH_NativeWindow_GetBufferHandleFromNative 

Source
pub unsafe extern "C" fn OH_NativeWindow_GetBufferHandleFromNative(
    buffer: *mut NativeWindowBuffer,
) -> *mut BufferHandle
Available on crate feature native_window only.
Expand description

Obtains the pointer to a BufferHandle of a OHNativeWindowBuffer instance.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • buffer - Indicates the pointer to a OHNativeWindowBuffer instance.

§Returns

  • Returns the pointer to the BufferHandle instance obtained.

Available since API-level: 8

Version: 1.0