/* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file * @kit ArkUI */ /*** if arkts 1.2 */ import { TextBackgroundStyle } from './span'; import { AttributeModifier } from './common'; /*** endif */ /** * Span container interface. * * @interface ContainerSpanInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Span container interface. * * @interface ContainerSpanInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ interface ContainerSpanInterface { /** * Called when container is entered in span. * * @returns { ContainerSpanAttribute } The attribute of the container span. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Called when container is entered in span. * * @returns { ContainerSpanAttribute } The attribute of the container span. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ (): ContainerSpanAttribute; } /** * Define the ContainerSpan attribute functions. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Define the ContainerSpan attribute functions. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ declare class ContainerSpanAttribute { /** * Span background style. * * @param { TextBackgroundStyle } style - The background style of span. * @returns { ContainerSpanAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Span background style. * * @param { TextBackgroundStyle } style - The background style of span. * @returns { ContainerSpanAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ textBackgroundStyle(style: TextBackgroundStyle): ContainerSpanAttribute; /** * Sets the attribute modifier. * * @param { AttributeModifier } modifier - The instance of contain span modifier. * @returns { ContainerSpanAttribute } the attribute of the ContainerSpanAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ attributeModifier(modifier: AttributeModifier): ContainerSpanAttribute; } /** * Defines ContainerSpan Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Defines ContainerSpan Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ declare const ContainerSpan: ContainerSpanInterface; /** * Defines ContainerSpan Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Defines ContainerSpan Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ declare const ContainerSpanInstance: ContainerSpanAttribute;