• 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 * The components are laid out horizontally
23 *
24 * @interface RowInterface
25 * @syscap SystemCapability.ArkUI.ArkUI.Full
26 * @since 7
27 */
28/**
29 * The components are laid out horizontally
30 *
31 * @interface RowInterface
32 * @syscap SystemCapability.ArkUI.ArkUI.Full
33 * @form
34 * @since 9
35 */
36/**
37 * The components are laid out horizontally
38 *
39 * @interface RowInterface
40 * @syscap SystemCapability.ArkUI.ArkUI.Full
41 * @crossplatform
42 * @form
43 * @since 10
44 */
45/**
46 * The components are laid out horizontally
47 *
48 * @interface RowInterface
49 * @syscap SystemCapability.ArkUI.ArkUI.Full
50 * @crossplatform
51 * @form
52 * @atomicservice
53 * @since 11
54 */
55interface RowInterface {
56  /**
57   * Called when the layout is set in the horizontal direction.
58   *
59   * @param { object } value
60   * @returns { RowAttribute }
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @since 7
63   */
64  /**
65   * Called when the layout is set in the horizontal direction.
66   *
67   * @param { object } value
68   * @returns { RowAttribute }
69   * @syscap SystemCapability.ArkUI.ArkUI.Full
70   * @form
71   * @since 9
72   */
73  /**
74   * Called when the layout is set in the horizontal direction.
75   *
76   * @param { object } value
77   * @returns { RowAttribute }
78   * @syscap SystemCapability.ArkUI.ArkUI.Full
79   * @crossplatform
80   * @form
81   * @since 10
82   */
83  /**
84   * Called when the layout is set in the horizontal direction.
85   *
86   * @param { object } value
87   * @returns { RowAttribute }
88   * @syscap SystemCapability.ArkUI.ArkUI.Full
89   * @crossplatform
90   * @form
91   * @atomicservice
92   * @since 11
93   */
94  (value?: { space?: string | number }): RowAttribute;
95}
96
97/**
98 * Defines the row attribute functions.
99 *
100 * @extends CommonMethod<RowAttribute>
101 * @syscap SystemCapability.ArkUI.ArkUI.Full
102 * @since 7
103 */
104/**
105 * Defines the row attribute functions.
106 *
107 * @extends CommonMethod<RowAttribute>
108 * @syscap SystemCapability.ArkUI.ArkUI.Full
109 * @form
110 * @since 9
111 */
112/**
113 * Defines the row attribute functions.
114 *
115 * @extends CommonMethod<RowAttribute>
116 * @syscap SystemCapability.ArkUI.ArkUI.Full
117 * @crossplatform
118 * @form
119 * @since 10
120 */
121/**
122 * Defines the row attribute functions.
123 *
124 * @extends CommonMethod<RowAttribute>
125 * @syscap SystemCapability.ArkUI.ArkUI.Full
126 * @crossplatform
127 * @form
128 * @atomicservice
129 * @since 11
130 */
131declare class RowAttribute extends CommonMethod<RowAttribute> {
132  /**
133   * Called when the vertical alignment is set.
134   *
135   * @param { VerticalAlign } value
136   * @returns { RowAttribute }
137   * @syscap SystemCapability.ArkUI.ArkUI.Full
138   * @since 7
139   */
140  /**
141   * Called when the vertical alignment is set.
142   *
143   * @param { VerticalAlign } value
144   * @returns { RowAttribute }
145   * @syscap SystemCapability.ArkUI.ArkUI.Full
146   * @form
147   * @since 9
148   */
149  /**
150   * Called when the vertical alignment is set.
151   *
152   * @param { VerticalAlign } value
153   * @returns { RowAttribute }
154   * @syscap SystemCapability.ArkUI.ArkUI.Full
155   * @crossplatform
156   * @form
157   * @since 10
158   */
159  /**
160   * Called when the vertical alignment is set.
161   *
162   * @param { VerticalAlign } value
163   * @returns { RowAttribute }
164   * @syscap SystemCapability.ArkUI.ArkUI.Full
165   * @crossplatform
166   * @form
167   * @atomicservice
168   * @since 11
169   */
170  alignItems(value: VerticalAlign): RowAttribute;
171
172  /**
173   * Called when the horizontal alignment is set.
174   *
175   * @param { FlexAlign } value
176   * @returns { RowAttribute }
177   * @syscap SystemCapability.ArkUI.ArkUI.Full
178   * @since 8
179   */
180  /**
181   * Called when the horizontal alignment is set.
182   *
183   * @param { FlexAlign } value
184   * @returns { RowAttribute }
185   * @syscap SystemCapability.ArkUI.ArkUI.Full
186   * @form
187   * @since 9
188   */
189  /**
190   * Called when the horizontal alignment is set.
191   *
192   * @param { FlexAlign } value
193   * @returns { RowAttribute }
194   * @syscap SystemCapability.ArkUI.ArkUI.Full
195   * @crossplatform
196   * @form
197   * @since 10
198   */
199  /**
200   * Called when the horizontal alignment is set.
201   *
202   * @param { FlexAlign } value
203   * @returns { RowAttribute }
204   * @syscap SystemCapability.ArkUI.ArkUI.Full
205   * @crossplatform
206   * @form
207   * @atomicservice
208   * @since 11
209   */
210  justifyContent(value: FlexAlign): RowAttribute;
211  /**
212   * Defines the PointLight
213   *
214   * @param { PointLightStyle } value - The point light style.
215   * @returns { RowAttribute } The attribute of the row.
216   * @syscap SystemCapability.ArkUI.ArkUI.Full
217   * @systemapi
218   * @since 11
219   */
220  pointLight(value: PointLightStyle): RowAttribute;
221  /**
222   * Called when the Main-Axis's direction is set reversed or not
223   *
224   * @param { Optional<boolean> } isReversed - If the main axis is reversed.
225   * @returns { RowAttribute } The attribute of the row.
226   * @syscap SystemCapability.ArkUI.ArkUI.Full
227   * @crossplatform
228   * @form
229   * @atomicservice
230   * @since 12
231   */
232  reverse(isReversed: Optional<boolean>): RowAttribute;
233}
234
235/**
236 * Defines Row Component.
237 *
238 * @syscap SystemCapability.ArkUI.ArkUI.Full
239 * @since 7
240 */
241/**
242 * Defines Row Component.
243 *
244 * @syscap SystemCapability.ArkUI.ArkUI.Full
245 * @form
246 * @since 9
247 */
248/**
249 * Defines Row Component.
250 *
251 * @syscap SystemCapability.ArkUI.ArkUI.Full
252 * @crossplatform
253 * @form
254 * @since 10
255 */
256/**
257 * Defines Row Component.
258 *
259 * @syscap SystemCapability.ArkUI.ArkUI.Full
260 * @crossplatform
261 * @form
262 * @atomicservice
263 * @since 11
264 */
265declare const Row: RowInterface;
266
267/**
268 * Defines Row Component instance.
269 *
270 * @syscap SystemCapability.ArkUI.ArkUI.Full
271 * @since 7
272 */
273/**
274 * Defines Row Component instance.
275 *
276 * @syscap SystemCapability.ArkUI.ArkUI.Full
277 * @form
278 * @since 9
279 */
280/**
281 * Defines Row Component instance.
282 *
283 * @syscap SystemCapability.ArkUI.ArkUI.Full
284 * @crossplatform
285 * @form
286 * @since 10
287 */
288/**
289 * Defines Row Component instance.
290 *
291 * @syscap SystemCapability.ArkUI.ArkUI.Full
292 * @crossplatform
293 * @form
294 * @atomicservice
295 * @since 11
296 */
297declare const RowInstance: RowAttribute;
298