pub unsafe extern "C" fn OH_NativeWindow_NativeWindowSetScalingModeV2(
window: *mut NativeWindow,
scalingMode: OHScalingModeV2,
) -> i32Available on crate features
native_window and api-12 only.Expand description
Sets scalingMode of a native window.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow
§Arguments
-
window- indicates the pointer to an OHNativeWindow instance. -
scalingMode- Indicates the enum value to OHScalingModeV2
§Returns
- Returns an error code, 0 is Success, otherwise, failed.
Available since API-level: 12
Version: 1.0