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 * Provides an interface for SymbolSpan. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface SymbolSpanInterface 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @crossplatform 2761847f8eSopenharmony_ci * @since 11 2861847f8eSopenharmony_ci */ 2961847f8eSopenharmony_ci/** 3061847f8eSopenharmony_ci * Provides an interface for SymbolSpan. 3161847f8eSopenharmony_ci * 3261847f8eSopenharmony_ci * @interface SymbolSpanInterface 3361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3461847f8eSopenharmony_ci * @crossplatform 3561847f8eSopenharmony_ci * @form 3661847f8eSopenharmony_ci * @atomicservice 3761847f8eSopenharmony_ci * @since 12 3861847f8eSopenharmony_ci */ 3961847f8eSopenharmony_ciinterface SymbolSpanInterface { 4061847f8eSopenharmony_ci /** 4161847f8eSopenharmony_ci * Called when resource is entered in SymbolSpan. 4261847f8eSopenharmony_ci * 4361847f8eSopenharmony_ci * @param { Resource } value 4461847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 4561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4661847f8eSopenharmony_ci * @crossplatform 4761847f8eSopenharmony_ci * @since 11 4861847f8eSopenharmony_ci */ 4961847f8eSopenharmony_ci /** 5061847f8eSopenharmony_ci * Called when resource is entered in SymbolSpan. 5161847f8eSopenharmony_ci * 5261847f8eSopenharmony_ci * @param { Resource } value 5361847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 5461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5561847f8eSopenharmony_ci * @crossplatform 5661847f8eSopenharmony_ci * @form 5761847f8eSopenharmony_ci * @atomicservice 5861847f8eSopenharmony_ci * @since 12 5961847f8eSopenharmony_ci */ 6061847f8eSopenharmony_ci (value: Resource): SymbolSpanAttribute; 6161847f8eSopenharmony_ci} 6261847f8eSopenharmony_ci 6361847f8eSopenharmony_ci/** 6461847f8eSopenharmony_ci * Provides attribute for SymbolSpan. 6561847f8eSopenharmony_ci * 6661847f8eSopenharmony_ci * @extends CommonMethod<SymbolSpanAttribute> 6761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6861847f8eSopenharmony_ci * @crossplatform 6961847f8eSopenharmony_ci * @since 11 7061847f8eSopenharmony_ci */ 7161847f8eSopenharmony_ci/** 7261847f8eSopenharmony_ci * Provides attribute for SymbolSpan. 7361847f8eSopenharmony_ci * 7461847f8eSopenharmony_ci * @extends CommonMethod<SymbolSpanAttribute> 7561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7661847f8eSopenharmony_ci * @crossplatform 7761847f8eSopenharmony_ci * @form 7861847f8eSopenharmony_ci * @atomicservice 7961847f8eSopenharmony_ci * @since 12 8061847f8eSopenharmony_ci */ 8161847f8eSopenharmony_cideclare class SymbolSpanAttribute extends CommonMethod<SymbolSpanAttribute> { 8261847f8eSopenharmony_ci /** 8361847f8eSopenharmony_ci * Called when the SymbolSpan size is set. 8461847f8eSopenharmony_ci * 8561847f8eSopenharmony_ci * @param { number | string | Resource } value 8661847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 8761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8861847f8eSopenharmony_ci * @crossplatform 8961847f8eSopenharmony_ci * @since 11 9061847f8eSopenharmony_ci */ 9161847f8eSopenharmony_ci /** 9261847f8eSopenharmony_ci * Called when the SymbolSpan size is set. 9361847f8eSopenharmony_ci * 9461847f8eSopenharmony_ci * @param { number | string | Resource } value 9561847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 9661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9761847f8eSopenharmony_ci * @crossplatform 9861847f8eSopenharmony_ci * @form 9961847f8eSopenharmony_ci * @atomicservice 10061847f8eSopenharmony_ci * @since 12 10161847f8eSopenharmony_ci */ 10261847f8eSopenharmony_ci fontSize(value: number | string | Resource): SymbolSpanAttribute; 10361847f8eSopenharmony_ci 10461847f8eSopenharmony_ci /** 10561847f8eSopenharmony_ci * Called when the SymbolSpan color is set. 10661847f8eSopenharmony_ci * 10761847f8eSopenharmony_ci * @param { Array<ResourceColor> } value 10861847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 10961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11061847f8eSopenharmony_ci * @crossplatform 11161847f8eSopenharmony_ci * @since 11 11261847f8eSopenharmony_ci */ 11361847f8eSopenharmony_ci /** 11461847f8eSopenharmony_ci * Called when the SymbolSpan color is set. 11561847f8eSopenharmony_ci * 11661847f8eSopenharmony_ci * @param { Array<ResourceColor> } value 11761847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 11861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11961847f8eSopenharmony_ci * @crossplatform 12061847f8eSopenharmony_ci * @form 12161847f8eSopenharmony_ci * @atomicservice 12261847f8eSopenharmony_ci * @since 12 12361847f8eSopenharmony_ci */ 12461847f8eSopenharmony_ci fontColor(value: Array<ResourceColor>): SymbolSpanAttribute; 12561847f8eSopenharmony_ci 12661847f8eSopenharmony_ci /** 12761847f8eSopenharmony_ci * Called when the font SymbolSpan weight is set. 12861847f8eSopenharmony_ci * 12961847f8eSopenharmony_ci * @param { number | FontWeight | string } value 13061847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 13161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13261847f8eSopenharmony_ci * @crossplatform 13361847f8eSopenharmony_ci * @since 11 13461847f8eSopenharmony_ci */ 13561847f8eSopenharmony_ci /** 13661847f8eSopenharmony_ci * Called when the font SymbolSpan weight is set. 13761847f8eSopenharmony_ci * 13861847f8eSopenharmony_ci * @param { number | FontWeight | string } value 13961847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } 14061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14161847f8eSopenharmony_ci * @crossplatform 14261847f8eSopenharmony_ci * @form 14361847f8eSopenharmony_ci * @atomicservice 14461847f8eSopenharmony_ci * @since 12 14561847f8eSopenharmony_ci */ 14661847f8eSopenharmony_ci fontWeight(value: number | FontWeight | string): SymbolSpanAttribute; 14761847f8eSopenharmony_ci 14861847f8eSopenharmony_ci /** 14961847f8eSopenharmony_ci * Called when the SymbolSpan effect is set. 15061847f8eSopenharmony_ci * 15161847f8eSopenharmony_ci * @param { SymbolEffectStrategy } value 15261847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15461847f8eSopenharmony_ci * @crossplatform 15561847f8eSopenharmony_ci * @since 11 15661847f8eSopenharmony_ci */ 15761847f8eSopenharmony_ci /** 15861847f8eSopenharmony_ci * Called when the SymbolSpan effect is set. 15961847f8eSopenharmony_ci * 16061847f8eSopenharmony_ci * @param { SymbolEffectStrategy } value 16161847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 16261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16361847f8eSopenharmony_ci * @crossplatform 16461847f8eSopenharmony_ci * @form 16561847f8eSopenharmony_ci * @atomicservice 16661847f8eSopenharmony_ci * @since 12 16761847f8eSopenharmony_ci */ 16861847f8eSopenharmony_ci effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute; 16961847f8eSopenharmony_ci 17061847f8eSopenharmony_ci /** 17161847f8eSopenharmony_ci * Called when the SymbolSpan rendering strategy is set. 17261847f8eSopenharmony_ci * 17361847f8eSopenharmony_ci * @param { SymbolRenderingStrategy } value 17461847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 17561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17661847f8eSopenharmony_ci * @crossplatform 17761847f8eSopenharmony_ci * @since 11 17861847f8eSopenharmony_ci */ 17961847f8eSopenharmony_ci /** 18061847f8eSopenharmony_ci * Called when the SymbolSpan rendering strategy is set. 18161847f8eSopenharmony_ci * 18261847f8eSopenharmony_ci * @param { SymbolRenderingStrategy } value 18361847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } The attribute of the SymbolGlyph. 18461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18561847f8eSopenharmony_ci * @crossplatform 18661847f8eSopenharmony_ci * @form 18761847f8eSopenharmony_ci * @atomicservice 18861847f8eSopenharmony_ci * @since 12 18961847f8eSopenharmony_ci */ 19061847f8eSopenharmony_ci renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute; 19161847f8eSopenharmony_ci 19261847f8eSopenharmony_ci /** 19361847f8eSopenharmony_ci * Sets the attribute modifier. 19461847f8eSopenharmony_ci * 19561847f8eSopenharmony_ci * @param { AttributeModifier<SymbolSpanAttribute> } modifier - The instance of symbol span modifier. 19661847f8eSopenharmony_ci * @returns { SymbolSpanAttribute } the attribute of the SymbolSpanAttribute. 19761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19861847f8eSopenharmony_ci * @crossplatform 19961847f8eSopenharmony_ci * @atomicservice 20061847f8eSopenharmony_ci * @since 12 20161847f8eSopenharmony_ci */ 20261847f8eSopenharmony_ci attributeModifier(modifier: AttributeModifier<SymbolSpanAttribute>): SymbolSpanAttribute; 20361847f8eSopenharmony_ci} 20461847f8eSopenharmony_ci 20561847f8eSopenharmony_ci/** 20661847f8eSopenharmony_ci * Defines SymbolSpan Component. 20761847f8eSopenharmony_ci * 20861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20961847f8eSopenharmony_ci * @crossplatform 21061847f8eSopenharmony_ci * @since 11 21161847f8eSopenharmony_ci */ 21261847f8eSopenharmony_ci/** 21361847f8eSopenharmony_ci * Defines SymbolSpan Component. 21461847f8eSopenharmony_ci * 21561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21661847f8eSopenharmony_ci * @crossplatform 21761847f8eSopenharmony_ci * @form 21861847f8eSopenharmony_ci * @atomicservice 21961847f8eSopenharmony_ci * @since 12 22061847f8eSopenharmony_ci */ 22161847f8eSopenharmony_cideclare const SymbolSpan: SymbolSpanInterface; 22261847f8eSopenharmony_ci 22361847f8eSopenharmony_ci/** 22461847f8eSopenharmony_ci * Defines SymbolSpan Component instance. 22561847f8eSopenharmony_ci * 22661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22761847f8eSopenharmony_ci * @crossplatform 22861847f8eSopenharmony_ci * @since 11 22961847f8eSopenharmony_ci */ 23061847f8eSopenharmony_ci/** 23161847f8eSopenharmony_ci * Defines SymbolSpan Component instance. 23261847f8eSopenharmony_ci * 23361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23461847f8eSopenharmony_ci * @crossplatform 23561847f8eSopenharmony_ci * @form 23661847f8eSopenharmony_ci * @atomicservice 23761847f8eSopenharmony_ci * @since 12 23861847f8eSopenharmony_ci */ 23961847f8eSopenharmony_cideclare const SymbolSpanInstance: SymbolSpanAttribute; 240