/* * 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 */ /** * Provides an interface for SymbolGlyph. * * @interface SymbolGlyphInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Provides an interface for SymbolGlyph. * * @interface SymbolGlyphInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ interface SymbolGlyphInterface { /** * Called when resource is entered in SymbolGlyph. * * @param { Resource } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when resource is entered in SymbolGlyph. * * @param { Resource } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ (value?: Resource): SymbolGlyphAttribute; } /** * The symbol rendering strategy. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The symbol rendering strategy. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare enum SymbolRenderingStrategy { /** * The single rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The single rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ SINGLE = 0, /** * The multiple color rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The multiple color rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ MULTIPLE_COLOR = 1, /** * The multiple opacity rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The multiple opacity rendering strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ MULTIPLE_OPACITY = 2, } /** * The symbol effect strategy. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The symbol effect strategy. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare enum SymbolEffectStrategy { /** * There is no effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * There is no effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ NONE = 0, /** * The scale effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The scale effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ SCALE = 1, /** * The hierarchical effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * The hierarchical effect strategy. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ HIERARCHICAL = 2, } /** * The direction type of symbol effect * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare enum EffectDirection { /** * The scale down animation of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ DOWN = 0, /** * The scale up animation of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ UP = 1, } /** * Declare scope type of the symbol effect * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare enum EffectScope { /** * The layered animation of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ LAYER = 0, /** * The whole animation of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ WHOLE = 1, } /** * Declare fill style of symbol * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare enum EffectFillStyle { /** * The cumulative fill style of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ CUMULATIVE = 0, /** * The iterative fill style of symbol * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ ITERATIVE = 1, } /** * Defines SymbolEffect class. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class SymbolEffect { } /** * Defines ScaleSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class ScaleSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectScope } [scope] - The scope type of symbol effect. * @param { EffectDirection } [direction] - The direction of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(scope?: EffectScope, direction?: EffectDirection); /** * The scope type of symbol effect * * @type { ?EffectScope } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ scope?: EffectScope; /** * The direction of symbol effect * * @type { ?EffectDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ direction?: EffectDirection; } /** * Defines HierarchicalSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class HierarchicalSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectFillStyle } [fillStyle] - The fill style of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(fillStyle?: EffectFillStyle); /** * The fill style of symbol effect * * @type { ?EffectFillStyle } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ fillStyle?: EffectFillStyle; } /** * Defines AppearSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class AppearSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectScope } [scope] - The scope type of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(scope?: EffectScope); /** * The scope type of symbol effect * * @type { ?EffectScope } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ scope?: EffectScope; } /** * Defines DisappearSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class DisappearSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectScope } [scope] - The scope type of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(scope?: EffectScope); /** * The scope type of symbol effect * * @type { ?EffectScope } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ scope?: EffectScope; } /** * Defines BounceSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class BounceSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectScope } [scope] - The scope type of symbol effect. * @param { EffectDirection } [direction] - The direction of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(scope?: EffectScope, direction?: EffectDirection); /** * The scope type of symbol effect * * @type { ?EffectScope } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ scope?: EffectScope; /** * The direction of symbol effect * * @type { ?EffectDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ direction?: EffectDirection; } /** * Defines ReplaceSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class ReplaceSymbolEffect extends SymbolEffect { /** * constructor. * * @param { EffectScope } [scope] - The scope type of symbol effect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ constructor(scope?: EffectScope); /** * The scope type of symbol effect * * @type { ?EffectScope } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ scope?: EffectScope; } /** * Defines PulseSymbolEffect class. * * @extends SymbolEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class PulseSymbolEffect extends SymbolEffect { } /** * Provides attribute for SymbolGlyph. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Provides attribute for SymbolGlyph. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare class SymbolGlyphAttribute extends CommonMethod { /** * Called when the SymbolGlyph size is set. * * @param { number | string | Resource } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when the SymbolGlyph size is set. * * @param { number | string | Resource } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ fontSize(value: number | string | Resource): SymbolGlyphAttribute; /** * Called when the SymbolGlyph color is set. * * @param { Array } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when the SymbolGlyph color is set. * * @param { Array } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ fontColor(value: Array): SymbolGlyphAttribute; /** * Called when the font symbolGlyph weight is set. * * @param { number | FontWeight | string } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when the font symbolGlyph weight is set. * * @param { number | FontWeight | string } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute; /** * Called when the symbolGlyph effect is set. * * @param { SymbolEffectStrategy } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when the symbolGlyph effect is set. * * @param { SymbolEffectStrategy } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ effectStrategy(value: SymbolEffectStrategy): SymbolGlyphAttribute; /** * Called when the symbolGlyph rendering strategy is set. * * @param { SymbolRenderingStrategy } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Called when the symbolGlyph rendering strategy is set. * * @param { SymbolRenderingStrategy } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute; /** * Define effect options for SymbolGlyph. * * @param { SymbolEffect } [symbolEffect] - The symbol effect type * @param { boolean } [isActive] - The active state of the effect * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ symbolEffect(symbolEffect: SymbolEffect, isActive?: boolean): SymbolGlyphAttribute; /** * Define effect options for SymbolGlyph. * * @param { SymbolEffect } [symbolEffect] - The symbol effect type * @param { number } [triggerValue] - The trigger of the effect * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ symbolEffect(symbolEffect: SymbolEffect, triggerValue?: number): SymbolGlyphAttribute; /** * Called when the minimum font scale of the font is set. * * @param { Optional } scale * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 18 */ minFontScale(scale: Optional): SymbolGlyphAttribute; /** * Called when the maximum font scale of the font is set. * * @param { Optional } scale * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 18 */ maxFontScale(scale: Optional): SymbolGlyphAttribute; } /** * Defines SymbolGlyph Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Defines SymbolGlyph Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare const SymbolGlyph: SymbolGlyphInterface; /** * Defines SymbolGlyph Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Defines SymbolGlyph Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ declare const SymbolGlyphInstance: SymbolGlyphAttribute;