diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 81b0989bd9cdaeee40d92630f1077c27ab013cbf..94b4c21cc20bfa42c1509f3fdee9fbde66ca7182 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -2122,55 +2122,57 @@ declare namespace window { /** * button background size when hover. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - buttonBackgroundSize? : number; + buttonBackgroundSize? : int; /** * button spacing. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - spacingBetweenButtons? : number; + spacingBetweenButtons? : int; /** * close button right Margin. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - closeButtonRightMargin? : number; + closeButtonRightMargin? : int; /** * button icon size. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ - buttonIconSize? : number; + buttonIconSize? : int; /** * corner radius of button background when hover. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ - buttonBackgroundCornerRadius? : number; + buttonBackgroundCornerRadius? : int; } /** @@ -2776,71 +2778,75 @@ declare namespace window { /** * The right of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ /** * The right of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - right: number; - + right: int; /** * The top of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ /** * The top of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - top: number; - + top: int; /** * The width of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ /** * The width of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - width: number; - + width: int; /** * The height of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ /** * The height of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - height: number; + height: int; } /** @@ -8816,7 +8822,8 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setHandwritingFlag(enable: boolean): Promise; @@ -9889,7 +9896,8 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getWindowDecorVisible(): boolean; @@ -9905,7 +9913,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowTitleMoveEnabled(enabled: boolean): void; @@ -9920,7 +9929,8 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowTitle(titleName: string): Promise; @@ -10073,7 +10083,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ getDecorButtonStyle(): DecorButtonStyle; @@ -10112,7 +10123,8 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ getTitleButtonRect(): TitleButtonRect; @@ -10130,7 +10142,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setTitleButtonVisible(isMaximizeVisible: boolean, isMinimizeVisible: boolean, isSplitVisible: boolean): void; @@ -10748,7 +10761,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ setTitleAndDockHoverShown(isTitleHoverShown?: boolean, isDockHoverShown?: boolean): Promise; @@ -10778,7 +10792,8 @@ declare namespace window { * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowDelayRaiseOnDrag(isEnabled: boolean): void; @@ -12030,7 +12045,8 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @StageModelOnly * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowRectAutoSave(enabled: boolean): Promise; @@ -12049,7 +12065,8 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @stagemodelonly * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowRectAutoSave(enabled: boolean, isSaveBySpecifiedFlag: boolean): Promise; @@ -12075,7 +12092,8 @@ declare namespace window { * @syscap SystemCapability.Window.SessionManager * @StageModelOnly * @atomicservice - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 */ isWindowRectAutoSave(): Promise;