• 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 * Defines the data type of the interface restriction.
18 *
19 * @interface Resource
20 * @syscap SystemCapability.ArkUI.ArkUI.Full
21 * @since 7
22 */
23/**
24 * Defines the data type of the interface restriction.
25 *
26 * @interface Resource
27 * @syscap SystemCapability.ArkUI.ArkUI.Full
28 * @since 9
29 * @form
30 */
31/**
32 * Defines the data type of the interface restriction.
33 *
34 * @syscap SystemCapability.ArkUI.ArkUI.Full
35 * @crossplatform
36 * @since 10
37 * @form
38 */
39declare type Resource = import('../api/global/resource').Resource;
40
41/**
42 * Defines the length property with string, number and resource unit.
43 *
44 * @syscap SystemCapability.ArkUI.ArkUI.Full
45 * @since 7
46 */
47/**
48 * Defines the length property with string, number and resource unit.
49 *
50 * @syscap SystemCapability.ArkUI.ArkUI.Full
51 * @since 9
52 * @form
53 */
54/**
55 * Defines the length property with string, number and resource unit.
56 *
57 * @syscap SystemCapability.ArkUI.ArkUI.Full
58 * @crossplatform
59 * @since 10
60 * @form
61 */
62declare type Length = string | number | Resource;
63
64/**
65 * Defines the length property with number in units of px.
66 *
67 * @syscap SystemCapability.ArkUI.ArkUI.Full
68 * @since 10
69 */
70declare type PX = `${number}px`;
71
72/**
73 * Defines the length property with number or number in units of vp.
74 *
75 * @syscap SystemCapability.ArkUI.ArkUI.Full
76 * @since 10
77 */
78declare type VP = `${number}vp` | number;
79
80/**
81 * Defines the length property with number in units of fp.
82 *
83 * @syscap SystemCapability.ArkUI.ArkUI.Full
84 * @since 10
85 */
86declare type FP = `${number}fp`;
87
88/**
89 * Defines the length property with number in units of lpx.
90 *
91 * @syscap SystemCapability.ArkUI.ArkUI.Full
92 * @since 10
93 */
94declare type LPX = `${number}lpx`;
95
96/**
97 * Defines the length property with number in units of Percentage.
98 *
99 * @syscap SystemCapability.ArkUI.ArkUI.Full
100 * @since 10
101 */
102declare type Percentage = `${number}%`;
103
104/**
105 * Defines the angle property with number in units of deg.
106 *
107 * @syscap SystemCapability.ArkUI.ArkUI.Full
108 * @since 10
109 */
110declare type Degree = `${number}deg`;
111
112/**
113 * Defines the dimension property with number with units(vp|px|fp|lpx|%), and resource.
114 *
115 * @syscap SystemCapability.ArkUI.ArkUI.Full
116 * @since 10
117 */
118declare type Dimension = PX | VP | FP | LPX | Percentage | Resource;
119
120/**
121 * Defines the string which can use resource.
122 *
123 * @syscap SystemCapability.ArkUI.ArkUI.Full
124 * @since 7
125 */
126/**
127 * Defines the string which can use resource.
128 *
129 * @syscap SystemCapability.ArkUI.ArkUI.Full
130 * @since 9
131 * @form
132 */
133/**
134 * Defines the string which can use resource.
135 *
136 * @syscap SystemCapability.ArkUI.ArkUI.Full
137 * @crossplatform
138 * @since 10
139 * @form
140 */
141declare type ResourceStr = string | Resource;
142
143/**
144 * Defines the padding property.
145 *
146 * @syscap SystemCapability.ArkUI.ArkUI.Full
147 * @since 7
148 */
149/**
150 * Defines the padding property.
151 *
152 * @syscap SystemCapability.ArkUI.ArkUI.Full
153 * @since 9
154 * @form
155 */
156/**
157 * Defines the padding property.
158 *
159 * @syscap SystemCapability.ArkUI.ArkUI.Full
160 * @crossplatform
161 * @since 10
162 * @form
163 */
164declare type Padding = {
165  /**
166   * top property.
167   *
168   * @type { ?Length }
169   * @syscap SystemCapability.ArkUI.ArkUI.Full
170   * @since 7
171   */
172  /**
173   * top property.
174   *
175   * @type { ?Length }
176   * @syscap SystemCapability.ArkUI.ArkUI.Full
177   * @since 9
178   * @form
179   */
180  /**
181   * top property.
182   *
183   * @type { ?Length }
184   * @syscap SystemCapability.ArkUI.ArkUI.Full
185   * @crossplatform
186   * @since 10
187   * @form
188   */
189  top?: Length;
190
191  /**
192   * right property.
193   *
194   * @type { ?Length }
195   * @syscap SystemCapability.ArkUI.ArkUI.Full
196   * @since 7
197   */
198  /**
199   * right property.
200   *
201   * @type { ?Length }
202   * @syscap SystemCapability.ArkUI.ArkUI.Full
203   * @since 9
204   * @form
205   */
206  /**
207   * right property.
208   *
209   * @type { ?Length }
210   * @syscap SystemCapability.ArkUI.ArkUI.Full
211   * @crossplatform
212   * @since 10
213   * @form
214   */
215  right?: Length;
216
217  /**
218   * bottom property.
219   *
220   * @type { ?Length }
221   * @syscap SystemCapability.ArkUI.ArkUI.Full
222   * @since 7
223   */
224  /**
225   * bottom property.
226   *
227   * @type { ?Length }
228   * @syscap SystemCapability.ArkUI.ArkUI.Full
229   * @since 9
230   * @form
231   */
232  /**
233   * bottom property.
234   *
235   * @type { ?Length }
236   * @syscap SystemCapability.ArkUI.ArkUI.Full
237   * @crossplatform
238   * @since 10
239   * @form
240   */
241  bottom?: Length;
242
243  /**
244   * left property.
245   *
246   * @type { ?Length }
247   * @syscap SystemCapability.ArkUI.ArkUI.Full
248   * @since 7
249   */
250  /**
251   * left property.
252   *
253   * @type { ?Length }
254   * @syscap SystemCapability.ArkUI.ArkUI.Full
255   * @since 9
256   * @form
257   */
258  /**
259   * left property.
260   *
261   * @type { ?Length }
262   * @syscap SystemCapability.ArkUI.ArkUI.Full
263   * @crossplatform
264   * @since 10
265   * @form
266   */
267  left?: Length;
268};
269
270/**
271 * Defines the margin property.
272 *
273 * @syscap SystemCapability.ArkUI.ArkUI.Full
274 * @since 7
275 */
276/**
277 * Defines the margin property.
278 *
279 * @syscap SystemCapability.ArkUI.ArkUI.Full
280 * @since 9
281 * @form
282 */
283/**
284 * Defines the margin property.
285 *
286 * @syscap SystemCapability.ArkUI.ArkUI.Full
287 * @crossplatform
288 * @since 10
289 * @form
290 */
291declare type Margin = Padding;
292
293/**
294 * Defines the border width property.
295 *
296 * @syscap SystemCapability.ArkUI.ArkUI.Full
297 * @crossplatform
298 * @since 10
299 */
300declare type EdgeWidth = EdgeWidths;
301
302/**
303 * Defines the border width property.
304 *
305 * @syscap SystemCapability.ArkUI.ArkUI.Full
306 * @since 9
307 * @form
308 */
309/**
310 * Defines the border width property.
311 *
312 * @syscap SystemCapability.ArkUI.ArkUI.Full
313 * @crossplatform
314 * @since 10
315 * @form
316 */
317declare type EdgeWidths = {
318  /**
319   * top property.
320   *
321   * @type { ?Length }
322   * @syscap SystemCapability.ArkUI.ArkUI.Full
323   * @since 9
324   * @form
325   */
326  /**
327   * top property.
328   *
329   * @type { ?Length }
330   * @syscap SystemCapability.ArkUI.ArkUI.Full
331   * @crossplatform
332   * @since 10
333   * @form
334   */
335  top?: Length;
336
337  /**
338   * right property.
339   *
340   * @type { ?Length }
341   * @syscap SystemCapability.ArkUI.ArkUI.Full
342   * @since 9
343   * @form
344   */
345  /**
346   * right property.
347   *
348   * @type { ?Length }
349   * @syscap SystemCapability.ArkUI.ArkUI.Full
350   * @crossplatform
351   * @since 10
352   * @form
353   */
354  right?: Length;
355
356  /**
357   * bottom property.
358   *
359   * @type { ?Length }
360   * @syscap SystemCapability.ArkUI.ArkUI.Full
361   * @since 9
362   * @form
363   */
364  /**
365   * bottom property.
366   *
367   * @type { ?Length }
368   * @syscap SystemCapability.ArkUI.ArkUI.Full
369   * @crossplatform
370   * @since 10
371   * @form
372   */
373  bottom?: Length;
374
375  /**
376   * left property.
377   *
378   * @type { ?Length }
379   * @syscap SystemCapability.ArkUI.ArkUI.Full
380   * @since 9
381   * @form
382   */
383  /**
384   * left property.
385   *
386   * @type { ?Length }
387   * @syscap SystemCapability.ArkUI.ArkUI.Full
388   * @crossplatform
389   * @since 10
390   * @form
391   */
392  left?: Length;
393};
394
395/**
396 * Defines the border radius property.
397 *
398 * @syscap SystemCapability.ArkUI.ArkUI.Full
399 * @since 9
400 * @form
401 */
402/**
403 * Defines the border radius property.
404 *
405 * @syscap SystemCapability.ArkUI.ArkUI.Full
406 * @crossplatform
407 * @since 10
408 * @form
409 */
410declare type BorderRadiuses = {
411  /**
412   * top-left property.
413   *
414   * @type { ?Length }
415   * @syscap SystemCapability.ArkUI.ArkUI.Full
416   * @since 9
417   * @form
418   */
419  /**
420   * top-left property.
421   *
422   * @type { ?Length }
423   * @syscap SystemCapability.ArkUI.ArkUI.Full
424   * @crossplatform
425   * @since 10
426   * @form
427   */
428  topLeft?: Length;
429
430  /**
431   * top-right property.
432   *
433   * @type { ?Length }
434   * @syscap SystemCapability.ArkUI.ArkUI.Full
435   * @since 9
436   * @form
437   */
438  /**
439   * top-right property.
440   *
441   * @type { ?Length }
442   * @syscap SystemCapability.ArkUI.ArkUI.Full
443   * @crossplatform
444   * @since 10
445   * @form
446   */
447  topRight?: Length;
448
449  /**
450   * bottom-left property.
451   *
452   * @type { ?Length }
453   * @syscap SystemCapability.ArkUI.ArkUI.Full
454   * @since 9
455   * @form
456   */
457  /**
458   * bottom-left property.
459   *
460   * @type { ?Length }
461   * @syscap SystemCapability.ArkUI.ArkUI.Full
462   * @crossplatform
463   * @since 10
464   * @form
465   */
466  bottomLeft?: Length;
467
468  /**
469   * bottom-right property.
470   *
471   * @type { ?Length }
472   * @syscap SystemCapability.ArkUI.ArkUI.Full
473   * @since 9
474   * @form
475   */
476  /**
477   * bottom-right property.
478   *
479   * @type { ?Length }
480   * @syscap SystemCapability.ArkUI.ArkUI.Full
481   * @crossplatform
482   * @since 10
483   * @form
484   */
485  bottomRight?: Length;
486};
487
488/**
489 * Defines the border color property.
490 *
491 * @syscap SystemCapability.ArkUI.ArkUI.Full
492 * @since 9
493 * @form
494 */
495/**
496 * Defines the border color property.
497 *
498 * @syscap SystemCapability.ArkUI.ArkUI.Full
499 * @crossplatform
500 * @since 10
501 * @form
502 */
503declare type EdgeColors = {
504  /**
505   * top property.
506   *
507   * @type { ?ResourceColor }
508   * @syscap SystemCapability.ArkUI.ArkUI.Full
509   * @since 9
510   * @form
511   */
512  /**
513   * top property.
514   *
515   * @type { ?ResourceColor }
516   * @syscap SystemCapability.ArkUI.ArkUI.Full
517   * @crossplatform
518   * @since 10
519   * @form
520   */
521  top?: ResourceColor;
522
523  /**
524   * right property.
525   *
526   * @type { ?ResourceColor }
527   * @syscap SystemCapability.ArkUI.ArkUI.Full
528   * @since 9
529   * @form
530   */
531  /**
532   * right property.
533   *
534   * @type { ?ResourceColor }
535   * @syscap SystemCapability.ArkUI.ArkUI.Full
536   * @crossplatform
537   * @since 10
538   * @form
539   */
540  right?: ResourceColor;
541
542  /**
543   * bottom property.
544   *
545   * @type { ?ResourceColor }
546   * @syscap SystemCapability.ArkUI.ArkUI.Full
547   * @since 9
548   * @form
549   */
550  /**
551   * bottom property.
552   *
553   * @type { ?ResourceColor }
554   * @syscap SystemCapability.ArkUI.ArkUI.Full
555   * @crossplatform
556   * @since 10
557   * @form
558   */
559  bottom?: ResourceColor;
560
561  /**
562   * left property.
563   *
564   * @type { ?ResourceColor }
565   * @syscap SystemCapability.ArkUI.ArkUI.Full
566   * @since 9
567   * @form
568   */
569  /**
570   * left property.
571   *
572   * @type { ?ResourceColor }
573   * @syscap SystemCapability.ArkUI.ArkUI.Full
574   * @crossplatform
575   * @since 10
576   * @form
577   */
578  left?: ResourceColor;
579};
580
581/**
582 * Defines the border style property.
583 *
584 * @syscap SystemCapability.ArkUI.ArkUI.Full
585 * @since 9
586 * @form
587 */
588/**
589 * Defines the border style property.
590 *
591 * @syscap SystemCapability.ArkUI.ArkUI.Full
592 * @crossplatform
593 * @since 10
594 * @form
595 */
596declare type EdgeStyles = {
597  /**
598   * top property.
599   *
600   * @type { ?BorderStyle }
601   * @syscap SystemCapability.ArkUI.ArkUI.Full
602   * @since 9
603   * @form
604   */
605  /**
606   * top property.
607   *
608   * @type { ?BorderStyle }
609   * @syscap SystemCapability.ArkUI.ArkUI.Full
610   * @crossplatform
611   * @since 10
612   * @form
613   */
614  top?: BorderStyle;
615
616  /**
617   * right property.
618   *
619   * @type { ?BorderStyle }
620   * @syscap SystemCapability.ArkUI.ArkUI.Full
621   * @since 9
622   * @form
623   */
624  /**
625   * right property.
626   *
627   * @type { ?BorderStyle }
628   * @syscap SystemCapability.ArkUI.ArkUI.Full
629   * @crossplatform
630   * @since 10
631   * @form
632   */
633  right?: BorderStyle;
634
635  /**
636   * bottom property.
637   *
638   * @type { ?BorderStyle }
639   * @syscap SystemCapability.ArkUI.ArkUI.Full
640   * @since 9
641   * @form
642   */
643  /**
644   * bottom property.
645   *
646   * @type { ?BorderStyle }
647   * @syscap SystemCapability.ArkUI.ArkUI.Full
648   * @crossplatform
649   * @since 10
650   * @form
651   */
652  bottom?: BorderStyle;
653
654  /**
655   * left property.
656   *
657   * @type { ?BorderStyle }
658   * @syscap SystemCapability.ArkUI.ArkUI.Full
659   * @since 9
660   * @form
661   */
662  /**
663   * left property.
664   *
665   * @type { ?BorderStyle }
666   * @syscap SystemCapability.ArkUI.ArkUI.Full
667   * @crossplatform
668   * @since 10
669   * @form
670   */
671  left?: BorderStyle;
672};
673
674/**
675 * Defines the offset property.
676 *
677 * @syscap SystemCapability.ArkUI.ArkUI.Full
678 * @since 7
679 */
680/**
681 * Defines the offset property.
682 *
683 * @syscap SystemCapability.ArkUI.ArkUI.Full
684 * @crossplatform
685 * @since 10
686 */
687declare type Offset = {
688  /**
689   * dx property.
690   *
691   * @type { Length }
692   * @syscap SystemCapability.ArkUI.ArkUI.Full
693   * @since 7
694   */
695  /**
696   * dx property.
697   *
698   * @type { Length }
699   * @syscap SystemCapability.ArkUI.ArkUI.Full
700   * @crossplatform
701   * @since 10
702   */
703  dx: Length;
704
705  /**
706   * dy property.
707   *
708   * @type { Length }
709   * @syscap SystemCapability.ArkUI.ArkUI.Full
710   * @since 7
711   */
712  /**
713   * dy property.
714   *
715   * @type { Length }
716   * @syscap SystemCapability.ArkUI.ArkUI.Full
717   * @crossplatform
718   * @since 10
719   */
720  dy: Length;
721};
722
723/**
724 * Defines the color which can use resource.
725 *
726 * @syscap SystemCapability.ArkUI.ArkUI.Full
727 * @since 7
728 */
729/**
730 * Defines the color which can use resource.
731 *
732 * @syscap SystemCapability.ArkUI.ArkUI.Full
733 * @since 9
734 * @form
735 */
736/**
737 * Defines the color which can use resource.
738 *
739 * @syscap SystemCapability.ArkUI.ArkUI.Full
740 * @crossplatform
741 * @since 10
742 * @form
743 */
744declare type ResourceColor = Color | number | string | Resource;
745
746/**
747 * Defines the length constrain property.
748 *
749 * @syscap SystemCapability.ArkUI.ArkUI.Full
750 * @since 9
751 * @form
752 */
753/**
754 * Defines the length constrain property.
755 *
756 * @syscap SystemCapability.ArkUI.ArkUI.Full
757 * @crossplatform
758 * @since 10
759 * @form
760 */
761declare type LengthConstrain = {
762  /**
763   * minimum length.
764   *
765   * @type { Length }
766   * @syscap SystemCapability.ArkUI.ArkUI.Full
767   * @since 9
768   * @form
769   */
770  /**
771   * minimum length.
772   *
773   * @type { Length }
774   * @syscap SystemCapability.ArkUI.ArkUI.Full
775   * @crossplatform
776   * @since 10
777   * @form
778   */
779  minLength: Length;
780
781  /**
782   * maximum length.
783   *
784   * @type { Length }
785   * @syscap SystemCapability.ArkUI.ArkUI.Full
786   * @since 9
787   * @form
788   */
789  /**
790   * maximum length.
791   *
792   * @type { Length }
793   * @syscap SystemCapability.ArkUI.ArkUI.Full
794   * @crossplatform
795   * @since 10
796   * @form
797   */
798  maxLength: Length;
799};
800
801/**
802 * Defines the font used for text.
803 *
804 * @interface Font
805 * @syscap SystemCapability.ArkUI.ArkUI.Full
806 * @since 7
807 */
808/**
809 * Defines the font used for text.
810 *
811 * @interface Font
812 * @syscap SystemCapability.ArkUI.ArkUI.Full
813 * @crossplatform
814 * @since 10
815 */
816declare interface Font {
817  /**
818   * font size.
819   *
820   * @type { ?Length }
821   * @syscap SystemCapability.ArkUI.ArkUI.Full
822   * @since 7
823   */
824  /**
825   * font size.
826   *
827   * @type { ?Length }
828   * @syscap SystemCapability.ArkUI.ArkUI.Full
829   * @crossplatform
830   * @since 10
831   */
832  size?: Length;
833
834  /**
835   * font weight.
836   *
837   * @type { ?(FontWeight | number | string) }
838   * @syscap SystemCapability.ArkUI.ArkUI.Full
839   * @since 7
840   */
841  /**
842   * font weight.
843   *
844   * @type { ?(FontWeight | number | string) }
845   * @syscap SystemCapability.ArkUI.ArkUI.Full
846   * @crossplatform
847   * @since 10
848   */
849  weight?: FontWeight | number | string;
850
851  /**
852   * font family.
853   *
854   * @type { ?(string | Resource) }
855   * @syscap SystemCapability.ArkUI.ArkUI.Full
856   * @since 7
857   */
858  /**
859   * font family.
860   *
861   * @type { ?(string | Resource) }
862   * @syscap SystemCapability.ArkUI.ArkUI.Full
863   * @crossplatform
864   * @since 10
865   */
866  family?: string | Resource;
867
868  /**
869   * font style.
870   *
871   * @type { ?FontStyle }
872   * @syscap SystemCapability.ArkUI.ArkUI.Full
873   * @since 7
874   */
875  /**
876   * font style.
877   *
878   * @type { ?FontStyle }
879   * @syscap SystemCapability.ArkUI.ArkUI.Full
880   * @crossplatform
881   * @since 10
882   */
883  style?: FontStyle;
884}
885
886/**
887 * Defines the area property.
888 *
889 * @interface Area
890 * @syscap SystemCapability.ArkUI.ArkUI.Full
891 * @since 8
892 */
893/**
894 * Defines the area property.
895 *
896 * @interface Area
897 * @syscap SystemCapability.ArkUI.ArkUI.Full
898 * @since 9
899 * @form
900 */
901/**
902 * Defines the area property.
903 *
904 * @interface Area
905 * @syscap SystemCapability.ArkUI.ArkUI.Full
906 * @crossplatform
907 * @since 10
908 * @form
909 */
910declare interface Area {
911  /**
912   * Defines the width property.
913   *
914   * @type { Length }
915   * @syscap SystemCapability.ArkUI.ArkUI.Full
916   * @since 8
917   */
918  /**
919   * Defines the width property.
920   *
921   * @type { Length }
922   * @syscap SystemCapability.ArkUI.ArkUI.Full
923   * @since 9
924   * @form
925   */
926  /**
927   * Defines the width property.
928   *
929   * @type { Length }
930   * @syscap SystemCapability.ArkUI.ArkUI.Full
931   * @crossplatform
932   * @since 10
933   * @form
934   */
935  width: Length;
936
937  /**
938   * Defines the height property.
939   *
940   * @type { Length }
941   * @syscap SystemCapability.ArkUI.ArkUI.Full
942   * @since 8
943   */
944  /**
945   * Defines the height property.
946   *
947   * @type { Length }
948   * @syscap SystemCapability.ArkUI.ArkUI.Full
949   * @since 9
950   * @form
951   */
952  /**
953   * Defines the height property.
954   *
955   * @type { Length }
956   * @syscap SystemCapability.ArkUI.ArkUI.Full
957   * @crossplatform
958   * @since 10
959   * @form
960   */
961  height: Length;
962
963  /**
964   * Defines the local position.
965   *
966   * @type { Position }
967   * @syscap SystemCapability.ArkUI.ArkUI.Full
968   * @since 8
969   */
970  /**
971   * Defines the local position.
972   *
973   * @type { Position }
974   * @syscap SystemCapability.ArkUI.ArkUI.Full
975   * @since 9
976   * @form
977   */
978  /**
979   * Defines the local position.
980   *
981   * @type { Position }
982   * @syscap SystemCapability.ArkUI.ArkUI.Full
983   * @crossplatform
984   * @since 10
985   * @form
986   */
987  position: Position;
988
989  /**
990   * Defines the global position.
991   *
992   * @type { Position }
993   * @syscap SystemCapability.ArkUI.ArkUI.Full
994   * @since 8
995   */
996  /**
997   * Defines the global position.
998   *
999   * @type { Position }
1000   * @syscap SystemCapability.ArkUI.ArkUI.Full
1001   * @since 9
1002   * @form
1003   */
1004  /**
1005   * Defines the global position.
1006   *
1007   * @type { Position }
1008   * @syscap SystemCapability.ArkUI.ArkUI.Full
1009   * @crossplatform
1010   * @since 10
1011   * @form
1012   */
1013  globalPosition: Position;
1014}
1015
1016/**
1017 * Defines the position.
1018 *
1019 * @interface Position
1020 * @syscap SystemCapability.ArkUI.ArkUI.Full
1021 * @since 7
1022 */
1023/**
1024 * Defines the position.
1025 *
1026 * @interface Position
1027 * @syscap SystemCapability.ArkUI.ArkUI.Full
1028 * @since 9
1029 * @form
1030 */
1031/**
1032 * Defines the position.
1033 *
1034 * @interface Position
1035 * @syscap SystemCapability.ArkUI.ArkUI.Full
1036 * @crossplatform
1037 * @since 10
1038 * @form
1039 */
1040declare interface Position {
1041  /**
1042   * Coordinate x of the Position.
1043   *
1044   * @type { ?Length }
1045   * @syscap SystemCapability.ArkUI.ArkUI.Full
1046   * @since 7
1047   */
1048  /**
1049   * Coordinate x of the Position.
1050   *
1051   * @type { ?Length }
1052   * @syscap SystemCapability.ArkUI.ArkUI.Full
1053   * @since 9
1054   * @form
1055   */
1056  /**
1057   * Coordinate x of the Position.
1058   *
1059   * @type { ?Length }
1060   * @syscap SystemCapability.ArkUI.ArkUI.Full
1061   * @crossplatform
1062   * @since 10
1063   * @form
1064   */
1065  x?: Length;
1066
1067  /**
1068   * Coordinate y of the Position.
1069   *
1070   * @type { ?Length }
1071   * @syscap SystemCapability.ArkUI.ArkUI.Full
1072   * @since 7
1073   */
1074  /**
1075   * Coordinate y of the Position.
1076   *
1077   * @type { ?Length }
1078   * @syscap SystemCapability.ArkUI.ArkUI.Full
1079   * @since 9
1080   * @form
1081   */
1082  /**
1083   * Coordinate y of the Position.
1084   *
1085   * @type { ?Length }
1086   * @syscap SystemCapability.ArkUI.ArkUI.Full
1087   * @crossplatform
1088   * @since 10
1089   * @form
1090   */
1091  y?: Length;
1092}
1093
1094/**
1095 * Defines the constrain size options.
1096 *
1097 * @interface ConstraintSizeOptions
1098 * @syscap SystemCapability.ArkUI.ArkUI.Full
1099 * @since 7
1100 */
1101/**
1102 * Defines the constrain size options.
1103 *
1104 * @interface ConstraintSizeOptions
1105 * @syscap SystemCapability.ArkUI.ArkUI.Full
1106 * @since 9
1107 * @form
1108 */
1109/**
1110 * Defines the constrain size options.
1111 *
1112 * @interface ConstraintSizeOptions
1113 * @syscap SystemCapability.ArkUI.ArkUI.Full
1114 * @crossplatform
1115 * @since 10
1116 * @form
1117 */
1118declare interface ConstraintSizeOptions {
1119  /**
1120   * Defines the min width.
1121   *
1122   * @type { ?Length }
1123   * @syscap SystemCapability.ArkUI.ArkUI.Full
1124   * @since 7
1125   */
1126  /**
1127   * Defines the min width.
1128   *
1129   * @type { ?Length }
1130   * @syscap SystemCapability.ArkUI.ArkUI.Full
1131   * @since 9
1132   * @form
1133   */
1134  /**
1135   * Defines the min width.
1136   *
1137   * @type { ?Length }
1138   * @syscap SystemCapability.ArkUI.ArkUI.Full
1139   * @crossplatform
1140   * @since 10
1141   * @form
1142   */
1143  minWidth?: Length;
1144
1145  /**
1146   * Defines the max width.
1147   *
1148   * @type { ?Length }
1149   * @syscap SystemCapability.ArkUI.ArkUI.Full
1150   * @since 7
1151   */
1152  /**
1153   * Defines the max width.
1154   *
1155   * @type { ?Length }
1156   * @syscap SystemCapability.ArkUI.ArkUI.Full
1157   * @since 9
1158   * @form
1159   */
1160  /**
1161   * Defines the max width.
1162   *
1163   * @type { ?Length }
1164   * @syscap SystemCapability.ArkUI.ArkUI.Full
1165   * @crossplatform
1166   * @since 10
1167   * @form
1168   */
1169  maxWidth?: Length;
1170
1171  /**
1172   * Defines the min height.
1173   *
1174   * @type { ?Length }
1175   * @syscap SystemCapability.ArkUI.ArkUI.Full
1176   * @since 7
1177   */
1178  /**
1179   * Defines the min height.
1180   *
1181   * @type { ?Length }
1182   * @syscap SystemCapability.ArkUI.ArkUI.Full
1183   * @since 9
1184   * @form
1185   */
1186  /**
1187   * Defines the min height.
1188   *
1189   * @type { ?Length }
1190   * @syscap SystemCapability.ArkUI.ArkUI.Full
1191   * @crossplatform
1192   * @since 10
1193   * @form
1194   */
1195  minHeight?: Length;
1196
1197  /**
1198   * Defines the max height.
1199   *
1200   * @type { ?Length }
1201   * @syscap SystemCapability.ArkUI.ArkUI.Full
1202   * @since 7
1203   */
1204  /**
1205   * Defines the max height.
1206   *
1207   * @type { ?Length }
1208   * @syscap SystemCapability.ArkUI.ArkUI.Full
1209   * @since 9
1210   * @form
1211   */
1212  /**
1213   * Defines the max height.
1214   *
1215   * @type { ?Length }
1216   * @syscap SystemCapability.ArkUI.ArkUI.Full
1217   * @crossplatform
1218   * @since 10
1219   * @form
1220   */
1221  maxHeight?: Length;
1222}
1223
1224/**
1225 * Defines the size options.
1226 *
1227 * @interface SizeOptions
1228 * @syscap SystemCapability.ArkUI.ArkUI.Full
1229 * @since 7
1230 */
1231/**
1232 * Defines the size options.
1233 *
1234 * @interface SizeOptions
1235 * @syscap SystemCapability.ArkUI.ArkUI.Full
1236 * @since 9
1237 * @form
1238 */
1239/**
1240 * Defines the size options.
1241 *
1242 * @interface SizeOptions
1243 * @syscap SystemCapability.ArkUI.ArkUI.Full
1244 * @crossplatform
1245 * @since 10
1246 * @form
1247 */
1248declare interface SizeOptions {
1249  /**
1250   * Defines the width.
1251   *
1252   * @type { ?Length }
1253   * @syscap SystemCapability.ArkUI.ArkUI.Full
1254   * @since 7
1255   */
1256  /**
1257   * Defines the width.
1258   *
1259   * @type { ?Length }
1260   * @syscap SystemCapability.ArkUI.ArkUI.Full
1261   * @since 9
1262   * @form
1263   */
1264  /**
1265   * Defines the width.
1266   *
1267   * @type { ?Length }
1268   * @syscap SystemCapability.ArkUI.ArkUI.Full
1269   * @crossplatform
1270   * @since 10
1271   * @form
1272   */
1273  width?: Length;
1274
1275  /**
1276   * Defines the height.
1277   *
1278   * @type { ?Length }
1279   * @syscap SystemCapability.ArkUI.ArkUI.Full
1280   * @since 7
1281   */
1282  /**
1283   * Defines the height.
1284   *
1285   * @type { ?Length }
1286   * @syscap SystemCapability.ArkUI.ArkUI.Full
1287   * @since 9
1288   * @form
1289   */
1290  /**
1291   * Defines the height.
1292   *
1293   * @type { ?Length }
1294   * @syscap SystemCapability.ArkUI.ArkUI.Full
1295   * @crossplatform
1296   * @since 10
1297   * @form
1298   */
1299  height?: Length;
1300}
1301
1302/**
1303 * Defines the options of border.
1304 *
1305 * @interface BorderOptions
1306 * @syscap SystemCapability.ArkUI.ArkUI.Full
1307 * @since 7
1308 */
1309/**
1310 * Defines the options of border.
1311 *
1312 * @interface BorderOptions
1313 * @syscap SystemCapability.ArkUI.ArkUI.Full
1314 * @since 9
1315 * @form
1316 */
1317/**
1318 * Defines the options of border.
1319 *
1320 * @interface BorderOptions
1321 * @syscap SystemCapability.ArkUI.ArkUI.Full
1322 * @crossplatform
1323 * @since 10
1324 * @form
1325 */
1326declare interface BorderOptions {
1327  /**
1328   * Defines the border width.
1329   *
1330   * @type { ?(EdgeWidths | Length) }
1331   * @syscap SystemCapability.ArkUI.ArkUI.Full
1332   * @since 7
1333   */
1334  /**
1335   * Defines the border width.
1336   *
1337   * @type { ?(EdgeWidths | Length) }
1338   * @syscap SystemCapability.ArkUI.ArkUI.Full
1339   * @since 9
1340   * @form
1341   */
1342  /**
1343   * Defines the border width.
1344   *
1345   * @type { ?(EdgeWidths | Length) }
1346   * @syscap SystemCapability.ArkUI.ArkUI.Full
1347   * @crossplatform
1348   * @since 10
1349   * @form
1350   */
1351  width?: EdgeWidths | Length;
1352
1353  /**
1354   * Defines the border color.
1355   *
1356   * @type { ?(EdgeColors | ResourceColor) }
1357   * @syscap SystemCapability.ArkUI.ArkUI.Full
1358   * @since 7
1359   */
1360  /**
1361   * Defines the border color.
1362   *
1363   * @type { ?(EdgeColors | ResourceColor) }
1364   * @syscap SystemCapability.ArkUI.ArkUI.Full
1365   * @since 9
1366   * @form
1367   */
1368  /**
1369   * Defines the border color.
1370   *
1371   * @type { ?(EdgeColors | ResourceColor) }
1372   * @syscap SystemCapability.ArkUI.ArkUI.Full
1373   * @crossplatform
1374   * @since 10
1375   * @form
1376   */
1377  color?: EdgeColors | ResourceColor;
1378
1379  /**
1380   * Defines the border radius.
1381   *
1382   * @type { ?(BorderRadiuses | Length) }
1383   * @syscap SystemCapability.ArkUI.ArkUI.Full
1384   * @since 7
1385   */
1386  /**
1387   * Defines the border radius.
1388   *
1389   * @type { ?(BorderRadiuses | Length) }
1390   * @syscap SystemCapability.ArkUI.ArkUI.Full
1391   * @since 9
1392   * @form
1393   */
1394  /**
1395   * Defines the border radius.
1396   *
1397   * @type { ?(BorderRadiuses | Length) }
1398   * @syscap SystemCapability.ArkUI.ArkUI.Full
1399   * @crossplatform
1400   * @since 10
1401   * @form
1402   */
1403  radius?: BorderRadiuses | Length;
1404
1405  /**
1406   * Defines the border style.
1407   *
1408   * @type { ?(EdgeStyles | BorderStyle) }
1409   * @syscap SystemCapability.ArkUI.ArkUI.Full
1410   * @since 7
1411   */
1412  /**
1413   * Defines the border style.
1414   *
1415   * @type { ?(EdgeStyles | BorderStyle) }
1416   * @syscap SystemCapability.ArkUI.ArkUI.Full
1417   * @since 9
1418   * @form
1419   */
1420  /**
1421   * Defines the border style.
1422   *
1423   * @type { ?(EdgeStyles | BorderStyle) }
1424   * @syscap SystemCapability.ArkUI.ArkUI.Full
1425   * @crossplatform
1426   * @since 10
1427   * @form
1428   */
1429  style?: EdgeStyles | BorderStyle;
1430}
1431
1432/**
1433 * Define the style of checkbox mark.
1434 *
1435 * @interface MarkStyle
1436 * @syscap SystemCapability.ArkUI.ArkUI.Full
1437 * @crossplatform
1438 * @since 10
1439 */
1440declare interface MarkStyle {
1441  /**
1442   * Define the stroke color of checkbox mark.
1443   *
1444   * @type { ?ResourceColor }
1445   * @syscap SystemCapability.ArkUI.ArkUI.Full
1446   * @crossplatform
1447   * @since 10
1448   */
1449  strokeColor?: ResourceColor;
1450
1451  /**
1452   * Define the size of checkbox mark.
1453   *
1454   * @type { ?Length }
1455   * @syscap SystemCapability.ArkUI.ArkUI.Full
1456   * @crossplatform
1457   * @since 10
1458   */
1459  size?: Length;
1460
1461  /**
1462   * Define the stroke width of checkbox mark.
1463   *
1464   * @type { ?Length }
1465   * @syscap SystemCapability.ArkUI.ArkUI.Full
1466   * @crossplatform
1467   * @since 10
1468   */
1469  strokeWidth?: Length;
1470}
1471
1472/**
1473 * Defines the ColorFilter object.
1474 *
1475 * @since 9
1476 * @form
1477 */
1478/**
1479 * Defines the ColorFilter object.
1480 *
1481 * @crossplatform
1482 * @since 10
1483 * @form
1484 */
1485declare class ColorFilter {
1486  /**
1487   * Creates ColorFilter with 4*5 matrix.
1488   *
1489   * @param { number[] } value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first.
1490   * @syscap SystemCapability.ArkUI.ArkUI.Full
1491   * @since 9
1492   * @form
1493   */
1494  /**
1495   * Creates ColorFilter with 4*5 matrix.
1496   *
1497   * @param { number[] } value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first.
1498   * @syscap SystemCapability.ArkUI.ArkUI.Full
1499   * @crossplatform
1500   * @since 10
1501   * @form
1502   */
1503  constructor(value: number[]);
1504}
1505
1506declare module "GlobalResource" {
1507  module "GlobalResource" {
1508    // @ts-ignore
1509    export type { Resource, ResourceStr };
1510  }
1511}
1512