• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 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/**
17 * @file
18 * @kit ArkUI
19 */
20
21/*** if arkts 1.2 */
22import { SymbolGlyphAttribute } from './component/symbolglyph'
23import { AttributeModifier } from './component/common'
24import { Resource } from '../global/resource'
25/*** endif */
26
27/*** if arkts 1.2 */
28/**
29 * Declare the apply normal status function.
30 *
31 * @typedef { function } SymbolGlyphApplyNormalFunction
32 * @param { SymbolGlyphAttribute } symbolGlyphAttribute - The attribute of component.
33 * @syscap SystemCapability.ArkUI.ArkUI.Full
34 * @crossplatform
35 * @atomicservice
36 * @since 20
37 * @arkts 1.2
38 */
39declare type SymbolGlyphApplyNormalFunction = (symbolGlyphAttribute: SymbolGlyphAttribute) => void;
40/**
41 * Defines SymbolGlyph Modifier
42 *
43 * @extends SymbolGlyphAttribute, AttributeModifier<SymbolGlyphAttribute>
44 * @typedef SymbolGlyphModifier
45 * @syscap SystemCapability.ArkUI.ArkUI.Full
46 * @atomicservice
47 * @since 20
48 * @arkts 1.2
49*/
50export declare interface SymbolGlyphModifier extends SymbolGlyphAttribute, AttributeModifier<SymbolGlyphAttribute> {
51  /**
52   * Defines the normal update attribute function.
53   *
54   * @type {undefined | ((instance: SymbolGlyphAttribute) => void)}
55   * @syscap SystemCapability.ArkUI.ArkUI.Full
56   * @crossplatform
57   * @atomicservice
58   * @since 20
59   * @arkts 1.2
60   */
61  applyNormalAttribute: undefined | ((instance: SymbolGlyphAttribute) => void);
62  /**
63   * Defines the pressed update attribute function.
64   *
65   * @type {undefined | ((instance: SymbolGlyphAttribute) => void)}
66   * @syscap SystemCapability.ArkUI.ArkUI.Full
67   * @crossplatform
68   * @atomicservice
69   * @since 20
70   * @arkts 1.2
71   */
72  applyPressedAttribute: undefined | ((instance: SymbolGlyphAttribute) => void);
73  /**
74   * Defines the focused update attribute function.
75   *
76   * @type {undefined | ((instance: SymbolGlyphAttribute) => void)}
77   * @syscap SystemCapability.ArkUI.ArkUI.Full
78   * @crossplatform
79   * @atomicservice
80   * @since 20
81   * @arkts 1.2
82   */
83  applyFocusedAttribute: undefined | ((instance: SymbolGlyphAttribute) => void);
84  /**
85   * Defines the disabled update attribute function.
86   *
87   * @type {undefined | ((instance: SymbolGlyphAttribute) => void)}
88   * @syscap SystemCapability.ArkUI.ArkUI.Full
89   * @crossplatform
90   * @atomicservice
91   * @since 20
92   * @arkts 1.2
93   */
94  applyDisabledAttribute: undefined | ((instance: SymbolGlyphAttribute) => void);
95  /**
96   * Defines the selected update attribute function.
97   *
98   * @type {undefined | ((instance: SymbolGlyphAttribute) => void)}
99   * @syscap SystemCapability.ArkUI.ArkUI.Full
100   * @crossplatform
101   * @atomicservice
102   * @since 20
103   * @arkts 1.2
104   */
105  applySelectedAttribute: undefined | ((instance: SymbolGlyphAttribute) => void);
106}
107/*** endif */
108
109/**
110 * Defines SymbolGlyph Modifier
111 *
112 * @extends SymbolGlyphAttribute
113 * @implements AttributeModifier<SymbolGlyphAttribute>
114 * @syscap SystemCapability.ArkUI.ArkUI.Full
115 * @atomicservice
116 * @since 12
117*/
118/**
119 * Defines SymbolGlyph Modifier
120 *
121 * @extends SymbolGlyphAttribute
122 * @implements AttributeModifier<SymbolGlyphAttribute>
123 * @syscap SystemCapability.ArkUI.ArkUI.Full
124 * @crossplatform
125 * @atomicservice
126 * @since 20
127 */
128export declare class SymbolGlyphModifier extends SymbolGlyphAttribute implements AttributeModifier<SymbolGlyphAttribute> {
129    /**
130     * constructor
131     *
132     * @param { Resource } src
133     * @syscap SystemCapability.ArkUI.ArkUI.Full
134     * @atomicservice
135     * @since 12
136     */
137    /**
138     * constructor
139     *
140     * @param { Resource } src
141     * @syscap SystemCapability.ArkUI.ArkUI.Full
142     * @crossplatform
143     * @atomicservice
144     * @since 20
145     */
146    constructor(src?: Resource);
147
148    /**
149     * Defines the normal update attribute function.
150     *
151     * @param { SymbolGlyphAttribute } instance
152     * @syscap SystemCapability.ArkUI.ArkUI.Full
153     * @atomicservice
154     * @since 12
155     */
156    /**
157     * Defines the normal update attribute function.
158     *
159     * @param { SymbolGlyphAttribute } instance
160     * @syscap SystemCapability.ArkUI.ArkUI.Full
161     * @crossplatform
162     * @atomicservice
163     * @since 20
164     */
165    applyNormalAttribute?(instance: SymbolGlyphAttribute): void;
166  }