161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Enumerates the layout direction of the icon and text. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @enum { number } 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 10 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Enumerates the layout direction of the icon and text. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @enum { number } 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @atomicservice 3461847f8eSopenharmony_ci * @since 11 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_cideclare enum SecurityComponentLayoutDirection { 3761847f8eSopenharmony_ci /** 3861847f8eSopenharmony_ci * Horizontal layout. 3961847f8eSopenharmony_ci * 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @since 10 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_ci /** 4461847f8eSopenharmony_ci * Horizontal layout. 4561847f8eSopenharmony_ci * 4661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4761847f8eSopenharmony_ci * @atomicservice 4861847f8eSopenharmony_ci * @since 11 4961847f8eSopenharmony_ci */ 5061847f8eSopenharmony_ci HORIZONTAL = 0, 5161847f8eSopenharmony_ci 5261847f8eSopenharmony_ci /** 5361847f8eSopenharmony_ci * Vertical layout. 5461847f8eSopenharmony_ci * 5561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5661847f8eSopenharmony_ci * @since 10 5761847f8eSopenharmony_ci */ 5861847f8eSopenharmony_ci /** 5961847f8eSopenharmony_ci * Vertical layout. 6061847f8eSopenharmony_ci * 6161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6261847f8eSopenharmony_ci * @atomicservice 6361847f8eSopenharmony_ci * @since 11 6461847f8eSopenharmony_ci */ 6561847f8eSopenharmony_ci VERTICAL = 1 6661847f8eSopenharmony_ci} 6761847f8eSopenharmony_ci 6861847f8eSopenharmony_ci/** 6961847f8eSopenharmony_ci * Defines the method of a security component. 7061847f8eSopenharmony_ci * 7161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7261847f8eSopenharmony_ci * @since 10 7361847f8eSopenharmony_ci */ 7461847f8eSopenharmony_ci/** 7561847f8eSopenharmony_ci * Defines the method of a security component. 7661847f8eSopenharmony_ci * 7761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7861847f8eSopenharmony_ci * @atomicservice 7961847f8eSopenharmony_ci * @since 11 8061847f8eSopenharmony_ci */ 8161847f8eSopenharmony_cideclare class SecurityComponentMethod<T> { 8261847f8eSopenharmony_ci /** 8361847f8eSopenharmony_ci * Icon size. 8461847f8eSopenharmony_ci * 8561847f8eSopenharmony_ci * @param { Dimension } value - Indicates the size of the icon. 8661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 8761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8861847f8eSopenharmony_ci * @since 10 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ci /** 9161847f8eSopenharmony_ci * Icon size. 9261847f8eSopenharmony_ci * 9361847f8eSopenharmony_ci * @param { Dimension } value - Indicates the size of the icon. 9461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 9561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9661847f8eSopenharmony_ci * @atomicservice 9761847f8eSopenharmony_ci * @since 11 9861847f8eSopenharmony_ci */ 9961847f8eSopenharmony_ci iconSize(value: Dimension): T; 10061847f8eSopenharmony_ci 10161847f8eSopenharmony_ci /** 10261847f8eSopenharmony_ci * Layout direction of the icon and text. 10361847f8eSopenharmony_ci * 10461847f8eSopenharmony_ci * @param { SecurityComponentLayoutDirection } value - Indicates the layout direction of the icon and text. 10561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 10661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10761847f8eSopenharmony_ci * @since 10 10861847f8eSopenharmony_ci */ 10961847f8eSopenharmony_ci /** 11061847f8eSopenharmony_ci * Layout direction of the icon and text. 11161847f8eSopenharmony_ci * 11261847f8eSopenharmony_ci * @param { SecurityComponentLayoutDirection } value - Indicates the layout direction of the icon and text. 11361847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 11461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11561847f8eSopenharmony_ci * @atomicservice 11661847f8eSopenharmony_ci * @since 11 11761847f8eSopenharmony_ci */ 11861847f8eSopenharmony_ci layoutDirection(value: SecurityComponentLayoutDirection): T; 11961847f8eSopenharmony_ci 12061847f8eSopenharmony_ci /** 12161847f8eSopenharmony_ci * Position of the security component. 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @param { Position } value - Indicates the position of the security component. 12461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 12561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12661847f8eSopenharmony_ci * @since 10 12761847f8eSopenharmony_ci */ 12861847f8eSopenharmony_ci /** 12961847f8eSopenharmony_ci * Position of the security component. 13061847f8eSopenharmony_ci * 13161847f8eSopenharmony_ci * @param { Position } value - Indicates the position of the security component. 13261847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 13361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13461847f8eSopenharmony_ci * @atomicservice 13561847f8eSopenharmony_ci * @since 11 13661847f8eSopenharmony_ci */ 13761847f8eSopenharmony_ci position(value: Position): T; 13861847f8eSopenharmony_ci 13961847f8eSopenharmony_ci /** 14061847f8eSopenharmony_ci * Anchor of the security component for positioning. The top start edge of the component is used as 14161847f8eSopenharmony_ci * the reference point for offset. 14261847f8eSopenharmony_ci * 14361847f8eSopenharmony_ci * @param { Position } value - Indicates the anchor of the component when it is positioned. 14461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 14561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14661847f8eSopenharmony_ci * @since 10 14761847f8eSopenharmony_ci */ 14861847f8eSopenharmony_ci /** 14961847f8eSopenharmony_ci * Anchor of the security component for positioning. The top start edge of the component is used as 15061847f8eSopenharmony_ci * the reference point for offset. 15161847f8eSopenharmony_ci * 15261847f8eSopenharmony_ci * @param { Position } value - Indicates the anchor of the component when it is positioned. 15361847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 15461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15561847f8eSopenharmony_ci * @atomicservice 15661847f8eSopenharmony_ci * @since 11 15761847f8eSopenharmony_ci */ 15861847f8eSopenharmony_ci markAnchor(value: Position): T; 15961847f8eSopenharmony_ci 16061847f8eSopenharmony_ci /** 16161847f8eSopenharmony_ci * Coordinate offset relative to the layout position. 16261847f8eSopenharmony_ci * Setting this attribute does not affect the layout of the parent container. 16361847f8eSopenharmony_ci * The position is adjusted only during drawing. 16461847f8eSopenharmony_ci * 16561847f8eSopenharmony_ci * @param { Position } value - Indicates the offset value. 16661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 16761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16861847f8eSopenharmony_ci * @since 10 16961847f8eSopenharmony_ci */ 17061847f8eSopenharmony_ci /** 17161847f8eSopenharmony_ci * Coordinate offset relative to the layout position. 17261847f8eSopenharmony_ci * Setting this attribute does not affect the layout of the parent container. 17361847f8eSopenharmony_ci * The position is adjusted only during drawing. 17461847f8eSopenharmony_ci * 17561847f8eSopenharmony_ci * @param { Position } value - Indicates the offset value. 17661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 17761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17861847f8eSopenharmony_ci * @atomicservice 17961847f8eSopenharmony_ci * @since 11 18061847f8eSopenharmony_ci */ 18161847f8eSopenharmony_ci /** 18261847f8eSopenharmony_ci * Coordinate offset relative to the layout completion position. 18361847f8eSopenharmony_ci * Setting this attribute does not affect the layout of the parent container. 18461847f8eSopenharmony_ci * The position is adjusted only during drawing. 18561847f8eSopenharmony_ci * 18661847f8eSopenharmony_ci * @param { Position | Edges | LocalizedEdges } value 18761847f8eSopenharmony_ci * @returns { T } 18861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18961847f8eSopenharmony_ci * @atomicservice 19061847f8eSopenharmony_ci * @since 12 19161847f8eSopenharmony_ci */ 19261847f8eSopenharmony_ci offset(value: Position | Edges | LocalizedEdges): T; 19361847f8eSopenharmony_ci 19461847f8eSopenharmony_ci /** 19561847f8eSopenharmony_ci * Font size of the inner text. 19661847f8eSopenharmony_ci * 19761847f8eSopenharmony_ci * @param { Dimension } value - Indicates the font size of the text in the security component. 19861847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 19961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20061847f8eSopenharmony_ci * @since 10 20161847f8eSopenharmony_ci */ 20261847f8eSopenharmony_ci /** 20361847f8eSopenharmony_ci * Font size of the inner text. 20461847f8eSopenharmony_ci * 20561847f8eSopenharmony_ci * @param { Dimension } value - Indicates the font size of the text in the security component. 20661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 20761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20861847f8eSopenharmony_ci * @atomicservice 20961847f8eSopenharmony_ci * @since 11 21061847f8eSopenharmony_ci */ 21161847f8eSopenharmony_ci fontSize(value: Dimension): T; 21261847f8eSopenharmony_ci 21361847f8eSopenharmony_ci /** 21461847f8eSopenharmony_ci * Font style of the inner text. 21561847f8eSopenharmony_ci * 21661847f8eSopenharmony_ci * @param { FontStyle } value - Indicates the font style of the text in the security component. 21761847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 21861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21961847f8eSopenharmony_ci * @since 10 22061847f8eSopenharmony_ci */ 22161847f8eSopenharmony_ci /** 22261847f8eSopenharmony_ci * Font style of the inner text. 22361847f8eSopenharmony_ci * 22461847f8eSopenharmony_ci * @param { FontStyle } value - Indicates the font style of the text in the security component. 22561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 22661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22761847f8eSopenharmony_ci * @atomicservice 22861847f8eSopenharmony_ci * @since 11 22961847f8eSopenharmony_ci */ 23061847f8eSopenharmony_ci fontStyle(value: FontStyle): T; 23161847f8eSopenharmony_ci 23261847f8eSopenharmony_ci /** 23361847f8eSopenharmony_ci * Font weight of the inner text. 23461847f8eSopenharmony_ci * 23561847f8eSopenharmony_ci * @param { number | FontWeight | string } value - Indicates the font weight of the text in the security component. 23661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 23761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23861847f8eSopenharmony_ci * @since 10 23961847f8eSopenharmony_ci */ 24061847f8eSopenharmony_ci /** 24161847f8eSopenharmony_ci * Font weight of the inner text. 24261847f8eSopenharmony_ci * 24361847f8eSopenharmony_ci * @param { number | FontWeight | string } value - Indicates the font weight of the text in the security component. 24461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 24561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24661847f8eSopenharmony_ci * @atomicservice 24761847f8eSopenharmony_ci * @since 11 24861847f8eSopenharmony_ci */ 24961847f8eSopenharmony_ci fontWeight(value: number | FontWeight | string): T; 25061847f8eSopenharmony_ci 25161847f8eSopenharmony_ci /** 25261847f8eSopenharmony_ci * Font family of the inner text. 25361847f8eSopenharmony_ci * 25461847f8eSopenharmony_ci * @param { string | Resource } value - Indicates the font family of the text in the security component. 25561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 25661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25761847f8eSopenharmony_ci * @since 10 25861847f8eSopenharmony_ci */ 25961847f8eSopenharmony_ci /** 26061847f8eSopenharmony_ci * Font family of the inner text. 26161847f8eSopenharmony_ci * 26261847f8eSopenharmony_ci * @param { string | Resource } value - Indicates the font family of the text in the security component. 26361847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 26461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26561847f8eSopenharmony_ci * @atomicservice 26661847f8eSopenharmony_ci * @since 11 26761847f8eSopenharmony_ci */ 26861847f8eSopenharmony_ci fontFamily(value: string | Resource): T; 26961847f8eSopenharmony_ci 27061847f8eSopenharmony_ci /** 27161847f8eSopenharmony_ci * Font color of the inner text. 27261847f8eSopenharmony_ci * 27361847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the font color of the text in the security component. 27461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 27561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27661847f8eSopenharmony_ci * @since 10 27761847f8eSopenharmony_ci */ 27861847f8eSopenharmony_ci /** 27961847f8eSopenharmony_ci * Font color of the inner text. 28061847f8eSopenharmony_ci * 28161847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the font color of the text in the security component. 28261847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 28361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28461847f8eSopenharmony_ci * @atomicservice 28561847f8eSopenharmony_ci * @since 11 28661847f8eSopenharmony_ci */ 28761847f8eSopenharmony_ci fontColor(value: ResourceColor): T; 28861847f8eSopenharmony_ci 28961847f8eSopenharmony_ci /** 29061847f8eSopenharmony_ci * Color of the icon. 29161847f8eSopenharmony_ci * 29261847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the icon color in the security component. 29361847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 29461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29561847f8eSopenharmony_ci * @since 10 29661847f8eSopenharmony_ci */ 29761847f8eSopenharmony_ci /** 29861847f8eSopenharmony_ci * Color of the icon. 29961847f8eSopenharmony_ci * 30061847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the icon color in the security component. 30161847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 30261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30361847f8eSopenharmony_ci * @atomicservice 30461847f8eSopenharmony_ci * @since 11 30561847f8eSopenharmony_ci */ 30661847f8eSopenharmony_ci iconColor(value: ResourceColor): T; 30761847f8eSopenharmony_ci 30861847f8eSopenharmony_ci /** 30961847f8eSopenharmony_ci * Background color. 31061847f8eSopenharmony_ci * 31161847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the background color of the security component. 31261847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 31361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31461847f8eSopenharmony_ci * @since 10 31561847f8eSopenharmony_ci */ 31661847f8eSopenharmony_ci /** 31761847f8eSopenharmony_ci * Background color. 31861847f8eSopenharmony_ci * 31961847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the background color of the security component. 32061847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 32161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32261847f8eSopenharmony_ci * @atomicservice 32361847f8eSopenharmony_ci * @since 11 32461847f8eSopenharmony_ci */ 32561847f8eSopenharmony_ci backgroundColor(value: ResourceColor): T; 32661847f8eSopenharmony_ci 32761847f8eSopenharmony_ci /** 32861847f8eSopenharmony_ci * Style of the border. 32961847f8eSopenharmony_ci * 33061847f8eSopenharmony_ci * @param { BorderStyle } value - Indicates the border style of the security component. 33161847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 33261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33361847f8eSopenharmony_ci * @since 10 33461847f8eSopenharmony_ci */ 33561847f8eSopenharmony_ci /** 33661847f8eSopenharmony_ci * Style of the border. 33761847f8eSopenharmony_ci * 33861847f8eSopenharmony_ci * @param { BorderStyle } value - Indicates the border style of the security component. 33961847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 34061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34161847f8eSopenharmony_ci * @atomicservice 34261847f8eSopenharmony_ci * @since 11 34361847f8eSopenharmony_ci */ 34461847f8eSopenharmony_ci borderStyle(value: BorderStyle): T; 34561847f8eSopenharmony_ci 34661847f8eSopenharmony_ci /** 34761847f8eSopenharmony_ci * Width of the border. 34861847f8eSopenharmony_ci * 34961847f8eSopenharmony_ci * @param { Dimension } value - Indicates the border width of the security component. 35061847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 35161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35261847f8eSopenharmony_ci * @since 10 35361847f8eSopenharmony_ci */ 35461847f8eSopenharmony_ci /** 35561847f8eSopenharmony_ci * Width of the border. 35661847f8eSopenharmony_ci * 35761847f8eSopenharmony_ci * @param { Dimension } value - Indicates the border width of the security component. 35861847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 35961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 36061847f8eSopenharmony_ci * @atomicservice 36161847f8eSopenharmony_ci * @since 11 36261847f8eSopenharmony_ci */ 36361847f8eSopenharmony_ci borderWidth(value: Dimension): T; 36461847f8eSopenharmony_ci 36561847f8eSopenharmony_ci /** 36661847f8eSopenharmony_ci * Color of the border. 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the border color of the security component. 36961847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 37061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37161847f8eSopenharmony_ci * @since 10 37261847f8eSopenharmony_ci */ 37361847f8eSopenharmony_ci /** 37461847f8eSopenharmony_ci * Color of the border. 37561847f8eSopenharmony_ci * 37661847f8eSopenharmony_ci * @param { ResourceColor } value - Indicates the border color of the security component. 37761847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 37861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37961847f8eSopenharmony_ci * @atomicservice 38061847f8eSopenharmony_ci * @since 11 38161847f8eSopenharmony_ci */ 38261847f8eSopenharmony_ci borderColor(value: ResourceColor): T; 38361847f8eSopenharmony_ci 38461847f8eSopenharmony_ci /** 38561847f8eSopenharmony_ci * Radius of the border. 38661847f8eSopenharmony_ci * 38761847f8eSopenharmony_ci * @param { Dimension } value - Indicates the border radius of the security component. 38861847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 38961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39061847f8eSopenharmony_ci * @since 10 39161847f8eSopenharmony_ci */ 39261847f8eSopenharmony_ci /** 39361847f8eSopenharmony_ci * Radius of the border. 39461847f8eSopenharmony_ci * 39561847f8eSopenharmony_ci * @param { Dimension } value - Indicates the border radius of the security component. 39661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 39761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39861847f8eSopenharmony_ci * @atomicservice 39961847f8eSopenharmony_ci * @since 11 40061847f8eSopenharmony_ci */ 40161847f8eSopenharmony_ci borderRadius(value: Dimension): T; 40261847f8eSopenharmony_ci 40361847f8eSopenharmony_ci /** 40461847f8eSopenharmony_ci * Padding between the background border and icon/inner text. 40561847f8eSopenharmony_ci * 40661847f8eSopenharmony_ci * @param { Padding | Dimension } value - Indicates the padding of the security component. 40761847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 40861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40961847f8eSopenharmony_ci * @since 10 41061847f8eSopenharmony_ci */ 41161847f8eSopenharmony_ci /** 41261847f8eSopenharmony_ci * Padding between the background border and icon/inner text. 41361847f8eSopenharmony_ci * 41461847f8eSopenharmony_ci * @param { Padding | Dimension } value - Indicates the padding of the security component. 41561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 41661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41761847f8eSopenharmony_ci * @atomicservice 41861847f8eSopenharmony_ci * @since 11 41961847f8eSopenharmony_ci */ 42061847f8eSopenharmony_ci padding(value: Padding | Dimension): T; 42161847f8eSopenharmony_ci 42261847f8eSopenharmony_ci /** 42361847f8eSopenharmony_ci * Space between the inner text and icon. 42461847f8eSopenharmony_ci * 42561847f8eSopenharmony_ci * @param { Dimension } value - Indicates the space between the inner text and icon. 42661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 42761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42861847f8eSopenharmony_ci * @since 10 42961847f8eSopenharmony_ci */ 43061847f8eSopenharmony_ci /** 43161847f8eSopenharmony_ci * Space between the inner text and icon. 43261847f8eSopenharmony_ci * 43361847f8eSopenharmony_ci * @param { Dimension } value - Indicates the space between the inner text and icon. 43461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 43561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43661847f8eSopenharmony_ci * @atomicservice 43761847f8eSopenharmony_ci * @since 11 43861847f8eSopenharmony_ci */ 43961847f8eSopenharmony_ci textIconSpace(value: Dimension): T; 44061847f8eSopenharmony_ci 44161847f8eSopenharmony_ci /** 44261847f8eSopenharmony_ci * Key. User can set an key to the component to identify it. 44361847f8eSopenharmony_ci * 44461847f8eSopenharmony_ci * @param { string } value - identify the key of the component. 44561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 44661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44761847f8eSopenharmony_ci * @systemapi 44861847f8eSopenharmony_ci * @since 10 44961847f8eSopenharmony_ci * @test 45061847f8eSopenharmony_ci */ 45161847f8eSopenharmony_ci key(value: string): T; 45261847f8eSopenharmony_ci 45361847f8eSopenharmony_ci /** 45461847f8eSopenharmony_ci * Sets the width of the component. 45561847f8eSopenharmony_ci * 45661847f8eSopenharmony_ci * @param { Length } value - Indicates the width of the security component. 45761847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 45861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45961847f8eSopenharmony_ci * @since 11 46061847f8eSopenharmony_ci */ 46161847f8eSopenharmony_ci /** 46261847f8eSopenharmony_ci * Sets the width of the component. 46361847f8eSopenharmony_ci * 46461847f8eSopenharmony_ci * @param { Length } value - Indicates the width of the security component. 46561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 46661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46761847f8eSopenharmony_ci * @atomicservice 46861847f8eSopenharmony_ci * @since 12 46961847f8eSopenharmony_ci */ 47061847f8eSopenharmony_ci width(value: Length): T; 47161847f8eSopenharmony_ci 47261847f8eSopenharmony_ci /** 47361847f8eSopenharmony_ci * Sets the height of the component. 47461847f8eSopenharmony_ci * 47561847f8eSopenharmony_ci * @param { Length } value - Indicates the height of the security component. 47661847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 47761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47861847f8eSopenharmony_ci * @since 11 47961847f8eSopenharmony_ci */ 48061847f8eSopenharmony_ci /** 48161847f8eSopenharmony_ci * Sets the height of the component. 48261847f8eSopenharmony_ci * 48361847f8eSopenharmony_ci * @param { Length } value - Indicates the height of the security component. 48461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 48561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48661847f8eSopenharmony_ci * @atomicservice 48761847f8eSopenharmony_ci * @since 12 48861847f8eSopenharmony_ci */ 48961847f8eSopenharmony_ci height(value: Length): T; 49061847f8eSopenharmony_ci 49161847f8eSopenharmony_ci /** 49261847f8eSopenharmony_ci * The size of the component. 49361847f8eSopenharmony_ci * 49461847f8eSopenharmony_ci * @param { SizeOptions } value - Indicates the size of the security component. 49561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 49661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49761847f8eSopenharmony_ci * @since 11 49861847f8eSopenharmony_ci */ 49961847f8eSopenharmony_ci /** 50061847f8eSopenharmony_ci * The size of the component. 50161847f8eSopenharmony_ci * 50261847f8eSopenharmony_ci * @param { SizeOptions } value - Indicates the size of the security component. 50361847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 50461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50561847f8eSopenharmony_ci * @atomicservice 50661847f8eSopenharmony_ci * @since 12 50761847f8eSopenharmony_ci */ 50861847f8eSopenharmony_ci size(value: SizeOptions): T; 50961847f8eSopenharmony_ci 51061847f8eSopenharmony_ci /** 51161847f8eSopenharmony_ci * constraint Size: 51261847f8eSopenharmony_ci * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. 51361847f8eSopenharmony_ci * 51461847f8eSopenharmony_ci * @param { ConstraintSizeOptions } value - Indicates the constraint size of the security component. 51561847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 51661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51761847f8eSopenharmony_ci * @since 11 51861847f8eSopenharmony_ci */ 51961847f8eSopenharmony_ci /** 52061847f8eSopenharmony_ci * constraint Size: 52161847f8eSopenharmony_ci * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. 52261847f8eSopenharmony_ci * 52361847f8eSopenharmony_ci * @param { ConstraintSizeOptions } value - Indicates the constraint size of the security component. 52461847f8eSopenharmony_ci * @returns { T } Returns the attribute of the security component. 52561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52661847f8eSopenharmony_ci * @atomicservice 52761847f8eSopenharmony_ci * @since 12 52861847f8eSopenharmony_ci */ 52961847f8eSopenharmony_ci constraintSize(value: ConstraintSizeOptions): T; 53061847f8eSopenharmony_ci} 531