Skip to main content

OH_NativeWindow_NativeWindowSetScalingMode

Function OH_NativeWindow_NativeWindowSetScalingMode 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowSetScalingMode(
    window: *mut OHNativeWindow,
    sequence: u32,
    scalingMode: OHScalingMode,
) -> i32
Expand description

@brief Sets scalingMode of a native window.

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param sequence Indicates the sequence to a produce buffer. @param scalingMode Indicates the enum value to OHScalingMode @return Returns an error code, 0 is success, otherwise, failed. @since 9 @version 1.0 @deprecated since 10 @useinstead OH_NativeWindow_NativeWindowSetScalingModeV2