OH_NativeWindow_CreateNativeWindow

Function OH_NativeWindow_CreateNativeWindow 

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

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

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • pSurface - Indicates the pointer to a ProduceSurface. The type is a pointer to sptrOHOS::Surface.

§Returns

  • Returns the pointer to the OHNativeWindow instance created.

Available since API-level: 8

Version: 1.0

Deprecated since 12