1/* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15/** 16 * @file 17 * @kit ArkUI 18 * @arkts 1.2 19 */ 20 21 22// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! 23 24import { Resource } from './../../../api/global/resource' 25import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' 26import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from './common' 27import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PixelMap } from './units' 28import { ComponentContent } from './../ComponentContent' 29import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from './enums' 30import { LengthMetrics } from './../Graphics' 31import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape' 32import { ResizableOptions } from './image' 33 34 35import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture' 36declare interface SymbolEffect { 37} 38declare enum EffectScope { 39 LAYER = 0, 40 WHOLE = 1, 41} 42declare enum EffectDirection { 43 DOWN = 0, 44 UP = 1, 45} 46export type SymbolGlyphInterface = (value?: Resource) => SymbolGlyphAttribute; 47export enum SymbolRenderingStrategy { 48 SINGLE = 0, 49 MULTIPLE_COLOR = 1, 50 MULTIPLE_OPACITY = 2 51} 52export enum SymbolEffectStrategy { 53 NONE = 0, 54 SCALE = 1, 55 HIERARCHICAL = 2 56} 57export enum EffectFillStyle { 58 CUMULATIVE = 0, 59 ITERATIVE = 1 60} 61export interface HierarchicalSymbolEffect extends SymbolEffect { 62 fillStyle?: EffectFillStyle; 63} 64export interface AppearSymbolEffect extends SymbolEffect { 65 scope?: EffectScope; 66} 67export interface DisappearSymbolEffect extends SymbolEffect { 68 scope?: EffectScope; 69} 70export interface BounceSymbolEffect extends SymbolEffect { 71 scope?: EffectScope; 72 direction?: EffectDirection; 73} 74export interface PulseSymbolEffect extends SymbolEffect { 75} 76export interface SymbolGlyphAttribute extends CommonMethod { 77 @memo 78 fontSize(value: number | string | Resource): this; 79 @memo 80 fontColor(value: Array<ResourceColor>): this; 81 @memo 82 fontWeight(value: number | FontWeight | string): this; 83 @memo 84 effectStrategy(value: SymbolEffectStrategy): this; 85 @memo 86 renderingStrategy(value: SymbolRenderingStrategy): this; 87} 88@memo 89@ComponentBuilder 90export declare function SymbolGlyph( 91 value?: Resource | undefined, 92 @memo 93 content_?: () => void, 94): SymbolGlyphAttribute 95