From 1bd8ed50ee3e06eedc9aea8fa7a0f093a7ea6537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=93=92?= Date: Tue, 16 Apr 2024 12:13:17 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9nativewindow=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘瓒 Change-Id: Ia3c2222505d89a26f9ebf3415bc03e14b5a652c0 --- graphic/graphic_2d/native_window/external_window.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 66db08561..0ab983609 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -550,6 +550,18 @@ int32_t OH_NativeWindow_GetSurfaceId(OHNativeWindow *window, uint64_t *surfaceId * @version 1.0 */ int32_t OH_NativeWindow_CreateNativeWindowFromSurfaceId(uint64_t surfaceId, OHNativeWindow **window); + +/** + * @brief Sets scalingMode of a native window. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeWindow + * @param window indicates the pointer to an OHNativeWindow instance. + * @param scalingMode Indicates the enum value to OHScalingModeV2 + * @return Returns an error code, 0 is Success, otherwise, failed. + * @since 12 + * @version 1.0 + */ +int32_t OH_NativeWindow_NativeWindowSetScalingModeV2(OHNativeWindow *window, OHScalingModeV2 scalingMode); #ifdef __cplusplus } #endif -- Gitee