pub unsafe extern "C" fn OH_NativeWindow_NativeWindowHandleOpt(
window: *mut OHNativeWindow,
code: c_int,
...
) -> i32Available on crate feature
native_window only.Expand description
Sets or obtains the attributes of a native window, including the width, height, and content format.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow
§Arguments
-
window- Indicates the pointer to a OHNativeWindow instance. -
code- Indicates the operation code, pointer to NativeWindowOperation. -
...- variable parameter, must correspond to code one-to-one.
§Returns
- Returns an error code, 0 is success, otherwise, failed.
Available since API-level: 8
Version: 1.0