OH_NativeWindow_NativeWindowSetScalingMode

Function OH_NativeWindow_NativeWindowSetScalingMode 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowSetScalingMode(
    window: *mut NativeWindow,
    sequence: u32,
    scalingMode: OHScalingMode,
) -> i32
Available on crate feature native_window only.
Expand description

Sets scalingMode of a native window.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • window - Indicates the pointer to a OHNativeWindow instance.

  • sequence - Indicates the sequence to a produce buffer.

  • scalingMode - Indicates the enum value to OHScalingMode

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 9

Version: 1.0 = “10”) OH_NativeWindow_NativeWindowSetScalingModeV2