• 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/*** if arkts 1.2 */
22import { CommonMethod } from './common';
23import { ResourceColor } from './units';
24/*** endif */
25
26/**
27 * Create Blank.
28 *
29 * @interface BlankInterface
30 * @syscap SystemCapability.ArkUI.ArkUI.Full
31 * @since 7
32 */
33/**
34 * Create Blank.
35 *
36 * @interface BlankInterface
37 * @syscap SystemCapability.ArkUI.ArkUI.Full
38 * @form
39 * @since 9
40 */
41/**
42 * Create Blank.
43 *
44 * @interface BlankInterface
45 * @syscap SystemCapability.ArkUI.ArkUI.Full
46 * @crossplatform
47 * @form
48 * @since 10
49 */
50/**
51 * Create Blank.
52 *
53 * @interface BlankInterface
54 * @syscap SystemCapability.ArkUI.ArkUI.Full
55 * @crossplatform
56 * @form
57 * @atomicservice
58 * @since arkts {'1.1':'11','1.2':'20'}
59 * @arkts 1.1&1.2
60 */
61interface BlankInterface {
62  /**
63   * The minimum size of the blank fill assembly on the container spindle.
64   *
65   * @param { number | string } min
66   * @returns { BlankAttribute }
67   * @syscap SystemCapability.ArkUI.ArkUI.Full
68   * @since 7
69   */
70  /**
71   * The minimum size of the blank fill assembly on the container spindle.
72   *
73   * @param { number | string } min
74   * @returns { BlankAttribute }
75   * @syscap SystemCapability.ArkUI.ArkUI.Full
76   * @form
77   * @since 9
78   */
79  /**
80   * The minimum size of the blank fill assembly on the container spindle.
81   *
82   * @param { number | string } min
83   * @returns { BlankAttribute }
84   * @syscap SystemCapability.ArkUI.ArkUI.Full
85   * @crossplatform
86   * @form
87   * @since 10
88   */
89  /**
90   * Minimum size of the Blank component in the container along the main axis.<br>
91   * Default value: **0**.
92   *
93   * @param { number | string } min
94   * @returns { BlankAttribute }
95   * @syscap SystemCapability.ArkUI.ArkUI.Full
96   * @crossplatform
97   * @form
98   * @atomicservice
99   * @since arkts {'1.1':'11','1.2':'20'}
100   * @arkts 1.1&1.2
101   */
102  (min?: number | string): BlankAttribute;
103}
104
105/**
106 * Inheritance CommonMethod Set Styles
107 *
108 * @extends CommonMethod<BlankAttribute>
109 * @syscap SystemCapability.ArkUI.ArkUI.Full
110 * @since 7
111 */
112/**
113 * Inheritance CommonMethod Set Styles
114 *
115 * @extends CommonMethod<BlankAttribute>
116 * @syscap SystemCapability.ArkUI.ArkUI.Full
117 * @form
118 * @since 9
119 */
120/**
121 * Inheritance CommonMethod Set Styles
122 *
123 * @extends CommonMethod<BlankAttribute>
124 * @syscap SystemCapability.ArkUI.ArkUI.Full
125 * @crossplatform
126 * @form
127 * @since 10
128 */
129/**
130 * Inheritance CommonMethod Set Styles
131 *
132 * @extends CommonMethod<BlankAttribute>
133 * @syscap SystemCapability.ArkUI.ArkUI.Full
134 * @crossplatform
135 * @form
136 * @atomicservice
137 * @since arkts {'1.1':'11','1.2':'20'}
138 * @arkts 1.1&1.2
139 */
140declare class BlankAttribute extends CommonMethod<BlankAttribute> {
141  /**
142   * color: set color.
143   *
144   * @param { ResourceColor } value
145   * @returns { BlankAttribute }
146   * @syscap SystemCapability.ArkUI.ArkUI.Full
147   * @since 7
148   */
149  /**
150   * color: set color.
151   *
152   * @param { ResourceColor } value
153   * @returns { BlankAttribute }
154   * @syscap SystemCapability.ArkUI.ArkUI.Full
155   * @form
156   * @since 9
157   */
158  /**
159   * color: set color.
160   *
161   * @param { ResourceColor } value
162   * @returns { BlankAttribute }
163   * @syscap SystemCapability.ArkUI.ArkUI.Full
164   * @crossplatform
165   * @form
166   * @since 10
167   */
168  /**
169   * Sets the color to fill the blank.
170   * Default value: **Color.Transparent**.
171   *
172   * @param { ResourceColor } value
173   * @returns { BlankAttribute }
174   * @syscap SystemCapability.ArkUI.ArkUI.Full
175   * @crossplatform
176   * @form
177   * @atomicservice
178   * @since arkts {'1.1':'11','1.2':'20'}
179   * @arkts 1.1&1.2
180   */
181  color(value: ResourceColor): BlankAttribute;
182}
183
184/**
185 * Defines Blank Component.
186 *
187 * @syscap SystemCapability.ArkUI.ArkUI.Full
188 * @since 7
189 */
190/**
191 * Defines Blank Component.
192 *
193 * @syscap SystemCapability.ArkUI.ArkUI.Full
194 * @form
195 * @since 9
196 */
197/**
198 * Defines Blank Component.
199 *
200 * @syscap SystemCapability.ArkUI.ArkUI.Full
201 * @crossplatform
202 * @form
203 * @since 10
204 */
205/**
206 * Defines Blank Component.
207 *
208 * @syscap SystemCapability.ArkUI.ArkUI.Full
209 * @crossplatform
210 * @form
211 * @atomicservice
212 * @since 11
213 */
214declare const Blank: BlankInterface;
215
216/**
217 * Defines Blank Component instance.
218 *
219 * @syscap SystemCapability.ArkUI.ArkUI.Full
220 * @since 7
221 */
222/**
223 * Defines Blank Component instance.
224 *
225 * @syscap SystemCapability.ArkUI.ArkUI.Full
226 * @form
227 * @since 9
228 */
229/**
230 * Defines Blank Component instance.
231 *
232 * @syscap SystemCapability.ArkUI.ArkUI.Full
233 * @crossplatform
234 * @form
235 * @since 10
236 */
237/**
238 * Defines Blank Component instance.
239 *
240 * @syscap SystemCapability.ArkUI.ArkUI.Full
241 * @crossplatform
242 * @form
243 * @atomicservice
244 * @since 11
245 */
246declare const BlankInstance: BlankAttribute;
247