• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024-2025 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 * @file
17 * @kit ArkUI
18 * @arkts 1.2
19 */
20
21
22// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!
23
24import { Resource as Resource_ } from './../../../api/global/resource'
25import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime'
26import { LengthMetrics, LengthMetricsUnit } from './../Graphics'
27import { BorderStyle, Color, FontWeight, FontStyle } from './enums'
28import { OutlineStyle } from './common'
29import _want from '../../../api/@ohos.app.ability.Want'
30import _context from '../../application/Context'
31import _image from '../../../api/@ohos.multimedia.image'
32import _pointer from '../../../api/@ohos.multimodalInput.pointer'
33import _unifieddatachannel from '../../../api/@ohos.data.unifiedDataChannel'
34import _uniformtypedescriptor from '../../../api/@ohos.data.uniformTypeDescriptor'
35import _observer from '../../../api/@ohos.arkui.observer'
36import _uieffect from '../../../api/@ohos.graphics.uiEffect'
37import _intl from '../../../api/@ohos.intl'
38import _window from '../../../api/@ohos.window'
39export type Want = _want
40export type Context = _context
41export type PixelMap = _image.PixelMap
42export type ResolutionQuality = NullishType
43export type PointerStyle = _pointer.PointerStyle
44export type UnifiedData = _unifieddatachannel.UnifiedData
45export type Summary = _unifieddatachannel.Summary
46export type UniformDataType = _uniformtypedescriptor.UniformDataType
47export type NavDestinationInfo = _observer.NavDestinationInfo
48export type NavigationInfo = _observer.NavigationInfo
49export type RouterPageInfo = _observer.RouterPageInfo
50export type VisualEffect = _uieffect.VisualEffect
51export type Filter = _uieffect.Filter
52export type Blender = NullishType
53export type DateTimeOptions = _intl.DateTimeOptions
54export type WindowStatusType = _window.WindowStatusType
55export type SystemBarStyle = _window.SystemBarStyle
56export type RestrictedWorker = string
57export type Length = string | number | Resource_;
58export type PX = string;
59export type VP = string | number;
60export type FP = string;
61export type LPX = string;
62export type Percentage = string;
63export type Degree = string;
64export type Dimension = PX | VP | FP | LPX | Percentage | Resource_;
65export type ResourceStr = string | Resource_;
66export type Resource = Resource_
67export interface Padding {
68    top?: Length;
69    right?: Length;
70    bottom?: Length;
71    left?: Length;
72}
73export interface LocalizedPadding {
74    top?: LengthMetrics;
75    end?: LengthMetrics;
76    bottom?: LengthMetrics;
77    start?: LengthMetrics;
78}
79export type Margin = Padding;
80export type EdgeWidth = EdgeWidths;
81export interface EdgeWidths {
82    top?: Length;
83    right?: Length;
84    bottom?: Length;
85    left?: Length;
86}
87export interface LocalizedEdgeWidths {
88    top?: LengthMetrics;
89    end?: LengthMetrics;
90    bottom?: LengthMetrics;
91    start?: LengthMetrics;
92}
93export interface EdgeOutlineWidths {
94    top?: Dimension;
95    right?: Dimension;
96    bottom?: Dimension;
97    left?: Dimension;
98}
99export interface BorderRadiuses {
100    topLeft?: Length;
101    topRight?: Length;
102    bottomLeft?: Length;
103    bottomRight?: Length;
104}
105export interface LocalizedBorderRadiuses {
106    topStart?: LengthMetrics;
107    topEnd?: LengthMetrics;
108    bottomStart?: LengthMetrics;
109    bottomEnd?: LengthMetrics;
110}
111export interface OutlineRadiuses {
112    topLeft?: Dimension;
113    topRight?: Dimension;
114    bottomLeft?: Dimension;
115    bottomRight?: Dimension;
116}
117export interface EdgeColors {
118    top?: ResourceColor;
119    right?: ResourceColor;
120    bottom?: ResourceColor;
121    left?: ResourceColor;
122}
123export interface LocalizedEdgeColors {
124    top?: ResourceColor;
125    end?: ResourceColor;
126    bottom?: ResourceColor;
127    start?: ResourceColor;
128}
129export type LocalizedMargin = LocalizedPadding;
130export interface EdgeStyles {
131    top?: BorderStyle;
132    right?: BorderStyle;
133    bottom?: BorderStyle;
134    left?: BorderStyle;
135}
136export interface EdgeOutlineStyles {
137    top?: OutlineStyle;
138    right?: OutlineStyle;
139    bottom?: OutlineStyle;
140    left?: OutlineStyle;
141}
142export interface Offset {
143    dx: Length;
144    dy: Length;
145}
146export type ResourceColor = Color | number | string | Resource_;
147export interface LengthConstrain {
148    minLength: Length;
149    maxLength: Length;
150}
151export type VoidCallback = () => void;
152export interface Font {
153    size?: Length;
154    weight?: FontWeight | number | string;
155    family?: string | Resource_;
156    style?: FontStyle;
157}
158export interface Area {
159    width: Length;
160    height: Length;
161    position: Position;
162    globalPosition: Position;
163}
164export interface Position {
165    x?: Length;
166    y?: Length;
167}
168export interface LocalizedPosition {
169    start?: LengthMetrics;
170    top?: LengthMetrics;
171}
172export interface Edges {
173    top?: Dimension;
174    left?: Dimension;
175    bottom?: Dimension;
176    right?: Dimension;
177}
178export interface LocalizedEdges {
179    top?: LengthMetrics;
180    start?: LengthMetrics;
181    bottom?: LengthMetrics;
182    end?: LengthMetrics;
183}
184export interface Bias {
185    horizontal?: number;
186    vertical?: number;
187}
188export interface ConstraintSizeOptions {
189    minWidth?: Length;
190    maxWidth?: Length;
191    minHeight?: Length;
192    maxHeight?: Length;
193}
194export interface SizeOptions {
195    width?: Length;
196    height?: Length;
197}
198export interface BorderOptions {
199    width?: EdgeWidths | Length | LocalizedEdgeWidths;
200    color?: EdgeColors | ResourceColor | LocalizedEdgeColors;
201    radius?: BorderRadiuses | Length | LocalizedBorderRadiuses;
202    style?: EdgeStyles | BorderStyle;
203    dashGap?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths;
204    dashWidth?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths;
205}
206export interface OutlineOptions {
207    width?: EdgeOutlineWidths | Dimension;
208    color?: EdgeColors | ResourceColor | LocalizedEdgeColors;
209    radius?: OutlineRadiuses | Dimension;
210    style?: EdgeOutlineStyles | OutlineStyle;
211}
212export interface MarkStyle {
213    strokeColor?: ResourceColor;
214    size?: Length;
215    strokeWidth?: Length;
216}
217export interface ColorFilter {
218}
219export interface TouchPoint {
220    x: Dimension;
221    y: Dimension;
222}
223export interface DirectionalEdgesT {
224    start: number;
225    end: number;
226    top: number;
227    bottom: number;
228}
229export interface DividerStyleOptions {
230    strokeWidth?: LengthMetrics;
231    color?: ResourceColor;
232    startMargin?: LengthMetrics;
233    endMargin?: LengthMetrics;
234}
235export interface ChainWeightOptions {
236    horizontal?: number;
237    vertical?: number;
238}
239export interface AccessibilityOptions {
240    accessibilityPreferred?: boolean;
241}