• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2023 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/**
22 * Provides ports for stacking containers.
23 *
24 * @interface StackInterface
25 * @syscap SystemCapability.ArkUI.ArkUI.Full
26 * @since 7
27 */
28/**
29 * Provides ports for stacking containers.
30 *
31 * @interface StackInterface
32 * @syscap SystemCapability.ArkUI.ArkUI.Full
33 * @form
34 * @since 9
35 */
36/**
37 * Provides ports for stacking containers.
38 *
39 * @interface StackInterface
40 * @syscap SystemCapability.ArkUI.ArkUI.Full
41 * @crossplatform
42 * @form
43 * @since 10
44 */
45/**
46 * Provides ports for stacking containers.
47 *
48 * @interface StackInterface
49 * @syscap SystemCapability.ArkUI.ArkUI.Full
50 * @crossplatform
51 * @form
52 * @atomicservice
53 * @since 11
54 */
55interface StackInterface {
56  /**
57   * Set the value.
58   *
59   * @param { object } value
60   * @returns { StackAttribute }
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @since 7
63   */
64  /**
65   * Set the value.
66   *
67   * @param { object } value
68   * @returns { StackAttribute }
69   * @syscap SystemCapability.ArkUI.ArkUI.Full
70   * @form
71   * @since 9
72   */
73  /**
74   * Set the value.
75   *
76   * @param { object } value
77   * @returns { StackAttribute }
78   * @syscap SystemCapability.ArkUI.ArkUI.Full
79   * @crossplatform
80   * @form
81   * @since 10
82   */
83  /**
84   * Set the value.
85   *
86   * @param { object } value
87   * @returns { StackAttribute }
88   * @syscap SystemCapability.ArkUI.ArkUI.Full
89   * @crossplatform
90   * @form
91   * @atomicservice
92   * @since 11
93   */
94  (value?: { alignContent?: Alignment }): StackAttribute;
95}
96
97/**
98 * @extends CommonMethod<StackAttribute>
99 * @syscap SystemCapability.ArkUI.ArkUI.Full
100 * @since 7
101 */
102/**
103 * @extends CommonMethod<StackAttribute>
104 * @syscap SystemCapability.ArkUI.ArkUI.Full
105 * @form
106 * @since 9
107 */
108/**
109 * @extends CommonMethod<StackAttribute>
110 * @syscap SystemCapability.ArkUI.ArkUI.Full
111 * @crossplatform
112 * @form
113 * @since 10
114 */
115/**
116 * @extends CommonMethod<StackAttribute>
117 * @syscap SystemCapability.ArkUI.ArkUI.Full
118 * @crossplatform
119 * @form
120 * @atomicservice
121 * @since 11
122 */
123declare class StackAttribute extends CommonMethod<StackAttribute> {
124  /**
125   * Called when the occupancy of items in the container is set.
126   *
127   * @param { Alignment } value
128   * @returns { StackAttribute }
129   * @syscap SystemCapability.ArkUI.ArkUI.Full
130   * @since 7
131   */
132  /**
133   * Called when the occupancy of items in the container is set.
134   *
135   * @param { Alignment } value
136   * @returns { StackAttribute }
137   * @syscap SystemCapability.ArkUI.ArkUI.Full
138   * @form
139   * @since 9
140   */
141  /**
142   * Called when the occupancy of items in the container is set.
143   *
144   * @param { Alignment } value
145   * @returns { StackAttribute }
146   * @syscap SystemCapability.ArkUI.ArkUI.Full
147   * @crossplatform
148   * @form
149   * @since 10
150   */
151  /**
152   * Called when the occupancy of items in the container is set.
153   *
154   * @param { Alignment } value
155   * @returns { StackAttribute }
156   * @syscap SystemCapability.ArkUI.ArkUI.Full
157   * @crossplatform
158   * @form
159   * @atomicservice
160   * @since 11
161   */
162  alignContent(value: Alignment): StackAttribute;
163
164  /**
165   * Defines the PointLight
166   *
167   * @param { PointLightStyle } value - The point light style.
168   * @returns { StackAttribute } The attribute of the stack.
169   * @syscap SystemCapability.ArkUI.ArkUI.Full
170   * @systemapi
171   * @since 11
172   */
173  pointLight(value: PointLightStyle): StackAttribute;
174}
175
176/**
177 * Defines Stack Component.
178 *
179 * @syscap SystemCapability.ArkUI.ArkUI.Full
180 * @since 7
181 */
182/**
183 * Defines Stack Component.
184 *
185 * @syscap SystemCapability.ArkUI.ArkUI.Full
186 * @form
187 * @since 9
188 */
189/**
190 * Defines Stack Component.
191 *
192 * @syscap SystemCapability.ArkUI.ArkUI.Full
193 * @crossplatform
194 * @form
195 * @since 10
196 */
197/**
198 * Defines Stack Component.
199 *
200 * @syscap SystemCapability.ArkUI.ArkUI.Full
201 * @crossplatform
202 * @form
203 * @atomicservice
204 * @since 11
205 */
206declare const Stack: StackInterface;
207
208/**
209 * Defines Stack Component instance.
210 *
211 * @syscap SystemCapability.ArkUI.ArkUI.Full
212 * @since 7
213 */
214/**
215 * Defines Stack Component instance.
216 *
217 * @syscap SystemCapability.ArkUI.ArkUI.Full
218 * @form
219 * @since 9
220 */
221/**
222 * Defines Stack Component instance.
223 *
224 * @syscap SystemCapability.ArkUI.ArkUI.Full
225 * @crossplatform
226 * @form
227 * @since 10
228 */
229/**
230 * Defines Stack Component instance.
231 *
232 * @syscap SystemCapability.ArkUI.ArkUI.Full
233 * @crossplatform
234 * @form
235 * @atomicservice
236 * @since 11
237 */
238declare const StackInstance: StackAttribute;
239