• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 #ifndef FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_JS_UI_INDEX_H
17 #define FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_JS_UI_INDEX_H
18 
19 namespace OHOS::Ace::Framework {
20 
21 #define ARK_UI_KEY(FUNCTION)      \
22     FUNCTION("action", ACTION)       \
23     FUNCTION("align", ALIGN)       \
24     FUNCTION("angle", ANGLE)       \
25     FUNCTION("backgroundColor", BACKGROUND_COLOR)       \
26     FUNCTION("backgroundBlurStyle", BACKGROUND_BLUR_STYLE)       \
27     FUNCTION("borderRadius", BORDER_RADIUS)       \
28     FUNCTION("bottom", BOTTOM)       \
29     FUNCTION("bottomValue", BOTTOM_VALUE)       \
30     FUNCTION("bundleName", BUNDLE_NAME)       \
31     FUNCTION("builder", BUILDER)       \
32     FUNCTION("center", CENTER)       \
33     FUNCTION("centerX", CENTER_X)       \
34     FUNCTION("centerY", CENTER_Y)       \
35     FUNCTION("centerZ", CENTER_Z)       \
36     FUNCTION("angleX", ANGLE_X)       \
37     FUNCTION("angleY", ANGLE_Y)       \
38     FUNCTION("angleZ", ANGLE_Z)       \
39     FUNCTION("color", COLOR)       \
40     FUNCTION("colors", COLORS)       \
41     FUNCTION("colorValue", COLOR_VALUE)       \
42     FUNCTION("direction", DIRECTION)       \
43     FUNCTION("end", END)       \
44     FUNCTION("endValue", END_VALUE)       \
45     FUNCTION("enabled", ENABLED)       \
46     FUNCTION("family", FAMILY)       \
47     FUNCTION("fill", FILL)       \
48     FUNCTION("height", HEIGHT)       \
49     FUNCTION("icon", ICON)       \
50     FUNCTION("id", ID)       \
51     FUNCTION("itemHeightValue", ITEM_HEIGHT_VALUE)       \
52     FUNCTION("itemWidthValue", ITEM_WIDTH_VALUE)       \
53     FUNCTION("ignoresLayoutSafeAreaEdges", IGNORES_LAYOUT_SAFE_AREA_EDGES)  \
54     FUNCTION("left", LEFT)       \
55     FUNCTION("leftValue", LEFT_VALUE)       \
56     FUNCTION("length", LENGTH)       \
57     FUNCTION("matrix4x4", MATRIX4X4)       \
58     FUNCTION("maskValue", MASK_VALUE)       \
59     FUNCTION("moduleName", MODULE_NAME)       \
60     FUNCTION("offsetX", OFFSET_X)       \
61     FUNCTION("offsetY", OFFSET_Y)       \
62     FUNCTION("params", PARAMS)       \
63     FUNCTION("perspective", PERSPECTIVE)       \
64     FUNCTION("radius", RADIUS)       \
65     FUNCTION("repeat", REPEAT)       \
66     FUNCTION("repeating", REPEATING)       \
67     FUNCTION("right", RIGHT)       \
68     FUNCTION("rightValue", RIGHT_VALUE)       \
69     FUNCTION("rotation", ROTATION)       \
70     FUNCTION("selectedColorValue", SELECTED_COLOR_VALUE)       \
71     FUNCTION("selectedItemHeightValue", SELECTED_ITEM_HEIGHT_VALUE)       \
72     FUNCTION("selectedItemWidthValue", SELECTED_ITEM_WIDTH_VALUE)       \
73     FUNCTION("maxDisplayCountValue", MAX_DISPLAY_COUNT_VALUE)       \
74     FUNCTION("size", SIZE)       \
75     FUNCTION("slice", SLICE)       \
76     FUNCTION("source", SOURCE)       \
77     FUNCTION("start", START)       \
78     FUNCTION("startValue", START_VALUE)       \
79     FUNCTION("style", STYLE)       \
80     FUNCTION("symbolIcon", SYMBOL_ICON)       \
81     FUNCTION("top", TOP)       \
82     FUNCTION("topValue", TOP_VALUE)       \
83     FUNCTION("topStart", TOP_START)       \
84     FUNCTION("topEnd", TOP_END)       \
85     FUNCTION("bottomStart", BOTTOM_START)       \
86     FUNCTION("bottomEnd", BOTTOM_END)       \
87     FUNCTION("type", TYPE)       \
88     FUNCTION("unit", UNIT)       \
89     FUNCTION("value", VALUE)       \
90     FUNCTION("weight", WEIGHT)       \
91     FUNCTION("width", WIDTH)       \
92     FUNCTION("x", X)       \
93     FUNCTION("y", Y)       \
94     FUNCTION("z", Z)       \
95     FUNCTION("spaceValue", SPACE_VALUE)       \
96     FUNCTION("ignoreSizeValue", IGNORE_SIZE_VALUE)       \
97     FUNCTION("setIgnoreSizeValue", SET_IGNORE_SIZE_VALUE)       \
98     FUNCTION("metricsColors", METRICS_COLORS)       \
99     FUNCTION("scroller", SCROLLER)       \
100     FUNCTION("state", STATE)       \
101     FUNCTION("refreshing", REFRESHING)       \
102     FUNCTION("offset", OFFSET)       \
103     FUNCTION("friction", FRICTION)       \
104     FUNCTION("promptText", PROMPT_TEXT)       \
105     FUNCTION("$refreshing", $REFRESHING)       \
106     FUNCTION("changeEvent", CHANGE_EVENT)       \
107     FUNCTION("refreshingContent", REFRESHING_CONTENT)       \
108     FUNCTION("builderNode_", BUILDER_NODE)       \
109     FUNCTION("nodePtr_", NODEPTR)
110 
111 #define PROPERTY_NAME_INDEX(propertyName, index) index,
112 enum class ArkUIIndex : uint32_t {
113     ARK_UI_KEY(PROPERTY_NAME_INDEX)
114 };
115 #undef PROPERTY_NAME_INDEX
116 } // namespace OHOS::Ace::Framework
117 #endif  // FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_JS_UI_INDEX_H
118