diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 8d454f90effc5567968d2ede4206bfe4d6fd1a8d..b1a43f368d3a44f83a5b333af10cab7724768937 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -2115,55 +2115,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; } /** @@ -5487,8 +5489,8 @@ declare namespace window { * and false means the opposite. * @param { WindowAnchor } anchor - Window anchor point that setting * when the relative position between the primary sub window and the main window remains unchanged. - * @param { number } offsetX - The x-axis offset between the anchor point of the first level sub window and the anchor point of the main window. - * @param { number } offsetY - The y-axis offset between the anchor point of the first level sub window and the anchor point of the main window. + * @param { int } offsetX - The x-axis offset between the anchor point of the first level sub window and the anchor point of the main window. + * @param { int } offsetY - The y-axis offset between the anchor point of the first level sub window and the anchor point of the main window. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5499,9 +5501,10 @@ 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 */ - setRelativePositionToParentWindowEnabled(enabled: boolean, anchor?: WindowAnchor, offsetX?: number, offsetY?: number): Promise; + setRelativePositionToParentWindowEnabled(enabled: boolean, anchor?: WindowAnchor, offsetX?: int, offsetY?: int): Promise; /** * Set the type of a window.