123b3eb3cSopenharmony_ci/* 223b3eb3cSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 323b3eb3cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 423b3eb3cSopenharmony_ci * you may not use this file except in compliance with the License. 523b3eb3cSopenharmony_ci * You may obtain a copy of the License at 623b3eb3cSopenharmony_ci * 723b3eb3cSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 823b3eb3cSopenharmony_ci * 923b3eb3cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1023b3eb3cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1123b3eb3cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1223b3eb3cSopenharmony_ci * See the License for the specific language governing permissions and 1323b3eb3cSopenharmony_ci * limitations under the License. 1423b3eb3cSopenharmony_ci */ 1523b3eb3cSopenharmony_ci 1623b3eb3cSopenharmony_ci/** 1723b3eb3cSopenharmony_ci * @addtogroup ArkUI_NativeModule 1823b3eb3cSopenharmony_ci * @{ 1923b3eb3cSopenharmony_ci * 2023b3eb3cSopenharmony_ci * @brief Provides UI capabilities of ArkUI on the native side, such as UI component creation and destruction, 2123b3eb3cSopenharmony_ci * tree node operations, attribute setting, and event listening. 2223b3eb3cSopenharmony_ci * 2323b3eb3cSopenharmony_ci * @since 12 2423b3eb3cSopenharmony_ci */ 2523b3eb3cSopenharmony_ci 2623b3eb3cSopenharmony_ci/** 2723b3eb3cSopenharmony_ci * @file native_node.h 2823b3eb3cSopenharmony_ci * 2923b3eb3cSopenharmony_ci * @brief Provides type definitions for <b>NativeNode</b> APIs. 3023b3eb3cSopenharmony_ci * 3123b3eb3cSopenharmony_ci * @library libace_ndk.z.so 3223b3eb3cSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3323b3eb3cSopenharmony_ci * @since 12 3423b3eb3cSopenharmony_ci */ 3523b3eb3cSopenharmony_ci 3623b3eb3cSopenharmony_ci#ifndef ARKUI_NATIVE_NODE_H 3723b3eb3cSopenharmony_ci#define ARKUI_NATIVE_NODE_H 3823b3eb3cSopenharmony_ci 3923b3eb3cSopenharmony_ci#include "native_type.h" 4023b3eb3cSopenharmony_ci#include "ui_input_event.h" 4123b3eb3cSopenharmony_ci 4223b3eb3cSopenharmony_ci#ifdef __cplusplus 4323b3eb3cSopenharmony_ciextern "C" { 4423b3eb3cSopenharmony_ci#endif 4523b3eb3cSopenharmony_ci 4623b3eb3cSopenharmony_ci#define MAX_NODE_SCOPE_NUM 1000 4723b3eb3cSopenharmony_ci 4823b3eb3cSopenharmony_ci/** 4923b3eb3cSopenharmony_ci * @brief Enumerates ArkUI component types that can be created on the native side. 5023b3eb3cSopenharmony_ci * 5123b3eb3cSopenharmony_ci * @since 12 5223b3eb3cSopenharmony_ci */ 5323b3eb3cSopenharmony_citypedef enum { 5423b3eb3cSopenharmony_ci /** Custom node. */ 5523b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM = 0, 5623b3eb3cSopenharmony_ci /** Text. */ 5723b3eb3cSopenharmony_ci ARKUI_NODE_TEXT = 1, 5823b3eb3cSopenharmony_ci /** Text span. */ 5923b3eb3cSopenharmony_ci ARKUI_NODE_SPAN = 2, 6023b3eb3cSopenharmony_ci /** Image span. */ 6123b3eb3cSopenharmony_ci ARKUI_NODE_IMAGE_SPAN = 3, 6223b3eb3cSopenharmony_ci /** Image. */ 6323b3eb3cSopenharmony_ci ARKUI_NODE_IMAGE = 4, 6423b3eb3cSopenharmony_ci /** Toggle. */ 6523b3eb3cSopenharmony_ci ARKUI_NODE_TOGGLE = 5, 6623b3eb3cSopenharmony_ci /** Loading icon. */ 6723b3eb3cSopenharmony_ci ARKUI_NODE_LOADING_PROGRESS = 6, 6823b3eb3cSopenharmony_ci /** Single-line text input. */ 6923b3eb3cSopenharmony_ci ARKUI_NODE_TEXT_INPUT = 7, 7023b3eb3cSopenharmony_ci /** Multi-line text input. */ 7123b3eb3cSopenharmony_ci ARKUI_NODE_TEXT_AREA = 8, 7223b3eb3cSopenharmony_ci /** Button. */ 7323b3eb3cSopenharmony_ci ARKUI_NODE_BUTTON = 9, 7423b3eb3cSopenharmony_ci /** Progress indicator. */ 7523b3eb3cSopenharmony_ci ARKUI_NODE_PROGRESS = 10, 7623b3eb3cSopenharmony_ci /** Check box. */ 7723b3eb3cSopenharmony_ci ARKUI_NODE_CHECKBOX = 11, 7823b3eb3cSopenharmony_ci /** XComponent. */ 7923b3eb3cSopenharmony_ci ARKUI_NODE_XCOMPONENT = 12, 8023b3eb3cSopenharmony_ci /** Date picker. */ 8123b3eb3cSopenharmony_ci ARKUI_NODE_DATE_PICKER = 13, 8223b3eb3cSopenharmony_ci /** Time picker. */ 8323b3eb3cSopenharmony_ci ARKUI_NODE_TIME_PICKER = 14, 8423b3eb3cSopenharmony_ci /** Text picker. */ 8523b3eb3cSopenharmony_ci ARKUI_NODE_TEXT_PICKER = 15, 8623b3eb3cSopenharmony_ci /** Calendar picker. */ 8723b3eb3cSopenharmony_ci ARKUI_NODE_CALENDAR_PICKER = 16, 8823b3eb3cSopenharmony_ci /** Slider. */ 8923b3eb3cSopenharmony_ci ARKUI_NODE_SLIDER = 17, 9023b3eb3cSopenharmony_ci /** Radio button. */ 9123b3eb3cSopenharmony_ci ARKUI_NODE_RADIO = 18, 9223b3eb3cSopenharmony_ci /** Frame-by-frame animation component. */ 9323b3eb3cSopenharmony_ci ARKUI_NODE_IMAGE_ANIMATOR = 19, 9423b3eb3cSopenharmony_ci /** Stack container. */ 9523b3eb3cSopenharmony_ci ARKUI_NODE_STACK = MAX_NODE_SCOPE_NUM, 9623b3eb3cSopenharmony_ci /** Swiper. */ 9723b3eb3cSopenharmony_ci ARKUI_NODE_SWIPER, 9823b3eb3cSopenharmony_ci /** Scrolling container. */ 9923b3eb3cSopenharmony_ci ARKUI_NODE_SCROLL, 10023b3eb3cSopenharmony_ci /** List. */ 10123b3eb3cSopenharmony_ci ARKUI_NODE_LIST, 10223b3eb3cSopenharmony_ci /** List item. */ 10323b3eb3cSopenharmony_ci ARKUI_NODE_LIST_ITEM, 10423b3eb3cSopenharmony_ci /** List item group. */ 10523b3eb3cSopenharmony_ci ARKUI_NODE_LIST_ITEM_GROUP, 10623b3eb3cSopenharmony_ci /** Column container. */ 10723b3eb3cSopenharmony_ci ARKUI_NODE_COLUMN, 10823b3eb3cSopenharmony_ci /** Row container. */ 10923b3eb3cSopenharmony_ci ARKUI_NODE_ROW, 11023b3eb3cSopenharmony_ci /** Flex container. */ 11123b3eb3cSopenharmony_ci ARKUI_NODE_FLEX, 11223b3eb3cSopenharmony_ci /** Refresh component. */ 11323b3eb3cSopenharmony_ci ARKUI_NODE_REFRESH, 11423b3eb3cSopenharmony_ci /** Water flow container. */ 11523b3eb3cSopenharmony_ci ARKUI_NODE_WATER_FLOW, 11623b3eb3cSopenharmony_ci /** Water flow item. */ 11723b3eb3cSopenharmony_ci ARKUI_NODE_FLOW_ITEM, 11823b3eb3cSopenharmony_ci /** Relative layout component. */ 11923b3eb3cSopenharmony_ci ARKUI_NODE_RELATIVE_CONTAINER, 12023b3eb3cSopenharmony_ci /** Grid. */ 12123b3eb3cSopenharmony_ci ARKUI_NODE_GRID, 12223b3eb3cSopenharmony_ci /** Grid item. */ 12323b3eb3cSopenharmony_ci ARKUI_NODE_GRID_ITEM, 12423b3eb3cSopenharmony_ci /** Custom_Span. */ 12523b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_SPAN, 12623b3eb3cSopenharmony_ci} ArkUI_NodeType; 12723b3eb3cSopenharmony_ci 12823b3eb3cSopenharmony_ci/** 12923b3eb3cSopenharmony_ci * @brief Defines the general input parameter structure of the {@link setAttribute} function. 13023b3eb3cSopenharmony_ci * 13123b3eb3cSopenharmony_ci * @since 12 13223b3eb3cSopenharmony_ci */ 13323b3eb3cSopenharmony_citypedef struct { 13423b3eb3cSopenharmony_ci /** Numeric array. */ 13523b3eb3cSopenharmony_ci const ArkUI_NumberValue* value; 13623b3eb3cSopenharmony_ci /** Size of the numeric array. */ 13723b3eb3cSopenharmony_ci int32_t size; 13823b3eb3cSopenharmony_ci /** String type. */ 13923b3eb3cSopenharmony_ci const char* string; 14023b3eb3cSopenharmony_ci /** Object type. */ 14123b3eb3cSopenharmony_ci void* object; 14223b3eb3cSopenharmony_ci} ArkUI_AttributeItem; 14323b3eb3cSopenharmony_ci 14423b3eb3cSopenharmony_ci/** 14523b3eb3cSopenharmony_ci * @brief Defines the ArkUI style attributes that can be set on the native side. 14623b3eb3cSopenharmony_ci * 14723b3eb3cSopenharmony_ci * @since 12 14823b3eb3cSopenharmony_ci */ 14923b3eb3cSopenharmony_citypedef enum { 15023b3eb3cSopenharmony_ci /** 15123b3eb3cSopenharmony_ci * @brief Defines the width attribute, which can be set, reset, and obtained as required through APIs. 15223b3eb3cSopenharmony_ci * 15323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 15423b3eb3cSopenharmony_ci * .value[0].f32: width, in vp.\n 15523b3eb3cSopenharmony_ci * \n 15623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 15723b3eb3cSopenharmony_ci * .value[0].f32: width, in vp.\n 15823b3eb3cSopenharmony_ci * 15923b3eb3cSopenharmony_ci */ 16023b3eb3cSopenharmony_ci NODE_WIDTH = 0, 16123b3eb3cSopenharmony_ci /** 16223b3eb3cSopenharmony_ci * @brief Defines the height attribute, which can be set, reset, and obtained as required through APIs. 16323b3eb3cSopenharmony_ci * 16423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 16523b3eb3cSopenharmony_ci * .value[0].f32: height, in vp.\n 16623b3eb3cSopenharmony_ci * \n 16723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 16823b3eb3cSopenharmony_ci * .value[0].f32: height, in vp.\n 16923b3eb3cSopenharmony_ci * 17023b3eb3cSopenharmony_ci */ 17123b3eb3cSopenharmony_ci NODE_HEIGHT, 17223b3eb3cSopenharmony_ci /** 17323b3eb3cSopenharmony_ci * @brief Defines the background color attribute, which can be set, reset, and obtained as required through APIs. 17423b3eb3cSopenharmony_ci * 17523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 17623b3eb3cSopenharmony_ci * .value[0].u32: background color. The value is in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 17723b3eb3cSopenharmony_ci * \n 17823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 17923b3eb3cSopenharmony_ci * .value[0].u32: background color. The value is in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 18023b3eb3cSopenharmony_ci * 18123b3eb3cSopenharmony_ci */ 18223b3eb3cSopenharmony_ci NODE_BACKGROUND_COLOR, 18323b3eb3cSopenharmony_ci /** 18423b3eb3cSopenharmony_ci * @brief Defines the background image attribute, which can be set, reset, and obtained as required through APIs. 18523b3eb3cSopenharmony_ci * 18623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 18723b3eb3cSopenharmony_ci * .string: image address;\n 18823b3eb3cSopenharmony_ci * .value[0]?.i32: whether to repeat the image. Optional. The parameter type is {@link ArkUI_ImageRepeat}. 18923b3eb3cSopenharmony_ci * The default value is <b>ARKUI_IMAGE_REPEAT_NONE</b>.\n 19023b3eb3cSopenharmony_ci * \n 19123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 19223b3eb3cSopenharmony_ci * .string: image address;\n 19323b3eb3cSopenharmony_ci * .value[0].i32: whether to repeat the image. The parameter type is {@link ArkUI_ImageRepeat}.\n 19423b3eb3cSopenharmony_ci * 19523b3eb3cSopenharmony_ci */ 19623b3eb3cSopenharmony_ci NODE_BACKGROUND_IMAGE, 19723b3eb3cSopenharmony_ci /** 19823b3eb3cSopenharmony_ci * @brief Defines the padding attribute, which can be set, reset, and obtained as required through APIs. 19923b3eb3cSopenharmony_ci * 20023b3eb3cSopenharmony_ci * There are two formats of {@link ArkUI_AttributeItem} for setting the attribute value:\n 20123b3eb3cSopenharmony_ci * 1: Specify the same padding for the four directions. \n 20223b3eb3cSopenharmony_ci * .value[0].f32: padding, in vp.\n 20323b3eb3cSopenharmony_ci * 2: Specify different paddings for different directions. \n 20423b3eb3cSopenharmony_ci * .value[0].f32: top padding, in vp.\n 20523b3eb3cSopenharmony_ci * .value[1].f32: right padding, in vp.\n 20623b3eb3cSopenharmony_ci * .value[2].f32: bottom padding, in vp.\n 20723b3eb3cSopenharmony_ci * .value[3].f32: left padding, in vp.\n 20823b3eb3cSopenharmony_ci * \n 20923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 21023b3eb3cSopenharmony_ci * .value[0].f32: top padding, in vp.\n 21123b3eb3cSopenharmony_ci * .value[1].f32: right padding, in vp.\n 21223b3eb3cSopenharmony_ci * .value[2].f32: bottom padding, in vp.\n 21323b3eb3cSopenharmony_ci * .value[3].f32: left padding, in vp.\n 21423b3eb3cSopenharmony_ci * 21523b3eb3cSopenharmony_ci */ 21623b3eb3cSopenharmony_ci NODE_PADDING, 21723b3eb3cSopenharmony_ci /** 21823b3eb3cSopenharmony_ci * @brief Defines the component ID attribute, which can be set, reset, and obtained as required through APIs. 21923b3eb3cSopenharmony_ci * 22023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 22123b3eb3cSopenharmony_ci * .string: component ID.\n 22223b3eb3cSopenharmony_ci * \n 22323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 22423b3eb3cSopenharmony_ci * .string: component ID.\n 22523b3eb3cSopenharmony_ci * 22623b3eb3cSopenharmony_ci */ 22723b3eb3cSopenharmony_ci NODE_ID, 22823b3eb3cSopenharmony_ci /** 22923b3eb3cSopenharmony_ci * @brief Defines the interactivity attribute, which can be set, reset, and obtained as required through APIs. 23023b3eb3cSopenharmony_ci * 23123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 23223b3eb3cSopenharmony_ci * .value[0].i32: The value <b>true</b> means that the component can interact with users, and <b>false</b> means 23323b3eb3cSopenharmony_ci * the opposite.\n 23423b3eb3cSopenharmony_ci * \n 23523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 23623b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means that the component can interact with users, and <b>0</b> means 23723b3eb3cSopenharmony_ci * the opposite. \n 23823b3eb3cSopenharmony_ci * 23923b3eb3cSopenharmony_ci */ 24023b3eb3cSopenharmony_ci NODE_ENABLED, 24123b3eb3cSopenharmony_ci /** 24223b3eb3cSopenharmony_ci * @brief Defines the margin attribute, which can be set, reset, and obtained as required through APIs. 24323b3eb3cSopenharmony_ci * 24423b3eb3cSopenharmony_ci * There are two formats of {@link ArkUI_AttributeItem} for setting the attribute value:\n 24523b3eb3cSopenharmony_ci * 1: Specify the same margin for the four directions. \n 24623b3eb3cSopenharmony_ci * .value[0].f32: margin, in vp.\n 24723b3eb3cSopenharmony_ci * 2: Specify different margins for different directions. \n 24823b3eb3cSopenharmony_ci * .value[0].f32: top margin, in vp.\n 24923b3eb3cSopenharmony_ci * .value[1].f32: right margin, in vp.\n 25023b3eb3cSopenharmony_ci * .value[2].f32: bottom margin, in vp.\n 25123b3eb3cSopenharmony_ci * .value[3].f32: left margin, in vp.\n 25223b3eb3cSopenharmony_ci * \n 25323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 25423b3eb3cSopenharmony_ci * .value[0].f32: top margin, in vp.\n 25523b3eb3cSopenharmony_ci * .value[1].f32: right margin, in vp.\n 25623b3eb3cSopenharmony_ci * .value[2].f32: bottom margin, in vp.\n 25723b3eb3cSopenharmony_ci * .value[3].f32: left margin, in vp.\n 25823b3eb3cSopenharmony_ci * 25923b3eb3cSopenharmony_ci */ 26023b3eb3cSopenharmony_ci NODE_MARGIN, 26123b3eb3cSopenharmony_ci /** 26223b3eb3cSopenharmony_ci * @brief Defines the translate attribute, which can be set, reset, and obtained as required through APIs. 26323b3eb3cSopenharmony_ci * 26423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 26523b3eb3cSopenharmony_ci * .value[0].f32: distance to translate along the x-axis, in vp. The default value is <b>0</b>.\n 26623b3eb3cSopenharmony_ci * .value[1].f32: distance to translate along the y-axis, in vp. The default value is <b>0</b>.\n 26723b3eb3cSopenharmony_ci * .value[2].f32: distance to translate along the z-axis, in vp. The default value is <b>0</b>. \n 26823b3eb3cSopenharmony_ci * \n 26923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 27023b3eb3cSopenharmony_ci * .value[0].f32: distance to translate along the x-axis, in vp.\n 27123b3eb3cSopenharmony_ci * .value[1].f32: distance to translate along the y-axis, in vp.\n 27223b3eb3cSopenharmony_ci * .value[2].f32: distance to translate along the z-axis, in vp. \n 27323b3eb3cSopenharmony_ci * 27423b3eb3cSopenharmony_ci */ 27523b3eb3cSopenharmony_ci NODE_TRANSLATE, 27623b3eb3cSopenharmony_ci /** 27723b3eb3cSopenharmony_ci * @brief Defines the scale attribute, which can be set, reset, and obtained as required through APIs. 27823b3eb3cSopenharmony_ci * 27923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 28023b3eb3cSopenharmony_ci * .value[0].f32: scale factor along the x-axis. The default value is <b>1</b>.\n 28123b3eb3cSopenharmony_ci * .value[1].f32: scale factor along the y-axis. The default value is <b>1</b>. \n 28223b3eb3cSopenharmony_ci * \n 28323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 28423b3eb3cSopenharmony_ci * .value[0].f32: scale factor along the x-axis.\n 28523b3eb3cSopenharmony_ci * .value[1].f32: scale factor along the y-axis. \n 28623b3eb3cSopenharmony_ci * 28723b3eb3cSopenharmony_ci */ 28823b3eb3cSopenharmony_ci NODE_SCALE, 28923b3eb3cSopenharmony_ci /** 29023b3eb3cSopenharmony_ci * @brief Defines the rotate attribute, which can be set, reset, and obtained as required through APIs. 29123b3eb3cSopenharmony_ci * 29223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 29323b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the rotation axis vector. The default value is <b>0</b>.\n 29423b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the rotation axis vector. The default value is <b>0</b>.\n 29523b3eb3cSopenharmony_ci * .value[2].f32: Z coordinate of the rotation axis vector. The default value is <b>0</b>.\n 29623b3eb3cSopenharmony_ci * .value[3].f32: rotation angle. The default value is <b>0</b>.\n 29723b3eb3cSopenharmony_ci * .value[4].f32: line of sight, that is, the distance from the viewpoint to the z=0 plane, in vp. 29823b3eb3cSopenharmony_ci * The default value is <b>0</b>. \n 29923b3eb3cSopenharmony_ci * \n 30023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 30123b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the rotation axis vector.\n 30223b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the rotation axis vector.\n 30323b3eb3cSopenharmony_ci * .value[2].f32: Z coordinate of the rotation axis vector.\n 30423b3eb3cSopenharmony_ci * .value[3].f32: rotation angle.\n 30523b3eb3cSopenharmony_ci * .value[4].f32: line of sight, that is, the distance from the viewpoint to the z=0 plane, in vp. \n 30623b3eb3cSopenharmony_ci * 30723b3eb3cSopenharmony_ci */ 30823b3eb3cSopenharmony_ci NODE_ROTATE, 30923b3eb3cSopenharmony_ci /** 31023b3eb3cSopenharmony_ci * @brief Sets the brightness attribute, which can be set, reset, and obtained as required through APIs. 31123b3eb3cSopenharmony_ci * 31223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 31323b3eb3cSopenharmony_ci * .value[0].f32: brightness value. The default value is <b>1.0</b>, and the recommended value range is [0, 2]. \n 31423b3eb3cSopenharmony_ci * \n 31523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 31623b3eb3cSopenharmony_ci * .value[0].f32: brightness value. \n 31723b3eb3cSopenharmony_ci * 31823b3eb3cSopenharmony_ci */ 31923b3eb3cSopenharmony_ci NODE_BRIGHTNESS, 32023b3eb3cSopenharmony_ci /** 32123b3eb3cSopenharmony_ci * @brief Sets the saturation attribute, which can be set, reset, and obtained as required through APIs. 32223b3eb3cSopenharmony_ci * 32323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 32423b3eb3cSopenharmony_ci * .value[0].f32: saturation value. The default value is <b>1.0</b>, and the recommended value range is [0, 50]. \n 32523b3eb3cSopenharmony_ci * \n 32623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}: \n 32723b3eb3cSopenharmony_ci * .value[0].f32: saturation value. \n 32823b3eb3cSopenharmony_ci * 32923b3eb3cSopenharmony_ci */ 33023b3eb3cSopenharmony_ci NODE_SATURATION, 33123b3eb3cSopenharmony_ci /** 33223b3eb3cSopenharmony_ci * @brief Sets the blur attribute, which can be set, reset, and obtained as required through APIs. 33323b3eb3cSopenharmony_ci * 33423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 33523b3eb3cSopenharmony_ci * .value[0].f32: blur radius. A larger value indicates a higher blur degree. If the value is <b>0</b>, 33623b3eb3cSopenharmony_ci * the component is not blurred. The unit is vp. The default value is <b>0.0</b>. \n 33723b3eb3cSopenharmony_ci * \n 33823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 33923b3eb3cSopenharmony_ci * .value[0].f32: blur radius. The larger the fuzzy radius, the more blurred the image. If the value is <b>0</b>, 34023b3eb3cSopenharmony_ci * the image is not blurred. The unit is vp. \n 34123b3eb3cSopenharmony_ci * 34223b3eb3cSopenharmony_ci */ 34323b3eb3cSopenharmony_ci NODE_BLUR, 34423b3eb3cSopenharmony_ci /** 34523b3eb3cSopenharmony_ci * @brief Sets the gradient attribute, which can be set, reset, and obtained as required through APIs. 34623b3eb3cSopenharmony_ci * 34723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 34823b3eb3cSopenharmony_ci * .value[0].f32: start angle of the linear gradient. A positive value indicates a clockwise rotation from the 34923b3eb3cSopenharmony_ci * origin, (0, 0). The default value is <b>180</b>.\n 35023b3eb3cSopenharmony_ci * .value[1].i32: direction of the linear gradient. It does not take effect when <b>angle</b> is set. 35123b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_LinearGradientDirection}. \n 35223b3eb3cSopenharmony_ci * .value[2].i32: whether the colors are repeated. The default value is <b>false</b>. \n 35323b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 35423b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 35523b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 35623b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 35723b3eb3cSopenharmony_ci * size: number of colors. \n 35823b3eb3cSopenharmony_ci * \n 35923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 36023b3eb3cSopenharmony_ci * .value[0].f32: start angle of the linear gradient. \n 36123b3eb3cSopenharmony_ci * .value[1].i32: direction of the linear gradient. It does not take effect when <b>angle</b> is set. \n 36223b3eb3cSopenharmony_ci * .value[2].i32: whether the colors are repeated. \n 36323b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 36423b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 36523b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 36623b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 36723b3eb3cSopenharmony_ci * size: number of colors. \n 36823b3eb3cSopenharmony_ci * 36923b3eb3cSopenharmony_ci */ 37023b3eb3cSopenharmony_ci NODE_LINEAR_GRADIENT, 37123b3eb3cSopenharmony_ci /** 37223b3eb3cSopenharmony_ci * @brief Sets the alignment attribute, which can be set, reset, and obtained as required through APIs. 37323b3eb3cSopenharmony_ci * 37423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 37523b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The data type is {@link ArkUI_Alignment}. 37623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_ALIGNMENT_CENTER</b>. \n 37723b3eb3cSopenharmony_ci * \n 37823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 37923b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The data type is {@link ArkUI_Alignment}. \n 38023b3eb3cSopenharmony_ci * 38123b3eb3cSopenharmony_ci */ 38223b3eb3cSopenharmony_ci NODE_ALIGNMENT, 38323b3eb3cSopenharmony_ci /** 38423b3eb3cSopenharmony_ci * @brief Defines the opacity attribute, which can be set, reset, and obtained as required through APIs. 38523b3eb3cSopenharmony_ci * 38623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 38723b3eb3cSopenharmony_ci * .value[0].f32: opacity value. The value ranges from 0 to 1. \n 38823b3eb3cSopenharmony_ci * \n 38923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 39023b3eb3cSopenharmony_ci * .value[0].f32: opacity value. The value ranges from 0 to 1. \n 39123b3eb3cSopenharmony_ci * 39223b3eb3cSopenharmony_ci */ 39323b3eb3cSopenharmony_ci NODE_OPACITY, 39423b3eb3cSopenharmony_ci /** 39523b3eb3cSopenharmony_ci * @brief Defines the border width attribute, which can be set, reset, and obtained as required through APIs. 39623b3eb3cSopenharmony_ci * 39723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 39823b3eb3cSopenharmony_ci * 1: .value[0].f32: width of the four borders. \n 39923b3eb3cSopenharmony_ci * 2: .value[0].f32: width of the top border. \n 40023b3eb3cSopenharmony_ci * .value[1].f32: width of the right border. \n 40123b3eb3cSopenharmony_ci * .value[2].f32: width of the bottom border. \n 40223b3eb3cSopenharmony_ci * .value[3].f32: width of the left border. \n 40323b3eb3cSopenharmony_ci * \n 40423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 40523b3eb3cSopenharmony_ci * .value[0].f32: width of the top border. \n 40623b3eb3cSopenharmony_ci * .value[1].f32: width of the right border. \n 40723b3eb3cSopenharmony_ci * .value[2].f32: width of the bottom border. \n 40823b3eb3cSopenharmony_ci * .value[3].f32: width of the left border. \n 40923b3eb3cSopenharmony_ci * 41023b3eb3cSopenharmony_ci */ 41123b3eb3cSopenharmony_ci NODE_BORDER_WIDTH, 41223b3eb3cSopenharmony_ci /** 41323b3eb3cSopenharmony_ci * @brief Defines the border corner radius attribute, which can be set, reset, and obtained as required through APIs. 41423b3eb3cSopenharmony_ci * 41523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 41623b3eb3cSopenharmony_ci * 1: .value[0].f32: radius of the four corners. \n 41723b3eb3cSopenharmony_ci * 2: .value[0].f32: radius of the upper left corner. \n 41823b3eb3cSopenharmony_ci * .value[1].f32: radius of the upper right corner. \n 41923b3eb3cSopenharmony_ci * .value[2].f32: radius of the lower left corner. \n 42023b3eb3cSopenharmony_ci * .value[3].f32: radius of the lower right corner. \n 42123b3eb3cSopenharmony_ci * \n 42223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 42323b3eb3cSopenharmony_ci * .value[0].f32: radius of the upper left corner. \n 42423b3eb3cSopenharmony_ci * .value[1].f32: radius of the upper right corner. \n 42523b3eb3cSopenharmony_ci * .value[2].f32: radius of the lower left corner. \n 42623b3eb3cSopenharmony_ci * .value[3].f32: radius of the lower right corner. \n 42723b3eb3cSopenharmony_ci * 42823b3eb3cSopenharmony_ci */ 42923b3eb3cSopenharmony_ci NODE_BORDER_RADIUS, 43023b3eb3cSopenharmony_ci /** 43123b3eb3cSopenharmony_ci * @brief Defines the border color attribute, which can be set, reset, and obtained as required through APIs. 43223b3eb3cSopenharmony_ci * 43323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 43423b3eb3cSopenharmony_ci * 1: .value[0].u32: color of the four borders, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 43523b3eb3cSopenharmony_ci * 2: .value[0].u32: color of the top border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 43623b3eb3cSopenharmony_ci * .value[1].u32: color of the right border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 43723b3eb3cSopenharmony_ci * .value[2].u32: color of the lower border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 43823b3eb3cSopenharmony_ci * .value[3].u32: color of the left border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 43923b3eb3cSopenharmony_ci * \n 44023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 44123b3eb3cSopenharmony_ci * .value[0].u32: color of the top border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 44223b3eb3cSopenharmony_ci * .value[1].u32: color of the right border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 44323b3eb3cSopenharmony_ci * .value[2].u32: color of the lower border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 44423b3eb3cSopenharmony_ci * .value[3].u32: color of the left border, in 0xARGB format, for example, <b>0xFFFF11FF</b>. \n 44523b3eb3cSopenharmony_ci * 44623b3eb3cSopenharmony_ci */ 44723b3eb3cSopenharmony_ci NODE_BORDER_COLOR, 44823b3eb3cSopenharmony_ci /** 44923b3eb3cSopenharmony_ci * @brief Defines the border line style attribute, which can be set, reset, and obtained as required through APIs. 45023b3eb3cSopenharmony_ci * 45123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 45223b3eb3cSopenharmony_ci * 1: .value[0].i32: line style of the four borders. The parameter type is {@link ArkUI_BorderStyle}. 45323b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BORDER_STYLE_SOLID</b>. \n 45423b3eb3cSopenharmony_ci * 2: .value[0].i32: line style of the top border. The parameter type is {@link ArkUI_BorderStyle}. 45523b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BORDER_STYLE_SOLID</b>. \n 45623b3eb3cSopenharmony_ci * .value[1].i32: line style of the right border. The parameter type is {@link ArkUI_BorderStyle}. 45723b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BORDER_STYLE_SOLID</b>. \n 45823b3eb3cSopenharmony_ci * .value[2].i32: line style of the bottom border. The parameter type is {@link ArkUI_BorderStyle}. 45923b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BORDER_STYLE_SOLID</b>. \n 46023b3eb3cSopenharmony_ci * .value[3].i32: line style of the left border. The parameter type is {@link ArkUI_BorderStyle}. 46123b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BORDER_STYLE_SOLID</b>. \n 46223b3eb3cSopenharmony_ci * \n 46323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 46423b3eb3cSopenharmony_ci * .value[0].i32: line style of the top border. \n 46523b3eb3cSopenharmony_ci * .value[1].i32: line style of the right border. \n 46623b3eb3cSopenharmony_ci * .value[2].i32: line style of the bottom border. \n 46723b3eb3cSopenharmony_ci * .value[3].i32: line style of the left border. \n 46823b3eb3cSopenharmony_ci * 46923b3eb3cSopenharmony_ci */ 47023b3eb3cSopenharmony_ci NODE_BORDER_STYLE, 47123b3eb3cSopenharmony_ci /** 47223b3eb3cSopenharmony_ci * @brief Defines the z-index attribute for the stack sequence. 47323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 47423b3eb3cSopenharmony_ci * 47523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 47623b3eb3cSopenharmony_ci * .value[0].f32: z-index value. \n 47723b3eb3cSopenharmony_ci * \n 47823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 47923b3eb3cSopenharmony_ci * .value[0].f32: z-index value. \n 48023b3eb3cSopenharmony_ci * 48123b3eb3cSopenharmony_ci */ 48223b3eb3cSopenharmony_ci NODE_Z_INDEX, 48323b3eb3cSopenharmony_ci /** 48423b3eb3cSopenharmony_ci * @brief Defines the visibility attribute, which can be set, reset, and obtained as required through APIs. 48523b3eb3cSopenharmony_ci * 48623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 48723b3eb3cSopenharmony_ci * .value[0].i32: whether to show or hide the component. The parameter type is {@link ArkUI_Visibility}. 48823b3eb3cSopenharmony_ci * The default value is <b>ARKUI_VISIBILITY_VISIBLE</b>. \n 48923b3eb3cSopenharmony_ci * \n 49023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 49123b3eb3cSopenharmony_ci * .value[0].i32: whether to show or hide the component. The parameter type is {@link ArkUI_Visibility}. 49223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_VISIBILITY_VISIBLE</b>. \n 49323b3eb3cSopenharmony_ci * 49423b3eb3cSopenharmony_ci */ 49523b3eb3cSopenharmony_ci NODE_VISIBILITY, 49623b3eb3cSopenharmony_ci /** 49723b3eb3cSopenharmony_ci * @brief Defines the clip attribute, which can be set, reset, and obtained as required through APIs. 49823b3eb3cSopenharmony_ci * 49923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 50023b3eb3cSopenharmony_ci * .value[0].i32: whether to clip the component based on the parent container bounds. 50123b3eb3cSopenharmony_ci * The value <b>0</b> means to clip the component, and <b>1</b> means the opposite. \n 50223b3eb3cSopenharmony_ci * \n 50323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 50423b3eb3cSopenharmony_ci * .value[0].i32: whether to clip the component based on the parent container bounds. 50523b3eb3cSopenharmony_ci * The value <b>0</b> means to clip the component, and <b>1</b> means the opposite. \n 50623b3eb3cSopenharmony_ci * 50723b3eb3cSopenharmony_ci */ 50823b3eb3cSopenharmony_ci NODE_CLIP, 50923b3eb3cSopenharmony_ci /** 51023b3eb3cSopenharmony_ci * @brief Defines the clipping region on the component. 51123b3eb3cSopenharmony_ci * This attribute can be set and obtained as required through APIs. 51223b3eb3cSopenharmony_ci * 51323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute, 51423b3eb3cSopenharmony_ci * which supports five types of shapes:\n 51523b3eb3cSopenharmony_ci * 1. Rectangle:\n 51623b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 51723b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_RECTANGLE</b> for the rectangle shape.\n 51823b3eb3cSopenharmony_ci * .value[1].f32: width of the rectangle.\n 51923b3eb3cSopenharmony_ci * .value[2].f32: height of rectangle.\n 52023b3eb3cSopenharmony_ci * .value[3].f32: width of the rounded corner of the rectangle.\n 52123b3eb3cSopenharmony_ci * .value[4].f32: height of the rounded corner of the rectangle.\n 52223b3eb3cSopenharmony_ci * 2. Circle:\n 52323b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 52423b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_CIRCLE</b> for the circle shape.\n 52523b3eb3cSopenharmony_ci * .value[1].f32: width of the circle.\n 52623b3eb3cSopenharmony_ci * .value[2].f32: height of the circle.\n 52723b3eb3cSopenharmony_ci * 3. Ellipse:\n 52823b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 52923b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_ELLIPSE</b> for the ellipse shape.\n 53023b3eb3cSopenharmony_ci * .value[1].f32: width of the ellipse.\n 53123b3eb3cSopenharmony_ci * .value[2].f32: height of the ellipse.\n 53223b3eb3cSopenharmony_ci * 4. Path:\n 53323b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 53423b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_PATH</b> for the path shape.\n 53523b3eb3cSopenharmony_ci * .value[1].f32: width of the path.\n 53623b3eb3cSopenharmony_ci * .value[2].f32: height of the path.\n 53723b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 53823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}, which supports five types of shapes:\n 53923b3eb3cSopenharmony_ci * 1. Rectangle:\n 54023b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 54123b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_RECTANGLE</b> for the rectangle shape.\n 54223b3eb3cSopenharmony_ci * .value[1].f32: width of the rectangle.\n 54323b3eb3cSopenharmony_ci * .value[2].f32: height of rectangle.\n 54423b3eb3cSopenharmony_ci * .value[3].f32: width of the rounded corner of the rectangle.\n 54523b3eb3cSopenharmony_ci * .value[4].f32: height of the rounded corner of the rectangle.\n 54623b3eb3cSopenharmony_ci * 2. Circle:\n 54723b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 54823b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_CIRCLE</b> for the circle shape.\n 54923b3eb3cSopenharmony_ci * .value[1].f32: width of the circle.\n 55023b3eb3cSopenharmony_ci * .value[2].f32: height of the circle.\n 55123b3eb3cSopenharmony_ci * 3. Ellipse:\n 55223b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 55323b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_ELLIPSE</b> for the ellipse shape.\n 55423b3eb3cSopenharmony_ci * .value[1].f32: width of the ellipse.\n 55523b3eb3cSopenharmony_ci * .value[2].f32: height of the ellipse.\n 55623b3eb3cSopenharmony_ci * 4. Path:\n 55723b3eb3cSopenharmony_ci * .value[0].i32: type of shape. The parameter type is {@link ArkUI_ClipType}. 55823b3eb3cSopenharmony_ci * The value is <b>ARKUI_CLIP_TYPE_PATH</b> for the path shape.\n 55923b3eb3cSopenharmony_ci * .value[1].f32: width of the path.\n 56023b3eb3cSopenharmony_ci * .value[2].f32: height of the path.\n 56123b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 56223b3eb3cSopenharmony_ci * 56323b3eb3cSopenharmony_ci */ 56423b3eb3cSopenharmony_ci NODE_CLIP_SHAPE, 56523b3eb3cSopenharmony_ci /** 56623b3eb3cSopenharmony_ci * @brief Defines the transform attribute, which can be used to translate, rotate, and scale images. 56723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 56823b3eb3cSopenharmony_ci * 56923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 57023b3eb3cSopenharmony_ci * .data[0...15].f32: 16 floating-point numbers. \n 57123b3eb3cSopenharmony_ci * \n 57223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 57323b3eb3cSopenharmony_ci * .data[0...15].f32: 16 floating-point numbers. \n 57423b3eb3cSopenharmony_ci * 57523b3eb3cSopenharmony_ci */ 57623b3eb3cSopenharmony_ci NODE_TRANSFORM, 57723b3eb3cSopenharmony_ci /** 57823b3eb3cSopenharmony_ci * @brief Defines the hit test behavior attribute, which can be set, reset, and obtained as required through APIs. 57923b3eb3cSopenharmony_ci * 58023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 58123b3eb3cSopenharmony_ci * .value[0].i32: hit test mode. The parameter type is {@link ArkUI_HitTestMode}. 58223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_HIT_TEST_MODE_DEFAULT</b>. \n 58323b3eb3cSopenharmony_ci * \n 58423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 58523b3eb3cSopenharmony_ci * .value[0].i32: hit test mode. The parameter type is {@link ArkUI_HitTestMode}. 58623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_HIT_TEST_MODE_DEFAULT</b>. \n 58723b3eb3cSopenharmony_ci * 58823b3eb3cSopenharmony_ci */ 58923b3eb3cSopenharmony_ci NODE_HIT_TEST_BEHAVIOR, 59023b3eb3cSopenharmony_ci /** 59123b3eb3cSopenharmony_ci * @brief Defines the offset attribute, which specifies the offset of the component's upper left corner relative 59223b3eb3cSopenharmony_ci * to the parent container's. This attribute can be set, reset, and obtained as required through APIs. 59323b3eb3cSopenharmony_ci * 59423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 59523b3eb3cSopenharmony_ci * .value[0].f32: X coordinate. \n 59623b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate. \n 59723b3eb3cSopenharmony_ci * \n 59823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 59923b3eb3cSopenharmony_ci * .value[0].f32: X coordinate. \n 60023b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate. \n 60123b3eb3cSopenharmony_ci * 60223b3eb3cSopenharmony_ci */ 60323b3eb3cSopenharmony_ci NODE_POSITION, 60423b3eb3cSopenharmony_ci /** 60523b3eb3cSopenharmony_ci * @brief Defines the shadow attribute, which can be set, reset, and obtained as required through APIs. 60623b3eb3cSopenharmony_ci * 60723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 60823b3eb3cSopenharmony_ci * .value[0].i32: shadow effect. The parameter type is {@link ArkUI_ShadowStyle}. \n 60923b3eb3cSopenharmony_ci * \n 61023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 61123b3eb3cSopenharmony_ci * .value[0].i32: shadow effect. The parameter type is {@link ArkUI_ShadowStyle}. \n 61223b3eb3cSopenharmony_ci * 61323b3eb3cSopenharmony_ci */ 61423b3eb3cSopenharmony_ci NODE_SHADOW, 61523b3eb3cSopenharmony_ci /** 61623b3eb3cSopenharmony_ci * @brief Defines the custom shadow effect. This attribute can be set, reset, and obtained as required through APIs. 61723b3eb3cSopenharmony_ci * 61823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 61923b3eb3cSopenharmony_ci * .value[0]?.f32: blur radius of the shadow, in vp.\n 62023b3eb3cSopenharmony_ci * .value[1]?.i32: whether to enable the coloring strategy. The value <b>1</b> means to enable the coloring 62123b3eb3cSopenharmony_ci * strategy, and <b>0</b> (default value) means the opposite.\n 62223b3eb3cSopenharmony_ci * .value[2]?.f32: offset of the shadow along the x-axis, in px.\n 62323b3eb3cSopenharmony_ci * .value[3]?.f32: offset of the shadow along the y-axis, in px.\n 62423b3eb3cSopenharmony_ci * .value[4]?.i32: shadow type {@link ArkUI_ShadowType}. The default value is <b>ARKUI_SHADOW_TYPE_COLOR</b>.\n 62523b3eb3cSopenharmony_ci * .value[5]?.u32: shadow color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 62623b3eb3cSopenharmony_ci * .value[6]?.u32: whether to fill the shadow. The value <b>1</b> means to fill the shadow, and <b>0</b> 62723b3eb3cSopenharmony_ci * means the opposite.\n 62823b3eb3cSopenharmony_ci * 62923b3eb3cSopenharmony_ci * \n 63023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 63123b3eb3cSopenharmony_ci * .value[0].f32: blur radius of the shadow, in vp.\n 63223b3eb3cSopenharmony_ci * .value[1].i32: whether to enable the coloring strategy. \n 63323b3eb3cSopenharmony_ci * .value[2].f32: offset of the shadow along the x-axis, in px.\n 63423b3eb3cSopenharmony_ci * .value[3].f32: offset of the shadow along the y-axis, in px.\n 63523b3eb3cSopenharmony_ci * .value[4].i32: shadow type {@link ArkUI_ShadowType}. The default value is <b>ARKUI_SHADOW_TYPE_COLOR</b>.\n 63623b3eb3cSopenharmony_ci * .value[5].u32: shadow color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 63723b3eb3cSopenharmony_ci * .value[6].u32: whether to fill the shadow. The value <b>1</b> means to fill the shadow, and <b>0</b> 63823b3eb3cSopenharmony_ci * means the opposite.\n 63923b3eb3cSopenharmony_ci * 64023b3eb3cSopenharmony_ci */ 64123b3eb3cSopenharmony_ci NODE_CUSTOM_SHADOW, 64223b3eb3cSopenharmony_ci /** 64323b3eb3cSopenharmony_ci * @brief Defines the background image width and height. 64423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 64523b3eb3cSopenharmony_ci * 64623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 64723b3eb3cSopenharmony_ci * .value[0].f32: width of the image. The value range is [0, +∞), and the unit is vp. \n 64823b3eb3cSopenharmony_ci * .value[1].f32: height of the image. The value range is [0, +∞), and the unit is vp. \n 64923b3eb3cSopenharmony_ci * \n 65023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 65123b3eb3cSopenharmony_ci * .value[0].f32: width of the image, in vp. \n 65223b3eb3cSopenharmony_ci * .value[1].f32: height of the image, in vp. \n 65323b3eb3cSopenharmony_ci * 65423b3eb3cSopenharmony_ci */ 65523b3eb3cSopenharmony_ci NODE_BACKGROUND_IMAGE_SIZE, 65623b3eb3cSopenharmony_ci /** 65723b3eb3cSopenharmony_ci * @brief Defines the background image size. 65823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 65923b3eb3cSopenharmony_ci * 66023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 66123b3eb3cSopenharmony_ci * .value[0].i32: size of the background image. The value is an enum of {@link ArkUI_ImageSize}. \n 66223b3eb3cSopenharmony_ci * \n 66323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 66423b3eb3cSopenharmony_ci * .value[0].i32: size of the background image. The value is an enum of {@link ArkUI_ImageSize}. \n 66523b3eb3cSopenharmony_ci * 66623b3eb3cSopenharmony_ci */ 66723b3eb3cSopenharmony_ci NODE_BACKGROUND_IMAGE_SIZE_WITH_STYLE, 66823b3eb3cSopenharmony_ci /** 66923b3eb3cSopenharmony_ci * @brief Defines the background blur attribute, which can be set, reset, and obtained as required through APIs. 67023b3eb3cSopenharmony_ci * 67123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 67223b3eb3cSopenharmony_ci * .value[0].i32: blue type. The value is an enum of {@link ArkUI_BlurStyle}. \n 67323b3eb3cSopenharmony_ci * .value[1]?.i32: color mode. The value is an enum of {@link ArkUI_ColorMode}. \n 67423b3eb3cSopenharmony_ci * .value[2]?.i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n 67523b3eb3cSopenharmony_ci * .value[3]?.f32: blur degree. The value range is [0.0, 1.0]. \n 67623b3eb3cSopenharmony_ci * .value[4]?.f32: start boundary of grayscale blur. \n 67723b3eb3cSopenharmony_ci * .value[5]?.f32: end boundary of grayscale blur. \n 67823b3eb3cSopenharmony_ci * \n 67923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 68023b3eb3cSopenharmony_ci * .value[0].i32: blue type. The value is an enum of {@link ArkUI_BlurStyle}. \n 68123b3eb3cSopenharmony_ci * .value[1].i32: color mode. The value is an enum of {@link ArkUI_ColorMode}. \n 68223b3eb3cSopenharmony_ci * .value[2].i32: adaptive color mode. The value is an enum of {@link ArkUI_AdaptiveColor}. \n 68323b3eb3cSopenharmony_ci * .value[3].f32: blur degree. The value range is [0.0, 1.0]. \n 68423b3eb3cSopenharmony_ci * .value[4].f32: start boundary of grayscale blur. \n 68523b3eb3cSopenharmony_ci * .value[5].f32: end boundary of grayscale blur. \n 68623b3eb3cSopenharmony_ci * 68723b3eb3cSopenharmony_ci */ 68823b3eb3cSopenharmony_ci NODE_BACKGROUND_BLUR_STYLE, 68923b3eb3cSopenharmony_ci /** 69023b3eb3cSopenharmony_ci * @brief Defines the transform center attribute, which can be set, reset, and obtained as required through APIs. 69123b3eb3cSopenharmony_ci * 69223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 69323b3eb3cSopenharmony_ci * .value[0]?.f32: X coordinate of the center point, in vp.\n 69423b3eb3cSopenharmony_ci * .value[1]?.f32: Y coordinate of the center point, in vp.\n 69523b3eb3cSopenharmony_ci * .value[2]?.f32: Z coordinate of the center point, in vp.\n 69623b3eb3cSopenharmony_ci * .value[3]?.f32 : X coordinate of the center point, expressed in a number that represents a percentage. 69723b3eb3cSopenharmony_ci * For example, 0.2 indicates 20%. This attribute overwrites value[0].f32. The default value is <b>0.5f</b>. \n 69823b3eb3cSopenharmony_ci * .value[4]?.f32 : Y coordinate of the center point, expressed in a number that represents a percentage. 69923b3eb3cSopenharmony_ci * For example, 0.2 indicates 20%. This attribute overwrites value[1].f32. The default value is <b>0.5f</b>. \n 70023b3eb3cSopenharmony_ci * .value[5]?.f32 : Z coordinate of the center point, expressed in a number that represents a percentage. 70123b3eb3cSopenharmony_ci * For example, 0.2 indicates 20%. This attribute overwrites value[2].f32. The default value is <b>0.0f</b>. \n 70223b3eb3cSopenharmony_ci * \n 70323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 70423b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the center point, in vp.\n 70523b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the center point, in vp.\n 70623b3eb3cSopenharmony_ci * .value[2].f32: Z coordinate of the center point, in vp.\n 70723b3eb3cSopenharmony_ci * Note: If the coordinate is expressed in a number that represents a percentage, the attribute obtaining API 70823b3eb3cSopenharmony_ci * returns the calculated value in vp. 70923b3eb3cSopenharmony_ci * 71023b3eb3cSopenharmony_ci */ 71123b3eb3cSopenharmony_ci NODE_TRANSFORM_CENTER, 71223b3eb3cSopenharmony_ci /** 71323b3eb3cSopenharmony_ci * @brief Defines the transition opacity attribute, which can be set, reset, and obtained as required through APIs. 71423b3eb3cSopenharmony_ci * 71523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 71623b3eb3cSopenharmony_ci * .value[0].f32: opacity values of the start and end points.\n 71723b3eb3cSopenharmony_ci * .value[1].i32: animation duration, in milliseconds.\n 71823b3eb3cSopenharmony_ci * .value[2].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n 71923b3eb3cSopenharmony_ci * .value[3]?.i32: animation delay duration, in milliseconds.\n 72023b3eb3cSopenharmony_ci * .value[4]?.i32: number of times that the animation is played.\n 72123b3eb3cSopenharmony_ci * .value[5]?.i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}.\n 72223b3eb3cSopenharmony_ci * .value[6]?.f32: animation playback speed.\n 72323b3eb3cSopenharmony_ci * \n 72423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 72523b3eb3cSopenharmony_ci * .value[0].f32: opacity values of the start and end points.\n 72623b3eb3cSopenharmony_ci * .value[1].i32: animation duration, in milliseconds.\n 72723b3eb3cSopenharmony_ci * .value[2].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n 72823b3eb3cSopenharmony_ci * .value[3].i32: animation delay duration, in milliseconds. \n 72923b3eb3cSopenharmony_ci * .value[4].i32: number of times that the animation is played. \n 73023b3eb3cSopenharmony_ci * .value[5].i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 73123b3eb3cSopenharmony_ci * .value[6].f32: animation playback speed. \n 73223b3eb3cSopenharmony_ci * 73323b3eb3cSopenharmony_ci */ 73423b3eb3cSopenharmony_ci NODE_OPACITY_TRANSITION, 73523b3eb3cSopenharmony_ci /** 73623b3eb3cSopenharmony_ci * @brief Defines the transition rotation attribute, which can be set, reset, and obtained as required through APIs. 73723b3eb3cSopenharmony_ci * 73823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 73923b3eb3cSopenharmony_ci * .value[0].f32: X-component of the rotation vector. \n 74023b3eb3cSopenharmony_ci * .value[1].f32: Y-component of the rotation vector. \n 74123b3eb3cSopenharmony_ci * .value[2].f32: Z-component of the rotation vector \n 74223b3eb3cSopenharmony_ci * .value[3].f32: angle. \n 74323b3eb3cSopenharmony_ci * .value[4].f32: line of sight. The default value is <b>0.0f</b>. \n 74423b3eb3cSopenharmony_ci * .value[5].i32: animation duration, in milliseconds. \n 74523b3eb3cSopenharmony_ci * .value[6].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 74623b3eb3cSopenharmony_ci * .value[7]?.i32: animation delay duration, in milliseconds. \n 74723b3eb3cSopenharmony_ci * .value[8]?.i32: number of times that the animation is played. \n 74823b3eb3cSopenharmony_ci * .value[9]?.i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 74923b3eb3cSopenharmony_ci * .value[10]?.f32: animation playback speed. \n 75023b3eb3cSopenharmony_ci * \n 75123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 75223b3eb3cSopenharmony_ci * .value[0].f32: X-component of the rotation vector. \n 75323b3eb3cSopenharmony_ci * .value[1].f32: Y-component of the rotation vector. \n 75423b3eb3cSopenharmony_ci * .value[2].f32: Z-component of the rotation vector \n 75523b3eb3cSopenharmony_ci * .value[3].f32: angle. \n 75623b3eb3cSopenharmony_ci * .value[4].f32: line of sight. \n 75723b3eb3cSopenharmony_ci * .value[5].i32: animation duration, in milliseconds. \n 75823b3eb3cSopenharmony_ci * .value[6].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 75923b3eb3cSopenharmony_ci * .value[7].i32: animation delay duration, in milliseconds. \n 76023b3eb3cSopenharmony_ci * .value[8].i32: number of times that the animation is played. \n 76123b3eb3cSopenharmony_ci * .value[9].i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 76223b3eb3cSopenharmony_ci * .value[10].f32: animation playback speed. \n 76323b3eb3cSopenharmony_ci * 76423b3eb3cSopenharmony_ci */ 76523b3eb3cSopenharmony_ci NODE_ROTATE_TRANSITION, 76623b3eb3cSopenharmony_ci /** 76723b3eb3cSopenharmony_ci * @brief Defines the transition scaling attribute, which can be set, reset, and obtained as required through APIs. 76823b3eb3cSopenharmony_ci * 76923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 77023b3eb3cSopenharmony_ci * .value[0].f32: scale factor along the x-axis. \n 77123b3eb3cSopenharmony_ci * .value[1].f32: scale factor along the y-axis. \n 77223b3eb3cSopenharmony_ci * .value[2].f32: scale factor along the z-axis. \n 77323b3eb3cSopenharmony_ci * .value[3].i32: animation duration, in milliseconds. \n 77423b3eb3cSopenharmony_ci * .value[4].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 77523b3eb3cSopenharmony_ci * .value[5]?.i32: animation delay duration, in milliseconds. \n 77623b3eb3cSopenharmony_ci * .value[6]?.i32: number of times that the animation is played. \n 77723b3eb3cSopenharmony_ci * .value[7]?.i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 77823b3eb3cSopenharmony_ci * .value[8]?.f32: animation playback speed. \n 77923b3eb3cSopenharmony_ci * \n 78023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 78123b3eb3cSopenharmony_ci * .value[0].f32: scale factor along the x-axis. \n 78223b3eb3cSopenharmony_ci * .value[1].f32: scale factor along the y-axis. \n 78323b3eb3cSopenharmony_ci * .value[2].f32: scale factor along the z-axis. \n 78423b3eb3cSopenharmony_ci * .value[3].i32: animation duration, in milliseconds. \n 78523b3eb3cSopenharmony_ci * .value[4].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 78623b3eb3cSopenharmony_ci * .value[5].i32: animation delay duration, in milliseconds. \n 78723b3eb3cSopenharmony_ci * .value[6].i32: number of times that the animation is played. \n 78823b3eb3cSopenharmony_ci * .value[7].i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 78923b3eb3cSopenharmony_ci * .value[8].f32: animation playback speed. \n 79023b3eb3cSopenharmony_ci * 79123b3eb3cSopenharmony_ci */ 79223b3eb3cSopenharmony_ci NODE_SCALE_TRANSITION, 79323b3eb3cSopenharmony_ci /** 79423b3eb3cSopenharmony_ci * @brief Defines the transition translation attribute. 79523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 79623b3eb3cSopenharmony_ci * 79723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 79823b3eb3cSopenharmony_ci * value[0].f32: translation distance along the x-axis, in vp.\n 79923b3eb3cSopenharmony_ci * value[1].f32: translation distance along the y-axis, in vp.\n 80023b3eb3cSopenharmony_ci * value[2].f32: translation distance along the z-axis, in vp.\n 80123b3eb3cSopenharmony_ci * value[3].i32: animation duration, in milliseconds. \n 80223b3eb3cSopenharmony_ci * value[4].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 80323b3eb3cSopenharmony_ci * value[5]?.i32: animation delay duration, in milliseconds. \n 80423b3eb3cSopenharmony_ci * value[6]?.i32: number of times that the animation is played. \n 80523b3eb3cSopenharmony_ci * value[7]?.i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 80623b3eb3cSopenharmony_ci * value[8]?.f32: animation playback speed. \n 80723b3eb3cSopenharmony_ci * \n 80823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 80923b3eb3cSopenharmony_ci * value[0].f32: translation distance along the x-axis, in vp.\n 81023b3eb3cSopenharmony_ci * value[1].f32: translation distance along the y-axis, in vp.\n 81123b3eb3cSopenharmony_ci * value[2].f32: translation distance along the z-axis, in vp.\n 81223b3eb3cSopenharmony_ci * value[3].i32: animation duration, in milliseconds. \n 81323b3eb3cSopenharmony_ci * value[4].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n \n 81423b3eb3cSopenharmony_ci * value[5].i32: animation delay duration, in milliseconds. \n 81523b3eb3cSopenharmony_ci * value[6].i32: number of times that the animation is played. \n 81623b3eb3cSopenharmony_ci * value[7].i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 81723b3eb3cSopenharmony_ci * value[8].f32: animation playback speed. \n 81823b3eb3cSopenharmony_ci * 81923b3eb3cSopenharmony_ci */ 82023b3eb3cSopenharmony_ci NODE_TRANSLATE_TRANSITION, 82123b3eb3cSopenharmony_ci /** 82223b3eb3cSopenharmony_ci * @brief Defines the slide-in and slide-out of the component from the screen edge during transition. 82323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 82423b3eb3cSopenharmony_ci * 82523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 82623b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_TransitionEdge}. \n 82723b3eb3cSopenharmony_ci * .value[1].i32: animation duration, in milliseconds.\n 82823b3eb3cSopenharmony_ci * .value[2].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n 82923b3eb3cSopenharmony_ci * .value[3]?.i32: animation delay duration, in milliseconds. \n 83023b3eb3cSopenharmony_ci * .value[4]?.i32: number of times that the animation is played. \n 83123b3eb3cSopenharmony_ci * .value[5]?.i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 83223b3eb3cSopenharmony_ci * .value[6]?.f32: animation playback speed. \n 83323b3eb3cSopenharmony_ci * \n 83423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 83523b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_TransitionEdge}. \n 83623b3eb3cSopenharmony_ci * .value[1].i32: animation duration, in milliseconds.\n 83723b3eb3cSopenharmony_ci * .value[2].i32: animation curve type. The value is an enum of {@link ArkUI_AnimationCurve}.\n 83823b3eb3cSopenharmony_ci * .value[3].i32: animation delay duration, in milliseconds. \n 83923b3eb3cSopenharmony_ci * .value[4].i32: number of times that the animation is played. \n 84023b3eb3cSopenharmony_ci * .value[5].i32: animation playback mode. The value is an enum of {@link ArkUI_AnimationPlayMode}. \n 84123b3eb3cSopenharmony_ci * .value[6].f32: animation playback speed. \n 84223b3eb3cSopenharmony_ci * 84323b3eb3cSopenharmony_ci */ 84423b3eb3cSopenharmony_ci NODE_MOVE_TRANSITION, 84523b3eb3cSopenharmony_ci 84623b3eb3cSopenharmony_ci /** 84723b3eb3cSopenharmony_ci * @brief Defines the focus attribute, which can be set, reset, and obtained as required through APIs. 84823b3eb3cSopenharmony_ci * 84923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 85023b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 85123b3eb3cSopenharmony_ci * \n 85223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 85323b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 85423b3eb3cSopenharmony_ci * 85523b3eb3cSopenharmony_ci */ 85623b3eb3cSopenharmony_ci NODE_FOCUSABLE, 85723b3eb3cSopenharmony_ci 85823b3eb3cSopenharmony_ci /** 85923b3eb3cSopenharmony_ci * @brief Defines the default focus attribute, which can be set, reset, and obtained as required through APIs. 86023b3eb3cSopenharmony_ci * 86123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 86223b3eb3cSopenharmony_ci * value[0].i32: The parameter type is 1 or 0. 86323b3eb3cSopenharmony_ci * \n 86423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 86523b3eb3cSopenharmony_ci * value[0].i32: The parameter type is 1 or 0. 86623b3eb3cSopenharmony_ci * 86723b3eb3cSopenharmony_ci */ 86823b3eb3cSopenharmony_ci NODE_DEFAULT_FOCUS, 86923b3eb3cSopenharmony_ci 87023b3eb3cSopenharmony_ci /** 87123b3eb3cSopenharmony_ci * @brief Defines the touch target attribute, which can be set, reset, and obtained as required through APIs. 87223b3eb3cSopenharmony_ci * 87323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 87423b3eb3cSopenharmony_ci * .data[0].f32: X coordinate of the touch point relative to the upper left corner of the component, in vp. \n 87523b3eb3cSopenharmony_ci * .data[1].f32: Y coordinate of the touch point relative to the upper left corner of the component, in vp. \n 87623b3eb3cSopenharmony_ci * .data[2].f32: width of the touch target, in %. \n 87723b3eb3cSopenharmony_ci * .data[3].f32: height of the touch target, in %. \n 87823b3eb3cSopenharmony_ci * .data[4...].f32: Multiple touch targets can be set. The sequence of the parameters is the same as the preceding. 87923b3eb3cSopenharmony_ci * \n 88023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 88123b3eb3cSopenharmony_ci * .data[0].f32: X coordinate of the touch point relative to the upper left corner of the component, in vp. \n 88223b3eb3cSopenharmony_ci * .data[1].f32: Y coordinate of the touch point relative to the upper left corner of the component, in vp. \n 88323b3eb3cSopenharmony_ci * .data[2].f32: width of the touch target, in %. \n 88423b3eb3cSopenharmony_ci * .data[3].f32: height of the touch target, in %. \n 88523b3eb3cSopenharmony_ci * .data[4...].f32: Multiple touch targets can be set. The sequence of the parameters is the same as the preceding. 88623b3eb3cSopenharmony_ci * 88723b3eb3cSopenharmony_ci */ 88823b3eb3cSopenharmony_ci NODE_RESPONSE_REGION, 88923b3eb3cSopenharmony_ci 89023b3eb3cSopenharmony_ci /** 89123b3eb3cSopenharmony_ci * @brief Defines the overlay attribute, which can be set, reset, and obtained as required through APIs. 89223b3eb3cSopenharmony_ci * 89323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 89423b3eb3cSopenharmony_ci * .string: mask text.\n 89523b3eb3cSopenharmony_ci * .value[0]?.i32: position of the overlay relative to the component. Optional. 89623b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_Alignment}. 89723b3eb3cSopenharmony_ci * The default value is <b>ARKUI_ALIGNMENT_TOP_START.</b> \n 89823b3eb3cSopenharmony_ci * .value[1]?.f32: offset of the overlay relative to the upper left corner of itself on the x-axis, in vp. Optional. \n 89923b3eb3cSopenharmony_ci * .value[2]?.f32: offset of the overlay relative to the upper left corner of itself on the y-axis, in vp. Optional. 90023b3eb3cSopenharmony_ci * \n 90123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 90223b3eb3cSopenharmony_ci * .string: mask text.\n 90323b3eb3cSopenharmony_ci * .value[0].i32: position of the overlay relative to the component. 90423b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_Alignment}. 90523b3eb3cSopenharmony_ci * The default value is <b>ARKUI_ALIGNMENT_TOP_START.</b> \n 90623b3eb3cSopenharmony_ci * .value[1].f32: offset of the overlay relative to the upper left corner of itself on the x-axis, in vp. \n 90723b3eb3cSopenharmony_ci * .value[2].f32: offset of the overlay relative to the upper left corner of itself on the y-axis, in vp. 90823b3eb3cSopenharmony_ci * 90923b3eb3cSopenharmony_ci * 91023b3eb3cSopenharmony_ci */ 91123b3eb3cSopenharmony_ci NODE_OVERLAY, 91223b3eb3cSopenharmony_ci /** 91323b3eb3cSopenharmony_ci * @brief Defines the sweep gradient effect. 91423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 91523b3eb3cSopenharmony_ci * 91623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 91723b3eb3cSopenharmony_ci * .value[0]?.f32: X coordinate of the sweep gradient center relative to the upper left corner of the component.\n 91823b3eb3cSopenharmony_ci * .value[1]?.f32: Y coordinate of the sweep gradient center relative to the upper left corner of the component.\n 91923b3eb3cSopenharmony_ci * .value[2]?.f32: start point of the sweep gradient. The default value is <b>0</b>. \n 92023b3eb3cSopenharmony_ci * .value[3]?.f32: end point of the sweep gradient. The default value is <b>0</b>. \n 92123b3eb3cSopenharmony_ci * .value[4]?.f32: rotation angle of the sweep gradient. The default value is <b>0</b>. \n 92223b3eb3cSopenharmony_ci * .value[5]?.i32: whether the colors are repeated. The value <b>1</b> means that the colors are repeated, 92323b3eb3cSopenharmony_ci * and <b>0</b> means the opposite.\n 92423b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 92523b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 92623b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 92723b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 92823b3eb3cSopenharmony_ci * size: number of colors. \n 92923b3eb3cSopenharmony_ci * \n 93023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 93123b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the sweep gradient center relative to the upper left corner of the component. \n 93223b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the sweep gradient center relative to the upper left corner of the component. \n 93323b3eb3cSopenharmony_ci * .value[2].f32: start point of the sweep gradient. The default value is <b>0</b>. \n 93423b3eb3cSopenharmony_ci * .value[3].f32: end point of the sweep gradient. The default value is <b>0</b>. \n 93523b3eb3cSopenharmony_ci * .value[4].f32: rotation angle of the sweep gradient. The default value is <b>0</b>. \n 93623b3eb3cSopenharmony_ci * .value[5].i32: whether the colors are repeated. The value <b>1</b> means that the colors are repeated, 93723b3eb3cSopenharmony_ci * and <b>0</b> means the opposite.\n 93823b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 93923b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 94023b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 94123b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 94223b3eb3cSopenharmony_ci * size: number of colors. \n 94323b3eb3cSopenharmony_ci * 94423b3eb3cSopenharmony_ci */ 94523b3eb3cSopenharmony_ci NODE_SWEEP_GRADIENT, 94623b3eb3cSopenharmony_ci /** 94723b3eb3cSopenharmony_ci * @brief Defines the radial gradient effect. 94823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 94923b3eb3cSopenharmony_ci * 95023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 95123b3eb3cSopenharmony_ci * .value[0]?.f32: X coordinate of the radial gradient center relative to the upper left corner of the component. \n 95223b3eb3cSopenharmony_ci * .value[1]?.f32: Y coordinate of the radial gradient center relative to the upper left corner of the component. \n 95323b3eb3cSopenharmony_ci * .value[2]?.f32: radius of the radial gradient. The default value is <b>0</b>. \n 95423b3eb3cSopenharmony_ci * .value[3]?.i32: whether the colors are repeated. The value <b>1</b> means that the colors are repeated, 95523b3eb3cSopenharmony_ci * and <b>0</b> means the opposite. \n 95623b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 95723b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 95823b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 95923b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 96023b3eb3cSopenharmony_ci * size: number of colors. \n 96123b3eb3cSopenharmony_ci * \n 96223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 96323b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the radial gradient center relative to the upper left corner of the component. \n 96423b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the radial gradient center relative to the upper left corner of the component. \n 96523b3eb3cSopenharmony_ci * .value[2].f32: radius of the radial gradient. The default value is <b>0</b>. \n 96623b3eb3cSopenharmony_ci * .value[3].i32: whether the colors are repeated. The value <b>1</b> means that the colors are repeated, 96723b3eb3cSopenharmony_ci * and <b>0</b> means the opposite.\n 96823b3eb3cSopenharmony_ci * .object: array of color stops, each of which consists of a color and its stop position. 96923b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ColorStop}. Invalid colors are automatically skipped. \n 97023b3eb3cSopenharmony_ci * colors: colors of the color stops. \n 97123b3eb3cSopenharmony_ci * stops: stop positions of the color stops. \n 97223b3eb3cSopenharmony_ci * size: number of colors. \n 97323b3eb3cSopenharmony_ci * 97423b3eb3cSopenharmony_ci */ 97523b3eb3cSopenharmony_ci NODE_RADIAL_GRADIENT, 97623b3eb3cSopenharmony_ci /** 97723b3eb3cSopenharmony_ci * @brief Adds a mask of the specified shape to the component. 97823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 97923b3eb3cSopenharmony_ci * 98023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute, which supports five types of 98123b3eb3cSopenharmony_ci * shapes:\n 98223b3eb3cSopenharmony_ci * 1. Rectangle:\n 98323b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 98423b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 98523b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 98623b3eb3cSopenharmony_ci * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. 98723b3eb3cSopenharmony_ci * The value is <b>ARKUI_MASK_TYPE_RECTANGLE</b> for the rectangle shape.\n 98823b3eb3cSopenharmony_ci * .value[4].f32: width of the rectangle.\n 98923b3eb3cSopenharmony_ci * .value[5].f32: height of the rectangle.\n 99023b3eb3cSopenharmony_ci * .value[6].f32: width of the rounded corner of the rectangle.\n 99123b3eb3cSopenharmony_ci * .value[7].f32: height of the rounded corner of the rectangle.\n 99223b3eb3cSopenharmony_ci * 2. Circle:\n 99323b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 99423b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 99523b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 99623b3eb3cSopenharmony_ci * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. 99723b3eb3cSopenharmony_ci * The value is <b>ARKUI_MASK_TYPE_CIRCLE</b> for the circle shape.\n 99823b3eb3cSopenharmony_ci * .value[4].f32: width of the circle.\n 99923b3eb3cSopenharmony_ci * .value[5].f32: height of the circle.\n 100023b3eb3cSopenharmony_ci * 3. Ellipse:\n 100123b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 100223b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 100323b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 100423b3eb3cSopenharmony_ci * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. 100523b3eb3cSopenharmony_ci * The value is <b>ARKUI_MASK_TYPE_ELLIPSE</b> for the ellipse shape.\n 100623b3eb3cSopenharmony_ci * .value[4].f32: width of the ellipse.\n 100723b3eb3cSopenharmony_ci * .value[5].f32: height of the ellipse.\n 100823b3eb3cSopenharmony_ci * 4. Path:\n 100923b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 101023b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 101123b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 101223b3eb3cSopenharmony_ci * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. 101323b3eb3cSopenharmony_ci * The value is <b>ARKUI_MASK_TYPE_PATH</b> for the path shape.\n 101423b3eb3cSopenharmony_ci * .value[4].f32: width of the path.\n 101523b3eb3cSopenharmony_ci * .value[5].f32: height of the path.\n 101623b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 101723b3eb3cSopenharmony_ci * 5. Progress:\n 101823b3eb3cSopenharmony_ci * .value[0].i32: mask type. The parameter type is {@link ArkUI_MaskType}. 101923b3eb3cSopenharmony_ci * The value is <b>ARKUI_MASK_TYPE_PROSGRESS</b> for the progress shape.\n 102023b3eb3cSopenharmony_ci * .value[1].f32: current value of the progress indicator.\n 102123b3eb3cSopenharmony_ci * .value[2].f32: maximum value of the progress indicator.\n 102223b3eb3cSopenharmony_ci * .value[3].u32: color of the progress indicator.\n 102323b3eb3cSopenharmony_ci * \n 102423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}, which supports five types of shapes:\n 102523b3eb3cSopenharmony_ci * 1. Rectangle:\n 102623b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 102723b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 102823b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 102923b3eb3cSopenharmony_ci * .value[3].i32: mask type.\n 103023b3eb3cSopenharmony_ci * .value[4].f32: width of the rectangle.\n 103123b3eb3cSopenharmony_ci * .value[5].f32: height of the rectangle.\n 103223b3eb3cSopenharmony_ci * .value[6].f32: width of the rounded corner of the rectangle.\n 103323b3eb3cSopenharmony_ci * .value[7].f32: height of the rounded corner of the rectangle.\n 103423b3eb3cSopenharmony_ci * 2. Circle:\n 103523b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 103623b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 103723b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 103823b3eb3cSopenharmony_ci * .value[3].i32: mask type.\n 103923b3eb3cSopenharmony_ci * .value[4].f32: width of the circle.\n 104023b3eb3cSopenharmony_ci * .value[5].f32: height of the circle.\n 104123b3eb3cSopenharmony_ci * 3. Ellipse:\n 104223b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 104323b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 104423b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 104523b3eb3cSopenharmony_ci * .value[3].i32: mask type.\n 104623b3eb3cSopenharmony_ci * .value[4].f32: width of the ellipse.\n 104723b3eb3cSopenharmony_ci * .value[5].f32: height of the ellipse.\n 104823b3eb3cSopenharmony_ci * 4. Path:\n 104923b3eb3cSopenharmony_ci * .value[0].u32 fill color, in 0xARGB format. \n 105023b3eb3cSopenharmony_ci * .value[1].u32: stroke color, in 0xARGB format. \n 105123b3eb3cSopenharmony_ci * .value[2].f32: stroke width, in vp. \n 105223b3eb3cSopenharmony_ci * .value[3].i32: mask type.\n 105323b3eb3cSopenharmony_ci * .value[4].f32: width of the path.\n 105423b3eb3cSopenharmony_ci * .value[5].f32: height of the path.\n 105523b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 105623b3eb3cSopenharmony_ci * 5. Progress:\n 105723b3eb3cSopenharmony_ci * .value[0].i32: mask type.\n 105823b3eb3cSopenharmony_ci * .value[1].f32: current value of the progress indicator.\n 105923b3eb3cSopenharmony_ci * .value[2].f32: maximum value of the progress indicator.\n 106023b3eb3cSopenharmony_ci * .value[3].u32: color of the progress indicator.\n 106123b3eb3cSopenharmony_ci * 106223b3eb3cSopenharmony_ci */ 106323b3eb3cSopenharmony_ci NODE_MASK, 106423b3eb3cSopenharmony_ci /** 106523b3eb3cSopenharmony_ci * @brief Blends the component's background with the content of the component's child node. 106623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 106723b3eb3cSopenharmony_ci * 106823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 106923b3eb3cSopenharmony_ci * .value[0].i32: blend mode. The parameter type is {@link ArkUI_BlendMode}. The default value is 107023b3eb3cSopenharmony_ci * <b>ARKUI_BLEND_MODE_NONE</b>. \n 107123b3eb3cSopenharmony_ci * .value[1].?i32: how the specified blend mode is applied. The parameter type is {@link ArkUI_BlendApplyType}. 107223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BLEND_APPLY_TYPE_FAST</b>. \n 107323b3eb3cSopenharmony_ci * \n 107423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 107523b3eb3cSopenharmony_ci * .value[0].i32: blend mode. The parameter type is {@link ArkUI_BlendMode}. The default value is 107623b3eb3cSopenharmony_ci * <b>ARKUI_BLEND_MODE_NONE</b>. \n 107723b3eb3cSopenharmony_ci * .value[1].i32: how the specified blend mode is applied. The parameter type is {@link ArkUI_BlendApplyType}. 107823b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BLEND_APPLY_TYPE_FAST</b>. \n 107923b3eb3cSopenharmony_ci * 108023b3eb3cSopenharmony_ci */ 108123b3eb3cSopenharmony_ci NODE_BLEND_MODE, 108223b3eb3cSopenharmony_ci /** 108323b3eb3cSopenharmony_ci * @brief Sets the direction of the main axis. 108423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 108523b3eb3cSopenharmony_ci * 108623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 108723b3eb3cSopenharmony_ci * .value[0].i32: direction of the main axis.\n 108823b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_Direction}. The default value is <b>ARKUI_DIRECTION_AUTO</b>. \n 108923b3eb3cSopenharmony_ci * \n 109023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 109123b3eb3cSopenharmony_ci * .value[0].i32: direction of the main axis.\n 109223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_Direction}. The default value is <b>ARKUI_DIRECTION_AUTO</b>. \n 109323b3eb3cSopenharmony_ci * 109423b3eb3cSopenharmony_ci */ 109523b3eb3cSopenharmony_ci NODE_DIRECTION, 109623b3eb3cSopenharmony_ci /** 109723b3eb3cSopenharmony_ci * @brief Defines the size constraints. 109823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 109923b3eb3cSopenharmony_ci * 110023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 110123b3eb3cSopenharmony_ci * .value[0].f32: minimum width, in vp.\n 110223b3eb3cSopenharmony_ci * .value[1].f32: maximum width, in vp.\n 110323b3eb3cSopenharmony_ci * .value[2].f32: minimum height, in vp.\n 110423b3eb3cSopenharmony_ci * .value[3].f32: maximum height, in vp.\n 110523b3eb3cSopenharmony_ci * \n 110623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 110723b3eb3cSopenharmony_ci * .value[0].f32: minimum width, in vp.\n 110823b3eb3cSopenharmony_ci * .value[1].f32: maximum width, in vp.\n 110923b3eb3cSopenharmony_ci * .value[2].f32: minimum height, in vp.\n 111023b3eb3cSopenharmony_ci * .value[3].f32: maximum height, in vp.\n 111123b3eb3cSopenharmony_ci * 111223b3eb3cSopenharmony_ci */ 111323b3eb3cSopenharmony_ci NODE_CONSTRAINT_SIZE, 111423b3eb3cSopenharmony_ci /** 111523b3eb3cSopenharmony_ci * @brief Defines the grayscale effect. 111623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 111723b3eb3cSopenharmony_ci * 111823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 111923b3eb3cSopenharmony_ci * .value[0].f32: grayscale conversion ratio. The value ranges from 0 to 1. 112023b3eb3cSopenharmony_ci * For example, 0.5 indicates a 50% grayscale conversion ratio. \n 112123b3eb3cSopenharmony_ci * \n 112223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 112323b3eb3cSopenharmony_ci * .value[0].f32: grayscale conversion ratio. The value ranges from 0 to 1.\n 112423b3eb3cSopenharmony_ci * 112523b3eb3cSopenharmony_ci */ 112623b3eb3cSopenharmony_ci NODE_GRAY_SCALE, 112723b3eb3cSopenharmony_ci /** 112823b3eb3cSopenharmony_ci * @brief Inverts the image. 112923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 113023b3eb3cSopenharmony_ci * 113123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 113223b3eb3cSopenharmony_ci * .value[0].f32: image inversion ratio. The value ranges from 0 to 1. 113323b3eb3cSopenharmony_ci * For example, 0.5 indicates a 50% image inversion ratio.\n 113423b3eb3cSopenharmony_ci * \n 113523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 113623b3eb3cSopenharmony_ci * .value[0].f32: image inversion ratio. The value ranges from 0 to 1.\n 113723b3eb3cSopenharmony_ci * 113823b3eb3cSopenharmony_ci */ 113923b3eb3cSopenharmony_ci NODE_INVERT, 114023b3eb3cSopenharmony_ci /** 114123b3eb3cSopenharmony_ci * @brief Defines the sepia conversion ratio. 114223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 114323b3eb3cSopenharmony_ci * 114423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 114523b3eb3cSopenharmony_ci * .value[0].f32: sepia conversion ratio. The value ranges from 0 to 1. 114623b3eb3cSopenharmony_ci * For example, 0.5 indicates that a 50% sepia conversion ratio.\n 114723b3eb3cSopenharmony_ci * \n 114823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 114923b3eb3cSopenharmony_ci * .value[0].f32: sepia conversion ratio. The value ranges from 0 to 1.\n 115023b3eb3cSopenharmony_ci * 115123b3eb3cSopenharmony_ci */ 115223b3eb3cSopenharmony_ci NODE_SEPIA, 115323b3eb3cSopenharmony_ci /** 115423b3eb3cSopenharmony_ci * @brief Defines the contrast attribute, which can be set, reset, and obtained as required through APIs. 115523b3eb3cSopenharmony_ci * 115623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 115723b3eb3cSopenharmony_ci * .value[0].f32: contrast. If the value is <b>1</b>, the source image is displayed. 115823b3eb3cSopenharmony_ci * A larger value indicates a higher contrast. Value range: [0, 10).\n 115923b3eb3cSopenharmony_ci * \n 116023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 116123b3eb3cSopenharmony_ci * .value[0].f32: contrast. Value range: [0, 10).\n 116223b3eb3cSopenharmony_ci * 116323b3eb3cSopenharmony_ci */ 116423b3eb3cSopenharmony_ci NODE_CONTRAST, 116523b3eb3cSopenharmony_ci /** 116623b3eb3cSopenharmony_ci * @brief Defines the foreground color attribute, which can be set, reset, and obtained as required through APIs. 116723b3eb3cSopenharmony_ci * 116823b3eb3cSopenharmony_ci * There are two formats of {@link ArkUI_AttributeItem} for setting the attribute value:\n 116923b3eb3cSopenharmony_ci * 1: .value[0].u32: color value, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 117023b3eb3cSopenharmony_ci * 2: .value[0].i32: color enum {@link ArkUI_ColoringStrategy}.\n 117123b3eb3cSopenharmony_ci * \n 117223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 117323b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format.\n 117423b3eb3cSopenharmony_ci * 117523b3eb3cSopenharmony_ci */ 117623b3eb3cSopenharmony_ci NODE_FOREGROUND_COLOR, 117723b3eb3cSopenharmony_ci 117823b3eb3cSopenharmony_ci /** 117923b3eb3cSopenharmony_ci * @brief Defines the offset of the component's child relative to the component. 118023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 118123b3eb3cSopenharmony_ci * 118223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 118323b3eb3cSopenharmony_ci * .value[0].f32 : offset along the x-axis, in vp. \n 118423b3eb3cSopenharmony_ci * .value[1].f32 : offset along the y-axis, in vp. \n 118523b3eb3cSopenharmony_ci * \n 118623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 118723b3eb3cSopenharmony_ci * .value[0].f32 : offset along the x-axis, in vp. \n 118823b3eb3cSopenharmony_ci * .value[1].f32 : offset along the y-axis, in vp. \n 118923b3eb3cSopenharmony_ci * 119023b3eb3cSopenharmony_ci */ 119123b3eb3cSopenharmony_ci NODE_OFFSET, 119223b3eb3cSopenharmony_ci /** 119323b3eb3cSopenharmony_ci * @brief Sets the anchor for locating the component's child. 119423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 119523b3eb3cSopenharmony_ci * 119623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 119723b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the anchor, in vp.\n 119823b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the anchor, in vp.\n 119923b3eb3cSopenharmony_ci * \n 120023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 120123b3eb3cSopenharmony_ci * .value[0].f32: X coordinate of the anchor, in vp.\n 120223b3eb3cSopenharmony_ci * .value[1].f32: Y coordinate of the anchor, in vp.\n 120323b3eb3cSopenharmony_ci * 120423b3eb3cSopenharmony_ci */ 120523b3eb3cSopenharmony_ci NODE_MARK_ANCHOR, 120623b3eb3cSopenharmony_ci /** 120723b3eb3cSopenharmony_ci * @brief Defines the position of the background image in the component, that is, the coordinates relative to 120823b3eb3cSopenharmony_ci * the upper left corner of the component. This attribute can be set, reset, and obtained as required through APIs. 120923b3eb3cSopenharmony_ci * 121023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 121123b3eb3cSopenharmony_ci * .value[0].f32: position along the x-axis, in px. \n 121223b3eb3cSopenharmony_ci * .value[1].f32: position along the y-axis, in px. \n 121323b3eb3cSopenharmony_ci * \n 121423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 121523b3eb3cSopenharmony_ci * .value[0].f32: position along the x-axis, in px. \n 121623b3eb3cSopenharmony_ci * .value[1].f32: position along the y-axis, in px. \n 121723b3eb3cSopenharmony_ci * 121823b3eb3cSopenharmony_ci */ 121923b3eb3cSopenharmony_ci NODE_BACKGROUND_IMAGE_POSITION, 122023b3eb3cSopenharmony_ci /** 122123b3eb3cSopenharmony_ci * @brief Sets the alignment rules in the relative container. 122223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 122323b3eb3cSopenharmony_ci * 122423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 122523b3eb3cSopenharmony_ci * .value[0]?.i32: ID of the component that functions as the anchor point for left alignment. \n 122623b3eb3cSopenharmony_ci * .value[1]?.i32: alignment mode relative to the anchor component for left alignment. 122723b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 122823b3eb3cSopenharmony_ci * .value[2]?.i32: ID of the component that functions as the anchor point for center alignment. \n 122923b3eb3cSopenharmony_ci * .value[3]?.i32: alignment mode relative to the anchor component for center alignment. 123023b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 123123b3eb3cSopenharmony_ci * .value[4]?.i32: ID of the component that functions as the anchor point for right alignment. \n 123223b3eb3cSopenharmony_ci * .value[5]?.i32: alignment mode relative to the anchor component for right alignment. 123323b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 123423b3eb3cSopenharmony_ci * .value[6]?.i32: ID of the component that functions as the anchor point for top alignment. \n 123523b3eb3cSopenharmony_ci * .value[7]?.i32: alignment mode relative to the anchor component for top alignment. 123623b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 123723b3eb3cSopenharmony_ci * .value[8]?.i32: ID of the component that functions as the anchor point for center alignment in the 123823b3eb3cSopenharmony_ci * vertical direction. \n 123923b3eb3cSopenharmony_ci * .value[9]?.i32: alignment mode relative to the anchor component forcenter alignment in the vertical direction. 124023b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 124123b3eb3cSopenharmony_ci * .value[10]?.i32: ID of the component that functions as the anchor point for bottom alignment. \n 124223b3eb3cSopenharmony_ci * .value[11]?.i32: alignment mode relative to the anchor component for bottom alignment. 124323b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 124423b3eb3cSopenharmony_ci * .value[12]?.f32: bias value in the horizontal direction. \n 124523b3eb3cSopenharmony_ci * .value[13]?.f32: bias value in the vertical direction. \n 124623b3eb3cSopenharmony_ci * \n 124723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 124823b3eb3cSopenharmony_ci * .value[0].i32: ID of the component that functions as the anchor point for left alignment. \n 124923b3eb3cSopenharmony_ci * .value[1].i32: alignment mode relative to the anchor component for left alignment. 125023b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 125123b3eb3cSopenharmony_ci * .value[2].i32: ID of the component that functions as the anchor point for center alignment. \n 125223b3eb3cSopenharmony_ci * .value[3].i32: alignment mode relative to the anchor component for center alignment. 125323b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 125423b3eb3cSopenharmony_ci * .value[4].i32: ID of the component that functions as the anchor point for right alignment. \n 125523b3eb3cSopenharmony_ci * .value[5].i32: alignment mode relative to the anchor component for right alignment. 125623b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_HorizontalAlignment}. \n 125723b3eb3cSopenharmony_ci * .value[6].i32: ID of the component that functions as the anchor point for top alignment. \n 125823b3eb3cSopenharmony_ci * .value[7].i32: alignment mode relative to the anchor component for top alignment. 125923b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 126023b3eb3cSopenharmony_ci * .value[8].i32: ID of the component that functions as the anchor point for center alignment in the 126123b3eb3cSopenharmony_ci * vertical direction. \n 126223b3eb3cSopenharmony_ci * .value[9].i32: alignment mode relative to the anchor component forcenter alignment in the vertical direction. 126323b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 126423b3eb3cSopenharmony_ci * .value[10].i32: ID of the component that functions as the anchor point for bottom alignment. \n 126523b3eb3cSopenharmony_ci * .value[11].i32: alignment mode relative to the anchor component for bottom alignment. 126623b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_VerticalAlignment}. \n 126723b3eb3cSopenharmony_ci * .value[12].f32: bias value in the horizontal direction. \n 126823b3eb3cSopenharmony_ci * .value[13].f32: bias value in the vertical direction. \n 126923b3eb3cSopenharmony_ci * 127023b3eb3cSopenharmony_ci */ 127123b3eb3cSopenharmony_ci NODE_ALIGN_RULES, 127223b3eb3cSopenharmony_ci /** 127323b3eb3cSopenharmony_ci * @brief Sets the alignment mode of the child components along the cross axis of the parent container. 127423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 127523b3eb3cSopenharmony_ci * 127623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 127723b3eb3cSopenharmony_ci * .value[0].i32: alignment mode of the child components along the cross axis of the parent container.\n 127823b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ItemAlignment}. The default value is <b>ARKUI_ITEM_ALIGNMENT_AUTO</b>. \n 127923b3eb3cSopenharmony_ci * \n 128023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 128123b3eb3cSopenharmony_ci * .value[0].i32: alignment mode of the child components along the cross axis of the parent container.\n 128223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ItemAlignment}. The default value is <b>ARKUI_ITEM_ALIGNMENT_AUTO</b>. \n 128323b3eb3cSopenharmony_ci * 128423b3eb3cSopenharmony_ci */ 128523b3eb3cSopenharmony_ci NODE_ALIGN_SELF, 128623b3eb3cSopenharmony_ci /** 128723b3eb3cSopenharmony_ci * @brief Sets the percentage of the parent container's remaining space that is allocated to the component. 128823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 128923b3eb3cSopenharmony_ci * 129023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 129123b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's remaining space that is allocated to the component. \n 129223b3eb3cSopenharmony_ci * \n 129323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 129423b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's remaining space that is allocated to the component. \n 129523b3eb3cSopenharmony_ci * 129623b3eb3cSopenharmony_ci */ 129723b3eb3cSopenharmony_ci NODE_FLEX_GROW, 129823b3eb3cSopenharmony_ci /** 129923b3eb3cSopenharmony_ci * @brief Sets the percentage of the parent container's shrink size that is allocated to the component. 130023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 130123b3eb3cSopenharmony_ci * 130223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 130323b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's shrink size that is allocated to the component. \n 130423b3eb3cSopenharmony_ci * \n 130523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 130623b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's shrink size that is allocated to the component. \n 130723b3eb3cSopenharmony_ci * 130823b3eb3cSopenharmony_ci */ 130923b3eb3cSopenharmony_ci NODE_FLEX_SHRINK, 131023b3eb3cSopenharmony_ci /** 131123b3eb3cSopenharmony_ci * @brief Sets the base size of the component. 131223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 131323b3eb3cSopenharmony_ci * 131423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 131523b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's remaining space that is allocated to the component. \n 131623b3eb3cSopenharmony_ci * \n 131723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 131823b3eb3cSopenharmony_ci * .value[0].f32: percentage of the parent container's remaining space that is allocated to the component. \n 131923b3eb3cSopenharmony_ci * 132023b3eb3cSopenharmony_ci */ 132123b3eb3cSopenharmony_ci NODE_FLEX_BASIS, 132223b3eb3cSopenharmony_ci /** 132323b3eb3cSopenharmony_ci * @brief Sets the accessibility group. This attribute can be set, reset, and obtained as required through APIs. 132423b3eb3cSopenharmony_ci * 132523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 132623b3eb3cSopenharmony_ci * .value[0].i32: Accessibility group. The value <b>1</b> means that the component and all its child components 132723b3eb3cSopenharmony_ci * form an entire selectable component. 132823b3eb3cSopenharmony_ci * In this case, the accessibility service will no longer be available for the content of its child components. 132923b3eb3cSopenharmony_ci * The value is <b>1</b> or <b>0</b>. 133023b3eb3cSopenharmony_ci * \n 133123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 133223b3eb3cSopenharmony_ci * .value[0].i32: Accessibility group. The value <b>1</b> means that the component and all its child components 133323b3eb3cSopenharmony_ci * form an entire selectable component. 133423b3eb3cSopenharmony_ci * In this case, the accessibility service will no longer be available for the content of its child components. 133523b3eb3cSopenharmony_ci * The value is <b>1</b> or <b>0</b>. 133623b3eb3cSopenharmony_ci * 133723b3eb3cSopenharmony_ci */ 133823b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_GROUP, 133923b3eb3cSopenharmony_ci 134023b3eb3cSopenharmony_ci /** 134123b3eb3cSopenharmony_ci * @brief Sets the accessibility text. This attribute can be set, reset, and obtained as required through APIs. 134223b3eb3cSopenharmony_ci * 134323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 134423b3eb3cSopenharmony_ci * .string: accessibility text. 134523b3eb3cSopenharmony_ci * \n 134623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 134723b3eb3cSopenharmony_ci * .string: accessibility text. 134823b3eb3cSopenharmony_ci * 134923b3eb3cSopenharmony_ci */ 135023b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_TEXT, 135123b3eb3cSopenharmony_ci 135223b3eb3cSopenharmony_ci /** 135323b3eb3cSopenharmony_ci * @brief Sets the accessibility mode. This attribute can be set, reset, and obtained as required through APIs. 135423b3eb3cSopenharmony_ci * 135523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 135623b3eb3cSopenharmony_ci * .value[0].i32: accessibility mode. The parameter type is {@link ArkUI_AccessibilityMode}. 135723b3eb3cSopenharmony_ci * \n 135823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 135923b3eb3cSopenharmony_ci * .value[0].i32: accessibility mode. The parameter type is {@link ArkUI_AccessibilityMode}. 136023b3eb3cSopenharmony_ci * 136123b3eb3cSopenharmony_ci */ 136223b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_MODE, 136323b3eb3cSopenharmony_ci 136423b3eb3cSopenharmony_ci /** 136523b3eb3cSopenharmony_ci * @brief Sets the accessibility description. 136623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 136723b3eb3cSopenharmony_ci * 136823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 136923b3eb3cSopenharmony_ci * .string: accessibility description. 137023b3eb3cSopenharmony_ci * \n 137123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 137223b3eb3cSopenharmony_ci * .string: accessibility description. 137323b3eb3cSopenharmony_ci * 137423b3eb3cSopenharmony_ci */ 137523b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_DESCRIPTION, 137623b3eb3cSopenharmony_ci 137723b3eb3cSopenharmony_ci /** 137823b3eb3cSopenharmony_ci * @brief Defines the focused state. This attribute can be set and obtained as required through APIs. 137923b3eb3cSopenharmony_ci * 138023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 138123b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 138223b3eb3cSopenharmony_ci * \n 138323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 138423b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 138523b3eb3cSopenharmony_ci * 138623b3eb3cSopenharmony_ci */ 138723b3eb3cSopenharmony_ci NODE_FOCUS_STATUS, 138823b3eb3cSopenharmony_ci /** 138923b3eb3cSopenharmony_ci * @brief Defines the aspect ratio attribute, which can be set, reset, and obtained as required through APIs. 139023b3eb3cSopenharmony_ci * 139123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 139223b3eb3cSopenharmony_ci * .value[0].f32: aspect ratio of the component, in width/height format. \n 139323b3eb3cSopenharmony_ci * \n 139423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 139523b3eb3cSopenharmony_ci * .value[0].f32: aspect ratio of the component, in width/height format. \n 139623b3eb3cSopenharmony_ci * 139723b3eb3cSopenharmony_ci */ 139823b3eb3cSopenharmony_ci NODE_ASPECT_RATIO, 139923b3eb3cSopenharmony_ci /** 140023b3eb3cSopenharmony_ci * @brief Defines the weight of the component within its row, column, or flex container for proportional 140123b3eb3cSopenharmony_ci * distribution of available space within the container. 140223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 140323b3eb3cSopenharmony_ci * 140423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 140523b3eb3cSopenharmony_ci * .value[0].f32: weight of the component along the main axis. \n 140623b3eb3cSopenharmony_ci * \n 140723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 140823b3eb3cSopenharmony_ci * .value[0].f32: weight of the component along the main axis. \n 140923b3eb3cSopenharmony_ci * 141023b3eb3cSopenharmony_ci */ 141123b3eb3cSopenharmony_ci NODE_LAYOUT_WEIGHT, 141223b3eb3cSopenharmony_ci NODE_DISPLAY_PRIORITY, 141323b3eb3cSopenharmony_ci NODE_OUTLINE_WIDTH, 141423b3eb3cSopenharmony_ci /** 141523b3eb3cSopenharmony_ci * @brief 宽度属性,支持属性设置,属性重置和属性获取接口。 141623b3eb3cSopenharmony_ci * 141723b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 141823b3eb3cSopenharmony_ci * .value[0].f32:宽度数值,单位为百分比;\n 141923b3eb3cSopenharmony_ci * \n 142023b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 142123b3eb3cSopenharmony_ci * .value[0].f32:宽度数值,单位为百分比;\n 142223b3eb3cSopenharmony_ci * 142323b3eb3cSopenharmony_ci */ 142423b3eb3cSopenharmony_ci NODE_WIDTH_PERCENT, 142523b3eb3cSopenharmony_ci /** 142623b3eb3cSopenharmony_ci * @brief 高度属性,支持属性设置,属性重置和属性获取接口。 142723b3eb3cSopenharmony_ci * 142823b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 142923b3eb3cSopenharmony_ci * .value[0].f32:高度数值,单位为百分比;\n 143023b3eb3cSopenharmony_ci * \n 143123b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 143223b3eb3cSopenharmony_ci * .value[0].f32:高度数值,单位为百分比;\n 143323b3eb3cSopenharmony_ci * 143423b3eb3cSopenharmony_ci */ 143523b3eb3cSopenharmony_ci NODE_HEIGHT_PERCENT, 143623b3eb3cSopenharmony_ci /** 143723b3eb3cSopenharmony_ci * @brief 内间距属性,支持属性设置,属性重置和属性获取接口。 143823b3eb3cSopenharmony_ci * 143923b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式有两种:\n 144023b3eb3cSopenharmony_ci * 1:上下左右四个位置的内间距值相等。\n 144123b3eb3cSopenharmony_ci * .value[0].f32:内间距数值,单位为百分比;\n 144223b3eb3cSopenharmony_ci * 2:分别指定上下左右四个位置的内间距值。\n 144323b3eb3cSopenharmony_ci * .value[0].f32:上内间距数值,单位为百分比;\n 144423b3eb3cSopenharmony_ci * .value[1].f32:右内间距数值,单位为百分比;\n 144523b3eb3cSopenharmony_ci * .value[2].f32:下内间距数值,单位为百分比;\n 144623b3eb3cSopenharmony_ci * .value[3].f32:左内间距数值,单位为百分比;\n 144723b3eb3cSopenharmony_ci * \n 144823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 144923b3eb3cSopenharmony_ci * .value[0].f32:上内间距数值,单位为百分比;\n 145023b3eb3cSopenharmony_ci * .value[1].f32:右内间距数值,单位为百分比;\n 145123b3eb3cSopenharmony_ci * .value[2].f32:下内间距数值,单位为百分比;\n 145223b3eb3cSopenharmony_ci * .value[3].f32:左内间距数值,单位为百分比;\n 145323b3eb3cSopenharmony_ci * 145423b3eb3cSopenharmony_ci */ 145523b3eb3cSopenharmony_ci NODE_PADDING_PERCENT, 145623b3eb3cSopenharmony_ci /** 145723b3eb3cSopenharmony_ci * @brief 外间距属性,支持属性设置,属性重置和属性获取接口。 145823b3eb3cSopenharmony_ci * 145923b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式有两种:\n 146023b3eb3cSopenharmony_ci * 1:上下左右四个位置的外间距值相等。\n 146123b3eb3cSopenharmony_ci * .value[0].f32:外间距数值,单位为百分比;\n 146223b3eb3cSopenharmony_ci * 2:分别指定上下左右四个位置的外间距值。\n 146323b3eb3cSopenharmony_ci * .value[0].f32:上外间距数值,单位为百分比;\n 146423b3eb3cSopenharmony_ci * .value[1].f32:右外间距数值,单位为百分比;\n 146523b3eb3cSopenharmony_ci * .value[2].f32:下外间距数值,单位为百分比;\n 146623b3eb3cSopenharmony_ci * .value[3].f32:左外间距数值,单位为百分比;\n 146723b3eb3cSopenharmony_ci * \n 146823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 146923b3eb3cSopenharmony_ci * .value[0].f32:上外间距数值,单位为百分比;\n 147023b3eb3cSopenharmony_ci * .value[1].f32:右外间距数值,单位为百分比;\n 147123b3eb3cSopenharmony_ci * .value[2].f32:下外间距数值,单位为百分比;\n 147223b3eb3cSopenharmony_ci * .value[3].f32:左外间距数值,单位为百分比;\n 147323b3eb3cSopenharmony_ci * 147423b3eb3cSopenharmony_ci */ 147523b3eb3cSopenharmony_ci NODE_MARGIN_PERCENT, 147623b3eb3cSopenharmony_ci 147723b3eb3cSopenharmony_ci NODE_GEOMETRY_TRANSITION, 147823b3eb3cSopenharmony_ci 147923b3eb3cSopenharmony_ci /** 148023b3eb3cSopenharmony_ci * @brief 指定以该组件为链头所构成的链的参数,支持属性设置、属性重置和属性获取接口。 148123b3eb3cSopenharmony_ci * 148223b3eb3cSopenharmony_ci * 仅当父容器为RelativeContainer时生效 148323b3eb3cSopenharmony_ci * 148423b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 148523b3eb3cSopenharmony_ci * .value[0].i32:链的方向。枚举{@link ArkUI_Axis}。 \n 148623b3eb3cSopenharmony_ci * .value[1].i32:链的样式。枚举{@link ArkUI_RelativeLayoutChainStyle}。 \n 148723b3eb3cSopenharmony_ci * \n 148823b3eb3cSopenharmony_ci * .value[0].i32:链的方向。枚举{@link ArkUI_Axis}。 \n 148923b3eb3cSopenharmony_ci * .value[1].i32:链的样式。枚举{@link ArkUI_RelativeLayoutChainStyle}。 \n 149023b3eb3cSopenharmony_ci */ 149123b3eb3cSopenharmony_ci NODE_RELATIVE_LAYOUT_CHAIN_MODE, 149223b3eb3cSopenharmony_ci 149323b3eb3cSopenharmony_ci NODE_RENDER_FIT, 149423b3eb3cSopenharmony_ci 149523b3eb3cSopenharmony_ci NODE_OUTLINE_COLOR, 149623b3eb3cSopenharmony_ci 149723b3eb3cSopenharmony_ci NODE_SIZE, 149823b3eb3cSopenharmony_ci 149923b3eb3cSopenharmony_ci NODE_RENDER_GROUP, 150023b3eb3cSopenharmony_ci 150123b3eb3cSopenharmony_ci NODE_COLOR_BLEND, 150223b3eb3cSopenharmony_ci 150323b3eb3cSopenharmony_ci NODE_FOREGROUND_BLUR_STYLE, 150423b3eb3cSopenharmony_ci 150523b3eb3cSopenharmony_ci NODE_LAYOUT_RECT, 150623b3eb3cSopenharmony_ci 150723b3eb3cSopenharmony_ci NODE_FOCUS_ON_TOUCH, 150823b3eb3cSopenharmony_ci 150923b3eb3cSopenharmony_ci /** 151023b3eb3cSopenharmony_ci * @brief 边框宽度属性,支持属性设置,属性重置和属性获取接口。 151123b3eb3cSopenharmony_ci * 151223b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 151323b3eb3cSopenharmony_ci * 1: .value[0].f32:统一设置四条边的边框宽度,单位为百分比。 \n 151423b3eb3cSopenharmony_ci * 2: .value[0].f32:设置上边框的边框宽度,单位为百分比。 \n 151523b3eb3cSopenharmony_ci * .value[1].f32:设置右边框的边框宽度,单位为百分比。 \n 151623b3eb3cSopenharmony_ci * .value[2].f32:设置下边框的边框宽度,单位为百分比。 \n 151723b3eb3cSopenharmony_ci * .value[3].f32:设置左边框的边框宽度,单位为百分比。 \n 151823b3eb3cSopenharmony_ci * \n 151923b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 152023b3eb3cSopenharmony_ci * .value[0].f32:设置上边框的边框宽度,单位为百分比。 \n 152123b3eb3cSopenharmony_ci * .value[1].f32:设置右边框的边框宽度,单位为百分比。 \n 152223b3eb3cSopenharmony_ci * .value[2].f32:设置下边框的边框宽度,单位为百分比。 \n 152323b3eb3cSopenharmony_ci * .value[3].f32:设置左边框的边框宽度,单位为百分比。 \n 152423b3eb3cSopenharmony_ci * 152523b3eb3cSopenharmony_ci */ 152623b3eb3cSopenharmony_ci NODE_BORDER_WIDTH_PERCENT, 152723b3eb3cSopenharmony_ci /** 152823b3eb3cSopenharmony_ci * @brief 边框圆角属性,支持属性设置,属性重置和属性获取接口。 152923b3eb3cSopenharmony_ci * 153023b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 153123b3eb3cSopenharmony_ci * 1: .value[0].f32:统一设置四条边的边框圆角半径,单位为百分比。 \n 153223b3eb3cSopenharmony_ci * 2: .value[0].f32:设置左上角圆角半径,单位为百分比。 \n 153323b3eb3cSopenharmony_ci * .value[1].f32:设置右上角圆角半径,单位为百分比。 \n 153423b3eb3cSopenharmony_ci * .value[2].f32:设置左下角圆角半径,单位为百分比。 \n 153523b3eb3cSopenharmony_ci * .value[3].f32:设置右下角圆角半径,单位为百分比。 \n 153623b3eb3cSopenharmony_ci * \n 153723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 153823b3eb3cSopenharmony_ci * .value[0].f32:设置左上角圆角半径,单位为百分比。 \n 153923b3eb3cSopenharmony_ci * .value[1].f32:设置右上角圆角半径,单位为百分比。 \n 154023b3eb3cSopenharmony_ci * .value[2].f32:设置左下角圆角半径,单位为百分比。 \n 154123b3eb3cSopenharmony_ci * .value[3].f32:设置右下角圆角半径,单位为百分比。 \n 154223b3eb3cSopenharmony_ci * 154323b3eb3cSopenharmony_ci */ 154423b3eb3cSopenharmony_ci NODE_BORDER_RADIUS_PERCENT, 154523b3eb3cSopenharmony_ci 154623b3eb3cSopenharmony_ci /** 154723b3eb3cSopenharmony_ci * @brief Accessible ID, which can be obtained as required through APIs. 154823b3eb3cSopenharmony_ci * 154923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 155023b3eb3cSopenharmony_ci * .value[0].i32:Accessible ID。\n 155123b3eb3cSopenharmony_ci * 155223b3eb3cSopenharmony_ci */ 155323b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_ID = 87, 155423b3eb3cSopenharmony_ci 155523b3eb3cSopenharmony_ci /** 155623b3eb3cSopenharmony_ci * @brief Define accessible actions, which can be set, reset, and obtained as required through APIs. 155723b3eb3cSopenharmony_ci * 155823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 155923b3eb3cSopenharmony_ci * .value[0].u32:accessible action types,and uses the {@link ArkUI_AccessibilityActionType} enumeration value.\n 156023b3eb3cSopenharmony_ci * \n 156123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 156223b3eb3cSopenharmony_ci * .value[0].u32:accessible action types,and uses the {@link ArkUI_AccessibilityActionType} enumeration value.\n 156323b3eb3cSopenharmony_ci * 156423b3eb3cSopenharmony_ci */ 156523b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_ACTIONS = 88, 156623b3eb3cSopenharmony_ci 156723b3eb3cSopenharmony_ci /** 156823b3eb3cSopenharmony_ci * @brief Define accessible role, which can be set, reset, and obtained as required through APIs. 156923b3eb3cSopenharmony_ci * 157023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 157123b3eb3cSopenharmony_ci * .value[0].u32:accessible role type,and uses the {@link ArkUI_NodeType} enumeration value.\n 157223b3eb3cSopenharmony_ci * \n 157323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 157423b3eb3cSopenharmony_ci * .value[0].u32:accessible role type,and uses the {@link ArkUI_NodeType} enumeration value.\n 157523b3eb3cSopenharmony_ci * 157623b3eb3cSopenharmony_ci */ 157723b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_ROLE = 89, 157823b3eb3cSopenharmony_ci 157923b3eb3cSopenharmony_ci /** 158023b3eb3cSopenharmony_ci * @brief Define accessible state, which can be set, reset, and obtained as required through APIs. 158123b3eb3cSopenharmony_ci * 158223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 158323b3eb3cSopenharmony_ci * .object:the parameter type is {@link ArkUI_AccessibilityState}.\n 158423b3eb3cSopenharmony_ci * \n 158523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 158623b3eb3cSopenharmony_ci * .object:the parameter type is {@link ArkUI_AccessibilityState}.\n 158723b3eb3cSopenharmony_ci * 158823b3eb3cSopenharmony_ci */ 158923b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_STATE = 90, 159023b3eb3cSopenharmony_ci 159123b3eb3cSopenharmony_ci /** 159223b3eb3cSopenharmony_ci * @brief Define accessible value, which can be set, reset, and obtained as required through APIs. 159323b3eb3cSopenharmony_ci * 159423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 159523b3eb3cSopenharmony_ci * .object:the parameter type is {@link ArkUI_AccessibilityValue}.\n 159623b3eb3cSopenharmony_ci * \n 159723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 159823b3eb3cSopenharmony_ci * .object:the parameter type is {@link ArkUI_AccessibilityValue}.\n 159923b3eb3cSopenharmony_ci * 160023b3eb3cSopenharmony_ci */ 160123b3eb3cSopenharmony_ci NODE_ACCESSIBILITY_VALUE = 91, 160223b3eb3cSopenharmony_ci 160323b3eb3cSopenharmony_ci /** 160423b3eb3cSopenharmony_ci * @brief 定义控制组件扩展其安全区域,支持属性设置,属性重置和属性获取。 160523b3eb3cSopenharmony_ci * 160623b3eb3cSopenharmony_ci * 属性设置方法{@link ArkUI_AttributeItem}参数格式: \n 160723b3eb3cSopenharmony_ci * .value[0]?.u32:扩展安全区域的枚举值集合{@link ArkUI_SafeAreaType}, 160823b3eb3cSopenharmony_ci * 例如:ARKUI_SAFE_AREA_TYPE_SYSTEM | ARKUI_SAFE_AREA_TYPE_CUTOUT;\n 160923b3eb3cSopenharmony_ci * .value[1]?.u32:扩展安全区域的方向枚举值集合{@link ArkUI_SafeAreaEdge};\n 161023b3eb3cSopenharmony_ci * 例如:ARKUI_SAFE_AREA_EDGE_TOP | ARKUI_SAFE_AREA_EDGE_BOTTOM;\n 161123b3eb3cSopenharmony_ci * \n 161223b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 161323b3eb3cSopenharmony_ci * .value[0].u32:扩展安全区域;\n。 \n 161423b3eb3cSopenharmony_ci * .value[1].u32:扩展安全区域的方向;\n。 \n 161523b3eb3cSopenharmony_ci * 161623b3eb3cSopenharmony_ci */ 161723b3eb3cSopenharmony_ci NODE_EXPAND_SAFE_AREA = 92, 161823b3eb3cSopenharmony_ci /** 161923b3eb3cSopenharmony_ci * @brief Defines the visible area ratio (visible area/total area of the component) threshold for invoking the 162023b3eb3cSopenharmony_ci * visible area change event of the component. 162123b3eb3cSopenharmony_ci * 162223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 162323b3eb3cSopenharmony_ci * .value[...].f32: threshold array. The value range is 0 to 1. 162423b3eb3cSopenharmony_ci * \n 162523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 162623b3eb3cSopenharmony_ci * .value[...].f32: threshold array. \n 162723b3eb3cSopenharmony_ci * 162823b3eb3cSopenharmony_ci */ 162923b3eb3cSopenharmony_ci NODE_VISIBLE_AREA_CHANGE_RATIO = 93, 163023b3eb3cSopenharmony_ci 163123b3eb3cSopenharmony_ci /** 163223b3eb3cSopenharmony_ci * @brief 定义组件插入和删除时显示过渡动效,支持属性设置,属性获取。 163323b3eb3cSopenharmony_ci * 163423b3eb3cSopenharmony_ci * 属性设置方法{@link ArkUI_AttributeItem}参数格式: \n 163523b3eb3cSopenharmony_ci * .object:参数类型为{@link ArkUI_TransitionEffect}。 \n 163623b3eb3cSopenharmony_ci * \n 163723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 163823b3eb3cSopenharmony_ci * .object:参数类型为{@link ArkUI_TransitionEffect}。 \n 163923b3eb3cSopenharmony_ci * 164023b3eb3cSopenharmony_ci */ 164123b3eb3cSopenharmony_ci NODE_TRANSITION = 94, 164223b3eb3cSopenharmony_ci 164323b3eb3cSopenharmony_ci /** 164423b3eb3cSopenharmony_ci * @brief Defines the component ID. 164523b3eb3cSopenharmony_ci * This attribute can be obtained through APIs. 164623b3eb3cSopenharmony_ci * 164723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for obtaining the attribute:\n 164823b3eb3cSopenharmony_ci * .value[0].i32: component ID. \n 164923b3eb3cSopenharmony_ci * 165023b3eb3cSopenharmony_ci */ 165123b3eb3cSopenharmony_ci NODE_UNIQUE_ID = 95, 165223b3eb3cSopenharmony_ci 165323b3eb3cSopenharmony_ci /** 165423b3eb3cSopenharmony_ci * @brief Set the current component system focus box style. 165523b3eb3cSopenharmony_ci * 165623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 165723b3eb3cSopenharmony_ci * .value[0].f32: The distance between the focus box and the edge of the component. \n 165823b3eb3cSopenharmony_ci * Positive numbers represent the outer side, negative numbers represent the inner side. \n 165923b3eb3cSopenharmony_ci * Percentage is not supported. \n 166023b3eb3cSopenharmony_ci * .value[1].f32: Focus box width. Negative numbers and percentages are not supported. \n 166123b3eb3cSopenharmony_ci * .value[2].u32: Focus box color. \n 166223b3eb3cSopenharmony_ci * \n 166323b3eb3cSopenharmony_ci * 166423b3eb3cSopenharmony_ci */ 166523b3eb3cSopenharmony_ci NODE_FOCUS_BOX = 96, 166623b3eb3cSopenharmony_ci 166723b3eb3cSopenharmony_ci /** 166823b3eb3cSopenharmony_ci * @brief Defines the moving distance limit for the component-bound tap gesture. 166923b3eb3cSopenharmony_ci * This attribute can be set as required through APIs. 167023b3eb3cSopenharmony_ci * 167123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 167223b3eb3cSopenharmony_ci * .value[0].f32: allowed moving distance of a finger, in vp. \n 167323b3eb3cSopenharmony_ci * 167423b3eb3cSopenharmony_ci */ 167523b3eb3cSopenharmony_ci NODE_CLICK_DISTANCE = 97, 167623b3eb3cSopenharmony_ci 167723b3eb3cSopenharmony_ci /** 167823b3eb3cSopenharmony_ci * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. 167923b3eb3cSopenharmony_ci * 168023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 168123b3eb3cSopenharmony_ci * .string: text content.\n 168223b3eb3cSopenharmony_ci * \n 168323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 168423b3eb3cSopenharmony_ci * .string: text content.\n 168523b3eb3cSopenharmony_ci */ 168623b3eb3cSopenharmony_ci NODE_TEXT_CONTENT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT, 168723b3eb3cSopenharmony_ci /** 168823b3eb3cSopenharmony_ci * @brief Defines the font color attribute, which can be set, reset, and obtained as required through APIs. 168923b3eb3cSopenharmony_ci * 169023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 169123b3eb3cSopenharmony_ci * .value[0].u32: font color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 169223b3eb3cSopenharmony_ci * \n 169323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 169423b3eb3cSopenharmony_ci * .value[0].u32: font color value, in 0xARGB format.\n 169523b3eb3cSopenharmony_ci * 169623b3eb3cSopenharmony_ci */ 169723b3eb3cSopenharmony_ci NODE_FONT_COLOR, 169823b3eb3cSopenharmony_ci /** 169923b3eb3cSopenharmony_ci * @brief Defines the font size attribute, which can be set, reset, and obtained as required through APIs. 170023b3eb3cSopenharmony_ci * 170123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 170223b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp.\n 170323b3eb3cSopenharmony_ci * \n 170423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 170523b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp.\n 170623b3eb3cSopenharmony_ci * 170723b3eb3cSopenharmony_ci */ 170823b3eb3cSopenharmony_ci NODE_FONT_SIZE, 170923b3eb3cSopenharmony_ci /** 171023b3eb3cSopenharmony_ci * @brief Defines the font style attribute, which can be set, reset, and obtained as required through APIs. 171123b3eb3cSopenharmony_ci * 171223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 171323b3eb3cSopenharmony_ci * .value[0].i32: font style {@link ArkUI_FontStyle}. The default value is <b>ARKUI_FONT_STYLE_NORMAL</b>.\n 171423b3eb3cSopenharmony_ci * \n 171523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 171623b3eb3cSopenharmony_ci * .value[0].i32: font style {@link ArkUI_FontStyle}.\n 171723b3eb3cSopenharmony_ci * 171823b3eb3cSopenharmony_ci */ 171923b3eb3cSopenharmony_ci NODE_FONT_STYLE, 172023b3eb3cSopenharmony_ci /** 172123b3eb3cSopenharmony_ci * @brief Defines the font weight attribute, which can be set, reset, and obtained as required through APIs. 172223b3eb3cSopenharmony_ci * 172323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 172423b3eb3cSopenharmony_ci * .value[0].i32: font weight {@link ArkUI_FontWeight}. The default value is <b>ARKUI_FONT_WEIGHT_NORMAL</b>.\n 172523b3eb3cSopenharmony_ci * \n 172623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 172723b3eb3cSopenharmony_ci * .value[0].i32: font weight {@link ArkUI_FontWeight}.\n 172823b3eb3cSopenharmony_ci * 172923b3eb3cSopenharmony_ci */ 173023b3eb3cSopenharmony_ci NODE_FONT_WEIGHT, 173123b3eb3cSopenharmony_ci /** 173223b3eb3cSopenharmony_ci * @brief Defines the text line height attribute, which can be set, reset, and obtained as required through APIs. 173323b3eb3cSopenharmony_ci * 173423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 173523b3eb3cSopenharmony_ci * .value[0].f32: line height, in fp.\n 173623b3eb3cSopenharmony_ci * \n 173723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 173823b3eb3cSopenharmony_ci * .value[0].f32: line height, in fp.\n 173923b3eb3cSopenharmony_ci * 174023b3eb3cSopenharmony_ci */ 174123b3eb3cSopenharmony_ci NODE_TEXT_LINE_HEIGHT, 174223b3eb3cSopenharmony_ci /** 174323b3eb3cSopenharmony_ci * @brief Defines the text decoration style and color. 174423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 174523b3eb3cSopenharmony_ci * 174623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 174723b3eb3cSopenharmony_ci * .value[0].i32: text decoration type {@link ArkUI_TextDecorationType}. 174823b3eb3cSopenharmony_ci * The default value is <b>ARKUI_TEXT_DECORATION_TYPE_NONE</b>.\n 174923b3eb3cSopenharmony_ci * .value[1]?.u32: text decoration color, in 0xARGB format. For example, 0xFFFF0000 indicates red. Optional.\n 175023b3eb3cSopenharmony_ci * .value[2]?.i32: text decoration style {@link ArkUI_TextDecorationStyle}. \n 175123b3eb3cSopenharmony_ci * \n 175223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 175323b3eb3cSopenharmony_ci * .value[0].i32: text decoration type {@link ArkUI_TextDecorationType}.\n 175423b3eb3cSopenharmony_ci * .value[1].u32: text decoration color, in 0xARGB format. \n 175523b3eb3cSopenharmony_ci * .value[2].i32: text decoration style {@link ArkUI_TextDecorationStyle}. \n 175623b3eb3cSopenharmony_ci * 175723b3eb3cSopenharmony_ci */ 175823b3eb3cSopenharmony_ci NODE_TEXT_DECORATION, 175923b3eb3cSopenharmony_ci /** 176023b3eb3cSopenharmony_ci * @brief Defines the text case attribute, which can be set, reset, and obtained as required through APIs. 176123b3eb3cSopenharmony_ci * 176223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 176323b3eb3cSopenharmony_ci * .value[0].i32: text case.\n 176423b3eb3cSopenharmony_ci * \n 176523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 176623b3eb3cSopenharmony_ci * .value[0].i32: text case.\n 176723b3eb3cSopenharmony_ci * 176823b3eb3cSopenharmony_ci */ 176923b3eb3cSopenharmony_ci NODE_TEXT_CASE, 177023b3eb3cSopenharmony_ci /** 177123b3eb3cSopenharmony_ci * @brief Defines the letter spacing attribute, which can be set, reset, and obtained as required through APIs. 177223b3eb3cSopenharmony_ci * 177323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 177423b3eb3cSopenharmony_ci * .value[0].f32: letter spacing, in fp.\n 177523b3eb3cSopenharmony_ci * \n 177623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 177723b3eb3cSopenharmony_ci * .value[0].f32: letter spacing, in fp.\n 177823b3eb3cSopenharmony_ci * 177923b3eb3cSopenharmony_ci */ 178023b3eb3cSopenharmony_ci NODE_TEXT_LETTER_SPACING, 178123b3eb3cSopenharmony_ci /** 178223b3eb3cSopenharmony_ci * @brief Sets the maximum number of lines in the text. 178323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 178423b3eb3cSopenharmony_ci * 178523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 178623b3eb3cSopenharmony_ci * .value[0].i32: maximum number of lines in the text.\n 178723b3eb3cSopenharmony_ci * \n 178823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 178923b3eb3cSopenharmony_ci * .value[0].i32: maximum number of lines in the text.\n 179023b3eb3cSopenharmony_ci * 179123b3eb3cSopenharmony_ci */ 179223b3eb3cSopenharmony_ci NODE_TEXT_MAX_LINES, 179323b3eb3cSopenharmony_ci /** 179423b3eb3cSopenharmony_ci * @brief Horizontal alignment mode of the text. 179523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 179623b3eb3cSopenharmony_ci * 179723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 179823b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of the text. The value is an enum of {@link ArkUI_TextAlignment}. \n 179923b3eb3cSopenharmony_ci * \n 180023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 180123b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of the text. The value is an enum of {@link ArkUI_TextAlignment}. \n 180223b3eb3cSopenharmony_ci * 180323b3eb3cSopenharmony_ci */ 180423b3eb3cSopenharmony_ci NODE_TEXT_ALIGN, 180523b3eb3cSopenharmony_ci /** 180623b3eb3cSopenharmony_ci * @brief Defines the text overflow attribute, which can be set, reset, and obtained as required through APIs. 180723b3eb3cSopenharmony_ci * 180823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 180923b3eb3cSopenharmony_ci * .value[0].i32: display mode when the text is too long {@link ArkUI_TextOverflow}. \n 181023b3eb3cSopenharmony_ci * \n 181123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 181223b3eb3cSopenharmony_ci * .value[0].i32: display mode when the text is too long {@link ArkUI_TextOverflow}. \n 181323b3eb3cSopenharmony_ci * 181423b3eb3cSopenharmony_ci */ 181523b3eb3cSopenharmony_ci NODE_TEXT_OVERFLOW, 181623b3eb3cSopenharmony_ci /** 181723b3eb3cSopenharmony_ci * @brief Defines the font family attribute, which can be set, reset, and obtained as required through APIs. 181823b3eb3cSopenharmony_ci * 181923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 182023b3eb3cSopenharmony_ci * .string: fonts, separated by commas (,). 182123b3eb3cSopenharmony_ci * \n 182223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 182323b3eb3cSopenharmony_ci * .string: fonts, separated by commas (,). 182423b3eb3cSopenharmony_ci * 182523b3eb3cSopenharmony_ci */ 182623b3eb3cSopenharmony_ci NODE_FONT_FAMILY, 182723b3eb3cSopenharmony_ci /** 182823b3eb3cSopenharmony_ci * @brief Defines the copy option attribute, which can be set, reset, and obtained as required through APIs. 182923b3eb3cSopenharmony_ci * 183023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 183123b3eb3cSopenharmony_ci * .value[0].i32: copy option {@link ArkUI_CopyOptions}. The default value is <b>ARKUI_COPY_OPTIONS_NONE</b>.\n 183223b3eb3cSopenharmony_ci * \n 183323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 183423b3eb3cSopenharmony_ci * .value[0].i32: copy option {@link ArkUI_CopyOptions. \n 183523b3eb3cSopenharmony_ci * 183623b3eb3cSopenharmony_ci */ 183723b3eb3cSopenharmony_ci NODE_TEXT_COPY_OPTION, 183823b3eb3cSopenharmony_ci /** 183923b3eb3cSopenharmony_ci * @brief Defines the text baseline offset attribute 184023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 184123b3eb3cSopenharmony_ci * 184223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 184323b3eb3cSopenharmony_ci * .value[0].f32: baseline offset, in fp.\n 184423b3eb3cSopenharmony_ci * \n 184523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 184623b3eb3cSopenharmony_ci * .value[0].f32: baseline offset, in fp. \n 184723b3eb3cSopenharmony_ci * 184823b3eb3cSopenharmony_ci */ 184923b3eb3cSopenharmony_ci NODE_TEXT_BASELINE_OFFSET, 185023b3eb3cSopenharmony_ci /** 185123b3eb3cSopenharmony_ci * @brief Defines the text shadow attribute, which can be set, reset, and obtained as required through APIs. 185223b3eb3cSopenharmony_ci * 185323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 185423b3eb3cSopenharmony_ci * .value[0].f32: blur radius of the shadow, in vp.\n 185523b3eb3cSopenharmony_ci * .value[1].i32: shadow type {@link ArkUI_ShadowType}. The default value is <b>ARKUI_SHADOW_TYPE_COLOR</b>.\n 185623b3eb3cSopenharmony_ci * .value[2].u32: shadow color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 185723b3eb3cSopenharmony_ci * .value[3].f32: offset of the shadow along the x-axis, in vp.\n 185823b3eb3cSopenharmony_ci * .value[4].f32: offset of the shadow along the y-axis, in vp.\n 185923b3eb3cSopenharmony_ci * \n 186023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 186123b3eb3cSopenharmony_ci * .value[0].f32: blur radius of the shadow, in vp.\n 186223b3eb3cSopenharmony_ci * .value[1].i32: shadow type {@link ArkUI_ShadowType}.\n 186323b3eb3cSopenharmony_ci * .value[2].u32: shadow color, in 0xARGB format.\n 186423b3eb3cSopenharmony_ci * .value[3].f32: offset of the shadow along the x-axis, in vp.\n 186523b3eb3cSopenharmony_ci * .value[4].f32: offset of the shadow along the y-axis, in vp.\n 186623b3eb3cSopenharmony_ci * 186723b3eb3cSopenharmony_ci */ 186823b3eb3cSopenharmony_ci NODE_TEXT_TEXT_SHADOW, 186923b3eb3cSopenharmony_ci /** 187023b3eb3cSopenharmony_ci * @brief Defines the minimum font size attribute, which can be set, reset, and obtained as required through APIs. 187123b3eb3cSopenharmony_ci * 187223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 187323b3eb3cSopenharmony_ci * .value[0].f32: minimum font size, in fp. 187423b3eb3cSopenharmony_ci * \n 187523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 187623b3eb3cSopenharmony_ci * .value[0].f32: minimum font size, in fp. 187723b3eb3cSopenharmony_ci * 187823b3eb3cSopenharmony_ci */ 187923b3eb3cSopenharmony_ci NODE_TEXT_MIN_FONT_SIZE, 188023b3eb3cSopenharmony_ci 188123b3eb3cSopenharmony_ci /** 188223b3eb3cSopenharmony_ci * @brief Defines the maximum font size attribute, which can be set, reset, and obtained as required through APIs. 188323b3eb3cSopenharmony_ci * 188423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 188523b3eb3cSopenharmony_ci * .value[0].f32: maximum font size, in fp. 188623b3eb3cSopenharmony_ci * \n 188723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 188823b3eb3cSopenharmony_ci * .value[0].f32: maximum font size, in fp. 188923b3eb3cSopenharmony_ci * 189023b3eb3cSopenharmony_ci */ 189123b3eb3cSopenharmony_ci NODE_TEXT_MAX_FONT_SIZE, 189223b3eb3cSopenharmony_ci 189323b3eb3cSopenharmony_ci /** 189423b3eb3cSopenharmony_ci * @brief Defines the text style attribute, which can be set, reset, and obtained as required through APIs. 189523b3eb3cSopenharmony_ci * 189623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 189723b3eb3cSopenharmony_ci * .string?: font family. Optional. Use commas (,) to separate multiple fonts. \n 189823b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp. \n 189923b3eb3cSopenharmony_ci * .value[1]?.i32: font weight. Optional. The parameter type is {@link ArkUI_FontWeight}. 190023b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_WEIGHT_NORMAL</b>. \n 190123b3eb3cSopenharmony_ci * .value[2]?.i32: font style. Optional. The parameter type is {@link ArkUI_FontStyle}. 190223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_STYLE_NORMAL</b>. 190323b3eb3cSopenharmony_ci * \n 190423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 190523b3eb3cSopenharmony_ci * .string: font family. Use commas (,) to separate multiple fonts. \n 190623b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp. \n 190723b3eb3cSopenharmony_ci * .value[1].i32: font weight. The parameter type is {@link ArkUI_FontWeight}. 190823b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_WEIGHT_NORMAL</b>. \n 190923b3eb3cSopenharmony_ci * .value[2].i32: font style. The parameter type is {@link ArkUI_FontStyle}. 191023b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_STYLE_NORMAL</b>. 191123b3eb3cSopenharmony_ci * 191223b3eb3cSopenharmony_ci */ 191323b3eb3cSopenharmony_ci NODE_TEXT_FONT, 191423b3eb3cSopenharmony_ci 191523b3eb3cSopenharmony_ci /** 191623b3eb3cSopenharmony_ci * @brief Defines how the adaptive height is determined for the text. 191723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 191823b3eb3cSopenharmony_ci * 191923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 192023b3eb3cSopenharmony_ci * .value[0].i32: how the adaptive height is determined for the text. 192123b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_TextHeightAdaptivePolicy}. 192223b3eb3cSopenharmony_ci * \n 192323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 192423b3eb3cSopenharmony_ci * .value[0].i32: how the adaptive height is determined for the text. 192523b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_TextHeightAdaptivePolicy} 192623b3eb3cSopenharmony_ci * 192723b3eb3cSopenharmony_ci */ 192823b3eb3cSopenharmony_ci NODE_TEXT_HEIGHT_ADAPTIVE_POLICY, 192923b3eb3cSopenharmony_ci /** 193023b3eb3cSopenharmony_ci * @brief Defines the indentation of the first line. 193123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 193223b3eb3cSopenharmony_ci * 193323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 193423b3eb3cSopenharmony_ci * .value[0].f32: indentation of the first line. \n 193523b3eb3cSopenharmony_ci * \n 193623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 193723b3eb3cSopenharmony_ci * .value[0].f32: indentation of the first line. \n 193823b3eb3cSopenharmony_ci * 193923b3eb3cSopenharmony_ci */ 194023b3eb3cSopenharmony_ci NODE_TEXT_INDENT, 194123b3eb3cSopenharmony_ci /** 194223b3eb3cSopenharmony_ci * @brief Defines the line break rule. This attribute can be set, reset, and obtained as required through APIs. 194323b3eb3cSopenharmony_ci * 194423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 194523b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_WordBreak}. \n 194623b3eb3cSopenharmony_ci * \n 194723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 194823b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_WordBreak}. \n 194923b3eb3cSopenharmony_ci * 195023b3eb3cSopenharmony_ci */ 195123b3eb3cSopenharmony_ci NODE_TEXT_WORD_BREAK, 195223b3eb3cSopenharmony_ci /** 195323b3eb3cSopenharmony_ci * @brief Defines the ellipsis position. This attribute can be set, reset, and obtained as required through APIs. 195423b3eb3cSopenharmony_ci * 195523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 195623b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_EllipsisMode}. \n 195723b3eb3cSopenharmony_ci * \n 195823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 195923b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_EllipsisMode}. \n 196023b3eb3cSopenharmony_ci * 196123b3eb3cSopenharmony_ci */ 196223b3eb3cSopenharmony_ci NODE_TEXT_ELLIPSIS_MODE, 196323b3eb3cSopenharmony_ci /** 196423b3eb3cSopenharmony_ci * @brief Defines the text line spacing attribute, which can be set, reset, and obtained as required through APIs. 196523b3eb3cSopenharmony_ci * 196623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 196723b3eb3cSopenharmony_ci * .value[0].f32: line spacing, in fp.\n 196823b3eb3cSopenharmony_ci * \n 196923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 197023b3eb3cSopenharmony_ci * .value[0].f32: line spacing, in fp.\n 197123b3eb3cSopenharmony_ci * 197223b3eb3cSopenharmony_ci */ 197323b3eb3cSopenharmony_ci NODE_TEXT_LINE_SPACING, 197423b3eb3cSopenharmony_ci /** 197523b3eb3cSopenharmony_ci * @brief Set the text feature effect and the NODE_FONT_FEATURE attribute, 197623b3eb3cSopenharmony_ci * NODE_FONT_FEATURE is the advanced typesetting capability of OpenType 197723b3eb3cSopenharmony_ci * Features such as ligatures and equal-width digits are generally used in customized fonts. \n 197823b3eb3cSopenharmony_ci * The capabilities need to be supported by the fonts, \n 197923b3eb3cSopenharmony_ci * Interfaces for setting, resetting, and obtaining attributes are supported. \n 198023b3eb3cSopenharmony_ci * Attribute setting method parameter {@Link ArkUI_AttributeItem} format: \n 198123b3eb3cSopenharmony_ci * .string: complies with the text feature format. The format is normal | \n 198223b3eb3cSopenharmony_ci * is in the format of [ | on | off],\n. 198323b3eb3cSopenharmony_ci * There can be multiple values separated by commas (,). \n 198423b3eb3cSopenharmony_ci * For example, the input format of a number with the same width is ss01 on. \n 198523b3eb3cSopenharmony_ci * \n 198623b3eb3cSopenharmony_ci * Attribute obtaining method return value {@Link ArkUI_AttributeItem} format:\n 198723b3eb3cSopenharmony_ci * .string indicates the content of the text feature. Multiple text features are separated by commas (,). \n 198823b3eb3cSopenharmony_ci */ 198923b3eb3cSopenharmony_ci NODE_TEXT_FONT_FEATURE, 199023b3eb3cSopenharmony_ci 199123b3eb3cSopenharmony_ci /** 199223b3eb3cSopenharmony_ci * @brief 设置使能文本识别。 199323b3eb3cSopenharmony_ci * 199423b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 199523b3eb3cSopenharmony_ci * .value[0].i32:使能文本识别,默认值false。\n 199623b3eb3cSopenharmony_ci * \n 199723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 199823b3eb3cSopenharmony_ci * .value[0].i32:使能文本识别。\n 199923b3eb3cSopenharmony_ci * 200023b3eb3cSopenharmony_ci */ 200123b3eb3cSopenharmony_ci NODE_TEXT_ENABLE_DATA_DETECTOR, 200223b3eb3cSopenharmony_ci /** 200323b3eb3cSopenharmony_ci * @brief 设置文本识别配置。 200423b3eb3cSopenharmony_ci * 200523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 200623b3eb3cSopenharmony_ci * .value[0...].i32: 实体类型数组,参数类型{@link ArkUI_TextDataDetectorType}。\n 200723b3eb3cSopenharmony_ci * \n 200823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 200923b3eb3cSopenharmony_ci * .value[0...].i32:实体类型数组,参数类型{@link ArkUI_TextDataDetectorType}。\n 201023b3eb3cSopenharmony_ci * 201123b3eb3cSopenharmony_ci */ 201223b3eb3cSopenharmony_ci NODE_TEXT_ENABLE_DATA_DETECTOR_CONFIG, 201323b3eb3cSopenharmony_ci /** 201423b3eb3cSopenharmony_ci * @brief 文本选中时的背景色属性,支持属性设置,属性重置和属性获取接口。 201523b3eb3cSopenharmony_ci * 201623b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 201723b3eb3cSopenharmony_ci * .value[0].u32:颜色数值,0xargb格式,形如 0xFFFF0000 表示红色。\n 201823b3eb3cSopenharmony_ci * \n 201923b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 202023b3eb3cSopenharmony_ci * .value[0].u32:颜色数值,0xargb格式。\n 202123b3eb3cSopenharmony_ci * 202223b3eb3cSopenharmony_ci */ 202323b3eb3cSopenharmony_ci NODE_TEXT_SELECTED_BACKGROUND_COLOR, 202423b3eb3cSopenharmony_ci 202523b3eb3cSopenharmony_ci /** 202623b3eb3cSopenharmony_ci * @brief The text component uses a formatted string object to set text content properties, 202723b3eb3cSopenharmony_ci * and supports property setting, property reset, and property acquisition interfaces. 202823b3eb3cSopenharmony_ci * 202923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 203023b3eb3cSopenharmony_ci * .object indicates ArkUI_StyledString formatted string data. The parameter type is {@link ArkUI_StyledString}. \n 203123b3eb3cSopenharmony_ci * \n 203223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 203323b3eb3cSopenharmony_ci * .object indicates ArkUI_StyledString formatted string data. The parameter type is {@link ArkUI_StyledString}. \n 203423b3eb3cSopenharmony_ci */ 203523b3eb3cSopenharmony_ci NODE_TEXT_CONTENT_WITH_STYLED_STRING, 203623b3eb3cSopenharmony_ci 203723b3eb3cSopenharmony_ci /** 203823b3eb3cSopenharmony_ci * @brief 设置文本居中显示。 203923b3eb3cSopenharmony_ci * 204023b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 204123b3eb3cSopenharmony_ci * .value[0].i32:文本是否居中,默认值false。\n 204223b3eb3cSopenharmony_ci * \n 204323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 204423b3eb3cSopenharmony_ci * .value[0].i32:文本是否居中。\n 204523b3eb3cSopenharmony_ci * 204623b3eb3cSopenharmony_ci */ 204723b3eb3cSopenharmony_ci NODE_TEXT_HALF_LEADING = 1029, 204823b3eb3cSopenharmony_ci 204923b3eb3cSopenharmony_ci /** 205023b3eb3cSopenharmony_ci * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. 205123b3eb3cSopenharmony_ci * 205223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 205323b3eb3cSopenharmony_ci * .string: content of the text span. \n 205423b3eb3cSopenharmony_ci * \n 205523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 205623b3eb3cSopenharmony_ci * .string: content of the text span. \n 205723b3eb3cSopenharmony_ci * 205823b3eb3cSopenharmony_ci */ 205923b3eb3cSopenharmony_ci NODE_SPAN_CONTENT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SPAN, 206023b3eb3cSopenharmony_ci /** 206123b3eb3cSopenharmony_ci * @brief Defines the text background style. 206223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 206323b3eb3cSopenharmony_ci * 206423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 206523b3eb3cSopenharmony_ci * .value[0].u32: color of the text background, in 0xARGB format, for example, <b>0xFFFF0000</b> indicating red. \n 206623b3eb3cSopenharmony_ci * The second parameter indicates the rounded corners of the text background. Two setting modes are available: \n 206723b3eb3cSopenharmony_ci * 1: .value[1].f32: radius of the four corners, in vp. \n 206823b3eb3cSopenharmony_ci * 2: .value[1].f32: radius of the upper left corner, in vp. \n 206923b3eb3cSopenharmony_ci * .value[2].f32: radius of the upper right corner, in vp. \n 207023b3eb3cSopenharmony_ci * .value[3].f32: radius of the lower left corner, in vp. \n 207123b3eb3cSopenharmony_ci * .value[4].f32: radius of the lower right corner, in vp. \n 207223b3eb3cSopenharmony_ci * \n 207323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 207423b3eb3cSopenharmony_ci * .value[0].u32: color of the text background, in 0xARGB format. \n 207523b3eb3cSopenharmony_ci * .value[1].f32: radius of the upper left corner, in vp. \n 207623b3eb3cSopenharmony_ci * .value[2].f32: radius of the upper right corner, in vp. \n 207723b3eb3cSopenharmony_ci * .value[3].f32: radius of the lower left corner, in vp. \n 207823b3eb3cSopenharmony_ci * .value[4].f32: radius of the lower right corner, in vp. \n 207923b3eb3cSopenharmony_ci * 208023b3eb3cSopenharmony_ci */ 208123b3eb3cSopenharmony_ci NODE_SPAN_TEXT_BACKGROUND_STYLE, 208223b3eb3cSopenharmony_ci NODE_SPAN_BASELINE_OFFSET, 208323b3eb3cSopenharmony_ci /** 208423b3eb3cSopenharmony_ci * @brief Defines the image source of the image span. 208523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 208623b3eb3cSopenharmony_ci * 208723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 208823b3eb3cSopenharmony_ci * .string: image address of the image span.\n 208923b3eb3cSopenharmony_ci * \n 209023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 209123b3eb3cSopenharmony_ci * .string: image address of the image span.\n 209223b3eb3cSopenharmony_ci * 209323b3eb3cSopenharmony_ci */ 209423b3eb3cSopenharmony_ci NODE_IMAGE_SPAN_SRC = MAX_NODE_SCOPE_NUM * ARKUI_NODE_IMAGE_SPAN, 209523b3eb3cSopenharmony_ci /** 209623b3eb3cSopenharmony_ci * @brief Defines the alignment mode of the image with the text. 209723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 209823b3eb3cSopenharmony_ci * 209923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 210023b3eb3cSopenharmony_ci * .value[0].i32: alignment mode of the image with the text. 210123b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_ImageSpanAlignment}. \n 210223b3eb3cSopenharmony_ci * \n 210323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 210423b3eb3cSopenharmony_ci * .value[0].i32: alignment mode of the image with the text. 210523b3eb3cSopenharmony_ci * The value is an enum of {@link ArkUI_ImageSpanAlignment}. \n 210623b3eb3cSopenharmony_ci * 210723b3eb3cSopenharmony_ci */ 210823b3eb3cSopenharmony_ci NODE_IMAGE_SPAN_VERTICAL_ALIGNMENT, 210923b3eb3cSopenharmony_ci NODE_IMAGE_SPAN_ALT, 211023b3eb3cSopenharmony_ci /** 211123b3eb3cSopenharmony_ci * @brief Defines the image span baseline offset attribute 211223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 211323b3eb3cSopenharmony_ci * 211423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 211523b3eb3cSopenharmony_ci * .value[0].f32: baseline offset, in fp.\n 211623b3eb3cSopenharmony_ci * \n 211723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 211823b3eb3cSopenharmony_ci * .value[0].f32: baseline offset, in fp. \n 211923b3eb3cSopenharmony_ci * 212023b3eb3cSopenharmony_ci */ 212123b3eb3cSopenharmony_ci NODE_IMAGE_SPAN_BASELINE_OFFSET = 3003, 212223b3eb3cSopenharmony_ci /** 212323b3eb3cSopenharmony_ci * @brief Defines the image source of the <Image> component. 212423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 212523b3eb3cSopenharmony_ci * 212623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 212723b3eb3cSopenharmony_ci * .string: image source.\n 212823b3eb3cSopenharmony_ci * \n 212923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 213023b3eb3cSopenharmony_ci * .string: image source.\n 213123b3eb3cSopenharmony_ci * 213223b3eb3cSopenharmony_ci */ 213323b3eb3cSopenharmony_ci NODE_IMAGE_SRC = MAX_NODE_SCOPE_NUM * ARKUI_NODE_IMAGE, 213423b3eb3cSopenharmony_ci /** 213523b3eb3cSopenharmony_ci * @brief Defines how the image is resized to fit its container. 213623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 213723b3eb3cSopenharmony_ci * 213823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 213923b3eb3cSopenharmony_ci * .value[0].i32: how the image is resized to fit its container. The value is an enum of {@link ArkUI_ObjectFit}. \n 214023b3eb3cSopenharmony_ci * \n 214123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 214223b3eb3cSopenharmony_ci * .value[0].i32: how the image is resized to fit its container. The value is an enum of {@link ArkUI_ObjectFit}. \n 214323b3eb3cSopenharmony_ci * 214423b3eb3cSopenharmony_ci */ 214523b3eb3cSopenharmony_ci NODE_IMAGE_OBJECT_FIT, 214623b3eb3cSopenharmony_ci /** 214723b3eb3cSopenharmony_ci * @brief Defines the interpolation effect of the image. 214823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 214923b3eb3cSopenharmony_ci * 215023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 215123b3eb3cSopenharmony_ci * .value[0].i32: interpolation effect of the image. The value is an enum of {@link ArkUI_ImageInterpolation}. \n 215223b3eb3cSopenharmony_ci * \n 215323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 215423b3eb3cSopenharmony_ci * .value[0].i32: interpolation effect of the image. The value is an enum of {@link ArkUI_ImageInterpolation}. \n 215523b3eb3cSopenharmony_ci * 215623b3eb3cSopenharmony_ci */ 215723b3eb3cSopenharmony_ci NODE_IMAGE_INTERPOLATION, 215823b3eb3cSopenharmony_ci /** 215923b3eb3cSopenharmony_ci * @brief Defines how the image is repeated. 216023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 216123b3eb3cSopenharmony_ci * 216223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 216323b3eb3cSopenharmony_ci * .value[0].i32: how the image is repeated. The value is an enum of {@link ArkUI_ImageRepeat}. \n 216423b3eb3cSopenharmony_ci * \n 216523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 216623b3eb3cSopenharmony_ci * .value[0].i32: how the image is repeated. The value is an enum of {@link ArkUI_ImageRepeat}. \n 216723b3eb3cSopenharmony_ci * 216823b3eb3cSopenharmony_ci */ 216923b3eb3cSopenharmony_ci NODE_IMAGE_OBJECT_REPEAT, 217023b3eb3cSopenharmony_ci /** 217123b3eb3cSopenharmony_ci * @brief Defines the color filter of the image. 217223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 217323b3eb3cSopenharmony_ci * 217423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 217523b3eb3cSopenharmony_ci * .value[0].f32 to .value[19].f32: filter matrix array. \n 217623b3eb3cSopenharmony_ci * .size: 5 x 4 filter array size. \n 217723b3eb3cSopenharmony_ci * .object: the pointer to OH_Drawing_ColorFilter. Either .value or .object is set. \n 217823b3eb3cSopenharmony_ci * \n 217923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 218023b3eb3cSopenharmony_ci * .value[0].f32 to .value[19].f32: filter matrix array. \n 218123b3eb3cSopenharmony_ci * .size: 5 x 4 filter array size. \n 218223b3eb3cSopenharmony_ci * .object: the pointer to OH_Drawing_ColorFilter. \n 218323b3eb3cSopenharmony_ci * 218423b3eb3cSopenharmony_ci */ 218523b3eb3cSopenharmony_ci NODE_IMAGE_COLOR_FILTER, 218623b3eb3cSopenharmony_ci /** 218723b3eb3cSopenharmony_ci * @brief Defines the auto resize attribute, which can be set, reset, and obtained as required through APIs. 218823b3eb3cSopenharmony_ci * 218923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 219023b3eb3cSopenharmony_ci * .value[0].i32 : whether to resize the image source. \n 219123b3eb3cSopenharmony_ci * \n 219223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 219323b3eb3cSopenharmony_ci * .value[0].i32 : whether to resize the image source. \n 219423b3eb3cSopenharmony_ci * 219523b3eb3cSopenharmony_ci */ 219623b3eb3cSopenharmony_ci NODE_IMAGE_AUTO_RESIZE, 219723b3eb3cSopenharmony_ci /** 219823b3eb3cSopenharmony_ci * @brief Defines the placeholder image source. 219923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 220023b3eb3cSopenharmony_ci * 220123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 220223b3eb3cSopenharmony_ci * .string: placeholder image source. \n 220323b3eb3cSopenharmony_ci * \n 220423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 220523b3eb3cSopenharmony_ci * .string: placeholder image source. \n 220623b3eb3cSopenharmony_ci * 220723b3eb3cSopenharmony_ci */ 220823b3eb3cSopenharmony_ci NODE_IMAGE_ALT, 220923b3eb3cSopenharmony_ci /** 221023b3eb3cSopenharmony_ci * @brief Defines whether the image is draggable. 221123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 221223b3eb3cSopenharmony_ci * 221323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 221423b3eb3cSopenharmony_ci * .value[0].i32: whether the image is draggable. The value <b>true</b> means that the image is draggable. \n 221523b3eb3cSopenharmony_ci * \n 221623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 221723b3eb3cSopenharmony_ci * .value[0].i32: whether the image is draggable. \n 221823b3eb3cSopenharmony_ci * 221923b3eb3cSopenharmony_ci */ 222023b3eb3cSopenharmony_ci NODE_IMAGE_DRAGGABLE, 222123b3eb3cSopenharmony_ci /** 222223b3eb3cSopenharmony_ci * @brief Defines the image rendering mode. This attribute can be set, reset, and obtained as required through APIs. 222323b3eb3cSopenharmony_ci * 222423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 222523b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_ImageRenderMode}. \n 222623b3eb3cSopenharmony_ci * \n 222723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 222823b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is {@link ArkUI_ImageRenderMode}. \n 222923b3eb3cSopenharmony_ci * 223023b3eb3cSopenharmony_ci */ 223123b3eb3cSopenharmony_ci NODE_IMAGE_RENDER_MODE, 223223b3eb3cSopenharmony_ci /** 223323b3eb3cSopenharmony_ci * @brief 设置图片的显示尺寸是否跟随图源尺寸,支持属性设置,属性重置和属性获取接口。 223423b3eb3cSopenharmony_ci * 223523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 223623b3eb3cSopenharmony_ci * .value[0].i32,设置图片的显示尺寸是否跟随图源尺寸,1表示跟随,0表示不跟随,默认值为0。\n 223723b3eb3cSopenharmony_ci * \n 223823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 223923b3eb3cSopenharmony_ci * .value[0].i32,1表示图片的显示尺寸跟随图源尺寸,0表示图片的显示尺寸不跟随图源尺寸。\n 224023b3eb3cSopenharmony_ci * 224123b3eb3cSopenharmony_ci */ 224223b3eb3cSopenharmony_ci NODE_IMAGE_FIT_ORIGINAL_SIZE, 224323b3eb3cSopenharmony_ci /** 224423b3eb3cSopenharmony_ci * @brief 设置填充颜色,设置后填充颜色会覆盖在图片上,支持属性设置,属性重置和属性获取接口。 224523b3eb3cSopenharmony_ci * 224623b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 224723b3eb3cSopenharmony_ci * .value[0].u32:填充色数值,0xargb格式,形如 0xFFFF0000 表示红色。\n 224823b3eb3cSopenharmony_ci * \n 224923b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 225023b3eb3cSopenharmony_ci * .value[0].u32:填充色数值,0xargb格式。\n 225123b3eb3cSopenharmony_ci * 225223b3eb3cSopenharmony_ci */ 225323b3eb3cSopenharmony_ci NODE_IMAGE_FILL_COLOR, 225423b3eb3cSopenharmony_ci /** 225523b3eb3cSopenharmony_ci * @brief Sets the resizable image options. 225623b3eb3cSopenharmony_ci * 225723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 225823b3eb3cSopenharmony_ci * .value[0].f32: width of the left edge. The unit is vp. \n 225923b3eb3cSopenharmony_ci * .value[1].f32: width of the top edge. The unit is vp. \n 226023b3eb3cSopenharmony_ci * .value[2].f32: width of the right edge. The unit is vp. \n 226123b3eb3cSopenharmony_ci * .value[3].f32: width of the bottom edge. The unit is vp. \n 226223b3eb3cSopenharmony_ci * \n 226323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 226423b3eb3cSopenharmony_ci * .value[0].f32: width of the left edge. The unit is vp. \n 226523b3eb3cSopenharmony_ci * .value[1].f32: width of the top edge. The unit is vp. \n 226623b3eb3cSopenharmony_ci * .value[2].f32: width of the right edge. The unit is vp. \n 226723b3eb3cSopenharmony_ci * .value[3].f32: width of the bottom edge. The unit is vp. \n 226823b3eb3cSopenharmony_ci * 226923b3eb3cSopenharmony_ci */ 227023b3eb3cSopenharmony_ci NODE_IMAGE_RESIZABLE, 227123b3eb3cSopenharmony_ci /** 227223b3eb3cSopenharmony_ci * @brief Defines the color of the component when it is selected. 227323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 227423b3eb3cSopenharmony_ci * 227523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 227623b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 227723b3eb3cSopenharmony_ci * \n 227823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 227923b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. \n 228023b3eb3cSopenharmony_ci * 228123b3eb3cSopenharmony_ci */ 228223b3eb3cSopenharmony_ci NODE_TOGGLE_SELECTED_COLOR = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TOGGLE, 228323b3eb3cSopenharmony_ci /** 228423b3eb3cSopenharmony_ci * @brief Defines the color of the circular slider for the component of the switch type. 228523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 228623b3eb3cSopenharmony_ci * 228723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 228823b3eb3cSopenharmony_ci * .value[0].u32: color of the circular slider, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 228923b3eb3cSopenharmony_ci * \n 229023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 229123b3eb3cSopenharmony_ci * .value[0].u32: color of the circular slider, in 0xARGB format. \n 229223b3eb3cSopenharmony_ci * 229323b3eb3cSopenharmony_ci */ 229423b3eb3cSopenharmony_ci NODE_TOGGLE_SWITCH_POINT_COLOR, 229523b3eb3cSopenharmony_ci /** 229623b3eb3cSopenharmony_ci * @brief Defines the toggle switch value. This attribute can be set, reset, and obtained as required through APIs. 229723b3eb3cSopenharmony_ci * 229823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 229923b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the toggle. The value <b>true</b> means to enable the toggle. \n 230023b3eb3cSopenharmony_ci * \n 230123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 230223b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the toggle. \n 230323b3eb3cSopenharmony_ci * 230423b3eb3cSopenharmony_ci */ 230523b3eb3cSopenharmony_ci NODE_TOGGLE_VALUE, 230623b3eb3cSopenharmony_ci /** 230723b3eb3cSopenharmony_ci * @brief Defines the color of the component when it is deselected. 230823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 230923b3eb3cSopenharmony_ci * 231023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 231123b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 231223b3eb3cSopenharmony_ci * \n 231323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 231423b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. \n 231523b3eb3cSopenharmony_ci * 231623b3eb3cSopenharmony_ci */ 231723b3eb3cSopenharmony_ci NODE_TOGGLE_UNSELECTED_COLOR, 231823b3eb3cSopenharmony_ci 231923b3eb3cSopenharmony_ci /** 232023b3eb3cSopenharmony_ci * @brief Defines the foreground color of the loading progress bar. 232123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 232223b3eb3cSopenharmony_ci * 232323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 232423b3eb3cSopenharmony_ci * .value[0].u32: foreground color, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 232523b3eb3cSopenharmony_ci * \n 232623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 232723b3eb3cSopenharmony_ci * .value[0].u32: foreground color, in 0xARGB format. \n 232823b3eb3cSopenharmony_ci * 232923b3eb3cSopenharmony_ci */ 233023b3eb3cSopenharmony_ci NODE_LOADING_PROGRESS_COLOR = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LOADING_PROGRESS, 233123b3eb3cSopenharmony_ci /** 233223b3eb3cSopenharmony_ci * @brief Defines whether to show the loading animation for the <LoadingProgress> component. 233323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 233423b3eb3cSopenharmony_ci * 233523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 233623b3eb3cSopenharmony_ci * .value[0].i32: whether to show the loading animation. 233723b3eb3cSopenharmony_ci * The value <b>true</b> means to show the loading animation, and <b>false</b> means the opposite.\n 233823b3eb3cSopenharmony_ci * \n 233923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 234023b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means to show the loading animation, and <b>0</b> means the opposite. \n 234123b3eb3cSopenharmony_ci * 234223b3eb3cSopenharmony_ci */ 234323b3eb3cSopenharmony_ci NODE_LOADING_PROGRESS_ENABLE_LOADING, 234423b3eb3cSopenharmony_ci 234523b3eb3cSopenharmony_ci /** 234623b3eb3cSopenharmony_ci * @brief Defines the default placeholder text of the single-line text box. 234723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 234823b3eb3cSopenharmony_ci * 234923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 235023b3eb3cSopenharmony_ci * .string: default placeholder text. \n 235123b3eb3cSopenharmony_ci * \n 235223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 235323b3eb3cSopenharmony_ci * .string: default placeholder text. \n 235423b3eb3cSopenharmony_ci * 235523b3eb3cSopenharmony_ci */ 235623b3eb3cSopenharmony_ci NODE_TEXT_INPUT_PLACEHOLDER = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_INPUT, 235723b3eb3cSopenharmony_ci /** 235823b3eb3cSopenharmony_ci * @brief Defines the default text content of the single-line text box. 235923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 236023b3eb3cSopenharmony_ci * 236123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 236223b3eb3cSopenharmony_ci * .string: default text content. \n 236323b3eb3cSopenharmony_ci * \n 236423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 236523b3eb3cSopenharmony_ci * .string: default text content. \n 236623b3eb3cSopenharmony_ci * 236723b3eb3cSopenharmony_ci */ 236823b3eb3cSopenharmony_ci NODE_TEXT_INPUT_TEXT, 236923b3eb3cSopenharmony_ci /** 237023b3eb3cSopenharmony_ci * @brief Defines the caret color attribute. 237123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 237223b3eb3cSopenharmony_ci * 237323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 237423b3eb3cSopenharmony_ci * .value[0].u32: caret color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n 237523b3eb3cSopenharmony_ci * \n 237623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 237723b3eb3cSopenharmony_ci * .value[0].u32: caret color, in 0xARGB format. \n 237823b3eb3cSopenharmony_ci * 237923b3eb3cSopenharmony_ci */ 238023b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CARET_COLOR, 238123b3eb3cSopenharmony_ci /** 238223b3eb3cSopenharmony_ci * @brief Defines the caret style attribute. 238323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 238423b3eb3cSopenharmony_ci * 238523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 238623b3eb3cSopenharmony_ci * .value[0].f32: caret width, in vp.\n 238723b3eb3cSopenharmony_ci * \n 238823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 238923b3eb3cSopenharmony_ci * .value[0].f32: caret width, in vp. \n 239023b3eb3cSopenharmony_ci * 239123b3eb3cSopenharmony_ci */ 239223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CARET_STYLE, 239323b3eb3cSopenharmony_ci /** 239423b3eb3cSopenharmony_ci * @brief Defines the underline attribute of the single-line text box. 239523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 239623b3eb3cSopenharmony_ci * 239723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 239823b3eb3cSopenharmony_ci * .value[0].i32: whether to show an underline. 239923b3eb3cSopenharmony_ci * The value <b>true</b> means to show an underline, and <b>false</b> means the opposite.\n 240023b3eb3cSopenharmony_ci * \n 240123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 240223b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means to show an underline, and <b>0</b> means the opposite. \n 240323b3eb3cSopenharmony_ci * 240423b3eb3cSopenharmony_ci */ 240523b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SHOW_UNDERLINE, 240623b3eb3cSopenharmony_ci /** 240723b3eb3cSopenharmony_ci * @brief Defines the maximum number of characters in the text input. 240823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 240923b3eb3cSopenharmony_ci * 241023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 241123b3eb3cSopenharmony_ci * .value[0].i32: maximum number of characters in the text input, without a unit. \n 241223b3eb3cSopenharmony_ci * \n 241323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 241423b3eb3cSopenharmony_ci * .value[0].i32: maximum number of characters in the text input. \n 241523b3eb3cSopenharmony_ci * 241623b3eb3cSopenharmony_ci */ 241723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_MAX_LENGTH, 241823b3eb3cSopenharmony_ci /** 241923b3eb3cSopenharmony_ci * @brief Defines the type of the Enter key. 242023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 242123b3eb3cSopenharmony_ci * 242223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 242323b3eb3cSopenharmony_ci * .value[0].i32: type of the Enter key{@link ArkUI_EnterKeyType}. The default value is 242423b3eb3cSopenharmony_ci * <b>ARKUI_ENTER_KEY_TYPE_DONE</b>. \n 242523b3eb3cSopenharmony_ci * \n 242623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 242723b3eb3cSopenharmony_ci * .value[0].i32: type of the Enter key{@link ArkUI_EnterKeyType}. \n 242823b3eb3cSopenharmony_ci * 242923b3eb3cSopenharmony_ci */ 243023b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ENTER_KEY_TYPE, 243123b3eb3cSopenharmony_ci /** 243223b3eb3cSopenharmony_ci * @brief Defines the placeholder text color. 243323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 243423b3eb3cSopenharmony_ci * 243523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 243623b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 243723b3eb3cSopenharmony_ci * \n 243823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 243923b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. \n 244023b3eb3cSopenharmony_ci * 244123b3eb3cSopenharmony_ci */ 244223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_PLACEHOLDER_COLOR, 244323b3eb3cSopenharmony_ci /** 244423b3eb3cSopenharmony_ci * @brief Defines the placeholder text font. 244523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 244623b3eb3cSopenharmony_ci * 244723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 244823b3eb3cSopenharmony_ci * .value[0]?.f32: font size, in fp. Optional. The default value is <b>16.0</b>.\n 244923b3eb3cSopenharmony_ci * .value[1]?.i32: font style {@link ArkUI_FontStyle}. Optional. 245023b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_STYLE_NORMAL</b>. \n 245123b3eb3cSopenharmony_ci * .value[2]?.i32: font weight {@link ArkUI_FontWeight}. Optional. 245223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FONT_WEIGHT_NORMAL</b>. \n 245323b3eb3cSopenharmony_ci * ?.string: font family. Multiple font families are separated by commas (,). 245423b3eb3cSopenharmony_ci * Example: "font weight; font family 1, font family 2". \n 245523b3eb3cSopenharmony_ci * \n 245623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 245723b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp.\n 245823b3eb3cSopenharmony_ci * .value[1].i32: font style {@link ArkUI_FontStyle}.\n 245923b3eb3cSopenharmony_ci * .value[2].i32: font weight {@link ArkUI_FontWeight}.\n 246023b3eb3cSopenharmony_ci * .string: font family. Multiple font families are separated by commas (,). \n 246123b3eb3cSopenharmony_ci * 246223b3eb3cSopenharmony_ci */ 246323b3eb3cSopenharmony_ci NODE_TEXT_INPUT_PLACEHOLDER_FONT, 246423b3eb3cSopenharmony_ci /** 246523b3eb3cSopenharmony_ci * @brief Defines whether to enable the input method when the component obtains focus. 246623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 246723b3eb3cSopenharmony_ci * 246823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 246923b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the input method when the component obtains focus. 247023b3eb3cSopenharmony_ci * The value <b>true</b> means to enable the input method, and <b>false</b> means the opposite.\n \n 247123b3eb3cSopenharmony_ci * \n 247223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 247323b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means to enable the input method when the component obtains focus, 247423b3eb3cSopenharmony_ci * and <b>0</b> means the opposite. \n 247523b3eb3cSopenharmony_ci * 247623b3eb3cSopenharmony_ci */ 247723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ENABLE_KEYBOARD_ON_FOCUS, 247823b3eb3cSopenharmony_ci /** 247923b3eb3cSopenharmony_ci * @brief Defines the text box type. This attribute can be set, reset, and obtained as required through APIs. 248023b3eb3cSopenharmony_ci * 248123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 248223b3eb3cSopenharmony_ci * .value[0].i32: text box type {@link ArkUI_TextInputType}. 248323b3eb3cSopenharmony_ci * The default value is <b>ARKUI_TEXTINPUT_TYPE_NORMAL</b>. \n 248423b3eb3cSopenharmony_ci * \n 248523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 248623b3eb3cSopenharmony_ci * .value[0].i32: text box type {@link ArkUI_TextInputType}. \n 248723b3eb3cSopenharmony_ci * 248823b3eb3cSopenharmony_ci */ 248923b3eb3cSopenharmony_ci NODE_TEXT_INPUT_TYPE, 249023b3eb3cSopenharmony_ci /** 249123b3eb3cSopenharmony_ci * @brief Defines the background color of the selected text. 249223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 249323b3eb3cSopenharmony_ci * 249423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 249523b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 249623b3eb3cSopenharmony_ci * \n 249723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 249823b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. \n 249923b3eb3cSopenharmony_ci * 250023b3eb3cSopenharmony_ci */ 250123b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SELECTED_BACKGROUND_COLOR, 250223b3eb3cSopenharmony_ci /** 250323b3eb3cSopenharmony_ci * @brief Defines whether to display the password icon at the end of the password text box. 250423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 250523b3eb3cSopenharmony_ci * 250623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 250723b3eb3cSopenharmony_ci * .value[0].i32: whether to display the password icon at the end of the password text box. 250823b3eb3cSopenharmony_ci * The value <b>true</b> means to display the password icon, and <b>false</b> means the opposite.\n 250923b3eb3cSopenharmony_ci * \n 251023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 251123b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means to display the password icon at the end of the password text box, 251223b3eb3cSopenharmony_ci * and <b>0</b> means the opposite. \n 251323b3eb3cSopenharmony_ci * 251423b3eb3cSopenharmony_ci */ 251523b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SHOW_PASSWORD_ICON, 251623b3eb3cSopenharmony_ci /** 251723b3eb3cSopenharmony_ci * @brief Defines the editable state for the single-line text box. 251823b3eb3cSopenharmony_ci * This attribute can be set as required through APIs. 251923b3eb3cSopenharmony_ci * 252023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 252123b3eb3cSopenharmony_ci * .value[0].i32: whether to remain in the editable state. The value 252223b3eb3cSopenharmony_ci * <b>true</b> means to remain in the editable state, and <b>false</b> means to exit the editable state. \n 252323b3eb3cSopenharmony_ci * \n 252423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for obtaining the attribute: 252523b3eb3cSopenharmony_ci * .value[0].i32: whether to remain in the editable state. The value <b>true</b> means to remain in the editable 252623b3eb3cSopenharmony_ci * state, and <b>false</b> means to exit the editable state. \n 252723b3eb3cSopenharmony_ci * 252823b3eb3cSopenharmony_ci */ 252923b3eb3cSopenharmony_ci NODE_TEXT_INPUT_EDITING, 253023b3eb3cSopenharmony_ci /** 253123b3eb3cSopenharmony_ci * @brief Defines the style of the cancel button on the right of the single-line text box. 253223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 253323b3eb3cSopenharmony_ci * 253423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n 253523b3eb3cSopenharmony_ci * .value[0].i32: button style {@link ArkUI_CancelButtonStyle}. 253623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_CANCELBUTTON_STYLE_INPUT</b>.\n 253723b3eb3cSopenharmony_ci * .value[1]?.f32: button icon size, in vp.\n 253823b3eb3cSopenharmony_ci * .value[2]?.u32: button icon color, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 253923b3eb3cSopenharmony_ci * ?.string: button icon image source. The value is the local address of the image, for example, /pages/icon.png. \n 254023b3eb3cSopenharmony_ci * \n 254123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 254223b3eb3cSopenharmony_ci * .value[0].i32: button style {@link ArkUI_CancelButtonStyle}.\n 254323b3eb3cSopenharmony_ci * .value[1].f32: icon size, in vp.\n 254423b3eb3cSopenharmony_ci * .value[2].u32: button icon color, in 0xARGB format.\n 254523b3eb3cSopenharmony_ci * .string: button icon image source. \n 254623b3eb3cSopenharmony_ci * 254723b3eb3cSopenharmony_ci */ 254823b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CANCEL_BUTTON, 254923b3eb3cSopenharmony_ci /** 255023b3eb3cSopenharmony_ci * @brief Sets the text selection area, which will be highlighted. 255123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 255223b3eb3cSopenharmony_ci * 255323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 255423b3eb3cSopenharmony_ci * .value[0].i32: start position of the text selection. \n 255523b3eb3cSopenharmony_ci * .value[1].i32: end position of the text selection. \n 255623b3eb3cSopenharmony_ci * \n 255723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 255823b3eb3cSopenharmony_ci * .value[0].i32: start position of the text selection. \n 255923b3eb3cSopenharmony_ci * .value[1].i32: end position of the text selection. \n 256023b3eb3cSopenharmony_ci * 256123b3eb3cSopenharmony_ci */ 256223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_TEXT_SELECTION, 256323b3eb3cSopenharmony_ci /** 256423b3eb3cSopenharmony_ci * @brief Sets the color of the text underline when it is enabled. 256523b3eb3cSopenharmony_ci * 256623b3eb3cSopenharmony_ci * The default underline color configured for the theme is <b>'0x33182431'</b>. 256723b3eb3cSopenharmony_ci * 256823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 256923b3eb3cSopenharmony_ci * .value[0].u32: color of the underline applied to the text being typed in. 257023b3eb3cSopenharmony_ci * The value is in 0xARGB format. \n 257123b3eb3cSopenharmony_ci * .value[1].u32: color of the underline applied to the text in the normal state. 257223b3eb3cSopenharmony_ci * The value is in 0xARGB format. \n 257323b3eb3cSopenharmony_ci * .value[2].u32: color of the underline applied to the text when an error is detected. 257423b3eb3cSopenharmony_ci * The value is in 0xARGB format. \n 257523b3eb3cSopenharmony_ci * .value[3].u32: color of the underline applied to the text when it is disabled. 257623b3eb3cSopenharmony_ci * The value is in 0xARGB format. \n 257723b3eb3cSopenharmony_ci * \n 257823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 257923b3eb3cSopenharmony_ci * .value[0].u32: color of the underline applied to the text being typed in. The value is in 0xARGB format. \n 258023b3eb3cSopenharmony_ci * .value[1].u32: color of the underline applied to the text in the normal state. The value is in 0xARGB format. \n 258123b3eb3cSopenharmony_ci * .value[2].u32: color of the underline applied to the text when an error is detected. 258223b3eb3cSopenharmony_ci * The value is in 0xARGB format. \n 258323b3eb3cSopenharmony_ci * .value[3].u32: color of the underline applied to the text when it is disabled. The value is in 0xARGB format. \n 258423b3eb3cSopenharmony_ci * 258523b3eb3cSopenharmony_ci */ 258623b3eb3cSopenharmony_ci NODE_TEXT_INPUT_UNDERLINE_COLOR, 258723b3eb3cSopenharmony_ci /** 258823b3eb3cSopenharmony_ci * @brief Sets whether to enable autofill. 258923b3eb3cSopenharmony_ci * 259023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 259123b3eb3cSopenharmony_ci * .value[0].i32: whether to enable autofill. The default value is <b>true</b>. \n 259223b3eb3cSopenharmony_ci * \n 259323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 259423b3eb3cSopenharmony_ci * .value[0].i32: whether to enable autofill. \n 259523b3eb3cSopenharmony_ci * 259623b3eb3cSopenharmony_ci */ 259723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ENABLE_AUTO_FILL, 259823b3eb3cSopenharmony_ci /** 259923b3eb3cSopenharmony_ci * @brief Sets the autofill type. 260023b3eb3cSopenharmony_ci * 260123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 260223b3eb3cSopenharmony_ci * .value[0].i32: autofill type. The parameter type is {@link ArkUI_TextInputContentType}. \n 260323b3eb3cSopenharmony_ci * \n 260423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 260523b3eb3cSopenharmony_ci * .value[0].i32: autofill type. The parameter type is {@link ArkUI_TextInputContentType}. \n 260623b3eb3cSopenharmony_ci * 260723b3eb3cSopenharmony_ci */ 260823b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CONTENT_TYPE, 260923b3eb3cSopenharmony_ci /** 261023b3eb3cSopenharmony_ci * @brief Defines the rules for generating passwords. When autofill is used, these rules are transparently 261123b3eb3cSopenharmony_ci * transmitted to Password Vault for generating a new password. 261223b3eb3cSopenharmony_ci * 261323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 261423b3eb3cSopenharmony_ci * .string: rules for generating passwords. \n 261523b3eb3cSopenharmony_ci * \n 261623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 261723b3eb3cSopenharmony_ci * .string: rules for generating passwords. \n 261823b3eb3cSopenharmony_ci * 261923b3eb3cSopenharmony_ci */ 262023b3eb3cSopenharmony_ci NODE_TEXT_INPUT_PASSWORD_RULES, 262123b3eb3cSopenharmony_ci /** 262223b3eb3cSopenharmony_ci * @brief Sets whether to select all text in the initial state. The inline mode is not supported. 262323b3eb3cSopenharmony_ci * 262423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 262523b3eb3cSopenharmony_ci * .value[0].i32: whether to select all text in the initial state. The default value is b>false</b>. \n 262623b3eb3cSopenharmony_ci * \n 262723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 262823b3eb3cSopenharmony_ci * .value[0].i32: whether to select all text in the initial state. \n 262923b3eb3cSopenharmony_ci * 263023b3eb3cSopenharmony_ci */ 263123b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SELECT_ALL, 263223b3eb3cSopenharmony_ci /** 263323b3eb3cSopenharmony_ci * @brief Sets the regular expression for input filtering. Only inputs that comply with the regular expression can be 263423b3eb3cSopenharmony_ci * displayed. Other inputs are filtered out. The specified regular expression can match single characters, 263523b3eb3cSopenharmony_ci * but not strings. 263623b3eb3cSopenharmony_ci * 263723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 263823b3eb3cSopenharmony_ci * .string: regular expression. \n 263923b3eb3cSopenharmony_ci * \n 264023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 264123b3eb3cSopenharmony_ci * .string: regular expression. \n 264223b3eb3cSopenharmony_ci * 264323b3eb3cSopenharmony_ci */ 264423b3eb3cSopenharmony_ci NODE_TEXT_INPUT_INPUT_FILTER, 264523b3eb3cSopenharmony_ci /** 264623b3eb3cSopenharmony_ci * @brief Sets the text box to the default style or inline input style. 264723b3eb3cSopenharmony_ci * 264823b3eb3cSopenharmony_ci * For the inline input style, only <b>InputType.Normal</b> is supported. 264923b3eb3cSopenharmony_ci * 265023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 265123b3eb3cSopenharmony_ci * .value[0].i32: text input style. The parameter type is {@link ArkUI_TextInputStyle}. \n 265223b3eb3cSopenharmony_ci * \n 265323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 265423b3eb3cSopenharmony_ci * .value[0].i32: text input style. The parameter type is {@link ArkUI_TextInputStyle}. \n 265523b3eb3cSopenharmony_ci * 265623b3eb3cSopenharmony_ci */ 265723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_STYLE, 265823b3eb3cSopenharmony_ci /** 265923b3eb3cSopenharmony_ci * @brief Sets or obtains the caret position. 266023b3eb3cSopenharmony_ci * 266123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 266223b3eb3cSopenharmony_ci * In the case of setting the caret position: 266323b3eb3cSopenharmony_ci * .value[0].i32: character count from the beginning of a string to the caret position. \n 266423b3eb3cSopenharmony_ci * 266523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 266623b3eb3cSopenharmony_ci * In the case of obtaining the caret position: If this API is called when the caret position is updated in the 266723b3eb3cSopenharmony_ci * current frame, it will not take effect. 266823b3eb3cSopenharmony_ci * .value[0].i32: index of the caret position. \n 266923b3eb3cSopenharmony_ci * .value[1].f32: X coordinate of the caret relative to the text box. \n 267023b3eb3cSopenharmony_ci * .value[2].f32: Y coordinate of the caret relative to the text box. \n 267123b3eb3cSopenharmony_ci */ 267223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CARET_OFFSET, 267323b3eb3cSopenharmony_ci /** 267423b3eb3cSopenharmony_ci * @brief Obtains the position of the edited text area relative to the component and its size. 267523b3eb3cSopenharmony_ci * 267623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 267723b3eb3cSopenharmony_ci * .value[0].f32: horizontal coordinate. \n 267823b3eb3cSopenharmony_ci * .value[1].f32: vertical coordinate. \n 267923b3eb3cSopenharmony_ci * .value[2].f32: content width. \n 268023b3eb3cSopenharmony_ci * .value[3].f32: content height. \n 268123b3eb3cSopenharmony_ci * 268223b3eb3cSopenharmony_ci */ 268323b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CONTENT_RECT, 268423b3eb3cSopenharmony_ci /** 268523b3eb3cSopenharmony_ci * @brief Obtains the number of lines of the edited text. 268623b3eb3cSopenharmony_ci * 268723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 268823b3eb3cSopenharmony_ci * .value[0].i32: number of lines of the edited text. \n 268923b3eb3cSopenharmony_ci * 269023b3eb3cSopenharmony_ci */ 269123b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CONTENT_LINE_COUNT, 269223b3eb3cSopenharmony_ci /** 269323b3eb3cSopenharmony_ci * @brief 设置长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单,支持属性设置,属性重置和属性获取接口。 269423b3eb3cSopenharmony_ci * 269523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 269623b3eb3cSopenharmony_ci * .value[0].i32: 长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单。默认值false。\n 269723b3eb3cSopenharmony_ci * \n 269823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 269923b3eb3cSopenharmony_ci * .value[0].i32: 长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单。\n 270023b3eb3cSopenharmony_ci * 270123b3eb3cSopenharmony_ci */ 270223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SELECTION_MENU_HIDDEN, 270323b3eb3cSopenharmony_ci /** 270423b3eb3cSopenharmony_ci * @brief Sets whether the text box loses focus after the Enter key is pressed to submit information. 270523b3eb3cSopenharmony_ci * 270623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 270723b3eb3cSopenharmony_ci * .value[0].i32: whether the text box loses focus. \n 270823b3eb3cSopenharmony_ci * \n 270923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 271023b3eb3cSopenharmony_ci * .value[0].i32: whether the text box loses focus. \n 271123b3eb3cSopenharmony_ci * 271223b3eb3cSopenharmony_ci */ 271323b3eb3cSopenharmony_ci NODE_TEXT_INPUT_BLUR_ON_SUBMIT, 271423b3eb3cSopenharmony_ci /** 271523b3eb3cSopenharmony_ci * @brief 设置自定义键盘。 271623b3eb3cSopenharmony_ci * 271723b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 271823b3eb3cSopenharmony_ci * .object:自定义键盘,参数类型{@Link ArkUI_NodeHandle}。\n 271923b3eb3cSopenharmony_ci * .value[0]?.i32:设置自定义键盘是否支持避让功能,默认值false。\n 272023b3eb3cSopenharmony_ci * \n 272123b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 272223b3eb3cSopenharmony_ci * .object:自定义键盘,参数类型{@Link ArkUI_NodeHandle}。\n 272323b3eb3cSopenharmony_ci * .value[0].i32:设置自定义键盘是否支持避让功能。\n 272423b3eb3cSopenharmony_ci * 272523b3eb3cSopenharmony_ci */ 272623b3eb3cSopenharmony_ci NODE_TEXT_INPUT_CUSTOM_KEYBOARD, 272723b3eb3cSopenharmony_ci /** 272823b3eb3cSopenharmony_ci * @brief 文本断行规则属性,支持属性设置,属性重置,属性获取接口。 272923b3eb3cSopenharmony_ci * 273023b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 273123b3eb3cSopenharmony_ci * .value[0].i32: 参数类型{@link ArkUI_WordBreak}。\n 273223b3eb3cSopenharmony_ci * \n 273323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 273423b3eb3cSopenharmony_ci * .value[0].i32: 参数类型{@link ArkUI_WordBreak}。\n 273523b3eb3cSopenharmony_ci * 273623b3eb3cSopenharmony_ci */ 273723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_WORD_BREAK, 273823b3eb3cSopenharmony_ci 273923b3eb3cSopenharmony_ci /** 274023b3eb3cSopenharmony_ci * @brief 设置输入框获取焦点时是否弹出键盘,支持属性设置,属性重置和属性获取接口。 274123b3eb3cSopenharmony_ci * 274223b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 274323b3eb3cSopenharmony_ci * .value[0].i32: 是否弹出键盘。\n 274423b3eb3cSopenharmony_ci * \n 274523b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 274623b3eb3cSopenharmony_ci * .value[0].i32: 是否弹出键盘。\n 274723b3eb3cSopenharmony_ci * 274823b3eb3cSopenharmony_ci */ 274923b3eb3cSopenharmony_ci NODE_TEXT_INPUT_SHOW_KEYBOARD_ON_FOCUS, 275023b3eb3cSopenharmony_ci 275123b3eb3cSopenharmony_ci /** 275223b3eb3cSopenharmony_ci * @brief 设置该属性后,通过该属性计算textInput组件的高度。 275323b3eb3cSopenharmony_ci * 275423b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 275523b3eb3cSopenharmony_ci * .value[0].i32: 设置numberOfLines的值。\n 275623b3eb3cSopenharmony_ci * \n 275723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 275823b3eb3cSopenharmony_ci * .value[0].i32: 设置numberOfLines的值。\n 275923b3eb3cSopenharmony_ci * 276023b3eb3cSopenharmony_ci */ 276123b3eb3cSopenharmony_ci NODE_TEXT_INPUT_NUMBER_OF_LINES, 276223b3eb3cSopenharmony_ci /** 276323b3eb3cSopenharmony_ci * @brief Defines the default placeholder text for the multi-line text box. 276423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 276523b3eb3cSopenharmony_ci * 276623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 276723b3eb3cSopenharmony_ci * .string: default placeholder text. \n 276823b3eb3cSopenharmony_ci * \n 276923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 277023b3eb3cSopenharmony_ci * .string: default placeholder text. \n 277123b3eb3cSopenharmony_ci * 277223b3eb3cSopenharmony_ci */ 277323b3eb3cSopenharmony_ci NODE_TEXT_AREA_PLACEHOLDER = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_AREA, 277423b3eb3cSopenharmony_ci /** 277523b3eb3cSopenharmony_ci * @brief Defines the default text content for the multi-line text box. 277623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 277723b3eb3cSopenharmony_ci * 277823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 277923b3eb3cSopenharmony_ci * .string: default text content. \n 278023b3eb3cSopenharmony_ci * \n 278123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 278223b3eb3cSopenharmony_ci * .string: default text content. \n 278323b3eb3cSopenharmony_ci * 278423b3eb3cSopenharmony_ci */ 278523b3eb3cSopenharmony_ci NODE_TEXT_AREA_TEXT, 278623b3eb3cSopenharmony_ci /** 278723b3eb3cSopenharmony_ci * @brief Defines the maximum number of characters in the text input. 278823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 278923b3eb3cSopenharmony_ci * 279023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 279123b3eb3cSopenharmony_ci * .value[0].i32: maximum number of characters in the text input. \n 279223b3eb3cSopenharmony_ci * \n 279323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 279423b3eb3cSopenharmony_ci * .value[0].i32: maximum number of characters in the text input. \n 279523b3eb3cSopenharmony_ci * 279623b3eb3cSopenharmony_ci */ 279723b3eb3cSopenharmony_ci NODE_TEXT_AREA_MAX_LENGTH, 279823b3eb3cSopenharmony_ci /** 279923b3eb3cSopenharmony_ci * @brief Defines the placeholder text color. 280023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 280123b3eb3cSopenharmony_ci * 280223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 280323b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 280423b3eb3cSopenharmony_ci * \n 280523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 280623b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. \n 280723b3eb3cSopenharmony_ci * 280823b3eb3cSopenharmony_ci */ 280923b3eb3cSopenharmony_ci NODE_TEXT_AREA_PLACEHOLDER_COLOR, 281023b3eb3cSopenharmony_ci /** 281123b3eb3cSopenharmony_ci * @brief Defines the placeholder text font. 281223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 281323b3eb3cSopenharmony_ci * 281423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 281523b3eb3cSopenharmony_ci * .value[0]?.f32: font size, in fp. Optional. The default value is <b>16.0</b>.\n 281623b3eb3cSopenharmony_ci * .value[1]?.i32: font style {@link ArkUI_FontStyle}. Optional. The default value is 281723b3eb3cSopenharmony_ci * <b>ARKUI_FONT_STYLE_NORMAL</b>.\n 281823b3eb3cSopenharmony_ci * .value[2]?.i32: font weight {@link ArkUI_FontWeight}. Optional. The default value is 281923b3eb3cSopenharmony_ci * <b>ARKUI_FONT_WEIGHT_NORMAL</b>.\n 282023b3eb3cSopenharmony_ci * ?.string: font family. Multiple font families are separated by commas (,). 282123b3eb3cSopenharmony_ci * For example, "font weight; font family 1, font family 2". \n 282223b3eb3cSopenharmony_ci * \n 282323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 282423b3eb3cSopenharmony_ci * .value[0].f32: font size, in fp.\n 282523b3eb3cSopenharmony_ci * .value[1].i32: font style {@link ArkUI_FontStyle}.\n 282623b3eb3cSopenharmony_ci * .value[2].i32: font weight {@link ArkUI_FontWeight}.\n 282723b3eb3cSopenharmony_ci * .string: font family. Multiple font families are separated by commas (,). \n 282823b3eb3cSopenharmony_ci * 282923b3eb3cSopenharmony_ci */ 283023b3eb3cSopenharmony_ci NODE_TEXT_AREA_PLACEHOLDER_FONT, 283123b3eb3cSopenharmony_ci /** 283223b3eb3cSopenharmony_ci * @brief Defines the caret color attribute. 283323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 283423b3eb3cSopenharmony_ci * 283523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 283623b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 283723b3eb3cSopenharmony_ci * \n 283823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 283923b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format. \n 284023b3eb3cSopenharmony_ci * 284123b3eb3cSopenharmony_ci */ 284223b3eb3cSopenharmony_ci NODE_TEXT_AREA_CARET_COLOR, 284323b3eb3cSopenharmony_ci /** 284423b3eb3cSopenharmony_ci * @brief Defines the editable state for the multi-line text box. 284523b3eb3cSopenharmony_ci * This attribute can be set as required through APIs. 284623b3eb3cSopenharmony_ci * 284723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 284823b3eb3cSopenharmony_ci * .value[0].i32: whether to remain in the editable state. The value <b>true</b> means to remain in the 284923b3eb3cSopenharmony_ci * editable state, and <b>false</b> means to exit the editable state.\n \n 285023b3eb3cSopenharmony_ci * \n 285123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for obtaining the attribute: 285223b3eb3cSopenharmony_ci * .value[0].i32: whether to remain in the editable state. The value <b>true</b> means to remain in the editable 285323b3eb3cSopenharmony_ci * state, and <b>false</b> means to exit the editable state.\n \n 285423b3eb3cSopenharmony_ci * 285523b3eb3cSopenharmony_ci */ 285623b3eb3cSopenharmony_ci NODE_TEXT_AREA_EDITING, 285723b3eb3cSopenharmony_ci /** 285823b3eb3cSopenharmony_ci * @brief Defines the text box type. This attribute can be set, reset, and obtained as required through APIs. 285923b3eb3cSopenharmony_ci * 286023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 286123b3eb3cSopenharmony_ci * .value[0].i32: text box type {@link ArkUI_TextAreaType}. 286223b3eb3cSopenharmony_ci * The default value is <b>ARKUI_TEXTAREA_TYPE_NORMAL</b>. \n 286323b3eb3cSopenharmony_ci * \n 286423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 286523b3eb3cSopenharmony_ci * .value[0].i32: text box type {@link ArkUI_TextAreaType}. \n 286623b3eb3cSopenharmony_ci * 286723b3eb3cSopenharmony_ci */ 286823b3eb3cSopenharmony_ci NODE_TEXT_AREA_TYPE, 286923b3eb3cSopenharmony_ci /** 287023b3eb3cSopenharmony_ci * @brief Defines the counter settings. This attribute can be set, reset, and obtained as required through APIs. 287123b3eb3cSopenharmony_ci * 287223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 287323b3eb3cSopenharmony_ci * .value[0].i32: whether to show a character counter. The value <b>true</b> means to show a character counter. \n 287423b3eb3cSopenharmony_ci * .value[1]?.f32: threshold percentage for displaying the character counter. The character counter is displayed 287523b3eb3cSopenharmony_ci * when the number of characters that have been entered is greater than the maximum number of characters multiplied 287623b3eb3cSopenharmony_ci * by the threshold percentage value. The value range is 1 to 100. If the value is a decimal, it is rounded down. \n 287723b3eb3cSopenharmony_ci * .value[2]?.i32: whether to highlight the border when the number of entered characters reaches the maximum. \n 287823b3eb3cSopenharmony_ci * \n 287923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 288023b3eb3cSopenharmony_ci * .value[0].i32: whether to show a character counter. \n 288123b3eb3cSopenharmony_ci * .value[1].f32: threshold percentage for displaying the character counter. The character counter is displayed 288223b3eb3cSopenharmony_ci * when the number of characters that have been entered is greater than the maximum number of characters multiplied 288323b3eb3cSopenharmony_ci * by the threshold percentage value. The value range is 1 to 100. \n 288423b3eb3cSopenharmony_ci * .value[2].i32: whether to highlight the border when the number of entered characters reaches the maximum. 288523b3eb3cSopenharmony_ci * The default value is <b>true</b>. \n 288623b3eb3cSopenharmony_ci * 288723b3eb3cSopenharmony_ci */ 288823b3eb3cSopenharmony_ci NODE_TEXT_AREA_SHOW_COUNTER, 288923b3eb3cSopenharmony_ci 289023b3eb3cSopenharmony_ci /** 289123b3eb3cSopenharmony_ci * @brief 设置长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单,支持属性设置,属性重置和属性获取接口。 289223b3eb3cSopenharmony_ci * 289323b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 289423b3eb3cSopenharmony_ci * .value[0].i32: 长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单。默认值false。\n 289523b3eb3cSopenharmony_ci * \n 289623b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 289723b3eb3cSopenharmony_ci * .value[0].i32: 长按、双击输入框或者右键输入框时,是否不弹出文本选择菜单。\n 289823b3eb3cSopenharmony_ci * 289923b3eb3cSopenharmony_ci */ 290023b3eb3cSopenharmony_ci NODE_TEXT_AREA_SELECTION_MENU_HIDDEN, 290123b3eb3cSopenharmony_ci /** 290223b3eb3cSopenharmony_ci * @brief Sets whether the multi-line text box loses focus after the Enter key is pressed to submit information. 290323b3eb3cSopenharmony_ci * 290423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 290523b3eb3cSopenharmony_ci * .value[0].i32: whether the text box loses focus. \n 290623b3eb3cSopenharmony_ci * \n 290723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 290823b3eb3cSopenharmony_ci * .value[0].i32: whether the text box loses focus. \n 290923b3eb3cSopenharmony_ci * 291023b3eb3cSopenharmony_ci */ 291123b3eb3cSopenharmony_ci NODE_TEXT_AREA_BLUR_ON_SUBMIT, 291223b3eb3cSopenharmony_ci /** 291323b3eb3cSopenharmony_ci * @brief 通过正则表达式设置输入过滤器。匹配表达式的输入允许显示,不匹配的输入将被过滤。仅支持单个字符匹配,不支持字符串匹配。 291423b3eb3cSopenharmony_ci * 291523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 291623b3eb3cSopenharmony_ci * .string: 正则表达式。\n 291723b3eb3cSopenharmony_ci * \n 291823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 291923b3eb3cSopenharmony_ci * .string: 正则表达式。\n 292023b3eb3cSopenharmony_ci * 292123b3eb3cSopenharmony_ci */ 292223b3eb3cSopenharmony_ci NODE_TEXT_AREA_INPUT_FILTER, 292323b3eb3cSopenharmony_ci /** 292423b3eb3cSopenharmony_ci * @brief 设置文本选中底板颜色,支持属性设置,属性重置和属性获取接口。 292523b3eb3cSopenharmony_ci * 292623b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 292723b3eb3cSopenharmony_ci * .value[0].u32:颜色数值,0xargb格式,形如 0xFFFF0000 表示红色。\n 292823b3eb3cSopenharmony_ci * \n 292923b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 293023b3eb3cSopenharmony_ci * .value[0].u32:颜色数值,0xargb格式。\n 293123b3eb3cSopenharmony_ci * 293223b3eb3cSopenharmony_ci */ 293323b3eb3cSopenharmony_ci NODE_TEXT_AREA_SELECTED_BACKGROUND_COLOR, 293423b3eb3cSopenharmony_ci /** 293523b3eb3cSopenharmony_ci * @brief 设置输入法回车键类型,支持属性设置,属性重置和属性获取接口。 293623b3eb3cSopenharmony_ci * 293723b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 293823b3eb3cSopenharmony_ci * .value[0].i32:回车键类型枚举{@link ArkUI_EnterKeyType},默认值为ARKUI_ENTER_KEY_TYPE_DONE。\n 293923b3eb3cSopenharmony_ci * \n 294023b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 294123b3eb3cSopenharmony_ci * .value[0].i32:回车键类型枚举{@link ArkUI_EnterKeyType}。\n 294223b3eb3cSopenharmony_ci * 294323b3eb3cSopenharmony_ci */ 294423b3eb3cSopenharmony_ci NODE_TEXT_AREA_ENTER_KEY_TYPE, 294523b3eb3cSopenharmony_ci /** 294623b3eb3cSopenharmony_ci * @brief 设置TextArea通过点击以外的方式获焦时,是否绑定输入法,支持属性设置,属性重置和属性获取接口。 294723b3eb3cSopenharmony_ci * 294823b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 294923b3eb3cSopenharmony_ci * .value[0].i32:false表示聚焦不拉起输入法,true表示拉起,默认值为true。\n 295023b3eb3cSopenharmony_ci * \n 295123b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 295223b3eb3cSopenharmony_ci * .value[0].i32:0表示聚焦不拉起输入法,1表示拉起。\n 295323b3eb3cSopenharmony_ci * 295423b3eb3cSopenharmony_ci */ 295523b3eb3cSopenharmony_ci NODE_TEXT_AREA_ENABLE_KEYBOARD_ON_FOCUS, 295623b3eb3cSopenharmony_ci /** 295723b3eb3cSopenharmony_ci * @brief 设置或获取光标所在位置信息。 295823b3eb3cSopenharmony_ci * 295923b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 296023b3eb3cSopenharmony_ci * 设置输入光标的位置。 296123b3eb3cSopenharmony_ci * .value[0].i32: 从字符串开始到光标所在位置的字符长度。\n 296223b3eb3cSopenharmony_ci * 296323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 296423b3eb3cSopenharmony_ci * 返回当前光标所在位置信息。在当前帧更新光标位置同时调用该接口,该接口不生效 296523b3eb3cSopenharmony_ci * value[0].i32:光标所在位置的索引值。\n 296623b3eb3cSopenharmony_ci * value[1].f32:光标相对输入框的x坐标位值。\n 296723b3eb3cSopenharmony_ci * value[2].f32:光标相对输入框的y坐标位值。\n 296823b3eb3cSopenharmony_ci */ 296923b3eb3cSopenharmony_ci NODE_TEXT_AREA_CARET_OFFSET, 297023b3eb3cSopenharmony_ci /** 297123b3eb3cSopenharmony_ci * @brief 获取已编辑文本内容区域相对组件的位置和大小。 297223b3eb3cSopenharmony_ci * 297323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 297423b3eb3cSopenharmony_ci * value[0].f32:水平方向横坐标。\n 297523b3eb3cSopenharmony_ci * value[1].f32:竖直方向纵坐标。\n 297623b3eb3cSopenharmony_ci * value[2].f32:内容宽度大小。\n 297723b3eb3cSopenharmony_ci * value[3].f32:内容高度大小。\n 297823b3eb3cSopenharmony_ci * 297923b3eb3cSopenharmony_ci */ 298023b3eb3cSopenharmony_ci NODE_TEXT_AREA_CONTENT_RECT, 298123b3eb3cSopenharmony_ci /** 298223b3eb3cSopenharmony_ci * @brief 获取已编辑文本内容的行数。 298323b3eb3cSopenharmony_ci * 298423b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 298523b3eb3cSopenharmony_ci * value[0].i32:已编辑文本内容行数。\n 298623b3eb3cSopenharmony_ci * 298723b3eb3cSopenharmony_ci */ 298823b3eb3cSopenharmony_ci NODE_TEXT_AREA_CONTENT_LINE_COUNT, 298923b3eb3cSopenharmony_ci /** 299023b3eb3cSopenharmony_ci * @brief 组件在获焦状态下,调用该接口设置文本选择区域并高亮显示,且只有在selectionStart小于selectionEnd时,文字才会被选取、高亮显示。 299123b3eb3cSopenharmony_ci * 299223b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 299323b3eb3cSopenharmony_ci * .value[0].i32:选中文本的起始位置;\n 299423b3eb3cSopenharmony_ci * .value[1].i32:选中文本的终止位置;\n 299523b3eb3cSopenharmony_ci * \n 299623b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 299723b3eb3cSopenharmony_ci * .value[0].i32:选中文本的起始位置;\n 299823b3eb3cSopenharmony_ci * .value[1].i32:选中文本的终止位置;\n 299923b3eb3cSopenharmony_ci * 300023b3eb3cSopenharmony_ci */ 300123b3eb3cSopenharmony_ci NODE_TEXT_AREA_TEXT_SELECTION, 300223b3eb3cSopenharmony_ci /** 300323b3eb3cSopenharmony_ci * @brief 设置是否启用自动填充。 300423b3eb3cSopenharmony_ci * 300523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 300623b3eb3cSopenharmony_ci * .value[0].i32: 是否启用自动填充,默认值true。\n 300723b3eb3cSopenharmony_ci * \n 300823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 300923b3eb3cSopenharmony_ci * .value[0].i32: 是否启用自动填充。\n 301023b3eb3cSopenharmony_ci * 301123b3eb3cSopenharmony_ci */ 301223b3eb3cSopenharmony_ci NODE_TEXT_AREA_ENABLE_AUTO_FILL, 301323b3eb3cSopenharmony_ci /** 301423b3eb3cSopenharmony_ci * @brief 自动填充类型。 301523b3eb3cSopenharmony_ci * 301623b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 301723b3eb3cSopenharmony_ci * .value[0].i32: 参数类型{@link ArkUI_TextInputContentType}。\n 301823b3eb3cSopenharmony_ci * \n 301923b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 302023b3eb3cSopenharmony_ci * .value[0].i32: 参数类型{@link ArkUI_TextInputContentType}。\n 302123b3eb3cSopenharmony_ci * 302223b3eb3cSopenharmony_ci */ 302323b3eb3cSopenharmony_ci NODE_TEXT_AREA_CONTENT_TYPE, 302423b3eb3cSopenharmony_ci 302523b3eb3cSopenharmony_ci /** 302623b3eb3cSopenharmony_ci * @brief 设置输入框获取焦点时是否弹出键盘,支持属性设置,属性重置和属性获取接口。 302723b3eb3cSopenharmony_ci * 302823b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 302923b3eb3cSopenharmony_ci * .value[0].i32: 是否弹出键盘。\n 303023b3eb3cSopenharmony_ci * \n 303123b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 303223b3eb3cSopenharmony_ci * .value[0].i32: 是否弹出键盘。\n 303323b3eb3cSopenharmony_ci * 303423b3eb3cSopenharmony_ci */ 303523b3eb3cSopenharmony_ci NODE_TEXT_AREA_SHOW_KEYBOARD_ON_FOCUS, 303623b3eb3cSopenharmony_ci 303723b3eb3cSopenharmony_ci /** 303823b3eb3cSopenharmony_ci * @brief 设置该属性后,通过该属性计算textArea组件的高度。 303923b3eb3cSopenharmony_ci * 304023b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式:\n 304123b3eb3cSopenharmony_ci * .value[0].i32: 设置numberOfLines的值。\n 304223b3eb3cSopenharmony_ci * \n 304323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式:\n 304423b3eb3cSopenharmony_ci * .value[0].i32: 设置numberOfLines的值。\n 304523b3eb3cSopenharmony_ci * 304623b3eb3cSopenharmony_ci */ 304723b3eb3cSopenharmony_ci NODE_TEXT_AREA_NUMBER_OF_LINES, 304823b3eb3cSopenharmony_ci /** 304923b3eb3cSopenharmony_ci * @brief Defines the button text content. This attribute can be set, reset, and obtained as required through APIs. 305023b3eb3cSopenharmony_ci * 305123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 305223b3eb3cSopenharmony_ci * .string: default text content. \n 305323b3eb3cSopenharmony_ci * \n 305423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 305523b3eb3cSopenharmony_ci * .string: default text content. \n 305623b3eb3cSopenharmony_ci * 305723b3eb3cSopenharmony_ci */ 305823b3eb3cSopenharmony_ci NODE_BUTTON_LABEL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_BUTTON, 305923b3eb3cSopenharmony_ci 306023b3eb3cSopenharmony_ci /** 306123b3eb3cSopenharmony_ci * @brief Sets the button type. This attribute can be set, reset, and obtained as required through APIs. 306223b3eb3cSopenharmony_ci * 306323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 306423b3eb3cSopenharmony_ci * .value[0].i32: button type. The parameter type is {@link ArkUI_ButtonType}. 306523b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BUTTON_TYPE_CAPSULE</b>. \n 306623b3eb3cSopenharmony_ci * \n 306723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 306823b3eb3cSopenharmony_ci * .value[0].i32: button type. The parameter type is {@link ArkUI_ButtonType}. 306923b3eb3cSopenharmony_ci * The default value is <b>ARKUI_BUTTON_TYPE_CAPSULE</b>. \n 307023b3eb3cSopenharmony_ci * 307123b3eb3cSopenharmony_ci */ 307223b3eb3cSopenharmony_ci NODE_BUTTON_TYPE, 307323b3eb3cSopenharmony_ci 307423b3eb3cSopenharmony_ci /** 307523b3eb3cSopenharmony_ci * @brief Defines the current value of the progress indicator. 307623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 307723b3eb3cSopenharmony_ci * 307823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 307923b3eb3cSopenharmony_ci * .value[0].f32: current value of the progress indicator. \n 308023b3eb3cSopenharmony_ci * \n 308123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 308223b3eb3cSopenharmony_ci * .value[0].f32: current value of the progress indicator. \n 308323b3eb3cSopenharmony_ci * 308423b3eb3cSopenharmony_ci */ 308523b3eb3cSopenharmony_ci NODE_PROGRESS_VALUE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_PROGRESS, 308623b3eb3cSopenharmony_ci /** 308723b3eb3cSopenharmony_ci * @brief Defines the total value of the progress indicator. 308823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 308923b3eb3cSopenharmony_ci * 309023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 309123b3eb3cSopenharmony_ci * .value[0].f32: total value of the progress indicator. \n 309223b3eb3cSopenharmony_ci * \n 309323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 309423b3eb3cSopenharmony_ci * .value[0].f32: total value of the progress indicator. \n 309523b3eb3cSopenharmony_ci * 309623b3eb3cSopenharmony_ci */ 309723b3eb3cSopenharmony_ci NODE_PROGRESS_TOTAL, 309823b3eb3cSopenharmony_ci /** 309923b3eb3cSopenharmony_ci * @brief Defines the color for the progress value on the progress indicator. 310023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 310123b3eb3cSopenharmony_ci * 310223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 310323b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. For example, 0xFFFF0000 indicates red. \n 310423b3eb3cSopenharmony_ci * \n 310523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 310623b3eb3cSopenharmony_ci * .value[0].u32: color value, in 0xARGB format. \n 310723b3eb3cSopenharmony_ci * 310823b3eb3cSopenharmony_ci */ 310923b3eb3cSopenharmony_ci NODE_PROGRESS_COLOR, 311023b3eb3cSopenharmony_ci /** 311123b3eb3cSopenharmony_ci * @brief Defines the type of the progress indicator. 311223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 311323b3eb3cSopenharmony_ci * 311423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 311523b3eb3cSopenharmony_ci * .value[0].i32: type of the progress indicator {@link ArkUI_ProgressType}. 311623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_PROGRESS_TYPE_LINEAR</b>. \n 311723b3eb3cSopenharmony_ci * \n 311823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 311923b3eb3cSopenharmony_ci * .value[0].i32: type of the progress indicator {@link ArkUI_ProgressType}. \n 312023b3eb3cSopenharmony_ci * 312123b3eb3cSopenharmony_ci */ 312223b3eb3cSopenharmony_ci NODE_PROGRESS_TYPE, 312323b3eb3cSopenharmony_ci 312423b3eb3cSopenharmony_ci /** 312523b3eb3cSopenharmony_ci * @brief Defines whether the check box is selected. 312623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 312723b3eb3cSopenharmony_ci * 312823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 312923b3eb3cSopenharmony_ci * .value[0].i32: whether the check box is selected. 313023b3eb3cSopenharmony_ci * The value <b>1</b> means that the check box is selected, and <b>0</b> means the opposite. \n 313123b3eb3cSopenharmony_ci * \n 313223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 313323b3eb3cSopenharmony_ci * .value[0].i32: The value <b>1</b> means that the check box is selected, and <b>0</b> means the opposite. \n 313423b3eb3cSopenharmony_ci * 313523b3eb3cSopenharmony_ci */ 313623b3eb3cSopenharmony_ci NODE_CHECKBOX_SELECT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_CHECKBOX, 313723b3eb3cSopenharmony_ci 313823b3eb3cSopenharmony_ci /** 313923b3eb3cSopenharmony_ci * @brief Defines the color of the check box when it is selected. 314023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 314123b3eb3cSopenharmony_ci * 314223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 314323b3eb3cSopenharmony_ci * .value[0].u32: color of the check box when it is selected, in 0xARGB format, for example, <b>0xFF1122FF</b>. \n 314423b3eb3cSopenharmony_ci * \n 314523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 314623b3eb3cSopenharmony_ci * .value[0].u32: color of the check box when it is selected, in 0xARGB format, for example, <b>0xFF1122FF</b>. 314723b3eb3cSopenharmony_ci * 314823b3eb3cSopenharmony_ci */ 314923b3eb3cSopenharmony_ci NODE_CHECKBOX_SELECT_COLOR, 315023b3eb3cSopenharmony_ci 315123b3eb3cSopenharmony_ci /** 315223b3eb3cSopenharmony_ci * @brief Defines the border color of the check box when it is not selected. 315323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 315423b3eb3cSopenharmony_ci * 315523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 315623b3eb3cSopenharmony_ci * .value[0].u32: border color, in 0xARGB format, for example, <b>0xFF1122FF</b>. \n 315723b3eb3cSopenharmony_ci * \n 315823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 315923b3eb3cSopenharmony_ci * .value[0].u32: border color, in 0xARGB format, for example, <b>0xFF1122FF</b>. 316023b3eb3cSopenharmony_ci * 316123b3eb3cSopenharmony_ci */ 316223b3eb3cSopenharmony_ci NODE_CHECKBOX_UNSELECT_COLOR, 316323b3eb3cSopenharmony_ci 316423b3eb3cSopenharmony_ci /** 316523b3eb3cSopenharmony_ci * @brief Defines the internal icon style of the check box. 316623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 316723b3eb3cSopenharmony_ci * 316823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 316923b3eb3cSopenharmony_ci * .value[0].u32: border color, in 0xARGB format, for example, <b>0xFF1122FF</b>.\n 317023b3eb3cSopenharmony_ci * .value[1]?.f32: size of the internal mark, in vp. Optional.\n 317123b3eb3cSopenharmony_ci * .value[2]?.f32: stroke width of the internal mark, in vp. Optional. The default value is <b>2</b>. \n 317223b3eb3cSopenharmony_ci * \n 317323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 317423b3eb3cSopenharmony_ci * .value[0].u32: border color, in 0xARGB format, for example, <b>0xFF1122FF</b>.\n 317523b3eb3cSopenharmony_ci * .value[1].f32: size of the internal mark, in vp. \n 317623b3eb3cSopenharmony_ci * .value[2].f32: stroke width of the internal mark, in vp. The default value is <b>2</b>. \n 317723b3eb3cSopenharmony_ci * 317823b3eb3cSopenharmony_ci */ 317923b3eb3cSopenharmony_ci NODE_CHECKBOX_MARK, 318023b3eb3cSopenharmony_ci 318123b3eb3cSopenharmony_ci /** 318223b3eb3cSopenharmony_ci * @brief Defines the shape of the check box. 318323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 318423b3eb3cSopenharmony_ci * 318523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 318623b3eb3cSopenharmony_ci * .value[0].i32: component shape. The parameter type is {@link ArkUI_CheckboxShape}. \n 318723b3eb3cSopenharmony_ci * \n 318823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 318923b3eb3cSopenharmony_ci * .value[0].i32: component shape. The parameter type is {@link ArkUI_CheckboxShape}. 319023b3eb3cSopenharmony_ci * 319123b3eb3cSopenharmony_ci */ 319223b3eb3cSopenharmony_ci NODE_CHECKBOX_SHAPE, 319323b3eb3cSopenharmony_ci 319423b3eb3cSopenharmony_ci /** 319523b3eb3cSopenharmony_ci * @brief Defines the ID of the <b><XComponent></b> component. 319623b3eb3cSopenharmony_ci * This attribute can be set and obtained as required through APIs. 319723b3eb3cSopenharmony_ci * 319823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 319923b3eb3cSopenharmony_ci * .string: component ID. \n 320023b3eb3cSopenharmony_ci * \n 320123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 320223b3eb3cSopenharmony_ci * .string: component ID. \n 320323b3eb3cSopenharmony_ci * 320423b3eb3cSopenharmony_ci */ 320523b3eb3cSopenharmony_ci NODE_XCOMPONENT_ID = MAX_NODE_SCOPE_NUM * ARKUI_NODE_XCOMPONENT, 320623b3eb3cSopenharmony_ci /** 320723b3eb3cSopenharmony_ci * @brief Defines the type of the <b><XComponent></b> component. 320823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 320923b3eb3cSopenharmony_ci * 321023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 321123b3eb3cSopenharmony_ci * .value[0].i32: type {@link ArkUI_XComponentType}. The default value is <b>ARKUI_XCOMPONENT_TYPE_SURFACE</b>. \n 321223b3eb3cSopenharmony_ci * \n 321323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 321423b3eb3cSopenharmony_ci * .value[0].i32: type {@link ArkUI_XComponentType}. \n 321523b3eb3cSopenharmony_ci * 321623b3eb3cSopenharmony_ci */ 321723b3eb3cSopenharmony_ci NODE_XCOMPONENT_TYPE, 321823b3eb3cSopenharmony_ci /** 321923b3eb3cSopenharmony_ci * @brief Defines the width and height of the <b><XComponent></b> component. 322023b3eb3cSopenharmony_ci * This attribute can be set and obtained as required through APIs. 322123b3eb3cSopenharmony_ci * 322223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 322323b3eb3cSopenharmony_ci * .value[0].u32: width, in px. \n 322423b3eb3cSopenharmony_ci * .value[1].u32: height, in px. \n 322523b3eb3cSopenharmony_ci * \n 322623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 322723b3eb3cSopenharmony_ci * .value[0].u32: width, in px. \n 322823b3eb3cSopenharmony_ci * .value[1].u32: height, in px. \n 322923b3eb3cSopenharmony_ci * 323023b3eb3cSopenharmony_ci */ 323123b3eb3cSopenharmony_ci NODE_XCOMPONENT_SURFACE_SIZE, 323223b3eb3cSopenharmony_ci 323323b3eb3cSopenharmony_ci /** 323423b3eb3cSopenharmony_ci * @brief Defines whether to display the lunar calendar in the date picker. 323523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 323623b3eb3cSopenharmony_ci * 323723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 323823b3eb3cSopenharmony_ci * .value[0].i32: whether to display the lunar calendar in the date picker. The default value is <b>false</b>. \n 323923b3eb3cSopenharmony_ci * \n 324023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 324123b3eb3cSopenharmony_ci * .value[0].i32: whether to display the lunar calendar in the date picker. 324223b3eb3cSopenharmony_ci * 324323b3eb3cSopenharmony_ci */ 324423b3eb3cSopenharmony_ci NODE_DATE_PICKER_LUNAR = MAX_NODE_SCOPE_NUM * ARKUI_NODE_DATE_PICKER, 324523b3eb3cSopenharmony_ci /** 324623b3eb3cSopenharmony_ci * @brief Defines the start date of the date picker. 324723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 324823b3eb3cSopenharmony_ci * 324923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 325023b3eb3cSopenharmony_ci * .string: date. The default value is <b>"1970-1-1"</b>. \n 325123b3eb3cSopenharmony_ci * \n 325223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 325323b3eb3cSopenharmony_ci * .string: date. \n 325423b3eb3cSopenharmony_ci * 325523b3eb3cSopenharmony_ci */ 325623b3eb3cSopenharmony_ci NODE_DATE_PICKER_START, 325723b3eb3cSopenharmony_ci /** 325823b3eb3cSopenharmony_ci * @brief Defines the end date of the date picker. 325923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 326023b3eb3cSopenharmony_ci * 326123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 326223b3eb3cSopenharmony_ci * .string: date. The default value is <b>"2100-12-31"</b>. \n 326323b3eb3cSopenharmony_ci * \n 326423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 326523b3eb3cSopenharmony_ci * .string: date. \n 326623b3eb3cSopenharmony_ci * 326723b3eb3cSopenharmony_ci */ 326823b3eb3cSopenharmony_ci NODE_DATE_PICKER_END, 326923b3eb3cSopenharmony_ci /** 327023b3eb3cSopenharmony_ci * @brief Defines the selected date of the date picker. 327123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 327223b3eb3cSopenharmony_ci * 327323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 327423b3eb3cSopenharmony_ci * .string: date. The default value is <b>"2024-01-22"</b>. \n 327523b3eb3cSopenharmony_ci * \n 327623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 327723b3eb3cSopenharmony_ci * .string: date. 327823b3eb3cSopenharmony_ci * 327923b3eb3cSopenharmony_ci */ 328023b3eb3cSopenharmony_ci NODE_DATE_PICKER_SELECTED, 328123b3eb3cSopenharmony_ci /** 328223b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight for the top and bottom items in the date picker. 328323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 328423b3eb3cSopenharmony_ci * 328523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 328623b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 328723b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 328823b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 328923b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 329023b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 329123b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 329223b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 329323b3eb3cSopenharmony_ci * \n 329423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 329523b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 329623b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 329723b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 329823b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 329923b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 330023b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 330123b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 330223b3eb3cSopenharmony_ci * 330323b3eb3cSopenharmony_ci */ 330423b3eb3cSopenharmony_ci NODE_DATE_PICKER_DISAPPEAR_TEXT_STYLE, 330523b3eb3cSopenharmony_ci /** 330623b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight of all items except the top, bottom, and selected 330723b3eb3cSopenharmony_ci * items in the date picker. This attribute can be set, reset, and obtained as required through APIs. 330823b3eb3cSopenharmony_ci * 330923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 331023b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 331123b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 331223b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 331323b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 331423b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 331523b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 331623b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 331723b3eb3cSopenharmony_ci * \n 331823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 331923b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 332023b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 332123b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 332223b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 332323b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 332423b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 332523b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 332623b3eb3cSopenharmony_ci * 332723b3eb3cSopenharmony_ci */ 332823b3eb3cSopenharmony_ci NODE_DATE_PICKER_TEXT_STYLE, 332923b3eb3cSopenharmony_ci /** 333023b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight of the selected item in the date picker. 333123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 333223b3eb3cSopenharmony_ci * 333323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 333423b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 333523b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 333623b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 333723b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 333823b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 333923b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 334023b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 334123b3eb3cSopenharmony_ci * \n 334223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 334323b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 334423b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 334523b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 334623b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 334723b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 334823b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 334923b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 335023b3eb3cSopenharmony_ci * 335123b3eb3cSopenharmony_ci */ 335223b3eb3cSopenharmony_ci NODE_DATE_PICKER_SELECTED_TEXT_STYLE, 335323b3eb3cSopenharmony_ci /** 335423b3eb3cSopenharmony_ci * @brief Defines the time of the selected item. in the timer picker. 335523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 335623b3eb3cSopenharmony_ci * 335723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 335823b3eb3cSopenharmony_ci * .string: time. The default value is the current system time. \n 335923b3eb3cSopenharmony_ci * \n 336023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 336123b3eb3cSopenharmony_ci * .string: time. 336223b3eb3cSopenharmony_ci * 336323b3eb3cSopenharmony_ci */ 336423b3eb3cSopenharmony_ci 336523b3eb3cSopenharmony_ci NODE_TIME_PICKER_SELECTED = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TIME_PICKER, 336623b3eb3cSopenharmony_ci /** 336723b3eb3cSopenharmony_ci * @brief Defines whether the display time is in 24-hour format. 336823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 336923b3eb3cSopenharmony_ci * 337023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 337123b3eb3cSopenharmony_ci * .value[0].i32: whether the display time is in 24-hour format. The default value is <b>false</b>. \n 337223b3eb3cSopenharmony_ci * \n 337323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 337423b3eb3cSopenharmony_ci * .value[0].i32: whether the display time is in 24-hour format. 337523b3eb3cSopenharmony_ci * 337623b3eb3cSopenharmony_ci */ 337723b3eb3cSopenharmony_ci NODE_TIME_PICKER_USE_MILITARY_TIME, 337823b3eb3cSopenharmony_ci /** 337923b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight for the top and bottom items in the time picker. 338023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 338123b3eb3cSopenharmony_ci * 338223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 338323b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 338423b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 338523b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 338623b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 338723b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 338823b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 338923b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 339023b3eb3cSopenharmony_ci * \n 339123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 339223b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 339323b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 339423b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 339523b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 339623b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 339723b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 339823b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 339923b3eb3cSopenharmony_ci * 340023b3eb3cSopenharmony_ci */ 340123b3eb3cSopenharmony_ci NODE_TIME_PICKER_DISAPPEAR_TEXT_STYLE, 340223b3eb3cSopenharmony_ci /** 340323b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight of all items except the top, bottom, and selected items 340423b3eb3cSopenharmony_ci * in the time picker. This attribute can be set, reset, and obtained as required through APIs. 340523b3eb3cSopenharmony_ci * 340623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 340723b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 340823b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 340923b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 341023b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 341123b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 341223b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 341323b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 341423b3eb3cSopenharmony_ci * \n 341523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 341623b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 341723b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 341823b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 341923b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 342023b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 342123b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 342223b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 342323b3eb3cSopenharmony_ci * 342423b3eb3cSopenharmony_ci */ 342523b3eb3cSopenharmony_ci NODE_TIME_PICKER_TEXT_STYLE, 342623b3eb3cSopenharmony_ci /** 342723b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight of the selected item in the time picker. 342823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 342923b3eb3cSopenharmony_ci * 343023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 343123b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 343223b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 343323b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 343423b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 343523b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 343623b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 343723b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 343823b3eb3cSopenharmony_ci * \n 343923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 344023b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 344123b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 344223b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 344323b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 344423b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 344523b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 344623b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 344723b3eb3cSopenharmony_ci * 344823b3eb3cSopenharmony_ci */ 344923b3eb3cSopenharmony_ci NODE_TIME_PICKER_SELECTED_TEXT_STYLE, 345023b3eb3cSopenharmony_ci 345123b3eb3cSopenharmony_ci /** 345223b3eb3cSopenharmony_ci * @brief Defines the data selection range of the text picker. 345323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 345423b3eb3cSopenharmony_ci * 345523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 345623b3eb3cSopenharmony_ci * .value[0].i32: type of the text picker {@link ArkUI_TextPickerRangeType}. 345723b3eb3cSopenharmony_ci * The default value is <b>ARKUI_TEXTPICKER_RANGETYPE_SINGLE</b>. \n 345823b3eb3cSopenharmony_ci * ?.string: string input, whose format varies by picker type.\n 345923b3eb3cSopenharmony_ci * 1: single-column picker. The input format is a group of strings separated by semicolons (;).\n 346023b3eb3cSopenharmony_ci * 2: multi-column picker. Multiple pairs of plain text strings are supported. The pairs are separated by 346123b3eb3cSopenharmony_ci * semicolons (;), and strings within each pair are separated by commas (,). \n 346223b3eb3cSopenharmony_ci * ?.object: Object input, whose format varies by picker type.\n 346323b3eb3cSopenharmony_ci * 1: single-column picker with image support. The input structure is {@link ARKUI_TextPickerRangeContent}.\n 346423b3eb3cSopenharmony_ci * 2: multi-column interconnected picker. The input structure is {@link ARKUI_TextPickerCascadeRangeContent}.\n 346523b3eb3cSopenharmony_ci * \n 346623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 346723b3eb3cSopenharmony_ci * .value[0].i32: type of the text picker {@link ArkUI_TextPickerRangeType}.\n 346823b3eb3cSopenharmony_ci * ?.string: string output, whose format varies by picker type.\n 346923b3eb3cSopenharmony_ci * 1: single-column picker. The output format is a group of strings separated by semicolons (;).\n 347023b3eb3cSopenharmony_ci * 2: multi-column picker. Multiple pairs of plain text strings are supported. The pairs are separated by 347123b3eb3cSopenharmony_ci * semicolons (;), and strings within each pair are separated by commas (,). \n 347223b3eb3cSopenharmony_ci * ?.string: Object output, whose format varies by picker type.\n 347323b3eb3cSopenharmony_ci * 1: single-column picker with image support. The output structure is {@link ARKUI_TextPickerRangeContent}.\n 347423b3eb3cSopenharmony_ci * 2: multi-column interconnected picker. The output structure is {@link ARKUI_TextPickerCascadeRangeContent}.\n 347523b3eb3cSopenharmony_ci * 347623b3eb3cSopenharmony_ci */ 347723b3eb3cSopenharmony_ci NODE_TEXT_PICKER_OPTION_RANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_PICKER, 347823b3eb3cSopenharmony_ci /** 347923b3eb3cSopenharmony_ci * @brief Defines the index of the default selected item in the data selection range of the text picker. 348023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 348123b3eb3cSopenharmony_ci * 348223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 348323b3eb3cSopenharmony_ci * .value[0].u32: index. If there are multiple index values, add them one by one. \n 348423b3eb3cSopenharmony_ci * \n 348523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 348623b3eb3cSopenharmony_ci * .value[0].u32: index. If there are multiple index values, add them one by one.\n 348723b3eb3cSopenharmony_ci * 348823b3eb3cSopenharmony_ci */ 348923b3eb3cSopenharmony_ci NODE_TEXT_PICKER_OPTION_SELECTED, 349023b3eb3cSopenharmony_ci /** 349123b3eb3cSopenharmony_ci * @brief Defines the value of the default selected item in the text picker. 349223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 349323b3eb3cSopenharmony_ci * 349423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 349523b3eb3cSopenharmony_ci * .string: value of the selected item. If there are multiple values, add them one by one and 349623b3eb3cSopenharmony_ci * separate them with semicolons (;). \n 349723b3eb3cSopenharmony_ci * \n 349823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 349923b3eb3cSopenharmony_ci * .string: value of the selected item. If there are multiple values, add them one by one and 350023b3eb3cSopenharmony_ci * separate them with semicolons (;).\n 350123b3eb3cSopenharmony_ci * 350223b3eb3cSopenharmony_ci */ 350323b3eb3cSopenharmony_ci NODE_TEXT_PICKER_OPTION_VALUE, 350423b3eb3cSopenharmony_ci /** 350523b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight for the top and bottom items in the text picker. 350623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 350723b3eb3cSopenharmony_ci * 350823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 350923b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 351023b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 351123b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 351223b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 351323b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 351423b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 351523b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 351623b3eb3cSopenharmony_ci * \n 351723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 351823b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 351923b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 352023b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 352123b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 352223b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 352323b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 352423b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 352523b3eb3cSopenharmony_ci * 352623b3eb3cSopenharmony_ci */ 352723b3eb3cSopenharmony_ci NODE_TEXT_PICKER_DISAPPEAR_TEXT_STYLE, 352823b3eb3cSopenharmony_ci /** 352923b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight for all items except the top, bottom, and selected 353023b3eb3cSopenharmony_ci * items in the text picker. This attribute can be set, reset, and obtained as required through APIs. 353123b3eb3cSopenharmony_ci * 353223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 353323b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 353423b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 353523b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 353623b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 353723b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 353823b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 353923b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 354023b3eb3cSopenharmony_ci * \n 354123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 354223b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 354323b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 354423b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 354523b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 354623b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 354723b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 354823b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 354923b3eb3cSopenharmony_ci * 355023b3eb3cSopenharmony_ci */ 355123b3eb3cSopenharmony_ci NODE_TEXT_PICKER_TEXT_STYLE, 355223b3eb3cSopenharmony_ci /** 355323b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight for the selected item in the text picker. 355423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 355523b3eb3cSopenharmony_ci * 355623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 355723b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 355823b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 355923b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 356023b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 356123b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 356223b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 356323b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 356423b3eb3cSopenharmony_ci * \n 356523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 356623b3eb3cSopenharmony_ci * .string: array of five parameters of the string type, separated by semicolons (;).\n 356723b3eb3cSopenharmony_ci * Parameter 1: font color, in #ARGB format.\n 356823b3eb3cSopenharmony_ci * Parameter 2: font size, in fp. The value is a number.\n 356923b3eb3cSopenharmony_ci * Parameter 3: font weight. Available options are ("bold", "normal", "bolder", "lighter", "medium", "regular").\n. 357023b3eb3cSopenharmony_ci * Parameter 4: fonts, separated by commas (,).\n 357123b3eb3cSopenharmony_ci * Parameter 5: font style. Available options are ("normal", "italic").\n 357223b3eb3cSopenharmony_ci * Example: "#ff182431;14;normal;Arial,HarmonyOS Sans;normal". \n 357323b3eb3cSopenharmony_ci * 357423b3eb3cSopenharmony_ci */ 357523b3eb3cSopenharmony_ci NODE_TEXT_PICKER_SELECTED_TEXT_STYLE, 357623b3eb3cSopenharmony_ci /** 357723b3eb3cSopenharmony_ci * @brief Defines the index of the default selected item in the data selection range of the text picker. 357823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 357923b3eb3cSopenharmony_ci * 358023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 358123b3eb3cSopenharmony_ci * .value[0...].i32: index of the default item in the data selection range. 358223b3eb3cSopenharmony_ci * 358323b3eb3cSopenharmony_ci */ 358423b3eb3cSopenharmony_ci NODE_TEXT_PICKER_SELECTED_INDEX, 358523b3eb3cSopenharmony_ci /** 358623b3eb3cSopenharmony_ci * @brief Defines whether to support scroll looping for the text picker. 358723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 358823b3eb3cSopenharmony_ci * 358923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 359023b3eb3cSopenharmony_ci * .value[0].i32: whether to support scroll looping. The value <b>true</b> means to support scroll looping, and 359123b3eb3cSopenharmony_ci * <b>false</b> means the opposite.\n \n 359223b3eb3cSopenharmony_ci * \n 359323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 359423b3eb3cSopenharmony_ci * value[0].i32: The value <b>1</b> means to support scroll looping, and <b>0</b> means the opposite. \n 359523b3eb3cSopenharmony_ci * 359623b3eb3cSopenharmony_ci */ 359723b3eb3cSopenharmony_ci NODE_TEXT_PICKER_CAN_LOOP, 359823b3eb3cSopenharmony_ci /** 359923b3eb3cSopenharmony_ci * @brief Defines the height of each item in the picker. This attribute can be set, reset, and obtained as required 360023b3eb3cSopenharmony_ci * through APIs. 360123b3eb3cSopenharmony_ci * 360223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 360323b3eb3cSopenharmony_ci * .value[0].f32: item height, in vp. \n 360423b3eb3cSopenharmony_ci * \n 360523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 360623b3eb3cSopenharmony_ci * value[0].f32: item height, in vp. \n 360723b3eb3cSopenharmony_ci * 360823b3eb3cSopenharmony_ci */ 360923b3eb3cSopenharmony_ci NODE_TEXT_PICKER_DEFAULT_PICKER_ITEM_HEIGHT, 361023b3eb3cSopenharmony_ci /** 361123b3eb3cSopenharmony_ci * @brief Defines the style of the background in the selected state of the calendar picker. 361223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 361323b3eb3cSopenharmony_ci * 361423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 361523b3eb3cSopenharmony_ci * .value[0].f32: style of the background in the selected state of the calendar picker. 361623b3eb3cSopenharmony_ci * The value range is [0, +∞). If the value is <b>0</b>, the background is a rectangle with square corners. 361723b3eb3cSopenharmony_ci If the value is in the 0–16 range, the background is a rectangle with rounded corners. If the value is equal to 361823b3eb3cSopenharmony_ci * or greater than 16, the background is a circle. \n 361923b3eb3cSopenharmony_ci * \n 362023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 362123b3eb3cSopenharmony_ci * .value[0].f32: style of the background in the selected state of the calendar picker. The value range is [0, +∞). 362223b3eb3cSopenharmony_ci * If the value is <b>0</b>, the background is a rectangle with square corners. 362323b3eb3cSopenharmony_ci If the value is in the 0–16 range, the background is a rectangle with rounded corners. If the value is equal to or 362423b3eb3cSopenharmony_ci * greater than 16, the background is a circle. \n 362523b3eb3cSopenharmony_ci * 362623b3eb3cSopenharmony_ci */ 362723b3eb3cSopenharmony_ci NODE_CALENDAR_PICKER_HINT_RADIUS = MAX_NODE_SCOPE_NUM * ARKUI_NODE_CALENDAR_PICKER, 362823b3eb3cSopenharmony_ci /** 362923b3eb3cSopenharmony_ci * @brief Defines the date of the selected item in the calendar picker. 363023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 363123b3eb3cSopenharmony_ci * 363223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 363323b3eb3cSopenharmony_ci * .value[0].u32: year of the selected date. \n 363423b3eb3cSopenharmony_ci * .value[1].u32: month of the selected date. \n 363523b3eb3cSopenharmony_ci * .value[2].u32: day of the selected date. \n 363623b3eb3cSopenharmony_ci * \n 363723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 363823b3eb3cSopenharmony_ci * .value[0].u32: year of the selected date. \n 363923b3eb3cSopenharmony_ci * .value[1].u32: month of the selected date. \n 364023b3eb3cSopenharmony_ci * .value[2].u32: day of the selected date. \n 364123b3eb3cSopenharmony_ci * 364223b3eb3cSopenharmony_ci */ 364323b3eb3cSopenharmony_ci NODE_CALENDAR_PICKER_SELECTED_DATE, 364423b3eb3cSopenharmony_ci /** 364523b3eb3cSopenharmony_ci * @brief Defines how the calendar picker is aligned with the entry component. 364623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 364723b3eb3cSopenharmony_ci * 364823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 364923b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The parameter type is {@link ArkUI_CalendarAlignment}. \n 365023b3eb3cSopenharmony_ci * .value[1]?.f32: offset of the picker relative to the entry component along the x-axis after alignment based on 365123b3eb3cSopenharmony_ci * the specified alignment mode. \n 365223b3eb3cSopenharmony_ci * .value[2]?.f32: offset of the picker relative to the entry component along the y-axis after alignment based on 365323b3eb3cSopenharmony_ci * the specified alignment mode. \n 365423b3eb3cSopenharmony_ci * \n 365523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 365623b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The parameter type is {@link ArkUI_CalendarAlignment}. \n 365723b3eb3cSopenharmony_ci * .value[1]?.f32: offset of the picker relative to the entry component along the x-axis after alignment based on 365823b3eb3cSopenharmony_ci * the specified alignment mode. \n 365923b3eb3cSopenharmony_ci * .value[2]?.f32: offset of the picker relative to the entry component along the y-axis after alignment based on 366023b3eb3cSopenharmony_ci * the specified alignment mode. \n 366123b3eb3cSopenharmony_ci * 366223b3eb3cSopenharmony_ci */ 366323b3eb3cSopenharmony_ci NODE_CALENDAR_PICKER_EDGE_ALIGNMENT, 366423b3eb3cSopenharmony_ci /** 366523b3eb3cSopenharmony_ci * @brief Defines the font color, font size, and font weight in the entry area of the calendar picker. 366623b3eb3cSopenharmony_ci * 366723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 366823b3eb3cSopenharmony_ci * .value[0]?.u32: font color of the entry area. \n 366923b3eb3cSopenharmony_ci * .value[1]?.f32: font size of the entry area, in fp. \n 367023b3eb3cSopenharmony_ci * .value[2]?.i32: font weight of the entry area. The parameter type is {@link ArkUI_FontWeight}. \n 367123b3eb3cSopenharmony_ci * \n 367223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 367323b3eb3cSopenharmony_ci * .value[0].u32: font color of the entry area. \n 367423b3eb3cSopenharmony_ci * .value[1].f32: font size of the entry area, in fp. \n 367523b3eb3cSopenharmony_ci * .value[2].i32: font weight of the entry area. The parameter type is {@link ArkUI_FontWeight}. \n 367623b3eb3cSopenharmony_ci * 367723b3eb3cSopenharmony_ci */ 367823b3eb3cSopenharmony_ci NODE_CALENDAR_PICKER_TEXT_STYLE, 367923b3eb3cSopenharmony_ci /** 368023b3eb3cSopenharmony_ci * @brief Defines the color of the slider. This attribute can be set, reset, and obtained as required through APIs. 368123b3eb3cSopenharmony_ci * 368223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 368323b3eb3cSopenharmony_ci * .value[0].u32: color of the slider, in 0xARGB format, for example, <b>0xFF1122FF</b>. 368423b3eb3cSopenharmony_ci * \n 368523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 368623b3eb3cSopenharmony_ci * .value[0].u32: color of the slider, in 0xARGB format, for example, <b>0xFF1122FF</b>. 368723b3eb3cSopenharmony_ci * 368823b3eb3cSopenharmony_ci */ 368923b3eb3cSopenharmony_ci NODE_SLIDER_BLOCK_COLOR = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SLIDER, 369023b3eb3cSopenharmony_ci 369123b3eb3cSopenharmony_ci /** 369223b3eb3cSopenharmony_ci * @brief Defines the background color of the slider. This attribute can be set, reset, and obtained as required 369323b3eb3cSopenharmony_ci * through APIs. 369423b3eb3cSopenharmony_ci * 369523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 369623b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format, for example, <b>0xFF1122FF</b>. \n 369723b3eb3cSopenharmony_ci * \n 369823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 369923b3eb3cSopenharmony_ci * .value[0].u32: background color, in 0xARGB format, for example, <b>0xFF1122FF</b>. 370023b3eb3cSopenharmony_ci * 370123b3eb3cSopenharmony_ci */ 370223b3eb3cSopenharmony_ci NODE_SLIDER_TRACK_COLOR, 370323b3eb3cSopenharmony_ci 370423b3eb3cSopenharmony_ci /** 370523b3eb3cSopenharmony_ci * @brief Defines the color of the selected part of the slider track. This attribute can be set, reset, and obtained 370623b3eb3cSopenharmony_ci * as required through APIs. 370723b3eb3cSopenharmony_ci * 370823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 370923b3eb3cSopenharmony_ci * .value[0].u32: color of the selected part of the slider track, in 0xARGB format, for example, <b>0xFF1122FF</b>. \n 371023b3eb3cSopenharmony_ci * \n 371123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 371223b3eb3cSopenharmony_ci * .value[0].u32: color of the selected part of the slider track, in 0xARGB format, for example, <b>0xFF1122FF</b>. 371323b3eb3cSopenharmony_ci * 371423b3eb3cSopenharmony_ci */ 371523b3eb3cSopenharmony_ci NODE_SLIDER_SELECTED_COLOR, 371623b3eb3cSopenharmony_ci 371723b3eb3cSopenharmony_ci /** 371823b3eb3cSopenharmony_ci * @brief Sets whether to display the stepping value. This attribute can be set, reset, and obtained as required 371923b3eb3cSopenharmony_ci * through APIs. 372023b3eb3cSopenharmony_ci * 372123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 372223b3eb3cSopenharmony_ci * .value[0].i32: whether to display the stepping value. The value <b>1</b> means to display the stepping value, 372323b3eb3cSopenharmony_ci * and <b>0</b> (default value) means the opposite. \n 372423b3eb3cSopenharmony_ci * \n 372523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 372623b3eb3cSopenharmony_ci * .value[0].i32: whether to display the stepping value. The value <b>1</b> means to display the stepping value, 372723b3eb3cSopenharmony_ci * and <b>0</b> (default value) means the opposite. \n 372823b3eb3cSopenharmony_ci * 372923b3eb3cSopenharmony_ci */ 373023b3eb3cSopenharmony_ci NODE_SLIDER_SHOW_STEPS, 373123b3eb3cSopenharmony_ci 373223b3eb3cSopenharmony_ci /** 373323b3eb3cSopenharmony_ci * @brief Defines the slider shape, which can be set, reset, and obtained as required through APIs. 373423b3eb3cSopenharmony_ci * 373523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 373623b3eb3cSopenharmony_ci * .value[0].i32: shape. The parameter type is {@link ArkUI_SliderBlockStyle}. \n 373723b3eb3cSopenharmony_ci * .string?: depending on the shape. Optional. \n 373823b3eb3cSopenharmony_ci * ARKUI_SLIDER_BLOCK_STYLE_IMAGE: image resource of the slider. Example: /pages/common/icon.png. \n 373923b3eb3cSopenharmony_ci * ARKUI_SLIDER_BLOCK_STYLE_SHAPE: custom shape of the slider. \n 374023b3eb3cSopenharmony_ci * There are five types:\n 374123b3eb3cSopenharmony_ci * 1. Rectangle:\n 374223b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 374323b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_RECTANGLE</b> for the rectangle shape.\n 374423b3eb3cSopenharmony_ci * .value[2].f32: width of the rectangle.\n 374523b3eb3cSopenharmony_ci * .value[3].f32: height of the rectangle.\n 374623b3eb3cSopenharmony_ci * .value[4].f32: width of the rounded corner of the rectangle.\n 374723b3eb3cSopenharmony_ci * .value[5].f32: height of the rounded corner of the rectangle.\n 374823b3eb3cSopenharmony_ci * 2. Circle:\n 374923b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 375023b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_CIRCLE</b> for the circle shape.\n 375123b3eb3cSopenharmony_ci * .value[2].f32: width of the circle.\n 375223b3eb3cSopenharmony_ci * .value[3].f32: height of the circle.\n 375323b3eb3cSopenharmony_ci * 3.Ellipse:\n 375423b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 375523b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_ELLIPSE</b> for the ellipse shape.\n 375623b3eb3cSopenharmony_ci * .value[2].f32: width of the ellipse.\n 375723b3eb3cSopenharmony_ci * .value[3].f32: height of the ellipse;\n 375823b3eb3cSopenharmony_ci * 4. Path:\n 375923b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 376023b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_PATH</b> for the path shape.\n 376123b3eb3cSopenharmony_ci * .value[2].f32: width of the path.\n 376223b3eb3cSopenharmony_ci * .value[3].f32: height of the path.\n 376323b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 376423b3eb3cSopenharmony_ci * \n 376523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 376623b3eb3cSopenharmony_ci * .value[0].i32: shape. The parameter type is {@link ArkUI_SliderBlockStyle}. \n 376723b3eb3cSopenharmony_ci * .string?: depending on the shape. Optional. \n 376823b3eb3cSopenharmony_ci * ARKUI_SLIDER_BLOCK_STYLE_IMAGE: image resource of the slider. Example: /pages/common/icon.png. \n 376923b3eb3cSopenharmony_ci * ARKUI_SLIDER_BLOCK_STYLE_SHAPE: custom shape of the slider. \n 377023b3eb3cSopenharmony_ci * There are five types:\n 377123b3eb3cSopenharmony_ci * 1. Rectangle:\n 377223b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 377323b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_RECTANGLE</b> for the rectangle shape.\n 377423b3eb3cSopenharmony_ci * .value[2].f32: width of the rectangle.\n 377523b3eb3cSopenharmony_ci * .value[3].f32: height of the rectangle.\n 377623b3eb3cSopenharmony_ci * .value[4].f32: width of the rounded corner of the rectangle.\n 377723b3eb3cSopenharmony_ci * .value[5].f32: height of the rounded corner of the rectangle.\n 377823b3eb3cSopenharmony_ci * 2. Circle:\n 377923b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 378023b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_CIRCLE</b> for the circle shape.\n 378123b3eb3cSopenharmony_ci * .value[2].f32: width of the circle.\n 378223b3eb3cSopenharmony_ci * .value[3].f32: height of the circle.\n 378323b3eb3cSopenharmony_ci * 3.Ellipse:\n 378423b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 378523b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_ELLIPSE</b> for the ellipse shape.\n 378623b3eb3cSopenharmony_ci * .value[2].f32: width of the ellipse.\n 378723b3eb3cSopenharmony_ci * .value[3].f32: height of the ellipse;\n 378823b3eb3cSopenharmony_ci * 4. Path:\n 378923b3eb3cSopenharmony_ci * .value[1].i32: type of shape. The parameter type is {@link ArkUI_ShapeType}. 379023b3eb3cSopenharmony_ci * The value is <b>ARKUI_SHAPE_TYPE_PATH</b> for the path shape.\n 379123b3eb3cSopenharmony_ci * .value[2].f32: width of the path.\n 379223b3eb3cSopenharmony_ci * .value[3].f32: height of the path.\n 379323b3eb3cSopenharmony_ci * .string: command for drawing the path.\n 379423b3eb3cSopenharmony_ci * 379523b3eb3cSopenharmony_ci */ 379623b3eb3cSopenharmony_ci NODE_SLIDER_BLOCK_STYLE, 379723b3eb3cSopenharmony_ci 379823b3eb3cSopenharmony_ci /** 379923b3eb3cSopenharmony_ci * @brief Defines the current value of the slider. This attribute can be set, reset, and obtained as required 380023b3eb3cSopenharmony_ci * through APIs. 380123b3eb3cSopenharmony_ci * 380223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 380323b3eb3cSopenharmony_ci * .value[0].f32: current value. \n 380423b3eb3cSopenharmony_ci * \n 380523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 380623b3eb3cSopenharmony_ci * .value[0].f32: current value. 380723b3eb3cSopenharmony_ci * 380823b3eb3cSopenharmony_ci */ 380923b3eb3cSopenharmony_ci NODE_SLIDER_VALUE, 381023b3eb3cSopenharmony_ci 381123b3eb3cSopenharmony_ci /** 381223b3eb3cSopenharmony_ci * @brief Defines the minimum value of the slider. This attribute can be set, reset, and obtained as required 381323b3eb3cSopenharmony_ci * through APIs. 381423b3eb3cSopenharmony_ci * 381523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 381623b3eb3cSopenharmony_ci * .value[0].f32: minimum value. \n 381723b3eb3cSopenharmony_ci * \n 381823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 381923b3eb3cSopenharmony_ci * .value[0].f32: minimum value. 382023b3eb3cSopenharmony_ci * 382123b3eb3cSopenharmony_ci */ 382223b3eb3cSopenharmony_ci NODE_SLIDER_MIN_VALUE, 382323b3eb3cSopenharmony_ci 382423b3eb3cSopenharmony_ci /** 382523b3eb3cSopenharmony_ci * @brief Defines the maximum value of the slider. This attribute can be set, reset, and obtained as required 382623b3eb3cSopenharmony_ci * through APIs. 382723b3eb3cSopenharmony_ci * 382823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 382923b3eb3cSopenharmony_ci * .value[0].f32: maximum value. \n 383023b3eb3cSopenharmony_ci * \n 383123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 383223b3eb3cSopenharmony_ci * .value[0].f32: maximum value. 383323b3eb3cSopenharmony_ci * 383423b3eb3cSopenharmony_ci */ 383523b3eb3cSopenharmony_ci NODE_SLIDER_MAX_VALUE, 383623b3eb3cSopenharmony_ci 383723b3eb3cSopenharmony_ci /** 383823b3eb3cSopenharmony_ci * @brief Defines the step of the slider. This attribute can be set, reset, and obtained as required through APIs. 383923b3eb3cSopenharmony_ci * 384023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 384123b3eb3cSopenharmony_ci * .value[0].f32: step. The value range is [0.01, 100]. \n 384223b3eb3cSopenharmony_ci * \n 384323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 384423b3eb3cSopenharmony_ci * .value[0].f32: step. The value range is [0.01, 100]. 384523b3eb3cSopenharmony_ci * 384623b3eb3cSopenharmony_ci */ 384723b3eb3cSopenharmony_ci NODE_SLIDER_STEP, 384823b3eb3cSopenharmony_ci 384923b3eb3cSopenharmony_ci /** 385023b3eb3cSopenharmony_ci * @brief Defines whether the slider moves horizontally or vertically. This attribute can be set, reset, and 385123b3eb3cSopenharmony_ci * obtained as required through APIs. 385223b3eb3cSopenharmony_ci * 385323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 385423b3eb3cSopenharmony_ci * .value[0].i32: whether the slider moves horizontally or vertically. 385523b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_SliderDirection}. \n 385623b3eb3cSopenharmony_ci * \n 385723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 385823b3eb3cSopenharmony_ci * .value[0].i32: whether the slider moves horizontally or vertically. 385923b3eb3cSopenharmony_ci * 386023b3eb3cSopenharmony_ci */ 386123b3eb3cSopenharmony_ci NODE_SLIDER_DIRECTION, 386223b3eb3cSopenharmony_ci 386323b3eb3cSopenharmony_ci /** 386423b3eb3cSopenharmony_ci * @brief Defines whether the slider values are reversed. This attribute can be set, reset, and obtained as required 386523b3eb3cSopenharmony_ci * through APIs. 386623b3eb3cSopenharmony_ci * 386723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 386823b3eb3cSopenharmony_ci * .value[0].i32: whether the slider values are reversed. The value <b>1</b> means that the slider values are 386923b3eb3cSopenharmony_ci * reversed, and <b>0</b> means the opposite. \n 387023b3eb3cSopenharmony_ci * \n 387123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 387223b3eb3cSopenharmony_ci * .value[0].i32: whether the slider values are reversed. The value <b>1</b> means that the slider values are 387323b3eb3cSopenharmony_ci * reversed, and <b>0</b> means the opposite. 387423b3eb3cSopenharmony_ci * 387523b3eb3cSopenharmony_ci */ 387623b3eb3cSopenharmony_ci NODE_SLIDER_REVERSE, 387723b3eb3cSopenharmony_ci 387823b3eb3cSopenharmony_ci /** 387923b3eb3cSopenharmony_ci * @brief Defines the style of the slider thumb and track. This attribute can be set, reset, and obtained 388023b3eb3cSopenharmony_ci * as required through APIs. 388123b3eb3cSopenharmony_ci * 388223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 388323b3eb3cSopenharmony_ci * .value[0].i32: style of the slider thumb and track. The parameter type is {@link ArkUI_SliderStyle}. \n 388423b3eb3cSopenharmony_ci * \n 388523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 388623b3eb3cSopenharmony_ci * .value[0].i32: style of the slider thumb and track. The parameter type is {@link ArkUI_SliderStyle}. 388723b3eb3cSopenharmony_ci * 388823b3eb3cSopenharmony_ci */ 388923b3eb3cSopenharmony_ci NODE_SLIDER_STYLE, 389023b3eb3cSopenharmony_ci 389123b3eb3cSopenharmony_ci /** 389223b3eb3cSopenharmony_ci * @brief Sets the track thickness of the slider. 389323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 389423b3eb3cSopenharmony_ci * 389523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 389623b3eb3cSopenharmony_ci * .value[0].f32: track thickness of the slider, in vp. The default value is 4.0 vp when <b>NODE_SLIDER_STYLE</b> 389723b3eb3cSopenharmony_ci * is set to <b>ARKUI_SLIDER_STYLE_OUT_SET</b> and 20.0 vp when <b>NODE_SLIDER_STYLE</b> is set to 389823b3eb3cSopenharmony_ci * <b>ARKUI_SLIDER_STYLE_IN_SET</b>. \n 389923b3eb3cSopenharmony_ci * \n 390023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 390123b3eb3cSopenharmony_ci * .value[0].f32: track thickness of the slider, in vp. \n 390223b3eb3cSopenharmony_ci * 390323b3eb3cSopenharmony_ci */ 390423b3eb3cSopenharmony_ci NODE_SLIDER_TRACK_THICKNESS, 390523b3eb3cSopenharmony_ci 390623b3eb3cSopenharmony_ci /** 390723b3eb3cSopenharmony_ci * @brief Sets whether the radio button is selected. 390823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 390923b3eb3cSopenharmony_ci * 391023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 391123b3eb3cSopenharmony_ci * .value[0].i32: whether the radio button is selected. The default value is <b>false</b>. 391223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 391323b3eb3cSopenharmony_ci * .value[0].i32: whether the radio button is selected. 391423b3eb3cSopenharmony_ci * 391523b3eb3cSopenharmony_ci */ 391623b3eb3cSopenharmony_ci NODE_RADIO_CHECKED = MAX_NODE_SCOPE_NUM * ARKUI_NODE_RADIO, 391723b3eb3cSopenharmony_ci /** 391823b3eb3cSopenharmony_ci * @brief Sets the style of the radio button in selected or deselected state. 391923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 392023b3eb3cSopenharmony_ci * 392123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 392223b3eb3cSopenharmony_ci * .value[0]?.u32: color of the background when the radio button is selected, in 0xARGB format. 392323b3eb3cSopenharmony_ci * The default value is <b>0xFF007DFF</b>. \n 392423b3eb3cSopenharmony_ci * .value[1]?.u32: color of the border when the radio button is deselected, in 0xARGB format. 392523b3eb3cSopenharmony_ci * The default value is <b>0xFF182431</b>. \n 392623b3eb3cSopenharmony_ci * .value[2]?.u32: color of the indicator when the radio button is selected, in 0xARGB format. 392723b3eb3cSopenharmony_ci * The default value is <b>0xFFFFFFFF</b>. \n 392823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 392923b3eb3cSopenharmony_ci * .value[0].u32: color of the background when the radio button is selected, in 0xARGB format. 393023b3eb3cSopenharmony_ci * The default value is <b>0xFF007DFF</b>. \n 393123b3eb3cSopenharmony_ci * .value[1].u32: color of the border when the radio button is deselected, in 0xARGB format. 393223b3eb3cSopenharmony_ci * The default value is <b>0xFF182431</b>. \n 393323b3eb3cSopenharmony_ci * .value[2].u32: color of the indicator when the radio button is selected, in 0xARGB format. 393423b3eb3cSopenharmony_ci * The default value is <b>0xFFFFFFFF</b>. \n 393523b3eb3cSopenharmony_ci * 393623b3eb3cSopenharmony_ci */ 393723b3eb3cSopenharmony_ci NODE_RADIO_STYLE, 393823b3eb3cSopenharmony_ci /** 393923b3eb3cSopenharmony_ci * @brief Sets the current value of the radio button. 394023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 394123b3eb3cSopenharmony_ci * 394223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 394323b3eb3cSopenharmony_ci * .string: value of the radio button. \n 394423b3eb3cSopenharmony_ci * \n 394523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 394623b3eb3cSopenharmony_ci * .string: value of the radio button. \n 394723b3eb3cSopenharmony_ci * 394823b3eb3cSopenharmony_ci */ 394923b3eb3cSopenharmony_ci NODE_RADIO_VALUE, 395023b3eb3cSopenharmony_ci /** 395123b3eb3cSopenharmony_ci * @brief Sets the name of the group to which the radio button belongs. Only one radio button in a given group can 395223b3eb3cSopenharmony_ci * be selected at a time. This attribute can be set, reset, and obtained as required through APIs. 395323b3eb3cSopenharmony_ci * 395423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 395523b3eb3cSopenharmony_ci * .string: name of the group to which the radio button belongs. \n 395623b3eb3cSopenharmony_ci * \n 395723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 395823b3eb3cSopenharmony_ci * .string: name of the group to which the radio button belongs. \n 395923b3eb3cSopenharmony_ci * 396023b3eb3cSopenharmony_ci */ 396123b3eb3cSopenharmony_ci NODE_RADIO_GROUP, 396223b3eb3cSopenharmony_ci 396323b3eb3cSopenharmony_ci /** 396423b3eb3cSopenharmony_ci * @brief Defines the alignment mode of the child components in the container. This attribute can be set, reset, 396523b3eb3cSopenharmony_ci * and obtained as required through APIs. 396623b3eb3cSopenharmony_ci * 396723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 396823b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The data type is {@link ArkUI_Alignment}. 396923b3eb3cSopenharmony_ci * The default value is <b>ARKUI_ALIGNMENT_CENTER</b>. \n 397023b3eb3cSopenharmony_ci * \n 397123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 397223b3eb3cSopenharmony_ci * .value[0].i32: alignment mode. The data type is {@link ArkUI_Alignment}. \n 397323b3eb3cSopenharmony_ci * 397423b3eb3cSopenharmony_ci */ 397523b3eb3cSopenharmony_ci NODE_STACK_ALIGN_CONTENT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_STACK, 397623b3eb3cSopenharmony_ci 397723b3eb3cSopenharmony_ci /** 397823b3eb3cSopenharmony_ci * @brief Defines the scrollbar status. This attribute can be set, reset, and obtained as required through APIs. 397923b3eb3cSopenharmony_ci * 398023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 398123b3eb3cSopenharmony_ci * .value[0].i32: scrollbar status. The parameter type is {@link ArkUI_ScrollBarDisplayMode}. The default value is 398223b3eb3cSopenharmony_ci * <b>ARKUI_SCROLL_BAR_DISPLAY_MODE_AUTO</b>. \n 398323b3eb3cSopenharmony_ci * \n 398423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 398523b3eb3cSopenharmony_ci * .value[0].i32: scrollbar status. The parameter type is {@link ArkUI_ScrollBarDisplayMode}. \n 398623b3eb3cSopenharmony_ci * 398723b3eb3cSopenharmony_ci */ 398823b3eb3cSopenharmony_ci NODE_SCROLL_BAR_DISPLAY_MODE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SCROLL, 398923b3eb3cSopenharmony_ci /** 399023b3eb3cSopenharmony_ci * @brief Defines the width of the scrollbar. This attribute can be set, reset, and obtained as required 399123b3eb3cSopenharmony_ci * through APIs. 399223b3eb3cSopenharmony_ci * 399323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 399423b3eb3cSopenharmony_ci * .value[0].f32: width of the scrollbar, in vp. The default value is <b>4</b>. \n 399523b3eb3cSopenharmony_ci * \n 399623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 399723b3eb3cSopenharmony_ci * .value[0].f32: width of the scrollbar, in vp. \n 399823b3eb3cSopenharmony_ci * 399923b3eb3cSopenharmony_ci */ 400023b3eb3cSopenharmony_ci NODE_SCROLL_BAR_WIDTH, 400123b3eb3cSopenharmony_ci /** 400223b3eb3cSopenharmony_ci * @brief Defines the color of the scrollbar. This attribute can be set, reset, and obtained as required 400323b3eb3cSopenharmony_ci * through APIs. 400423b3eb3cSopenharmony_ci * 400523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 400623b3eb3cSopenharmony_ci * .data[0].u32: color of the scrollbar, in 0xARGB format. \n 400723b3eb3cSopenharmony_ci * \n 400823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 400923b3eb3cSopenharmony_ci * .data[0].u32: color of the scrollbar, in 0xARGB format. \n 401023b3eb3cSopenharmony_ci * 401123b3eb3cSopenharmony_ci */ 401223b3eb3cSopenharmony_ci NODE_SCROLL_BAR_COLOR, 401323b3eb3cSopenharmony_ci /** 401423b3eb3cSopenharmony_ci * @brief Defines the scroll direction. This attribute can be set, reset, and obtained as required through APIs. 401523b3eb3cSopenharmony_ci * 401623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 401723b3eb3cSopenharmony_ci * .value[0].i32: scroll direction. The parameter type is {@link ArkUI_ScrollDirection}. 401823b3eb3cSopenharmony_ci * The default value is <b>ARKUI_SCROLL_DIRECTION_VERTICAL</b>. \n 401923b3eb3cSopenharmony_ci * \n 402023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 402123b3eb3cSopenharmony_ci * .value[0].i32: scroll direction. The parameter type is {@link ArkUI_ScrollDirection}. \n 402223b3eb3cSopenharmony_ci * 402323b3eb3cSopenharmony_ci */ 402423b3eb3cSopenharmony_ci NODE_SCROLL_SCROLL_DIRECTION, 402523b3eb3cSopenharmony_ci /** 402623b3eb3cSopenharmony_ci * @brief Defines the effect used at the edges of the component when the boundary of the scrollable content is 402723b3eb3cSopenharmony_ci * reached. This attribute can be set, reset, and obtained as required through APIs. 402823b3eb3cSopenharmony_ci * 402923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 403023b3eb3cSopenharmony_ci * .value[0].i32: effect used at the edges of the component when the boundary of the scrollable content is reached. 403123b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_EdgeEffect}. The default value is <b>ARKUI_EDGE_EFFECT_NONE</b>.\n 403223b3eb3cSopenharmony_ci * .value[1]?.i32: whether to enable the scroll effect when the component content size is smaller than the 403323b3eb3cSopenharmony_ci * component itself. Optional. The value <b>1</b> means to enable the scroll effect, and <b>0</b> means the 403423b3eb3cSopenharmony_ci * opposite. The default value is <b>1</b>. \n 403523b3eb3cSopenharmony_ci * \n 403623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 403723b3eb3cSopenharmony_ci * .value[0].i32: effect used at the edges of the component when the boundary of the scrollable content is reached. 403823b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_EdgeEffect}. \n 403923b3eb3cSopenharmony_ci * .value[1].i32: whether to enable the scroll effect when the component content size is smaller than the component 404023b3eb3cSopenharmony_ci * itself. Optional. The value <b>1</b> means to enable the scroll effect, and <b>0</b> means the opposite. \n 404123b3eb3cSopenharmony_ci * 404223b3eb3cSopenharmony_ci */ 404323b3eb3cSopenharmony_ci NODE_SCROLL_EDGE_EFFECT, 404423b3eb3cSopenharmony_ci /** 404523b3eb3cSopenharmony_ci * @brief Defines whether to support scroll gestures. When this attribute is set to <b>false</b>, scrolling by 404623b3eb3cSopenharmony_ci * finger or mouse is not supported, but the scroll controller API is not affected. 404723b3eb3cSopenharmony_ci * 404823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 404923b3eb3cSopenharmony_ci * .value[0].i32: whether to support scroll gestures. The default value is <b>true</b>. \n 405023b3eb3cSopenharmony_ci * \n 405123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 405223b3eb3cSopenharmony_ci * .value[0].i32: whether to support scroll gestures. \n 405323b3eb3cSopenharmony_ci * 405423b3eb3cSopenharmony_ci */ 405523b3eb3cSopenharmony_ci NODE_SCROLL_ENABLE_SCROLL_INTERACTION, 405623b3eb3cSopenharmony_ci /** 405723b3eb3cSopenharmony_ci * @brief Defines the friction coefficient. It applies only to gestures in the scrolling area, and it affects only 405823b3eb3cSopenharmony_ci * indirectly the scroll chaining during the inertial scrolling process. 405923b3eb3cSopenharmony_ci * 406023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 406123b3eb3cSopenharmony_ci * .value[0].f32: friction coefficient. The default value is <b>0.6</b> for non-wearable devices and <b>0.9</b> 406223b3eb3cSopenharmony_ci * for wearable devices. \n 406323b3eb3cSopenharmony_ci * \n 406423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 406523b3eb3cSopenharmony_ci * .value[0].f32: friction coefficient. 406623b3eb3cSopenharmony_ci * 406723b3eb3cSopenharmony_ci */ 406823b3eb3cSopenharmony_ci NODE_SCROLL_FRICTION, 406923b3eb3cSopenharmony_ci /** 407023b3eb3cSopenharmony_ci * @brief Defines the scroll snapping mode. This attribute can be set, reset, and obtained as required through APIs. 407123b3eb3cSopenharmony_ci * 407223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 407323b3eb3cSopenharmony_ci * .value[0].i32: alignment mode for the scroll snap position. The parameter type is {@link ArkUI_ScrollSnapAlign}. 407423b3eb3cSopenharmony_ci * The default value is <b>ARKUI_SCROLL_SNAP_ALIGN_NONE</b>.\n 407523b3eb3cSopenharmony_ci * .value[1].i32: whether to enable the snap to start feature. When scroll snapping is defined for the 407623b3eb3cSopenharmony_ci * <b><Scroll></b> component, setting this attribute to <b>false</b> enables the component to scroll between the 407723b3eb3cSopenharmony_ci * start edge and the first snap point. The default value is <b>true</b>. It is valid only when there are multiple 407823b3eb3cSopenharmony_ci * snap points.\n 407923b3eb3cSopenharmony_ci * .value[2].i32: Whether to enable the snap to end feature. When scroll snapping is defined for the 408023b3eb3cSopenharmony_ci * <b><Scroll></b> component, setting this attribute to <b>false</b> enables the component to scroll between the 408123b3eb3cSopenharmony_ci * end edge and the last snap point. The default value is <b>true</b>. It is valid only when there are multiple 408223b3eb3cSopenharmony_ci * snap points.\n 408323b3eb3cSopenharmony_ci * .value[3...].f32: snap points for the <b><Scroll></b> component. Each snap point defines the offset from an 408423b3eb3cSopenharmony_ci * edge to which the <b><Scroll></b> component can scroll. \n 408523b3eb3cSopenharmony_ci * \n 408623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 408723b3eb3cSopenharmony_ci * .value[0].i32: alignment mode for the scroll snap position. The parameter type is {@link ArkUI_ScrollSnapAlign}.\n 408823b3eb3cSopenharmony_ci * .value[1].i32: whether to enable the snap to start feature. When scroll snapping is defined for the 408923b3eb3cSopenharmony_ci * <b><Scroll></b> component, setting this attribute to <b>false</b> enables the component to scroll between the 409023b3eb3cSopenharmony_ci * start edge and the first snap point.\n 409123b3eb3cSopenharmony_ci * .value[2].i32: Whether to enable the snap to end feature. When scroll snapping is defined for the 409223b3eb3cSopenharmony_ci * <b><Scroll></b> component, setting this attribute to <b>false</b> enables the component to scroll between the 409323b3eb3cSopenharmony_ci * end edge and the last snap point.\n 409423b3eb3cSopenharmony_ci * .value[3...].f32: snap points for the <b><Scroll></b> component. Each snap point defines the offset from an edge 409523b3eb3cSopenharmony_ci * to which the <b><Scroll></b> component can scroll. \n 409623b3eb3cSopenharmony_ci * 409723b3eb3cSopenharmony_ci */ 409823b3eb3cSopenharmony_ci NODE_SCROLL_SNAP, 409923b3eb3cSopenharmony_ci 410023b3eb3cSopenharmony_ci /** 410123b3eb3cSopenharmony_ci * @brief Defines the nested scrolling options. This attribute can be set, reset, and obtained as required 410223b3eb3cSopenharmony_ci * through APIs. 410323b3eb3cSopenharmony_ci * 410423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 410523b3eb3cSopenharmony_ci * .value[0].i32: nested scrolling option when the component scrolls forward. 410623b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ScrollNestedMode}. \n 410723b3eb3cSopenharmony_ci * .value[1].i32: nested scrolling option when the component scrolls backward. 410823b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ScrollNestedMode}. \n 410923b3eb3cSopenharmony_ci * \n 411023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 411123b3eb3cSopenharmony_ci * .value[0].i32: nested scrolling option when the component scrolls forward. 411223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ScrollNestedMode}. \n 411323b3eb3cSopenharmony_ci * .value[1].i32: nested scrolling option when the component scrolls backward. 411423b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ScrollNestedMode}. 411523b3eb3cSopenharmony_ci * 411623b3eb3cSopenharmony_ci */ 411723b3eb3cSopenharmony_ci NODE_SCROLL_NESTED_SCROLL, 411823b3eb3cSopenharmony_ci /** 411923b3eb3cSopenharmony_ci * @brief Defines the specified position to scroll to. This attribute can be set, reset, and obtained as required 412023b3eb3cSopenharmony_ci * through APIs. 412123b3eb3cSopenharmony_ci * 412223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 412323b3eb3cSopenharmony_ci * .value[0].f32: horizontal scrolling offset, in vp. \n 412423b3eb3cSopenharmony_ci * .value[1].f32: vertical scrolling offset, in vp. \n 412523b3eb3cSopenharmony_ci * .value[2]?.i32: scrolling duration, in milliseconds. Optional. \n 412623b3eb3cSopenharmony_ci * .value[3]?.i32: scrolling curve. Optional. The parameter type is {@link ArkUI_AnimationCurve}. 412723b3eb3cSopenharmony_ci * The default value is <b>ARKUI_CURVE_EASE</b>. \n 412823b3eb3cSopenharmony_ci * .value[4]?.i32: whether to enable the default spring animation. Optional. The default value <b>0</b> means not 412923b3eb3cSopenharmony_ci * to enable the default spring animation. \n 413023b3eb3cSopenharmony_ci * \n 413123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 413223b3eb3cSopenharmony_ci * .value[0].f32: horizontal scrolling offset, in vp. \n 413323b3eb3cSopenharmony_ci * .value[1].f32: vertical scrolling offset, in vp. \n 413423b3eb3cSopenharmony_ci * 413523b3eb3cSopenharmony_ci */ 413623b3eb3cSopenharmony_ci NODE_SCROLL_OFFSET, 413723b3eb3cSopenharmony_ci 413823b3eb3cSopenharmony_ci /** 413923b3eb3cSopenharmony_ci * @brief Defines the edge position to scroll to. This attribute can be set and obtained as required through APIs. 414023b3eb3cSopenharmony_ci * 414123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 414223b3eb3cSopenharmony_ci * .value[0].i32: edge position to scroll to. The parameter type is {@link ArkUI_ScrollEdge}. \n 414323b3eb3cSopenharmony_ci * \n 414423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 414523b3eb3cSopenharmony_ci * .value[0].i32: whether the container at the edge position. The value <b>-1</b> means that the container is not 414623b3eb3cSopenharmony_ci * at the edge position. If the container is at the edge position, the parameter type is {@link ArkUI_ScrollEdge}. 414723b3eb3cSopenharmony_ci * 414823b3eb3cSopenharmony_ci */ 414923b3eb3cSopenharmony_ci NODE_SCROLL_EDGE, 415023b3eb3cSopenharmony_ci 415123b3eb3cSopenharmony_ci /** 415223b3eb3cSopenharmony_ci * @brief Defines whether to enable the swipe-to-turn-pages feature. This attribute can be set, reset, and obtained 415323b3eb3cSopenharmony_ci * as required through APIs. 415423b3eb3cSopenharmony_ci * 415523b3eb3cSopenharmony_ci * If both <b>enablePaging</b> and <b>scrollSnap</b> are set, <b>scrollSnap</b> takes effect, but 415623b3eb3cSopenharmony_ci * <b>enablePaging</b> does not. \n 415723b3eb3cSopenharmony_ci * \n 415823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 415923b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the swipe-to-turn-pages feature. The default value is <b>false</b>. \n 416023b3eb3cSopenharmony_ci * \n 416123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 416223b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the swipe-to-turn-pages feature. \n 416323b3eb3cSopenharmony_ci * 416423b3eb3cSopenharmony_ci */ 416523b3eb3cSopenharmony_ci NODE_SCROLL_ENABLE_PAGING, 416623b3eb3cSopenharmony_ci 416723b3eb3cSopenharmony_ci /** 416823b3eb3cSopenharmony_ci * @brief Scroll to the next or previous page. 416923b3eb3cSopenharmony_ci * 417023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 417123b3eb3cSopenharmony_ci * .value[0].i32 Indicates whether to scroll to next page. Value 0 indicates scroll to next page and value 1 417223b3eb3cSopenharmony_ci * indicates scroll to previous page. \n 417323b3eb3cSopenharmony_ci * .value[1]?.i32 Indicates whether to enable animation. Value 1 indicates enable and 0 indicates disable. \n 417423b3eb3cSopenharmony_ci * 417523b3eb3cSopenharmony_ci */ 417623b3eb3cSopenharmony_ci NODE_SCROLL_PAGE, 417723b3eb3cSopenharmony_ci 417823b3eb3cSopenharmony_ci /** 417923b3eb3cSopenharmony_ci * @brief Scroll a specified distance. 418023b3eb3cSopenharmony_ci * 418123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 418223b3eb3cSopenharmony_ci * .value[0].f32:Horizontal scrolling distance in vp; \n 418323b3eb3cSopenharmony_ci * .value[1].f32: Vertical scrolling distance in vp; \n 418423b3eb3cSopenharmony_ci * 418523b3eb3cSopenharmony_ci */ 418623b3eb3cSopenharmony_ci NODE_SCROLL_BY, 418723b3eb3cSopenharmony_ci 418823b3eb3cSopenharmony_ci /** 418923b3eb3cSopenharmony_ci * @brief Performs inertial scrolling based on the initial velocity passed in. 419023b3eb3cSopenharmony_ci * 419123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 419223b3eb3cSopenharmony_ci * .value[0].f32: Initial velocity of inertial scrolling. Unit: vp/s. If the value specified is 0, it is 419323b3eb3cSopenharmony_ci * considered as invalid, and the scrolling for this instance will not take effect. If the value is positive, 419423b3eb3cSopenharmony_ci * the scroll will move downward; if the value is negative, the scroll will move upward. \n 419523b3eb3cSopenharmony_ci * 419623b3eb3cSopenharmony_ci */ 419723b3eb3cSopenharmony_ci NODE_SCROLL_FLING, 419823b3eb3cSopenharmony_ci 419923b3eb3cSopenharmony_ci /** 420023b3eb3cSopenharmony_ci * @brief Sets the fading effect for the edges of scrollable components. 420123b3eb3cSopenharmony_ci * 420223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: 420323b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the fading effect on edges. The value 0 means to disable the fading effect, and 1 means to enable it. 420423b3eb3cSopenharmony_ci * .value[1]?.f32: length of the fading effect on edges, in vp. Default value: 32. 420523b3eb3cSopenharmony_ci * 420623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}: 420723b3eb3cSopenharmony_ci * .value[0].i32: whether the fading effect on edges is enabled. The value 0 means that the fading effect is disabled, and 1 means that it is enabled. 420823b3eb3cSopenharmony_ci * .value[1].f32: length of the fading effect on edges, in vp. 420923b3eb3cSopenharmony_ci * 421023b3eb3cSopenharmony_ci * @since 14 421123b3eb3cSopenharmony_ci */ 421223b3eb3cSopenharmony_ci NODE_SCROLL_FADING_EDGE, 421323b3eb3cSopenharmony_ci 421423b3eb3cSopenharmony_ci /** 421523b3eb3cSopenharmony_ci * @brief Defines the direction in which the list items are arranged. This attribute can be set, reset, and 421623b3eb3cSopenharmony_ci * obtained as required through APIs. 421723b3eb3cSopenharmony_ci * 421823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 421923b3eb3cSopenharmony_ci * .value[0].i32: direction in which the list items are arranged. The parameter type is {@link ArkUI_Axis}. 422023b3eb3cSopenharmony_ci * The default value is <b>ARKUI_AXIS_VERTICAL</b>. \n 422123b3eb3cSopenharmony_ci * \n 422223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 422323b3eb3cSopenharmony_ci * .value[0].i32: direction in which the list items are arranged. The parameter type is {@link ArkUI_Axis}. \n 422423b3eb3cSopenharmony_ci * 422523b3eb3cSopenharmony_ci */ 422623b3eb3cSopenharmony_ci NODE_LIST_DIRECTION = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LIST, 422723b3eb3cSopenharmony_ci /** 422823b3eb3cSopenharmony_ci * @brief Defines whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b> 422923b3eb3cSopenharmony_ci * component. This attribute can be set, reset, and obtained as required through APIs. 423023b3eb3cSopenharmony_ci * 423123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 423223b3eb3cSopenharmony_ci * .value[0].i32: whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b> 423323b3eb3cSopenharmony_ci * component. It is used together with the <b><ListItemGroup></b> component. The parameter type is 423423b3eb3cSopenharmony_ci * {@link ArkUI_StickyStyle}. The default value is <b>ARKUI_STICKY_STYLE_NONE</b>. \n 423523b3eb3cSopenharmony_ci * \n 423623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 423723b3eb3cSopenharmony_ci * .value[0].i32: whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b> 423823b3eb3cSopenharmony_ci * component. It is used together with the <b><ListItemGroup></b> component. The parameter type is 423923b3eb3cSopenharmony_ci * {@link ArkUI_StickyStyle}. 424023b3eb3cSopenharmony_ci * 424123b3eb3cSopenharmony_ci */ 424223b3eb3cSopenharmony_ci NODE_LIST_STICKY, 424323b3eb3cSopenharmony_ci /** 424423b3eb3cSopenharmony_ci * @brief Defines the spacing between list items. This attribute can be set, reset, and obtained as required 424523b3eb3cSopenharmony_ci * through APIs. 424623b3eb3cSopenharmony_ci * 424723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 424823b3eb3cSopenharmony_ci * .value[0].f32: spacing between list items along the main axis. The default value is <b>0</b>. \n 424923b3eb3cSopenharmony_ci * \n 425023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 425123b3eb3cSopenharmony_ci * .value[0].f32: spacing between list items along the main axis. \n 425223b3eb3cSopenharmony_ci * 425323b3eb3cSopenharmony_ci */ 425423b3eb3cSopenharmony_ci NODE_LIST_SPACE, 425523b3eb3cSopenharmony_ci 425623b3eb3cSopenharmony_ci /** 425723b3eb3cSopenharmony_ci * @brief Defines the list adapter. The attribute can be set, reset, and obtained as required through APIs. 425823b3eb3cSopenharmony_ci * 425923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 426023b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n 426123b3eb3cSopenharmony_ci * \n 426223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 426323b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object. \n 426423b3eb3cSopenharmony_ci */ 426523b3eb3cSopenharmony_ci NODE_LIST_NODE_ADAPTER, 426623b3eb3cSopenharmony_ci 426723b3eb3cSopenharmony_ci /** 426823b3eb3cSopenharmony_ci * @brief Sets the number of cached items in the list adapter. 426923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 427023b3eb3cSopenharmony_ci * 427123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 427223b3eb3cSopenharmony_ci * .value[0].i32: number of cached items in the list adapter. \n 427323b3eb3cSopenharmony_ci * \n 427423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 427523b3eb3cSopenharmony_ci * .value[0].f32: number of cached items in the list adapter. \n 427623b3eb3cSopenharmony_ci */ 427723b3eb3cSopenharmony_ci NODE_LIST_CACHED_COUNT, 427823b3eb3cSopenharmony_ci 427923b3eb3cSopenharmony_ci /** 428023b3eb3cSopenharmony_ci * @brief Scroll to the specified index. 428123b3eb3cSopenharmony_ci * 428223b3eb3cSopenharmony_ci * When activating the smooth animation, all items passed through will be loaded and layout calculated, which can 428323b3eb3cSopenharmony_ci * lead to performance issues when loading a large number of items.\n 428423b3eb3cSopenharmony_ci * \n 428523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 428623b3eb3cSopenharmony_ci * .value[0].i32:The index value of the target element to be slid to in the current container.\n 428723b3eb3cSopenharmony_ci * .value[1]?.i32:Set whether there is an action when sliding to the index value of a list item in the list, where 428823b3eb3cSopenharmony_ci * 1 indicates an action and 0 indicates no action. Default value: 0。\n 428923b3eb3cSopenharmony_ci * .value[2]?.i32:Specify the alignment of the sliding element with the current container,The parameter type is 429023b3eb3cSopenharmony_ci * {@link ArkUI_ScrollAlignment}, default value is ARKUI_SCROLL_ALIGNMENT_START. \n 429123b3eb3cSopenharmony_ci * 429223b3eb3cSopenharmony_ci */ 429323b3eb3cSopenharmony_ci NODE_LIST_SCROLL_TO_INDEX, 429423b3eb3cSopenharmony_ci 429523b3eb3cSopenharmony_ci /** 429623b3eb3cSopenharmony_ci * @brief 设置List交叉轴方向宽度大于ListItem交叉轴宽度 * lanes时, 429723b3eb3cSopenharmony_ci * ListItem在List交叉轴方向的布局方式,支持属性设置,属性重置和属性获取接口。 429823b3eb3cSopenharmony_ci * 429923b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 430023b3eb3cSopenharmony_ci * .value[0].i32:交叉轴方向的布局方式。参数类型{@link ArkUI_ListItemAlignment} \n 430123b3eb3cSopenharmony_ci * \n 430223b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 430323b3eb3cSopenharmony_ci * .value[0].i32:交叉轴方向的布局方式。参数类型{@link ArkUI_ListItemAlignment} \n 430423b3eb3cSopenharmony_ci */ 430523b3eb3cSopenharmony_ci NODE_LIST_ALIGN_LIST_ITEM, 430623b3eb3cSopenharmony_ci 430723b3eb3cSopenharmony_ci /** 430823b3eb3cSopenharmony_ci * @brief Set the default spindle size for the List subcomponent. 430923b3eb3cSopenharmony_ci * 431023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 431123b3eb3cSopenharmony_ci * .object: The parameter format is {@ ArkUI-ListChildrenMainSize} \n 431223b3eb3cSopenharmony_ci * \n 431323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 431423b3eb3cSopenharmony_ci * .object: The parameter format is {@ ArkUI-ListChildrenMainSize} \n 431523b3eb3cSopenharmony_ci */ 431623b3eb3cSopenharmony_ci NODE_LIST_CHILDREN_MAIN_SIZE = 1003007, 431723b3eb3cSopenharmony_ci /** 431823b3eb3cSopenharmony_ci * @brief 设置当前List初次加载时视口起始位置显示的item的索引值,支持属性设置,属性重置和属性获取接口。 431923b3eb3cSopenharmony_ci * 432023b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 432123b3eb3cSopenharmony_ci * .value[0].i32: 当前List初次加载时视口起始位置显示的item的索引值。 \n 432223b3eb3cSopenharmony_ci * \n 432323b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 432423b3eb3cSopenharmony_ci * .value[0].i32: 当前List初次加载时视口起始位置显示的item的索引值,默认值:0。 \n 432523b3eb3cSopenharmony_ci */ 432623b3eb3cSopenharmony_ci NODE_LIST_INITIAL_INDEX = 1003008, 432723b3eb3cSopenharmony_ci /** 432823b3eb3cSopenharmony_ci * @brief sets the ListItem splitter style. By default, there is no splitter. 432923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 433023b3eb3cSopenharmony_ci * 433123b3eb3cSopenharmony_ci * Attribute setting method parameter {@link ArkUI_AttributeItem} Format: \n 433223b3eb3cSopenharmony_ci *.value[0].u32: divider color, type 0xargb; \n 433323b3eb3cSopenharmony_ci *.value[1].f32: dividing line width; \n 433423b3eb3cSopenharmony_ci *.value[2].f32: the distance between the divider and the beginning of the side of the list, unit vp; \n 433523b3eb3cSopenharmony_ci *.value[3].f32: the distance between the divider and the end of the side of the list (unit: vp). \n 433623b3eb3cSopenharmony_ci * \n 433723b3eb3cSopenharmony_ci * Attribute fetch method return value {@link ArkUI_AttributeItem} format: \n 433823b3eb3cSopenharmony_ci *.value[0].u32: divider color, type 0xargb; \n 433923b3eb3cSopenharmony_ci *.value[1].f32: dividing line width; \n 434023b3eb3cSopenharmony_ci *.value[2].f32: the distance between the divider and the beginning of the side of the list, unit vp; \n 434123b3eb3cSopenharmony_ci *.value[3].f32: the distance between the divider and the end of the side of the list (unit: vp). \n 434223b3eb3cSopenharmony_ci * 434323b3eb3cSopenharmony_ci */ 434423b3eb3cSopenharmony_ci NODE_LIST_DIVIDER = 1003009, 434523b3eb3cSopenharmony_ci 434623b3eb3cSopenharmony_ci /** 434723b3eb3cSopenharmony_ci * @brief Defines whether to enable loop playback for the swiper. This attribute can be set, reset, and obtained 434823b3eb3cSopenharmony_ci * as required through APIs. 434923b3eb3cSopenharmony_ci * 435023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 435123b3eb3cSopenharmony_ci * .value[0].i32: whether to enable loop playback. The value <b>1</b> means to enable loop playback, and <b>0</b> 435223b3eb3cSopenharmony_ci * means the opposite. The default value is <b>1/b>. \n 435323b3eb3cSopenharmony_ci * \n 435423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 435523b3eb3cSopenharmony_ci * .value[0].i32: whether to enable loop playback. The value <b>1</b> means to enable loop playback, and <b>0</b> 435623b3eb3cSopenharmony_ci * means the opposite. The default value is <b>1</b>. \n 435723b3eb3cSopenharmony_ci * 435823b3eb3cSopenharmony_ci */ 435923b3eb3cSopenharmony_ci NODE_SWIPER_LOOP = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SWIPER, 436023b3eb3cSopenharmony_ci /** 436123b3eb3cSopenharmony_ci * @brief Defines whether to enable automatic playback for child component switching in the swiper. 436223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 436323b3eb3cSopenharmony_ci * 436423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 436523b3eb3cSopenharmony_ci * .value[0].i32: whether to enable automatic playback for child component switching. The value <b>1</b> 436623b3eb3cSopenharmony_ci * means to enable automatic playback, and <b>0</b> means the opposite. The default value is <b>0</b>. \n 436723b3eb3cSopenharmony_ci * \n 436823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 436923b3eb3cSopenharmony_ci * .value[0].i32: whether to enable automatic playback for child component switching. The value <b>1</b> means 437023b3eb3cSopenharmony_ci * to enable automatic playback, and <b>0</b> means the opposite. The default value is <b>0</b>. \n 437123b3eb3cSopenharmony_ci * 437223b3eb3cSopenharmony_ci */ 437323b3eb3cSopenharmony_ci NODE_SWIPER_AUTO_PLAY, 437423b3eb3cSopenharmony_ci /** 437523b3eb3cSopenharmony_ci * @brief Defines whether to enable the navigation point indicator for the swiper. This attribute can be set, 437623b3eb3cSopenharmony_ci * reset, and obtained as required through APIs. 437723b3eb3cSopenharmony_ci * 437823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 437923b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the navigation point indicator. The value <b>1</b> means to enable the 438023b3eb3cSopenharmony_ci * navigation point indicator, and <b>0</b> means the opposite. The default value is <b>1</b>. \n 438123b3eb3cSopenharmony_ci * \n 438223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 438323b3eb3cSopenharmony_ci * .value[0].i32: whether to enable the navigation point indicator. The value <b>1</b> means to enable the 438423b3eb3cSopenharmony_ci * navigation point indicator, and <b>0</b> means the opposite. The default value is <b>1</b>. \n 438523b3eb3cSopenharmony_ci * 438623b3eb3cSopenharmony_ci */ 438723b3eb3cSopenharmony_ci NODE_SWIPER_SHOW_INDICATOR, 438823b3eb3cSopenharmony_ci /** 438923b3eb3cSopenharmony_ci * @brief Defines the interval for automatic playback. This attribute can be set, reset, and obtained as required 439023b3eb3cSopenharmony_ci * through APIs. 439123b3eb3cSopenharmony_ci * 439223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 439323b3eb3cSopenharmony_ci * .value[0].f32: interval for automatic playback, in milliseconds. \n 439423b3eb3cSopenharmony_ci * \n 439523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 439623b3eb3cSopenharmony_ci * .value[0].f32: interval for automatic playback, in milliseconds. \n 439723b3eb3cSopenharmony_ci * 439823b3eb3cSopenharmony_ci */ 439923b3eb3cSopenharmony_ci NODE_SWIPER_INTERVAL, 440023b3eb3cSopenharmony_ci /** 440123b3eb3cSopenharmony_ci * @brief Defines whether vertical swiping is used for the swiper. This attribute can be set, reset, and obtained 440223b3eb3cSopenharmony_ci * as required through APIs. 440323b3eb3cSopenharmony_ci * 440423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 440523b3eb3cSopenharmony_ci * .value[0].i32: whether vertical swiping is used. The value <b>1</b> means that vertical swiping is used, and 440623b3eb3cSopenharmony_ci * <b>0</b> means the opposite. The default value is <b>0</b>. \n 440723b3eb3cSopenharmony_ci * \n 440823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 440923b3eb3cSopenharmony_ci * .value[0].i32: whether vertical swiping is used. The value <b>1</b> means that vertical swiping is used, and 441023b3eb3cSopenharmony_ci * <b>0</b> means the opposite. The default value is <b>0</b>. \n 441123b3eb3cSopenharmony_ci * 441223b3eb3cSopenharmony_ci */ 441323b3eb3cSopenharmony_ci NODE_SWIPER_VERTICAL, 441423b3eb3cSopenharmony_ci 441523b3eb3cSopenharmony_ci /** 441623b3eb3cSopenharmony_ci * @brief Defines the duration of the animation for switching child components. This attribute can be set, reset, 441723b3eb3cSopenharmony_ci * and obtained as required through APIs. 441823b3eb3cSopenharmony_ci * 441923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 442023b3eb3cSopenharmony_ci * .value[0].f32: duration of the animation for switching child components, in milliseconds. The default value is 442123b3eb3cSopenharmony_ci * <b>400</b>. \n 442223b3eb3cSopenharmony_ci * \n 442323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 442423b3eb3cSopenharmony_ci * .value[0].f32: duration of the animation for switching child components, in milliseconds. The default value is 442523b3eb3cSopenharmony_ci * <b>400</b>. \n 442623b3eb3cSopenharmony_ci * 442723b3eb3cSopenharmony_ci */ 442823b3eb3cSopenharmony_ci NODE_SWIPER_DURATION, 442923b3eb3cSopenharmony_ci 443023b3eb3cSopenharmony_ci /** 443123b3eb3cSopenharmony_ci * @brief Defines the animation curve for the swiper. This attribute can be set, reset, and obtained as required 443223b3eb3cSopenharmony_ci * through APIs. 443323b3eb3cSopenharmony_ci * 443423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 443523b3eb3cSopenharmony_ci * .value[0].i32: animation curve. The parameter type is {@link ArkUI_AnimationCurve}. 443623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_CURVE_LINEAR</b>. \n 443723b3eb3cSopenharmony_ci * \n 443823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 443923b3eb3cSopenharmony_ci * .value[0].i32: animation curve. The parameter type is {@link ArkUI_AnimationCurve}. 444023b3eb3cSopenharmony_ci * The default value is <b>ARKUI_CURVE_LINEAR</b>. \n 444123b3eb3cSopenharmony_ci * 444223b3eb3cSopenharmony_ci */ 444323b3eb3cSopenharmony_ci NODE_SWIPER_CURVE, 444423b3eb3cSopenharmony_ci 444523b3eb3cSopenharmony_ci /** 444623b3eb3cSopenharmony_ci * @brief Defines the spacing between child components in the swiper. 444723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 444823b3eb3cSopenharmony_ci * 444923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 445023b3eb3cSopenharmony_ci * .value[0].f32: spacing between child components. \n 445123b3eb3cSopenharmony_ci * \n 445223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 445323b3eb3cSopenharmony_ci * .value[0].f32: spacing between child components. \n 445423b3eb3cSopenharmony_ci * 445523b3eb3cSopenharmony_ci */ 445623b3eb3cSopenharmony_ci NODE_SWIPER_ITEM_SPACE, 445723b3eb3cSopenharmony_ci 445823b3eb3cSopenharmony_ci /** 445923b3eb3cSopenharmony_ci * @brief Defines the index of the child component currently displayed in the swiper. 446023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 446123b3eb3cSopenharmony_ci * 446223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 446323b3eb3cSopenharmony_ci * .value[0].i32: index value of the child component. \n 446423b3eb3cSopenharmony_ci * \n 446523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 446623b3eb3cSopenharmony_ci * .value[0].i32: index value of the child component. \n 446723b3eb3cSopenharmony_ci * 446823b3eb3cSopenharmony_ci */ 446923b3eb3cSopenharmony_ci NODE_SWIPER_INDEX, 447023b3eb3cSopenharmony_ci 447123b3eb3cSopenharmony_ci /** 447223b3eb3cSopenharmony_ci * @brief Defines the number of elements to display per page. 447323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 447423b3eb3cSopenharmony_ci * 447523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 447623b3eb3cSopenharmony_ci * .value[0].i32: index value of the child component. \n 447723b3eb3cSopenharmony_ci * \n 447823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 447923b3eb3cSopenharmony_ci * .value[0].i32: index value of the child component. \n 448023b3eb3cSopenharmony_ci * 448123b3eb3cSopenharmony_ci */ 448223b3eb3cSopenharmony_ci NODE_SWIPER_DISPLAY_COUNT, 448323b3eb3cSopenharmony_ci 448423b3eb3cSopenharmony_ci /** 448523b3eb3cSopenharmony_ci * @brief Defines whether to disable the swipe feature. 448623b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 448723b3eb3cSopenharmony_ci * 448823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 448923b3eb3cSopenharmony_ci * .value[0].i32: whether to disable the swipe feature. The value <b>1</b> means to disable 449023b3eb3cSopenharmony_ci * the swipe feature, and <b>0</b> means the opposite. The default value is <b>0</b>. \n 449123b3eb3cSopenharmony_ci * \n 449223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 449323b3eb3cSopenharmony_ci * .value[0].i32: whether to disable the swipe feature. The value <b>1</b> means to disable the swipe 449423b3eb3cSopenharmony_ci * feature, and <b>0</b> means the opposite. The default value is <b>0</b>. \n 449523b3eb3cSopenharmony_ci * 449623b3eb3cSopenharmony_ci */ 449723b3eb3cSopenharmony_ci NODE_SWIPER_DISABLE_SWIPE, 449823b3eb3cSopenharmony_ci 449923b3eb3cSopenharmony_ci /** 450023b3eb3cSopenharmony_ci * @brief Defines whether to show the arrow when the mouse pointer hovers over the navigation point indicator. 450123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 450223b3eb3cSopenharmony_ci * 450323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 450423b3eb3cSopenharmony_ci * .value[0].i32: whether to show the arrow when the mouse pointer hovers over the navigation point indicator. 450523b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_SwiperArrow}.\n 450623b3eb3cSopenharmony_ci * The default value is <b>ARKUI_SWIPER_ARROW_HIDE</b>. \n 450723b3eb3cSopenharmony_ci * \n 450823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 450923b3eb3cSopenharmony_ci * .value[0].i32: whether to show the arrow when the mouse pointer hovers over the navigation point indicator. 451023b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_SwiperArrow}.\n 451123b3eb3cSopenharmony_ci * The default value is <b>ARKUI_SWIPER_ARROW_HIDE</b>. \n 451223b3eb3cSopenharmony_ci * 451323b3eb3cSopenharmony_ci */ 451423b3eb3cSopenharmony_ci NODE_SWIPER_SHOW_DISPLAY_ARROW, 451523b3eb3cSopenharmony_ci 451623b3eb3cSopenharmony_ci /** 451723b3eb3cSopenharmony_ci * @brief Defines the effect used at the edges of the swiper when the boundary of the scrollable content is reached. 451823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 451923b3eb3cSopenharmony_ci * 452023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 452123b3eb3cSopenharmony_ci * .value[0].i32: effect used at the edges of the swiper when the boundary of the scrollable content is reached. 452223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_EdgeEffect}.\n 452323b3eb3cSopenharmony_ci * The default value is <b>ARKUI_EDGE_EFFECT_SPRING</b>. \n 452423b3eb3cSopenharmony_ci * \n 452523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 452623b3eb3cSopenharmony_ci * .value[0].i32: effect used at the edges of the swiper when the boundary of the scrollable content is reached. 452723b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_EdgeEffect}. \n 452823b3eb3cSopenharmony_ci * 452923b3eb3cSopenharmony_ci */ 453023b3eb3cSopenharmony_ci NODE_SWIPER_EDGE_EFFECT_MODE, 453123b3eb3cSopenharmony_ci 453223b3eb3cSopenharmony_ci /** 453323b3eb3cSopenharmony_ci * @brief Defines the swiper adapter. The attribute can be set, reset, and obtained as required through APIs. 453423b3eb3cSopenharmony_ci * 453523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 453623b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n 453723b3eb3cSopenharmony_ci * \n 453823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 453923b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object. \n 454023b3eb3cSopenharmony_ci */ 454123b3eb3cSopenharmony_ci NODE_SWIPER_NODE_ADAPTER, 454223b3eb3cSopenharmony_ci 454323b3eb3cSopenharmony_ci /** 454423b3eb3cSopenharmony_ci * @brief Sets the number of cached items in the swiper adapter. 454523b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 454623b3eb3cSopenharmony_ci * 454723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 454823b3eb3cSopenharmony_ci * .value[0].i32: number of cached items in the swiper adapter. \n 454923b3eb3cSopenharmony_ci * \n 455023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 455123b3eb3cSopenharmony_ci * .value[0].f32: number of cached items in the swiper adapter. \n 455223b3eb3cSopenharmony_ci */ 455323b3eb3cSopenharmony_ci NODE_SWIPER_CACHED_COUNT, 455423b3eb3cSopenharmony_ci 455523b3eb3cSopenharmony_ci /** 455623b3eb3cSopenharmony_ci * @brief Defines the front margin of the wiper. 455723b3eb3cSopenharmony_ci * The attribute can be set, reset, and obtained as required through APIs. 455823b3eb3cSopenharmony_ci * 455923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 456023b3eb3cSopenharmony_ci * .value[0].f32: the front margin. The unit is vp. The default value is <b>0.0</b>\n 456123b3eb3cSopenharmony_ci * .value[1]?.i32: whether to ignore blanks, the default value is 0. 456223b3eb3cSopenharmony_ci * The value <b>1</b> means to ignore blank areas, and <b>0</b> means the opposite. \n 456323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 456423b3eb3cSopenharmony_ci * .value[0].f32: the front margin, the unit is vp. \n 456523b3eb3cSopenharmony_ci * .value[1].i32: whether to ignore blank areas. The value <b>1</b> means to ignore blank areas, and <b>0</b> means 456623b3eb3cSopenharmony_ci * the opposite. \n 456723b3eb3cSopenharmony_ci */ 456823b3eb3cSopenharmony_ci NODE_SWIPER_PREV_MARGIN, 456923b3eb3cSopenharmony_ci 457023b3eb3cSopenharmony_ci /** 457123b3eb3cSopenharmony_ci * @brief Defines the back margin of the wiper. 457223b3eb3cSopenharmony_ci * The attribute can be set, reset, and obtained as required through APIs. 457323b3eb3cSopenharmony_ci * 457423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 457523b3eb3cSopenharmony_ci * .value[0].f32: the back margin. The unit is vp. The default value is <b>0.0</b>\n 457623b3eb3cSopenharmony_ci * .value[1]?.i32: whether to ignore blanks, the default value is 0. 457723b3eb3cSopenharmony_ci * The value <b>1</b> means to ignore blank areas, and <b>0</b> means the opposite. \n 457823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 457923b3eb3cSopenharmony_ci * .value[0].f32: the back margin, the unit is vp. \n 458023b3eb3cSopenharmony_ci * .value[1].i32: whether to ignore blank areas. The value <b>1</b> means to ignore blank areas, and <b>0</b> means 458123b3eb3cSopenharmony_ci * the opposite. \n 458223b3eb3cSopenharmony_ci */ 458323b3eb3cSopenharmony_ci NODE_SWIPER_NEXT_MARGIN, 458423b3eb3cSopenharmony_ci 458523b3eb3cSopenharmony_ci /** 458623b3eb3cSopenharmony_ci * @brief Sets the navigation point indicator of the dot style for the swiper. 458723b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 458823b3eb3cSopenharmony_ci * 458923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 459023b3eb3cSopenharmony_ci * .value[0].i32: navigation point indicator type. The parameter type is {@link ArkUI_SwiperIndicatorType}. \n 459123b3eb3cSopenharmony_ci * .object: navigation point indicator. The parameter type is {@link ArkUI_SwiperIndicator}. \n 459223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 459323b3eb3cSopenharmony_ci * .value[0].i32: navigation point indicator type. The parameter type is {@link ArkUI_SwiperIndicatorType}. \n 459423b3eb3cSopenharmony_ci * .object: navigation point indicator. The parameter type is {@link ArkUI_SwiperIndicator}. \n 459523b3eb3cSopenharmony_ci * 459623b3eb3cSopenharmony_ci */ 459723b3eb3cSopenharmony_ci NODE_SWIPER_INDICATOR, 459823b3eb3cSopenharmony_ci 459923b3eb3cSopenharmony_ci /** 460023b3eb3cSopenharmony_ci * @brief Set the nested scrolling mode for the Swiper component and parent component. 460123b3eb3cSopenharmony_ci * 460223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 460323b3eb3cSopenharmony_ci * .value[0].i32:Nested scrolling patterns for Swiper components and parent components. The parameter type is 460423b3eb3cSopenharmony_ci * {@link ArkUI_SwiperNestedScrollMode} \n 460523b3eb3cSopenharmony_ci * The default value is <b>ARKUI_SWIPER_NESTED_SRCOLL_SELF_ONLY<b> \n 460623b3eb3cSopenharmony_ci * \n 460723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 460823b3eb3cSopenharmony_ci * .value[0].i32:Nested scrolling patterns for Swiper components and parent components. The parameter type is 460923b3eb3cSopenharmony_ci * {@link ArkUI_SwiperNestedScrollMode} \n 461023b3eb3cSopenharmony_ci */ 461123b3eb3cSopenharmony_ci NODE_SWIPER_NESTED_SCROLL, 461223b3eb3cSopenharmony_ci 461323b3eb3cSopenharmony_ci /** 461423b3eb3cSopenharmony_ci * @brief Set the switcher component to flip to the specified page. 461523b3eb3cSopenharmony_ci * 461623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 461723b3eb3cSopenharmony_ci * .value[0].i32:Specify the index value of the page in Swiper.\n 461823b3eb3cSopenharmony_ci * .value[1]?.i32:Set whether there is an animation effect when flipping to the specified page. 1 indicates active 461923b3eb3cSopenharmony_ci * effect, 0 indicates no active effect, default value is 0。\n 462023b3eb3cSopenharmony_ci */ 462123b3eb3cSopenharmony_ci NODE_SWIPER_SWIPE_TO_INDEX, 462223b3eb3cSopenharmony_ci 462323b3eb3cSopenharmony_ci /** 462423b3eb3cSopenharmony_ci * @brief Set to disable component navigation point interactions. 462523b3eb3cSopenharmony_ci * 462623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 462723b3eb3cSopenharmony_ci * .value[0].i32: Set to disable component navigation point interaction, set to true to indicate the navigation point 462823b3eb3cSopenharmony_ci * is interactive, default value is true.\n 462923b3eb3cSopenharmony_ci * \n 463023b3eb3cSopenharmony_ci * The return value of the attribute acquisition method {@link ArkUI_AttributeItem} format: \n 463123b3eb3cSopenharmony_ci * .value[0].i32: Set to disable component navigation point interactions. \n 463223b3eb3cSopenharmony_ci */ 463323b3eb3cSopenharmony_ci NODE_SWIPER_INDICATOR_INTERACTIVE, 463423b3eb3cSopenharmony_ci 463523b3eb3cSopenharmony_ci /** 463623b3eb3cSopenharmony_ci * @brief: Set the delineation component of the ListItem, supporting property settings, property resets, and 463723b3eb3cSopenharmony_ci * property acquisition interfaces. 463823b3eb3cSopenharmony_ci * 463923b3eb3cSopenharmony_ci * Attribute setting method parameter {@link ArkUI_AttributeItem} format: \n 464023b3eb3cSopenharmony_ci * .object: Construct using the {@link ArkUI_ListitemSwipeActionOption} object. \n 464123b3eb3cSopenharmony_ci * \n 464223b3eb3cSopenharmony_ci * The return value of the attribute acquisition method {@link ArkUI_AttributeItem} format: \n 464323b3eb3cSopenharmony_ci * .object: Construct using the {@link ArkUI_ListitemSwipeActionOption} object. \n 464423b3eb3cSopenharmony_ci * 464523b3eb3cSopenharmony_ci */ 464623b3eb3cSopenharmony_ci NODE_LIST_ITEM_SWIPE_ACTION = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LIST_ITEM, 464723b3eb3cSopenharmony_ci 464823b3eb3cSopenharmony_ci /** 464923b3eb3cSopenharmony_ci * @brief Defines the header of the list item group. 465023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 465123b3eb3cSopenharmony_ci * 465223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 465323b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeHandle} object to be used as the header of the list item group. \n 465423b3eb3cSopenharmony_ci * \n 465523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 465623b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeHandle} object to be used as the header of the list item group. \n 465723b3eb3cSopenharmony_ci * 465823b3eb3cSopenharmony_ci */ 465923b3eb3cSopenharmony_ci NODE_LIST_ITEM_GROUP_SET_HEADER = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LIST_ITEM_GROUP, 466023b3eb3cSopenharmony_ci /** 466123b3eb3cSopenharmony_ci * @brief Defines the footer of the list item group. This attribute can be set, reset, and obtained as 466223b3eb3cSopenharmony_ci * required through APIs. 466323b3eb3cSopenharmony_ci * 466423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 466523b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeHandle} object to be used as the footer of the list item group. \n 466623b3eb3cSopenharmony_ci * \n 466723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 466823b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeHandle} object to be used as the footer of the list item group. \n 466923b3eb3cSopenharmony_ci * 467023b3eb3cSopenharmony_ci */ 467123b3eb3cSopenharmony_ci NODE_LIST_ITEM_GROUP_SET_FOOTER, 467223b3eb3cSopenharmony_ci /** 467323b3eb3cSopenharmony_ci * @brief Defines the style of the divider for the list items. This attribute can be set, reset, and obtained 467423b3eb3cSopenharmony_ci * as required through APIs. 467523b3eb3cSopenharmony_ci * 467623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 467723b3eb3cSopenharmony_ci * .value[0].u32: color of the divider, in 0xARGB format.\n 467823b3eb3cSopenharmony_ci * .value[1].f32: stroke width of the divider, in vp.\n 467923b3eb3cSopenharmony_ci * .value[2].f32: distance between the divider and the start of the list, in vp.\n 468023b3eb3cSopenharmony_ci * .value[3].f32: distance between the divider and the end of the list, in vp.\n \n 468123b3eb3cSopenharmony_ci * \n 468223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 468323b3eb3cSopenharmony_ci * .value[0].u32: color of the divider, in 0xARGB format.\n 468423b3eb3cSopenharmony_ci * .value[1].f32: stroke width of the divider, in vp.\n 468523b3eb3cSopenharmony_ci * .value[2].f32: distance between the divider and the start of the list, in vp.\n 468623b3eb3cSopenharmony_ci * .value[3].f32: distance between the divider and the end of the list, in vp.\n \n 468723b3eb3cSopenharmony_ci * 468823b3eb3cSopenharmony_ci */ 468923b3eb3cSopenharmony_ci NODE_LIST_ITEM_GROUP_SET_DIVIDER, 469023b3eb3cSopenharmony_ci 469123b3eb3cSopenharmony_ci /** 469223b3eb3cSopenharmony_ci * @brief Set the default spindle size for the ListItem Group subcomponent. 469323b3eb3cSopenharmony_ci * 469423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 469523b3eb3cSopenharmony_ci * .object: The parameter format is {@ ArkUI-ListChildrenMainSize} \n 469623b3eb3cSopenharmony_ci * \n 469723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 469823b3eb3cSopenharmony_ci * .object: The parameter format is {@ ArkUI-ListChildrenMainSize} \n 469923b3eb3cSopenharmony_ci */ 470023b3eb3cSopenharmony_ci NODE_LIST_ITEM_GROUP_CHILDREN_MAIN_SIZE = 1005003, 470123b3eb3cSopenharmony_ci 470223b3eb3cSopenharmony_ci /** 470323b3eb3cSopenharmony_ci * @brief Defines the horizontal alignment mode of child components in the column. 470423b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 470523b3eb3cSopenharmony_ci * 470623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 470723b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of child components. 470823b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_HorizontalAlignment}.\n 470923b3eb3cSopenharmony_ci * Default value: <b>ARKUI_HORIZONTAL_ALIGNMENT_CENTER</b>. \n 471023b3eb3cSopenharmony_ci * \n 471123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 471223b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of child components. 471323b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_HorizontalAlignment}. \n 471423b3eb3cSopenharmony_ci * 471523b3eb3cSopenharmony_ci */ 471623b3eb3cSopenharmony_ci NODE_COLUMN_ALIGN_ITEMS = MAX_NODE_SCOPE_NUM * ARKUI_NODE_COLUMN, 471723b3eb3cSopenharmony_ci /** 471823b3eb3cSopenharmony_ci * @brief Defines the vertical alignment mode of child components in the column. 471923b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 472023b3eb3cSopenharmony_ci * 472123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 472223b3eb3cSopenharmony_ci * .value[0].i32: vertical alignment mode of child components. The parameter type is {@link ArkUI_FlexAlignment}.\n 472323b3eb3cSopenharmony_ci * Default value: <b>ARKUI_FLEX_ALIGNMENT_START</b>. \n 472423b3eb3cSopenharmony_ci * \n 472523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 472623b3eb3cSopenharmony_ci * .value[0].i32: vertical alignment mode of child components. The parameter type is {@link ArkUI_FlexAlignment}. \n 472723b3eb3cSopenharmony_ci * 472823b3eb3cSopenharmony_ci */ 472923b3eb3cSopenharmony_ci NODE_COLUMN_JUSTIFY_CONTENT, 473023b3eb3cSopenharmony_ci 473123b3eb3cSopenharmony_ci /** 473223b3eb3cSopenharmony_ci * @brief Defines the vertical alignment mode of child components in the row. 473323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 473423b3eb3cSopenharmony_ci * 473523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 473623b3eb3cSopenharmony_ci * .value[0].i32: vertical alignment mode of child components. 473723b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_VerticalAlignment}.\n 473823b3eb3cSopenharmony_ci * Default value: <b>ARKUI_VERTICAL_ALIGNMENT_CENTER</b>. \n 473923b3eb3cSopenharmony_ci * \n 474023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 474123b3eb3cSopenharmony_ci * .value[0].i32: vertical alignment mode of child components. 474223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_VerticalAlignment}. \n 474323b3eb3cSopenharmony_ci * 474423b3eb3cSopenharmony_ci */ 474523b3eb3cSopenharmony_ci NODE_ROW_ALIGN_ITEMS = MAX_NODE_SCOPE_NUM * ARKUI_NODE_ROW, 474623b3eb3cSopenharmony_ci /** 474723b3eb3cSopenharmony_ci * @brief Defines the horizontal alignment mode of child components in the row. 474823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 474923b3eb3cSopenharmony_ci * 475023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 475123b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of child components. 475223b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_FlexAlignment}.\n 475323b3eb3cSopenharmony_ci * Default value: <b>ARKUI_FLEX_ALIGNMENT_START</b>. \n 475423b3eb3cSopenharmony_ci * \n 475523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 475623b3eb3cSopenharmony_ci * .value[0].i32: horizontal alignment mode of child components. 475723b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_FlexAlignment}. \n 475823b3eb3cSopenharmony_ci * 475923b3eb3cSopenharmony_ci */ 476023b3eb3cSopenharmony_ci NODE_ROW_JUSTIFY_CONTENT, 476123b3eb3cSopenharmony_ci 476223b3eb3cSopenharmony_ci /** 476323b3eb3cSopenharmony_ci * @brief Defines the flex attribute. This attribute can be set, reset, and obtained as required through APIs. 476423b3eb3cSopenharmony_ci * 476523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 476623b3eb3cSopenharmony_ci * .value[0]?.i32: direction in which flex items are arranged. The parameter type is {@link ArkUI_FlexDirection}. 476723b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FLEX_DIRECTION_ROW</b>.\n 476823b3eb3cSopenharmony_ci * .value[1]?.i32: how the flex items are wrapped. The parameter type is {@link ArkUI_FlexWrap}. 476923b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FLEX_WRAP_NO_WRAP</b>.\n 477023b3eb3cSopenharmony_ci * .value[2]?.i32: alignment mode along the main axis. The parameter type is {@link ArkUI_FlexAlignment}. 477123b3eb3cSopenharmony_ci * The default value is <b>ARKUI_FLEX_ALIGNMENT_START</b>.\n 477223b3eb3cSopenharmony_ci * .value[3]?.i32: alignment mode along the cross axis. The parameter type is {@link ArkUI_ItemAlignment}. 477323b3eb3cSopenharmony_ci * The default value is <b>ARKUI_ITEM_ALIGNMENT_START</b>.\n 477423b3eb3cSopenharmony_ci * .value[4]?.i32: alignment mode along the cross axis for multi-line content. The parameter type is 477523b3eb3cSopenharmony_ci * {@link ArkUI_FlexAlignment}. The default value is <b>ARKUI_FLEX_ALIGNMENT_START</b>.\n 477623b3eb3cSopenharmony_ci * \n 477723b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 477823b3eb3cSopenharmony_ci * .value[0].i32: direction in which flex items are arranged. \n 477923b3eb3cSopenharmony_ci * .value[1].i32: how the flex items are wrapped. \n 478023b3eb3cSopenharmony_ci * .value[2].i32: alignment mode along the main axis. \n 478123b3eb3cSopenharmony_ci * .value[3].i32: alignment mode along the cross axis. \n 478223b3eb3cSopenharmony_ci * .value[4]?.i32: alignment mode along the cross axis for multi-line content.\n 478323b3eb3cSopenharmony_ci * 478423b3eb3cSopenharmony_ci */ 478523b3eb3cSopenharmony_ci NODE_FLEX_OPTION = MAX_NODE_SCOPE_NUM * ARKUI_NODE_FLEX, 478623b3eb3cSopenharmony_ci 478723b3eb3cSopenharmony_ci /** 478823b3eb3cSopenharmony_ci * @brief Sets whether the component is being refreshed. 478923b3eb3cSopenharmony_ci * This attribute can be set and obtained as required through APIs. 479023b3eb3cSopenharmony_ci * 479123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 479223b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 479323b3eb3cSopenharmony_ci * \n 479423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 479523b3eb3cSopenharmony_ci * .value[0].i32: The parameter type is 1 or 0. 479623b3eb3cSopenharmony_ci * 479723b3eb3cSopenharmony_ci */ 479823b3eb3cSopenharmony_ci NODE_REFRESH_REFRESHING = MAX_NODE_SCOPE_NUM * ARKUI_NODE_REFRESH, 479923b3eb3cSopenharmony_ci /** 480023b3eb3cSopenharmony_ci * @brief Sets the custom content in the pull-down area. 480123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 480223b3eb3cSopenharmony_ci * 480323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 480423b3eb3cSopenharmony_ci * .object: The parameter type is {@link ArkUI_NodeHandle}. 480523b3eb3cSopenharmony_ci * 480623b3eb3cSopenharmony_ci */ 480723b3eb3cSopenharmony_ci NODE_REFRESH_CONTENT, 480823b3eb3cSopenharmony_ci /** 480923b3eb3cSopenharmony_ci * @brief Sets the pull-down ratio. This attribute can be set, reset, and obtained as required through APIs. 481023b3eb3cSopenharmony_ci * 481123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 481223b3eb3cSopenharmony_ci * .value[0].f32: pull-down ratio. The value is in the range from 0 to 1. 481323b3eb3cSopenharmony_ci * \n 481423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 481523b3eb3cSopenharmony_ci * .value[0].f32: pull-down ratio. The value is in the range from 0 to 1. 481623b3eb3cSopenharmony_ci * 481723b3eb3cSopenharmony_ci */ 481823b3eb3cSopenharmony_ci NODE_REFRESH_PULL_DOWN_RATIO = 1009002, 481923b3eb3cSopenharmony_ci /** 482023b3eb3cSopenharmony_ci * @brief Sets the pull-down offset that initiates a refresh. 482123b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 482223b3eb3cSopenharmony_ci * 482323b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 482423b3eb3cSopenharmony_ci *.value[0].f32: pull-down offset, in vp. The default value is <b>64vp</b>. 482523b3eb3cSopenharmony_ci * \n 482623b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 482723b3eb3cSopenharmony_ci *.value[0].f32: pull-down offset, in vp. The default value is <b>64vp</b>. 482823b3eb3cSopenharmony_ci * 482923b3eb3cSopenharmony_ci */ 483023b3eb3cSopenharmony_ci NODE_REFRESH_OFFSET = 1009003, 483123b3eb3cSopenharmony_ci /** 483223b3eb3cSopenharmony_ci * @brief Sets whether to initiate a refresh when the pull-down distance exceeds the value of <b>refreshOffset</b>. 483323b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 483423b3eb3cSopenharmony_ci * 483523b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 483623b3eb3cSopenharmony_ci * .value[0].i32: whether to initiate a refresh. The value <b>true</b> means to initiate a refresh, and 483723b3eb3cSopenharmony_ci * <b>false</b> means the opposite. 483823b3eb3cSopenharmony_ci * \n 483923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 484023b3eb3cSopenharmony_ci * .value[0].i32: whether to initiate a refresh. The value <b>1</b> means to initiate a refresh, and 484123b3eb3cSopenharmony_ci * <b>0</b> means the opposite. 484223b3eb3cSopenharmony_ci * 484323b3eb3cSopenharmony_ci */ 484423b3eb3cSopenharmony_ci NODE_REFRESH_PULL_TO_REFRESH = 1009004, 484523b3eb3cSopenharmony_ci 484623b3eb3cSopenharmony_ci /** 484723b3eb3cSopenharmony_ci * @brief Defines the main axis direction of the <b><WaterFlow></b> component layout. 484823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 484923b3eb3cSopenharmony_ci * 485023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 485123b3eb3cSopenharmony_ci * .value[0].i32: main axis direction. The parameter type is {@link ArkUI_FlexDirection}. 485223b3eb3cSopenharmony_ci * \n 485323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 485423b3eb3cSopenharmony_ci * .value[0].i32: main axis direction. The parameter type is {@link ArkUI_FlexDirection}. 485523b3eb3cSopenharmony_ci * 485623b3eb3cSopenharmony_ci */ 485723b3eb3cSopenharmony_ci NODE_WATER_FLOW_LAYOUT_DIRECTION = MAX_NODE_SCOPE_NUM * ARKUI_NODE_WATER_FLOW, 485823b3eb3cSopenharmony_ci /** 485923b3eb3cSopenharmony_ci * @brief Sets the number of columns in the water flow layout. If this parameter is not set, one column is used 486023b3eb3cSopenharmony_ci * by default. This attribute can be set, reset, and obtained as required through APIs. 486123b3eb3cSopenharmony_ci * For example, <b>'1fr 1fr 2fr'</b> indicates three columns, with the first column taking up 1/4 of the parent 486223b3eb3cSopenharmony_ci * component's full width, the second column 1/4, and the third column 2/4. 486323b3eb3cSopenharmony_ci * You can use <b>columnsTemplate('repeat(auto-fill,track-size)')</b> to automatically calculate the number of 486423b3eb3cSopenharmony_ci * columns based on the specified column width <b>track-size</b>. 486523b3eb3cSopenharmony_ci * <b>repeat</b> and <b>auto-fill</b> are keywords. The units for <b>track-size</b> can be px, vp (default), %, 486623b3eb3cSopenharmony_ci * or a valid number. 486723b3eb3cSopenharmony_ci * 486823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 486923b3eb3cSopenharmony_ci * .string: number of columns in the layout.\n 487023b3eb3cSopenharmony_ci * \n 487123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 487223b3eb3cSopenharmony_ci * .string: number of columns in the layout.\n 487323b3eb3cSopenharmony_ci * 487423b3eb3cSopenharmony_ci */ 487523b3eb3cSopenharmony_ci NODE_WATER_FLOW_COLUMN_TEMPLATE, 487623b3eb3cSopenharmony_ci 487723b3eb3cSopenharmony_ci /** 487823b3eb3cSopenharmony_ci * @brief Sets the number of rows in the water flow layout. If this parameter is not set, one row is used 487923b3eb3cSopenharmony_ci * by default. This attribute can be set, reset, and obtained as required through APIs. 488023b3eb3cSopenharmony_ci * For example, <b>'1fr 1fr 2fr'</b> indicates three rows, with the first row taking up 1/4 of the parent 488123b3eb3cSopenharmony_ci * component's full height, the second row 1/4, and the third row 2/4. 488223b3eb3cSopenharmony_ci * You can use <b>rowsTemplate('repeat(auto-fill,track-size)')</b> to automatically calculate the number of rows 488323b3eb3cSopenharmony_ci * based on the specified row height <b>track-size</b>. 488423b3eb3cSopenharmony_ci * <b>repeat</b> and <b>auto-fill</b> are keywords. The units for <b>track-size</b> can be px, vp (default), %, 488523b3eb3cSopenharmony_ci * or a valid number. 488623b3eb3cSopenharmony_ci * 488723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 488823b3eb3cSopenharmony_ci * .string: number of rows in the layout. \n 488923b3eb3cSopenharmony_ci * \n 489023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 489123b3eb3cSopenharmony_ci * .string: number of rows in the layout. \n 489223b3eb3cSopenharmony_ci * 489323b3eb3cSopenharmony_ci */ 489423b3eb3cSopenharmony_ci NODE_WATER_FLOW_ROW_TEMPLATE, 489523b3eb3cSopenharmony_ci 489623b3eb3cSopenharmony_ci /** 489723b3eb3cSopenharmony_ci * @brief Sets the gap between columns. This attribute can be set, reset, and obtained as required through APIs. 489823b3eb3cSopenharmony_ci * 489923b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 490023b3eb3cSopenharmony_ci * .value[0].f32: gap between columns, in vp.\n 490123b3eb3cSopenharmony_ci * \n 490223b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 490323b3eb3cSopenharmony_ci * .value[0].f32: gap between columns, in vp.\n 490423b3eb3cSopenharmony_ci * 490523b3eb3cSopenharmony_ci */ 490623b3eb3cSopenharmony_ci NODE_WATER_FLOW_COLUMN_GAP, 490723b3eb3cSopenharmony_ci 490823b3eb3cSopenharmony_ci /** 490923b3eb3cSopenharmony_ci * @brief Sets the gap between rows. This attribute can be set, reset, and obtained as required through APIs. 491023b3eb3cSopenharmony_ci * 491123b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 491223b3eb3cSopenharmony_ci * .value[0].f32: gap between lines, in vp.\n 491323b3eb3cSopenharmony_ci * \n 491423b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 491523b3eb3cSopenharmony_ci * .value[0].f32: gap between lines, in vp.\n 491623b3eb3cSopenharmony_ci * 491723b3eb3cSopenharmony_ci */ 491823b3eb3cSopenharmony_ci NODE_WATER_FLOW_ROW_GAP, 491923b3eb3cSopenharmony_ci 492023b3eb3cSopenharmony_ci /** 492123b3eb3cSopenharmony_ci * @brief Defines the water flow section configuration. 492223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 492323b3eb3cSopenharmony_ci * 492423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 492523b3eb3cSopenharmony_ci * .value[0].i32: zero-based index of the water flow item section to update. 492623b3eb3cSopenharmony_ci * The value is converted to an integer. \n 492723b3eb3cSopenharmony_ci * .object: {@ArkUI_WaterFlowSectionOption} object.\n 492823b3eb3cSopenharmony_ci * \n 492923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 493023b3eb3cSopenharmony_ci * .object: {@ArkUI_WaterFlowSectionOption} object.\n 493123b3eb3cSopenharmony_ci * 493223b3eb3cSopenharmony_ci */ 493323b3eb3cSopenharmony_ci NODE_WATER_FLOW_SECTION_OPTION, 493423b3eb3cSopenharmony_ci 493523b3eb3cSopenharmony_ci /** 493623b3eb3cSopenharmony_ci * @brief Defines the water flow adapter. The attribute can be set, reset, and obtained as required through APIs. 493723b3eb3cSopenharmony_ci * 493823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 493923b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n 494023b3eb3cSopenharmony_ci * \n 494123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 494223b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object. \n 494323b3eb3cSopenharmony_ci */ 494423b3eb3cSopenharmony_ci NODE_WATER_FLOW_NODE_ADAPTER, 494523b3eb3cSopenharmony_ci 494623b3eb3cSopenharmony_ci /** 494723b3eb3cSopenharmony_ci * @brief Sets the number of cached items in the water flow adapter. 494823b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 494923b3eb3cSopenharmony_ci * 495023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 495123b3eb3cSopenharmony_ci * .value[0].i32: number of cached items in the water flow adapter. \n 495223b3eb3cSopenharmony_ci */ 495323b3eb3cSopenharmony_ci NODE_WATER_FLOW_CACHED_COUNT, 495423b3eb3cSopenharmony_ci /** 495523b3eb3cSopenharmony_ci * @brief 设置瀑布流组件末尾的自定义显示组件。 495623b3eb3cSopenharmony_ci * 495723b3eb3cSopenharmony_ci * 属性设置方法{@link ArkUI_AttributeItem}参数格式: \n 495823b3eb3cSopenharmony_ci * .object:参数类型{@Link ArkUI_NodeHandle}。 495923b3eb3cSopenharmony_ci * 496023b3eb3cSopenharmony_ci */ 496123b3eb3cSopenharmony_ci NODE_WATER_FLOW_FOOTER, 496223b3eb3cSopenharmony_ci /** 496323b3eb3cSopenharmony_ci * @brief Scroll to the specified index. 496423b3eb3cSopenharmony_ci * 496523b3eb3cSopenharmony_ci * When activating the smooth animation, all items passed through will be loaded and layout calculated, which can 496623b3eb3cSopenharmony_ci * lead to performance issues when loading a large number of items.\n 496723b3eb3cSopenharmony_ci * \n 496823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 496923b3eb3cSopenharmony_ci * .value[0].i32:The index value of the target element to be slid to in the current container.\n 497023b3eb3cSopenharmony_ci * .value[1]?.i32:Set whether there is an action when sliding to the index value of a list item in the list, where 497123b3eb3cSopenharmony_ci * 1 indicates an action and 0 indicates no action. Default value is 0。\n 497223b3eb3cSopenharmony_ci * .value[2]?.i32:Specify the alignment of the sliding element with the current container,The parameter type is 497323b3eb3cSopenharmony_ci * {@link ArkUI_ScrollAlignment}. Default value is </b>ARKUI_SCROLL_ALIGNMENT_START</b>。\n 497423b3eb3cSopenharmony_ci * 497523b3eb3cSopenharmony_ci */ 497623b3eb3cSopenharmony_ci NODE_WATER_FLOW_SCROLL_TO_INDEX, 497723b3eb3cSopenharmony_ci 497823b3eb3cSopenharmony_ci /** 497923b3eb3cSopenharmony_ci * @brief Defines the size constraints to apply to water flow items. 498023b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 498123b3eb3cSopenharmony_ci * 498223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 498323b3eb3cSopenharmony_ci * .value[0].f32: minimum width. The value <b>-1</b> indicates that the minimum width is not set. \n 498423b3eb3cSopenharmony_ci * .value[1].f32: maximum width. The value <b>-1</b> indicates that the maximum width is not set. \n 498523b3eb3cSopenharmony_ci * .value[2].f32: minimum height. The value <b>-1</b> indicates that the minimum height is not set. \n 498623b3eb3cSopenharmony_ci * .value[3].f32: maximum height. The value <b>-1</b> indicates that the maximum height is not set. \n 498723b3eb3cSopenharmony_ci * \n 498823b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 498923b3eb3cSopenharmony_ci * .value[0].f32: minimum width. The value <b>-1</b> indicates that the minimum width is not set. \n 499023b3eb3cSopenharmony_ci * .value[1].f32: maximum width. The value <b>-1</b> indicates that the maximum width is not set. \n 499123b3eb3cSopenharmony_ci * .value[2].f32: minimum height. The value <b>-1</b> indicates that the minimum height is not set. \n 499223b3eb3cSopenharmony_ci * .value[3].f32: maximum height. The value <b>-1</b> indicates that the maximum height is not set. \n 499323b3eb3cSopenharmony_ci * 499423b3eb3cSopenharmony_ci */ 499523b3eb3cSopenharmony_ci NODE_WATER_FLOW_ITEM_CONSTRAINT_SIZE, 499623b3eb3cSopenharmony_ci 499723b3eb3cSopenharmony_ci /** 499823b3eb3cSopenharmony_ci * @brief Sets the number of columns in the water flow layout. If this parameter is not set, one column is used by 499923b3eb3cSopenharmony_ci * default. This attribute can be set, reset, and obtained as required through APIs. 500023b3eb3cSopenharmony_ci * For example, <b>'1fr 1fr 2fr'</b> indicates three columns, with the first column taking up 1/4 of the parent 500123b3eb3cSopenharmony_ci * component's full width, the second column 1/4, and the third column 2/4. 500223b3eb3cSopenharmony_ci * You can use <b>columnsTemplate('repeat(auto-fill,track-size)')</b> to automatically calculate the number of 500323b3eb3cSopenharmony_ci * columns based on the specified column width <b>track-size</b>. 500423b3eb3cSopenharmony_ci * <b>repeat</b> and <b>auto-fill</b> are keywords. The units for <b>track-size</b> can be px, vp (default), %, or 500523b3eb3cSopenharmony_ci * a valid number. 500623b3eb3cSopenharmony_ci * 500723b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 500823b3eb3cSopenharmony_ci * .string: number of columns in the layout.\n 500923b3eb3cSopenharmony_ci * \n 501023b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 501123b3eb3cSopenharmony_ci * .string: number of columns in the layout.\n 501223b3eb3cSopenharmony_ci * 501323b3eb3cSopenharmony_ci */ 501423b3eb3cSopenharmony_ci NODE_GRID_COLUMN_TEMPLATE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_GRID, 501523b3eb3cSopenharmony_ci 501623b3eb3cSopenharmony_ci /** 501723b3eb3cSopenharmony_ci * @brief Sets the number of rows or the minimum row height in the grid layout. If this parameter is not set, one 501823b3eb3cSopenharmony_ci * row is used by default. This attribute can be set, reset, and obtained as required through APIs. 501923b3eb3cSopenharmony_ci * For example, <b>'1fr 1fr 2fr'</b> indicates three rows, with the first row taking up 1/4 of the parent 502023b3eb3cSopenharmony_ci * component's full height, the second row 1/4, and the third row 2/4. 502123b3eb3cSopenharmony_ci * You can use <b>rowsTemplate('repeat(auto-fill,track-size)')</b> to automatically calculate the number of rows 502223b3eb3cSopenharmony_ci * based on the specified row height <b>track-size</b>. 502323b3eb3cSopenharmony_ci * <b>repeat</b> and <b>auto-fill</b> are keywords. The units for <b>track-size</b> can be px, vp (default), %, or 502423b3eb3cSopenharmony_ci * a valid number. 502523b3eb3cSopenharmony_ci * 502623b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 502723b3eb3cSopenharmony_ci * .string: number of rows in the layout. \n 502823b3eb3cSopenharmony_ci * \n 502923b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 503023b3eb3cSopenharmony_ci * .string: number of rows in the layout. \n 503123b3eb3cSopenharmony_ci * 503223b3eb3cSopenharmony_ci */ 503323b3eb3cSopenharmony_ci NODE_GRID_ROW_TEMPLATE, 503423b3eb3cSopenharmony_ci 503523b3eb3cSopenharmony_ci /** 503623b3eb3cSopenharmony_ci * @brief Sets the gap between columns. This attribute can be set, reset, and obtained as required through APIs. 503723b3eb3cSopenharmony_ci * 503823b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 503923b3eb3cSopenharmony_ci * .value[0].f32: gap between columns, in vp.\n 504023b3eb3cSopenharmony_ci * \n 504123b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 504223b3eb3cSopenharmony_ci * .value[0].f32: gap between columns, in vp.\n 504323b3eb3cSopenharmony_ci * 504423b3eb3cSopenharmony_ci */ 504523b3eb3cSopenharmony_ci NODE_GRID_COLUMN_GAP, 504623b3eb3cSopenharmony_ci 504723b3eb3cSopenharmony_ci /** 504823b3eb3cSopenharmony_ci * @brief Sets the gap between rows. This attribute can be set, reset, and obtained as required through APIs. 504923b3eb3cSopenharmony_ci * 505023b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 505123b3eb3cSopenharmony_ci * .value[0].f32: gap between lines, in vp.\n 505223b3eb3cSopenharmony_ci * \n 505323b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 505423b3eb3cSopenharmony_ci * .value[0].f32: gap between lines, in vp.\n 505523b3eb3cSopenharmony_ci * 505623b3eb3cSopenharmony_ci */ 505723b3eb3cSopenharmony_ci NODE_GRID_ROW_GAP, 505823b3eb3cSopenharmony_ci 505923b3eb3cSopenharmony_ci /** 506023b3eb3cSopenharmony_ci * @brief Defines the grid adapter. The attribute can be set, reset, and obtained as required through APIs. 506123b3eb3cSopenharmony_ci * 506223b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 506323b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n 506423b3eb3cSopenharmony_ci * \n 506523b3eb3cSopenharmony_ci * Format of the return value {@link ArkUI_AttributeItem}:\n 506623b3eb3cSopenharmony_ci * .object: {@link ArkUI_NodeAdapter} object. \n 506723b3eb3cSopenharmony_ci */ 506823b3eb3cSopenharmony_ci NODE_GRID_NODE_ADAPTER, 506923b3eb3cSopenharmony_ci 507023b3eb3cSopenharmony_ci /** 507123b3eb3cSopenharmony_ci * @brief Sets the number of cached items in the grid adapter. 507223b3eb3cSopenharmony_ci * This attribute can be set, reset, and obtained as required through APIs. 507323b3eb3cSopenharmony_ci * 507423b3eb3cSopenharmony_ci * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n 507523b3eb3cSopenharmony_ci * .value[0].i32: number of cached items in the water flow adapter. \n 507623b3eb3cSopenharmony_ci */ 507723b3eb3cSopenharmony_ci NODE_GRID_CACHED_COUNT, 507823b3eb3cSopenharmony_ci 507923b3eb3cSopenharmony_ci /** 508023b3eb3cSopenharmony_ci * @brief 设置RelativeContaine容器内的辅助线,支持属性设置,属性重置和属性获取接口。 508123b3eb3cSopenharmony_ci * 508223b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 508323b3eb3cSopenharmony_ci * .object: RelativeContaine容器内的辅助线: \n 508423b3eb3cSopenharmony_ci * \n 508523b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 508623b3eb3cSopenharmony_ci * .object: RelativeContaine容器内的辅助线: \n 508723b3eb3cSopenharmony_ci * 508823b3eb3cSopenharmony_ci */ 508923b3eb3cSopenharmony_ci NODE_RELATIVE_CONTAINER_GUIDE_LINE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_RELATIVE_CONTAINER, 509023b3eb3cSopenharmony_ci 509123b3eb3cSopenharmony_ci /** 509223b3eb3cSopenharmony_ci * @brief 设置RelativeContaine容器内的屏障,支持属性设置,属性重置和属性获取接口。 509323b3eb3cSopenharmony_ci * 509423b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 509523b3eb3cSopenharmony_ci * .object: RelativeContaine容器内的辅助线: \n 509623b3eb3cSopenharmony_ci * \n 509723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 509823b3eb3cSopenharmony_ci * .object: RelativeContaine容器内的屏障: \n 509923b3eb3cSopenharmony_ci * 510023b3eb3cSopenharmony_ci */ 510123b3eb3cSopenharmony_ci NODE_RELATIVE_CONTAINER_BARRIER, 510223b3eb3cSopenharmony_ci 510323b3eb3cSopenharmony_ci /** 510423b3eb3cSopenharmony_ci * @brief 设置帧动画组件的图片帧信息集合。不支持动态更新。支持属性设置,属性重置和属性获取接口。 510523b3eb3cSopenharmony_ci * 510623b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 510723b3eb3cSopenharmony_ci * .size:图片帧的数量; \n 510823b3eb3cSopenharmony_ci * .object:图片帧数组,参数类型为{@ArkUI_ImageFrameInfo}数组; \n 510923b3eb3cSopenharmony_ci * \n 511023b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 511123b3eb3cSopenharmony_ci * .size:图片帧的数量; \n 511223b3eb3cSopenharmony_ci * .object:图片帧数组,参数类型为{@ArkUI_ImageFrameInfo}数组; \n 511323b3eb3cSopenharmony_ci * 511423b3eb3cSopenharmony_ci */ 511523b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_IMAGES = ARKUI_NODE_IMAGE_ANIMATOR * MAX_NODE_SCOPE_NUM, 511623b3eb3cSopenharmony_ci /** 511723b3eb3cSopenharmony_ci * @brief 控制帧动画组件的播放状态。支持属性设置,属性重置和属性获取接口。 511823b3eb3cSopenharmony_ci * 511923b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 512023b3eb3cSopenharmony_ci * .value[0].i32:控制动画的播放状态,参数类型为{@link ArkUI_AnimationStatus},默认值为初始状态。 \n 512123b3eb3cSopenharmony_ci * 512223b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 512323b3eb3cSopenharmony_ci * .value[0].i32:控制动画的播放状态,参数类型为{@link ArkUI_AnimationStatus}。 \n 512423b3eb3cSopenharmony_ci * 512523b3eb3cSopenharmony_ci */ 512623b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_STATE = 19001, 512723b3eb3cSopenharmony_ci /** 512823b3eb3cSopenharmony_ci * @brief 设置帧动画的播放时长,当数组中任意一帧图片单独设置了duration属性后,该属性设置无效。 512923b3eb3cSopenharmony_ci * 支持属性设置,属性重置和属性获取接口。 513023b3eb3cSopenharmony_ci * 513123b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 513223b3eb3cSopenharmony_ci * .value[0].i32:播放时长,单位为毫秒,默认值1000。 \n 513323b3eb3cSopenharmony_ci * 513423b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 513523b3eb3cSopenharmony_ci * .value[0].i32:播放时长,单位为毫秒,默认值1000。 \n 513623b3eb3cSopenharmony_ci * 513723b3eb3cSopenharmony_ci */ 513823b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_DURATION = 19002, 513923b3eb3cSopenharmony_ci /** 514023b3eb3cSopenharmony_ci * @brief 设置帧动画的播放方向。支持属性设置,属性重置和属性获取接口。 514123b3eb3cSopenharmony_ci * 514223b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 514323b3eb3cSopenharmony_ci * .value[0].i32:播放方向,0表示从第一张图片播放到最后一张,1表示从最后一张图片播放到第一张,默认值为0。 \n 514423b3eb3cSopenharmony_ci * 514523b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 514623b3eb3cSopenharmony_ci * .value[0].i32:播放方向,0表示从第一张图片播放到最后一张,1表示从最后一张图片播放到第一张。 \n 514723b3eb3cSopenharmony_ci * 514823b3eb3cSopenharmony_ci */ 514923b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_REVERSE = 19003, 515023b3eb3cSopenharmony_ci /** 515123b3eb3cSopenharmony_ci * @brief 设置图片大小是否固定为组件大小。支持属性设置,属性重置和属性获取接口。 515223b3eb3cSopenharmony_ci * 515323b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 515423b3eb3cSopenharmony_ci * .value[0].i32:设置图片大小是否固定为组件大小,1表示图片大小与组件大小一致。0表示每一张图片的width、height、top和left都要单独设置,默认值为1。\n 515523b3eb3cSopenharmony_ci * 515623b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 515723b3eb3cSopenharmony_ci * .value[0].i32:设置图片大小是否固定为组件大小,1表示图片大小与组件大小一致。0表示每一张图片的width、height、top和left都要单独设置。 \n 515823b3eb3cSopenharmony_ci * 515923b3eb3cSopenharmony_ci */ 516023b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_FIXED_SIZE = 19004, 516123b3eb3cSopenharmony_ci /** 516223b3eb3cSopenharmony_ci * @brief 设置帧动画在当前播放方向下,动画开始前和结束后的状态。支持属性设置,属性重置和属性获取接口。 516323b3eb3cSopenharmony_ci * 516423b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 516523b3eb3cSopenharmony_ci * .value[0].i32:当前播放方向下,动画开始前和结束后的状态,参数类型为{ArkUI_AnimationFillMode},默认值为FORWARDS。 \n 516623b3eb3cSopenharmony_ci * 516723b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 516823b3eb3cSopenharmony_ci * .value[0].i32:当前播放方向下,动画开始前和结束后的状态,参数类型为{ArkUI_AnimationFillMode}。 \n 516923b3eb3cSopenharmony_ci * 517023b3eb3cSopenharmony_ci */ 517123b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_FILL_MODE = 19005, 517223b3eb3cSopenharmony_ci /** 517323b3eb3cSopenharmony_ci * @brief 设置帧动画的播放次数。支持属性设置,属性重置和属性获取接口。 517423b3eb3cSopenharmony_ci * 517523b3eb3cSopenharmony_ci * 属性设置方法参数{@link ArkUI_AttributeItem}格式: \n 517623b3eb3cSopenharmony_ci * .value[0].i32:播放次数。 \n 517723b3eb3cSopenharmony_ci * 517823b3eb3cSopenharmony_ci * 属性获取方法返回值{@link ArkUI_AttributeItem}格式: \n 517923b3eb3cSopenharmony_ci * .value[0].i32:播放次数。 \n 518023b3eb3cSopenharmony_ci * 518123b3eb3cSopenharmony_ci */ 518223b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_ITERATION = 19006, 518323b3eb3cSopenharmony_ci} ArkUI_NodeAttributeType; 518423b3eb3cSopenharmony_ci 518523b3eb3cSopenharmony_ci#define MAX_COMPONENT_EVENT_ARG_NUM 12 518623b3eb3cSopenharmony_ci/** 518723b3eb3cSopenharmony_ci * @brief Defines the parameter type of the component callback event. 518823b3eb3cSopenharmony_ci * 518923b3eb3cSopenharmony_ci * @since 12 519023b3eb3cSopenharmony_ci */ 519123b3eb3cSopenharmony_citypedef struct { 519223b3eb3cSopenharmony_ci /** Data array object. */ 519323b3eb3cSopenharmony_ci ArkUI_NumberValue data[MAX_COMPONENT_EVENT_ARG_NUM]; 519423b3eb3cSopenharmony_ci} ArkUI_NodeComponentEvent; 519523b3eb3cSopenharmony_ci 519623b3eb3cSopenharmony_ci/** 519723b3eb3cSopenharmony_ci * @brief Defines the string type parameter used by the component callback event. 519823b3eb3cSopenharmony_ci * 519923b3eb3cSopenharmony_ci * @since 12 520023b3eb3cSopenharmony_ci */ 520123b3eb3cSopenharmony_citypedef struct { 520223b3eb3cSopenharmony_ci /** String. */ 520323b3eb3cSopenharmony_ci const char* pStr; 520423b3eb3cSopenharmony_ci} ArkUI_StringAsyncEvent; 520523b3eb3cSopenharmony_ci 520623b3eb3cSopenharmony_ci/** 520723b3eb3cSopenharmony_ci * @brief Enumerates the event types supported by the NativeNode component. 520823b3eb3cSopenharmony_ci * 520923b3eb3cSopenharmony_ci * @since 12 521023b3eb3cSopenharmony_ci */ 521123b3eb3cSopenharmony_citypedef enum { 521223b3eb3cSopenharmony_ci /** 521323b3eb3cSopenharmony_ci * @brief Defines the gesture event type. 521423b3eb3cSopenharmony_ci * 521523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 521623b3eb3cSopenharmony_ci * {@link ArkUI_UIInputEvent}. 521723b3eb3cSopenharmony_ci */ 521823b3eb3cSopenharmony_ci NODE_TOUCH_EVENT = 0, 521923b3eb3cSopenharmony_ci 522023b3eb3cSopenharmony_ci /** 522123b3eb3cSopenharmony_ci * @brief Defines the mount event. 522223b3eb3cSopenharmony_ci * 522323b3eb3cSopenharmony_ci * This event is triggered when the component is mounted and displayed. \n 522423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 522523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 522623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 522723b3eb3cSopenharmony_ci */ 522823b3eb3cSopenharmony_ci NODE_EVENT_ON_APPEAR, 522923b3eb3cSopenharmony_ci /** 523023b3eb3cSopenharmony_ci * @brief Defines the unmount event. 523123b3eb3cSopenharmony_ci * 523223b3eb3cSopenharmony_ci * This event is triggered when the component is unmounted and hidden. \n 523323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 523423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 523523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 523623b3eb3cSopenharmony_ci */ 523723b3eb3cSopenharmony_ci NODE_EVENT_ON_DISAPPEAR, 523823b3eb3cSopenharmony_ci 523923b3eb3cSopenharmony_ci /** 524023b3eb3cSopenharmony_ci * @brief Defines the area change event. 524123b3eb3cSopenharmony_ci * 524223b3eb3cSopenharmony_ci * This event is triggered when the component's size, position, or any other attribute that may 524323b3eb3cSopenharmony_ci * affect its display area changes. \n 524423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 524523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 524623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains 12 parameters:\n 524723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: original width of the target element, in vp. 524823b3eb3cSopenharmony_ci * The value is a number. \n 524923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: original height of the target element, in vp. 525023b3eb3cSopenharmony_ci * The value is a number. \n 525123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: original X coordinate of the target element's upper left corner 525223b3eb3cSopenharmony_ci * relative to the parent element's, in vp. The value is a number. \n 525323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[3].f32</b>: original Y coordinate of the target element's upper left corner 525423b3eb3cSopenharmony_ci * relative to the parent element's, in vp. The value is a number. \n 525523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[4].f32</b>: original X coordinate of the target element's upper left corner 525623b3eb3cSopenharmony_ci * relative to the page's, in vp. The value is a number. \n 525723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[5].f32</b>: original Y coordinate of the target element's upper left corner 525823b3eb3cSopenharmony_ci * relative to the page's, in vp. The value is a number. \n 525923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[6].f32</b>: new width of the target element, in vp. The value is a number. \n 526023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[7].f32</b>: new height of the target element, in vp. The value is a number. \n 526123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[8].f32</b>: new X coordinate of the target element's upper left corner relative 526223b3eb3cSopenharmony_ci * to the parent element's, in vp. The value is a number. \n 526323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[9].f32</b>: new Y coordinate of the target element's upper left corner relative 526423b3eb3cSopenharmony_ci * to the parent element's, in vp. The value is a number. \n 526523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[10].f32</b>: new X coordinate of the target element's upper left corner relative 526623b3eb3cSopenharmony_ci * to the page's, in vp. The value is a number. \n 526723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[11].f32</b>: new Y coordinate of the target element's upper left corner relative 526823b3eb3cSopenharmony_ci * to the page's, in vp. The value is a number. \n 526923b3eb3cSopenharmony_ci */ 527023b3eb3cSopenharmony_ci NODE_EVENT_ON_AREA_CHANGE, 527123b3eb3cSopenharmony_ci /** 527223b3eb3cSopenharmony_ci * @brief Defines the focus event. 527323b3eb3cSopenharmony_ci * 527423b3eb3cSopenharmony_ci * This event is triggered when the component obtains the focus. \n 527523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 527623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 527723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 527823b3eb3cSopenharmony_ci */ 527923b3eb3cSopenharmony_ci NODE_ON_FOCUS, 528023b3eb3cSopenharmony_ci /** 528123b3eb3cSopenharmony_ci * @brief Defines the blur event. 528223b3eb3cSopenharmony_ci * 528323b3eb3cSopenharmony_ci * This event is triggered when the component loses the focus. \n 528423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 528523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 528623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 528723b3eb3cSopenharmony_ci */ 528823b3eb3cSopenharmony_ci NODE_ON_BLUR, 528923b3eb3cSopenharmony_ci /** 529023b3eb3cSopenharmony_ci * @brief Defines the click event. 529123b3eb3cSopenharmony_ci * 529223b3eb3cSopenharmony_ci * This event is triggered when the component is clicked. \n 529323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 529423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 529523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains 12 parameters:\n 529623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: X coordinate of the click relative to the upper left corner of the 529723b3eb3cSopenharmony_ci * clicked component's original area, in vp. \n 529823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: Y coordinate of the click relative to the upper left corner of the 529923b3eb3cSopenharmony_ci * clicked component's original area, in vp. \n 530023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: event timestamp. It is the interval between the time when the event 530123b3eb3cSopenharmony_ci * is triggered and the time when the system starts, in microseconds. \n 530223b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[3].i32</b>: event input device. The value <b>1</b> indicates the mouse, 530323b3eb3cSopenharmony_ci * <b>2</b> indicates the touchscreen, and <b>4</b> indicates the key. \n 530423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[4].f32</b>: X coordinate of the click relative to the upper left corner of the 530523b3eb3cSopenharmony_ci * application window, in vp. \n 530623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[5].f32</b>: Y coordinate of the click relative to the upper left corner of the 530723b3eb3cSopenharmony_ci * application window, in vp. \n 530823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[6].f32</b>: X coordinate of the click relative to the upper left corner of the 530923b3eb3cSopenharmony_ci * application screen, in vp. \n 531023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[7].f32</b>: Y coordinate of the click relative to the upper left corner of the 531123b3eb3cSopenharmony_ci * application screen, in vp. \n 531223b3eb3cSopenharmony_ci */ 531323b3eb3cSopenharmony_ci NODE_ON_CLICK, 531423b3eb3cSopenharmony_ci /** 531523b3eb3cSopenharmony_ci * @brief Defines event interception. 531623b3eb3cSopenharmony_ci * 531723b3eb3cSopenharmony_ci * This event is triggered when the component is touched. \n 531823b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 531923b3eb3cSopenharmony_ci * {@link ArkUI_UIInputEvent}. \n 532023b3eb3cSopenharmony_ci */ 532123b3eb3cSopenharmony_ci NODE_ON_TOUCH_INTERCEPT, 532223b3eb3cSopenharmony_ci /** 532323b3eb3cSopenharmony_ci * @brief Defines the visible area change event. 532423b3eb3cSopenharmony_ci * 532523b3eb3cSopenharmony_ci * This event is triggered when the ratio of the component's visible area to its total area is greater than or less 532623b3eb3cSopenharmony_ci * than the threshold. 532723b3eb3cSopenharmony_ci * Before registering this event, you must set <b>NODE_VISIBLE_AREA_CHANGE_RATIO</b>. \n 532823b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 532923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 533023b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 533123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: how the ratio of the component's visible area to its total area 533223b3eb3cSopenharmony_ci * changes compared to the previous one. The value <b>1</b> indicates an increase, and <b>0</b> indicates a 533323b3eb3cSopenharmony_ci * decrease. \n 533423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: ratio of the component's visible area to its total area when this 533523b3eb3cSopenharmony_ci * callback is invoked. \n 533623b3eb3cSopenharmony_ci */ 533723b3eb3cSopenharmony_ci NODE_EVENT_ON_VISIBLE_AREA_CHANGE, 533823b3eb3cSopenharmony_ci /** 533923b3eb3cSopenharmony_ci * @brief Defines the event triggered when the mouse pointer is moved over or away from the component. 534023b3eb3cSopenharmony_ci * 534123b3eb3cSopenharmony_ci \n 534223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 534323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 534423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 534523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: whether the mouse pointer is hovered over the component. 534623b3eb3cSopenharmony_ci * The value <b>1</b> indicates that the mouse pointer is hovered over the component, and <b>0</b> indicates that 534723b3eb3cSopenharmony_ci * the mouse pointer is moved away from the component. \n 534823b3eb3cSopenharmony_ci */ 534923b3eb3cSopenharmony_ci NODE_ON_HOVER, 535023b3eb3cSopenharmony_ci /** 535123b3eb3cSopenharmony_ci * @brief Defines the click event. 535223b3eb3cSopenharmony_ci * 535323b3eb3cSopenharmony_ci * This event is triggered when the component is clicked by a mouse device button or when the mouse pointer moves 535423b3eb3cSopenharmony_ci * within the component. \n 535523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 535623b3eb3cSopenharmony_ci * {@link ArkUI_UIInputEvent}. \n 535723b3eb3cSopenharmony_ci */ 535823b3eb3cSopenharmony_ci NODE_ON_MOUSE, 535923b3eb3cSopenharmony_ci /** 536023b3eb3cSopenharmony_ci * @brief Defines the mount event. 536123b3eb3cSopenharmony_ci * 536223b3eb3cSopenharmony_ci * This event is triggered when the component is mounted. \n 536323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 536423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 536523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 536623b3eb3cSopenharmony_ci */ 536723b3eb3cSopenharmony_ci NODE_EVENT_ON_ATTACH, 536823b3eb3cSopenharmony_ci /** 536923b3eb3cSopenharmony_ci * @brief Defines the unmount event. 537023b3eb3cSopenharmony_ci * 537123b3eb3cSopenharmony_ci * This event is triggered when the component is unmount. \n 537223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 537323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 537423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 537523b3eb3cSopenharmony_ci */ 537623b3eb3cSopenharmony_ci NODE_EVENT_ON_DETACH, 537723b3eb3cSopenharmony_ci /** 537823b3eb3cSopenharmony_ci * @brief 无障碍支持操作事件触发。 537923b3eb3cSopenharmony_ci * 538023b3eb3cSopenharmony_ci * 触发该事件的条件:已设置无障碍操作类型,并进行相应操作。\n 538123b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 538223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含1个参数: \n 538323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].u32</b>: 触发回调的操作类型,参数类型{@link ArkUI_AccessibilityActionType} \n 538423b3eb3cSopenharmony_ci * 538523b3eb3cSopenharmony_ci */ 538623b3eb3cSopenharmony_ci NODE_ON_ACCESSIBILITY_ACTIONS, 538723b3eb3cSopenharmony_ci 538823b3eb3cSopenharmony_ci /** 538923b3eb3cSopenharmony_ci * @brief Notifies the listener of the interaction state prior to a drop and drop operation. 539023b3eb3cSopenharmony_ci * 539123b3eb3cSopenharmony_ci * This event is triggered when a drag operation is about to start on a draggable item. \n 539223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 539323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 539423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 539523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: corresponds to {@link ArkUI_PreDragStatus}. \n 539623b3eb3cSopenharmony_ci */ 539723b3eb3cSopenharmony_ci NODE_ON_PRE_DRAG = 14, 539823b3eb3cSopenharmony_ci /** 539923b3eb3cSopenharmony_ci * @brief Called when the user starts to drag an ite 540023b3eb3cSopenharmony_ci * 540123b3eb3cSopenharmony_ci * A drag operation is recognized only when the dragged item is moved far enough. \n 540223b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 540323b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 540423b3eb3cSopenharmony_ci */ 540523b3eb3cSopenharmony_ci NODE_ON_DRAG_START = 15, 540623b3eb3cSopenharmony_ci /** 540723b3eb3cSopenharmony_ci * @brief Called when a dragged item enters the boundaries of the current component. 540823b3eb3cSopenharmony_ci * 540923b3eb3cSopenharmony_ci * The current component refers to the component that listens for this event. \n 541023b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 541123b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 541223b3eb3cSopenharmony_ci */ 541323b3eb3cSopenharmony_ci NODE_ON_DRAG_ENTER = 16, 541423b3eb3cSopenharmony_ci /** 541523b3eb3cSopenharmony_ci * @brief Called when a dragged item moves in the current component. 541623b3eb3cSopenharmony_ci * 541723b3eb3cSopenharmony_ci * The current component refers to the component that listens for this event. \n 541823b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 541923b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 542023b3eb3cSopenharmony_ci */ 542123b3eb3cSopenharmony_ci NODE_ON_DRAG_MOVE = 17, 542223b3eb3cSopenharmony_ci /** 542323b3eb3cSopenharmony_ci * @brief Called when a dragged item leaves the boundaries of the current component. 542423b3eb3cSopenharmony_ci * 542523b3eb3cSopenharmony_ci * The current component refers to the component that listens for this event. \n 542623b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 542723b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 542823b3eb3cSopenharmony_ci */ 542923b3eb3cSopenharmony_ci NODE_ON_DRAG_LEAVE = 18, 543023b3eb3cSopenharmony_ci /** 543123b3eb3cSopenharmony_ci * @brief Called when a dragged item is dropped on the current component. 543223b3eb3cSopenharmony_ci * The component can obtain the drag data for processing through the callback. 543323b3eb3cSopenharmony_ci * 543423b3eb3cSopenharmony_ci * The current component refers to the component that listens for this event. \n 543523b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 543623b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 543723b3eb3cSopenharmony_ci */ 543823b3eb3cSopenharmony_ci NODE_ON_DROP = 19, 543923b3eb3cSopenharmony_ci /** 544023b3eb3cSopenharmony_ci * @brief Called when a drag operation ends. 544123b3eb3cSopenharmony_ci * The drag source can obtain the drag result by registering this callback. 544223b3eb3cSopenharmony_ci * 544323b3eb3cSopenharmony_ci * A drag operation ends when the dragged item is released. 544423b3eb3cSopenharmony_ci * When the event callback occurs, the {@link ArkUI_DragEvent} object can be obtained from the 544523b3eb3cSopenharmony_ci * {@link ArkUI_NodeEvent} object. \n 544623b3eb3cSopenharmony_ci */ 544723b3eb3cSopenharmony_ci NODE_ON_DRAG_END = 20, 544823b3eb3cSopenharmony_ci /** 544923b3eb3cSopenharmony_ci * @brief 文本设置TextDataDetectorConfig且识别成功时,触发onDetectResultUpdate回调。 545023b3eb3cSopenharmony_ci * 545123b3eb3cSopenharmony_ci * 触发该事件的条件:文本设置TextDataDetectorConfig且识别成功后。\n 545223b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_StringAsyncEvent}。\n 545323b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}中包含1个参数:\n 545423b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>:表示文本识别的结果,Json格式。\n 545523b3eb3cSopenharmony_ci * 545623b3eb3cSopenharmony_ci */ 545723b3eb3cSopenharmony_ci NODE_TEXT_ON_DETECT_RESULT_UPDATE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT, 545823b3eb3cSopenharmony_ci /** 545923b3eb3cSopenharmony_ci * @brief Defines the image loading success event. 546023b3eb3cSopenharmony_ci * 546123b3eb3cSopenharmony_ci * This event is triggered when an image is successfully loaded or decoded. \n 546223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 546323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 546423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains nine parameters:\n 546523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: loading status. The value <b>0</b> indicates that the image is 546623b3eb3cSopenharmony_ci * loaded successfully, and the value <b>1</b> indicates that the image is decoded successfully. \n 546723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: width of the image, in px. \n 546823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: height of the image, in px. \n 546923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[3].f32</b>: width of the component, in px. \n 547023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[4].f32</b>: height of the component, in px. \n 547123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[5].f32</b>: offset of the rendered content relative to the component on the 547223b3eb3cSopenharmony_ci * x-axis, in px. \n 547323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[6].f32</b>: offset of the rendered content relative to the component on the 547423b3eb3cSopenharmony_ci * y-axis, in px. \n 547523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[7].f32</b>: actual rendered width of the image, in px. \n 547623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[8].f32</b>: actual rendered height of the image, in px. \n 547723b3eb3cSopenharmony_ci */ 547823b3eb3cSopenharmony_ci NODE_IMAGE_ON_COMPLETE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_IMAGE, 547923b3eb3cSopenharmony_ci /** 548023b3eb3cSopenharmony_ci * @brief Defines the image loading failure event. 548123b3eb3cSopenharmony_ci * 548223b3eb3cSopenharmony_ci * This event is triggered when an error occurs during image loading. \n 548323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 548423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 548523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 548623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>error code:\n 548723b3eb3cSopenharmony_ci * 401: The image could not be obtained because the image path is invalid. \n 548823b3eb3cSopenharmony_ci * 103101: The image format is not supported. \n 548923b3eb3cSopenharmony_ci */ 549023b3eb3cSopenharmony_ci NODE_IMAGE_ON_ERROR, 549123b3eb3cSopenharmony_ci /** 549223b3eb3cSopenharmony_ci * @brief Defines the SVG animation playback completion event. 549323b3eb3cSopenharmony_ci * 549423b3eb3cSopenharmony_ci * This event is triggered when the animation playback in the loaded SVG image is complete. \n 549523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 549623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 549723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. 549823b3eb3cSopenharmony_ci */ 549923b3eb3cSopenharmony_ci NODE_IMAGE_ON_SVG_PLAY_FINISH, 550023b3eb3cSopenharmony_ci /** 550123b3eb3cSopenharmony_ci * @brief Defines image download process event. 550223b3eb3cSopenharmony_ci * 550323b3eb3cSopenharmony_ci * This event is triggered when downloading webpage images from page components.\n 550423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 550523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 550623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameter:\n 550723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].u32</b>: the num of bytes downloaded. \n 550823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].u32</b>: the total number of bytes to download. \n 550923b3eb3cSopenharmony_ci */ 551023b3eb3cSopenharmony_ci NODE_IMAGE_ON_DOWNLOAD_PROGRESS, 551123b3eb3cSopenharmony_ci /** 551223b3eb3cSopenharmony_ci * @brief Defines the event triggered when the toggle status changes. 551323b3eb3cSopenharmony_ci * 551423b3eb3cSopenharmony_ci \n 551523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 551623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 551723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter: \n 551823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: toggle status. <b>1</b>: on; <b>0</b>: off. 551923b3eb3cSopenharmony_ci * 552023b3eb3cSopenharmony_ci */ 552123b3eb3cSopenharmony_ci NODE_TOGGLE_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TOGGLE, 552223b3eb3cSopenharmony_ci /** 552323b3eb3cSopenharmony_ci * @brief Defines the event triggered when the text input content changes. 552423b3eb3cSopenharmony_ci * 552523b3eb3cSopenharmony_ci \n 552623b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 552723b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 552823b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 552923b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: text input. 553023b3eb3cSopenharmony_ci * 553123b3eb3cSopenharmony_ci */ 553223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_INPUT, 553323b3eb3cSopenharmony_ci /** 553423b3eb3cSopenharmony_ci * @brief Defines the event triggered when the Enter key of the text input method is pressed. 553523b3eb3cSopenharmony_ci * 553623b3eb3cSopenharmony_ci \n 553723b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 553823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 553923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 554023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: Enter key type of the input method. 554123b3eb3cSopenharmony_ci * 554223b3eb3cSopenharmony_ci */ 554323b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_SUBMIT, 554423b3eb3cSopenharmony_ci /** 554523b3eb3cSopenharmony_ci * @brief Defines the event triggered when the cut button on the pasteboard, which displays when the text box 554623b3eb3cSopenharmony_ci * is long pressed, is clicked. 554723b3eb3cSopenharmony_ci * 554823b3eb3cSopenharmony_ci \n 554923b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 555023b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 555123b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 555223b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: text that is cut. 555323b3eb3cSopenharmony_ci * 555423b3eb3cSopenharmony_ci */ 555523b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_CUT, 555623b3eb3cSopenharmony_ci /** 555723b3eb3cSopenharmony_ci * @brief Defines the event triggered when the paste button on the pasteboard, which displays when the text box 555823b3eb3cSopenharmony_ci * is long pressed, is clicked. 555923b3eb3cSopenharmony_ci * 556023b3eb3cSopenharmony_ci \n 556123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 556223b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 556323b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 556423b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: text that is pasted 556523b3eb3cSopenharmony_ci * 556623b3eb3cSopenharmony_ci */ 556723b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_PASTE, 556823b3eb3cSopenharmony_ci /** 556923b3eb3cSopenharmony_ci * @brief Defines the event triggered when the text selection position changes. 557023b3eb3cSopenharmony_ci * 557123b3eb3cSopenharmony_ci \n 557223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 557323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 557423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 557523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: start position of the text selection area. \n 557623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: end position of the text selection area. \n 557723b3eb3cSopenharmony_ci * 557823b3eb3cSopenharmony_ci */ 557923b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_TEXT_SELECTION_CHANGE, 558023b3eb3cSopenharmony_ci 558123b3eb3cSopenharmony_ci /** 558223b3eb3cSopenharmony_ci * @brief 输入状态变化时,触发该回调。 558323b3eb3cSopenharmony_ci * 558423b3eb3cSopenharmony_ci * 触发该事件的条件:输入状态变化时。\n 558523b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 558623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含1个参数:\n 558723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>:表示true表示正在输入。\n 558823b3eb3cSopenharmony_ci * 558923b3eb3cSopenharmony_ci */ 559023b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_EDIT_CHANGE, 559123b3eb3cSopenharmony_ci 559223b3eb3cSopenharmony_ci /** 559323b3eb3cSopenharmony_ci * @brief textInput输入内容发生变化时触发该事件。 559423b3eb3cSopenharmony_ci * 559523b3eb3cSopenharmony_ci * 触发该事件的条件:输入内容发生变化时。\n 559623b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 559723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含2个参数:\n 559823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>:表示文本的宽度。\n 559923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>:表示文本的高度。\n 560023b3eb3cSopenharmony_ci * 560123b3eb3cSopenharmony_ci */ 560223b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_CONTENT_SIZE_CHANGE, 560323b3eb3cSopenharmony_ci 560423b3eb3cSopenharmony_ci /** 560523b3eb3cSopenharmony_ci * @brief Defines the event triggered when matching with the regular expression specified by 560623b3eb3cSopenharmony_ci * <b>NODE_TEXT_INPUT_INPUT_FILTER</b> fails. 560723b3eb3cSopenharmony_ci * 560823b3eb3cSopenharmony_ci \n 560923b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 561023b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 561123b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 561223b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: content that is filtered out when regular expression matching fails. \n 561323b3eb3cSopenharmony_ci * 561423b3eb3cSopenharmony_ci */ 561523b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_INPUT_FILTER_ERROR, 561623b3eb3cSopenharmony_ci /** 561723b3eb3cSopenharmony_ci * @brief 文本内容滚动时,触发该回调。 561823b3eb3cSopenharmony_ci * 561923b3eb3cSopenharmony_ci * 触发该事件的条件:文本内容滚动时。\n 562023b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 562123b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含2个参数:\n 562223b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>:表示文本在内容区的横坐标偏移。\n 562323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>:表示文本在内容区的纵坐标偏移。\n 562423b3eb3cSopenharmony_ci * 562523b3eb3cSopenharmony_ci */ 562623b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_CONTENT_SCROLL, 562723b3eb3cSopenharmony_ci /** 562823b3eb3cSopenharmony_ci * @brief 定义在将要输入时,触发回调的枚举值。 562923b3eb3cSopenharmony_ci * 563023b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 563123b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:插入的值的位置信息。\n 563223b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:插入的值。 563323b3eb3cSopenharmony_ci * @return 在返回true时,表示正常插入,返回false时,表示不插入。 563423b3eb3cSopenharmony_ci * 可通过OH_ArKUI_NodeEvent_SetReturnValue设置返回值。\n 563523b3eb3cSopenharmony_ci */ 563623b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_WILL_INSERT = 7009, 563723b3eb3cSopenharmony_ci /** 563823b3eb3cSopenharmony_ci * @brief 定义在输入完成时,触发回调的枚举值。 563923b3eb3cSopenharmony_ci * 564023b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 564123b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:插入的值的位置信息。\n 564223b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:插入的值。 564323b3eb3cSopenharmony_ci */ 564423b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_DID_INSERT = 7010, 564523b3eb3cSopenharmony_ci /** 564623b3eb3cSopenharmony_ci * @brief 定义在将要删除时,触发回调的枚举值。 564723b3eb3cSopenharmony_ci * 564823b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 564923b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:删除的值的位置信息。\n 565023b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为1的value.i32:删除值的方向。\n 565123b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:删除的值。 565223b3eb3cSopenharmony_ci * @return 在返回true时,表示正常插入,返回false时,表示不插入。\n 565323b3eb3cSopenharmony_ci * 可通过OH_ArKUI_NodeEvent_SetReturnValue设置返回值。\n 565423b3eb3cSopenharmony_ci */ 565523b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_WILL_DELETE = 7011, 565623b3eb3cSopenharmony_ci /** 565723b3eb3cSopenharmony_ci * @brief 定义在删除完成时,触发回调的枚举值。 565823b3eb3cSopenharmony_ci * 565923b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 566023b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:删除的值的位置信息。\n 566123b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为1的value.i32:删除值的方向。\n 566223b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:删除的值。 566323b3eb3cSopenharmony_ci */ 566423b3eb3cSopenharmony_ci NODE_TEXT_INPUT_ON_DID_DELETE = 7012, 566523b3eb3cSopenharmony_ci /** 566623b3eb3cSopenharmony_ci * @brief Defines the event triggered when the input in the text box changes. 566723b3eb3cSopenharmony_ci * 566823b3eb3cSopenharmony_ci \n 566923b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 567023b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 567123b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 567223b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: text entered. 567323b3eb3cSopenharmony_ci * 567423b3eb3cSopenharmony_ci */ 567523b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_AREA, 567623b3eb3cSopenharmony_ci /** 567723b3eb3cSopenharmony_ci * @brief Defines the event triggered when the paste button on the pasteboard, which displays when the text box is 567823b3eb3cSopenharmony_ci * long pressed, is clicked. 567923b3eb3cSopenharmony_ci * 568023b3eb3cSopenharmony_ci \n 568123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 568223b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}. \n 568323b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent} contains one parameter:\n 568423b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>: text that is pasted 568523b3eb3cSopenharmony_ci * 568623b3eb3cSopenharmony_ci */ 568723b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_PASTE, 568823b3eb3cSopenharmony_ci /** 568923b3eb3cSopenharmony_ci * @brief Defines the event triggered when the text selection position changes. 569023b3eb3cSopenharmony_ci * 569123b3eb3cSopenharmony_ci \n 569223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 569323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 569423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 569523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: start position of the text selection area. \n 569623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: end position of the text selection area. \n 569723b3eb3cSopenharmony_ci * 569823b3eb3cSopenharmony_ci */ 569923b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_TEXT_SELECTION_CHANGE, 570023b3eb3cSopenharmony_ci /** 570123b3eb3cSopenharmony_ci * @brief 设置NODE_TEXT_AREA_INPUT_FILTER,正则匹配失败时触发。 570223b3eb3cSopenharmony_ci * 570323b3eb3cSopenharmony_ci * 触发该事件的条件:正则匹配失败时。\n 570423b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_StringAsyncEvent}。\n 570523b3eb3cSopenharmony_ci * {@link ArkUI_StringAsyncEvent}中包含1个参数:\n 570623b3eb3cSopenharmony_ci * <b>ArkUI_StringAsyncEvent.pStr</b>:表示正则匹配失败时,被过滤的内容。\n 570723b3eb3cSopenharmony_ci * 570823b3eb3cSopenharmony_ci */ 570923b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_INPUT_FILTER_ERROR, 571023b3eb3cSopenharmony_ci /** 571123b3eb3cSopenharmony_ci * @brief 文本内容滚动时,触发该回调。 571223b3eb3cSopenharmony_ci * 571323b3eb3cSopenharmony_ci * 触发该事件的条件:文本内容滚动时。\n 571423b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 571523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含2个参数:\n 571623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>:表示文本在内容区的横坐标偏移。\n 571723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>:表示文本在内容区的纵坐标偏移。\n 571823b3eb3cSopenharmony_ci * 571923b3eb3cSopenharmony_ci */ 572023b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_CONTENT_SCROLL, 572123b3eb3cSopenharmony_ci 572223b3eb3cSopenharmony_ci /** 572323b3eb3cSopenharmony_ci * @brief 输入状态变化时,触发该回调。 572423b3eb3cSopenharmony_ci * 572523b3eb3cSopenharmony_ci * 触发该事件的条件:输入状态变化时。\n 572623b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 572723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含1个参数:\n 572823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>:表示true表示正在输入。\n 572923b3eb3cSopenharmony_ci * 573023b3eb3cSopenharmony_ci */ 573123b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_EDIT_CHANGE, 573223b3eb3cSopenharmony_ci 573323b3eb3cSopenharmony_ci /** 573423b3eb3cSopenharmony_ci * @brief textArea按下输入法回车键触发该事件。 573523b3eb3cSopenharmony_ci * 573623b3eb3cSopenharmony_ci * 触发该事件的条件:按下输入法回车键。keyType为ARKUI_ENTER_KEY_TYPE_NEW_LINE时不触发\n 573723b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 573823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含1个参数:\n 573923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>:输入法回车键类型。 574023b3eb3cSopenharmony_ci * 574123b3eb3cSopenharmony_ci */ 574223b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_SUBMIT, 574323b3eb3cSopenharmony_ci 574423b3eb3cSopenharmony_ci /** 574523b3eb3cSopenharmony_ci * @brief textArea输入内容发生变化时触发该事件。 574623b3eb3cSopenharmony_ci * 574723b3eb3cSopenharmony_ci * 触发该事件的条件:输入内容发生变化时。\n 574823b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 574923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中包含2个参数:\n 575023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>:表示文本的宽度。\n 575123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>:表示文本的高度。\n 575223b3eb3cSopenharmony_ci * 575323b3eb3cSopenharmony_ci */ 575423b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_CONTENT_SIZE_CHANGE, 575523b3eb3cSopenharmony_ci/** 575623b3eb3cSopenharmony_ci * @brief 定义在将要输入时,触发回调的枚举值。 575723b3eb3cSopenharmony_ci * 575823b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 575923b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:插入的值的位置信息。\n 576023b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:插入的值。 576123b3eb3cSopenharmony_ci * @return 在返回true时,表示正常插入,返回false时,表示不插入。 576223b3eb3cSopenharmony_ci * 可通过OH_ArKUI_NodeEvent_SetReturnValue设置返回值。\n 576323b3eb3cSopenharmony_ci */ 576423b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_WILL_INSERT = 8008, 576523b3eb3cSopenharmony_ci /** 576623b3eb3cSopenharmony_ci * @brief 定义在输入完成时,触发回调的枚举值。 576723b3eb3cSopenharmony_ci * 576823b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 576923b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:插入的值的位置信息。\n 577023b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:插入的值。 577123b3eb3cSopenharmony_ci */ 577223b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_DID_INSERT = 8009, 577323b3eb3cSopenharmony_ci /** 577423b3eb3cSopenharmony_ci * @brief 定义在将要删除时,触发回调的枚举值。 577523b3eb3cSopenharmony_ci * 577623b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 577723b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:删除的值的位置信息。\n 577823b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为1的value.i32:删除值的方向。\n 577923b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:删除的值。 578023b3eb3cSopenharmony_ci * @return 在返回true时,表示正常插入,返回false时,表示不插入。\n 578123b3eb3cSopenharmony_ci * 可通过OH_ArKUI_NodeEvent_SetReturnValue设置返回值。\n 578223b3eb3cSopenharmony_ci */ 578323b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_WILL_DELETE = 8010, 578423b3eb3cSopenharmony_ci /** 578523b3eb3cSopenharmony_ci * @brief 定义在删除完成时,触发回调的枚举值。 578623b3eb3cSopenharmony_ci * 578723b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}。\n 578823b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为0的value.f32:删除的值的位置信息。\n 578923b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetNumberValue获取到index为1的value.i32:删除值的方向。\n 579023b3eb3cSopenharmony_ci * 通过OH_ArkUI_NodeEvent_GetStringValue获取到index为0的buffer字符串:删除的值。 579123b3eb3cSopenharmony_ci */ 579223b3eb3cSopenharmony_ci NODE_TEXT_AREA_ON_DID_DELETE = 8011, 579323b3eb3cSopenharmony_ci /** 579423b3eb3cSopenharmony_ci * @brief Defines the event triggered when the selected status of the <b>ARKUI_NODE_CHECKBOX</b> component changes. 579523b3eb3cSopenharmony_ci * 579623b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 579723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 579823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b><b>1</b>: selected; <b>0</b>: not selected.\n 579923b3eb3cSopenharmony_ci */ 580023b3eb3cSopenharmony_ci NODE_CHECKBOX_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_CHECKBOX, 580123b3eb3cSopenharmony_ci 580223b3eb3cSopenharmony_ci /** 580323b3eb3cSopenharmony_ci * @brief Defines the event triggered when a date is selected in the <b>ARKUI_NODE_DATE_PICKER</b> component. 580423b3eb3cSopenharmony_ci * 580523b3eb3cSopenharmony_ci \n 580623b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 580723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 580823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains three parameters:\n 580923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: year of the selected date. \n 581023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: month of the selected date. Value range: [0-11]. \n 581123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].i32</b>: day of the selected date. \n 581223b3eb3cSopenharmony_ci */ 581323b3eb3cSopenharmony_ci NODE_DATE_PICKER_EVENT_ON_DATE_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_DATE_PICKER, 581423b3eb3cSopenharmony_ci 581523b3eb3cSopenharmony_ci /** 581623b3eb3cSopenharmony_ci * @brief Defines the event triggered when a time is selected in the <b>ARKUI_NODE_TIME_PICKER</b> component. 581723b3eb3cSopenharmony_ci * 581823b3eb3cSopenharmony_ci \n 581923b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 582023b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 582123b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 582223b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: hour of the selected time. Value range: [0-23]. \n 582323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: minute of the selected time. Value range: [0-59]. \n 582423b3eb3cSopenharmony_ci */ 582523b3eb3cSopenharmony_ci NODE_TIME_PICKER_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TIME_PICKER, 582623b3eb3cSopenharmony_ci 582723b3eb3cSopenharmony_ci /** 582823b3eb3cSopenharmony_ci * @brief Defines the event triggered when an item is selected in the <b>ARKUI_NODE_TEXT_PICKER</b> component. 582923b3eb3cSopenharmony_ci * 583023b3eb3cSopenharmony_ci \n 583123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 583223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 583323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 583423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0...11].i32</b>: value of the selected item. \n 583523b3eb3cSopenharmony_ci */ 583623b3eb3cSopenharmony_ci NODE_TEXT_PICKER_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_TEXT_PICKER, 583723b3eb3cSopenharmony_ci 583823b3eb3cSopenharmony_ci /** 583923b3eb3cSopenharmony_ci * @brief Defines the event triggered when a date is selected in the <b>NODE_CALENDAR_PICKER</b>. 584023b3eb3cSopenharmony_ci * 584123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 584223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 584323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponent.data[0].u32</b>: year of the selected date. \n 584423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponent.data[1].u32</b>: month of the selected date. \n 584523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponent.data[2].u32</b>: day of the selected date. \n 584623b3eb3cSopenharmony_ci */ 584723b3eb3cSopenharmony_ci NODE_CALENDAR_PICKER_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_CALENDAR_PICKER, 584823b3eb3cSopenharmony_ci 584923b3eb3cSopenharmony_ci /** 585023b3eb3cSopenharmony_ci * @brief Defines the event triggered when the <b>ARKUI_NODE_SLIDER</b> component is dragged or clicked. 585123b3eb3cSopenharmony_ci * 585223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 585323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 585423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 585523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: current slider value. \n 585623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: state triggered by the event.\n 585723b3eb3cSopenharmony_ci */ 585823b3eb3cSopenharmony_ci NODE_SLIDER_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SLIDER, 585923b3eb3cSopenharmony_ci 586023b3eb3cSopenharmony_ci /** 586123b3eb3cSopenharmony_ci * @brief Defines the event triggered when the <b>ARKUI_NODE_RADIO</b> component is dragged or clicked. 586223b3eb3cSopenharmony_ci * 586323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 586423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 586523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 586623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: status of the radio button. \n 586723b3eb3cSopenharmony_ci */ 586823b3eb3cSopenharmony_ci NODE_RADIO_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_RADIO, 586923b3eb3cSopenharmony_ci 587023b3eb3cSopenharmony_ci /** 587123b3eb3cSopenharmony_ci * @brief Defines the event triggered when the index of the currently displayed element of this 587223b3eb3cSopenharmony_ci * <b>ARKUI_NODE_SWIPER</b> instance changes. 587323b3eb3cSopenharmony_ci * 587423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 587523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 587623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 587723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the currently displayed element. \n 587823b3eb3cSopenharmony_ci */ 587923b3eb3cSopenharmony_ci NODE_SWIPER_EVENT_ON_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SWIPER, 588023b3eb3cSopenharmony_ci 588123b3eb3cSopenharmony_ci /** 588223b3eb3cSopenharmony_ci * @brief Defines the event triggered when the switching animation of this <b>ARKUI_NODE_SWIPER</b> instance starts. 588323b3eb3cSopenharmony_ci * 588423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 588523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 588623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains five parameters: \n 588723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the currently displayed element. \n 588823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: index of the target element to switch to. \n 588923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: offset of the currently displayed element relative to the 589023b3eb3cSopenharmony_ci * start position of the swiper along the main axis. \n 589123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[3].f32</b>: offset of the target element relative to the start position 589223b3eb3cSopenharmony_ci * of the swiper along the main axis. \n 589323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[4].f32</b>: hands-off velocity. \n 589423b3eb3cSopenharmony_ci */ 589523b3eb3cSopenharmony_ci NODE_SWIPER_EVENT_ON_ANIMATION_START, 589623b3eb3cSopenharmony_ci 589723b3eb3cSopenharmony_ci /** 589823b3eb3cSopenharmony_ci * @brief Defines the event triggered when the switching animation of this <b>ARKUI_NODE_SWIPER</b> instance ends. 589923b3eb3cSopenharmony_ci * 590023b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 590123b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 590223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 590323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the currently displayed element. \n 590423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: offset of the currently displayed element relative to the 590523b3eb3cSopenharmony_ci * start position of the swiper along the main axis. \n 590623b3eb3cSopenharmony_ci */ 590723b3eb3cSopenharmony_ci NODE_SWIPER_EVENT_ON_ANIMATION_END, 590823b3eb3cSopenharmony_ci 590923b3eb3cSopenharmony_ci /** 591023b3eb3cSopenharmony_ci * @brief Defines the event triggered on a frame-by-frame basis when the page is turned by a swipe in this 591123b3eb3cSopenharmony_ci * <b>ARKUI_NODE_SWIPER</b> instance. 591223b3eb3cSopenharmony_ci * 591323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 591423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 591523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 591623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the currently displayed element. \n 591723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: offset of the currently displayed element relative to the 591823b3eb3cSopenharmony_ci * start position of the swiper along the main axis. \n 591923b3eb3cSopenharmony_ci */ 592023b3eb3cSopenharmony_ci NODE_SWIPER_EVENT_ON_GESTURE_SWIPE, 592123b3eb3cSopenharmony_ci 592223b3eb3cSopenharmony_ci /** 592323b3eb3cSopenharmony_ci * @brief Defines the event triggered when content in the swiper component scrolls. 592423b3eb3cSopenharmony_ci * Instructions: \n 592523b3eb3cSopenharmony_ci * 1. This API does not work when {@link ArkUI_SwiperDisplayModeType} is set to 592623b3eb3cSopenharmony_ci * <b>ARKUI_SWIPER_DISPLAY_MODE_AUTO_LINEAR</b>. \n 592723b3eb3cSopenharmony_ci * 2. This API does not work when <b>prevMargin</b> and <b>nextMargin</b> are set in such a way that the 592823b3eb3cSopenharmony_ci * swiper frontend and backend display the same page during loop playback. \n 592923b3eb3cSopenharmony_ci * 3. During page scrolling, the </b>ContentDidScrollCallback</b> callback is invoked for all pages in the viewport 593023b3eb3cSopenharmony_ci * on a frame-by-frame basis. \n 593123b3eb3cSopenharmony_ci * For example, when there are two pages whose subscripts are 0 and 1 in the viewport, two callbacks whose indexes 593223b3eb3cSopenharmony_ci * are 0 and 1 are invoked in each frame. \n 593323b3eb3cSopenharmony_ci * 4. When the </b>swipeByGroup</b> parameter of the </b>displayCount</b> attribute is set to </b>true</b>, 593423b3eb3cSopenharmony_ci * the callback is invoked for all pages in a group if any page in the group is within the viewport. \n \n 593523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 593623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 593723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains four parameters: \n 593823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the swiper component, which is the same as the index in the 593923b3eb3cSopenharmony_ci * <b>onChange</b> event. \n 594023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: index of a page in the viewport. \n 594123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].f32</b>: position of the page relative to the start position of the swiper 594223b3eb3cSopenharmony_ci * main axis (start position of the page corresponding to <b>selectedIndex</b>). \n 594323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[3].f32</b>: length of the page in the main axis direction. \n 594423b3eb3cSopenharmony_ci */ 594523b3eb3cSopenharmony_ci NODE_SWIPER_EVENT_ON_CONTENT_DID_SCROLL, 594623b3eb3cSopenharmony_ci 594723b3eb3cSopenharmony_ci /** 594823b3eb3cSopenharmony_ci * @brief Defines the event triggered when the <b>ARKUI_NODE_SCROLL</b> component scrolls. 594923b3eb3cSopenharmony_ci * 595023b3eb3cSopenharmony_ci * Notes for triggering the event:\n 595123b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 595223b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 595323b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 595423b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 595523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 595623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 595723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 595823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: horizontal scrolling offset. \n 595923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: vertical scrolling offset. \n 596023b3eb3cSopenharmony_ci */ 596123b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_SCROLL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_SCROLL, 596223b3eb3cSopenharmony_ci /** 596323b3eb3cSopenharmony_ci * @brief Defines the event triggered when each frame scrolling starts in the <b>ARKUI_NODE_SCROLL</b> component. 596423b3eb3cSopenharmony_ci * 596523b3eb3cSopenharmony_ci * Notes for triggering the event:\n 596623b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 596723b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 596823b3eb3cSopenharmony_ci * 2. This event is not triggered when the controller API is called. \n 596923b3eb3cSopenharmony_ci * 3. This event does not support the out-of-bounds bounce effect. \n 597023b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 597123b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 597223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters:\n 597323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: amount to scroll by. \n 597423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: current scrolling state. \n 597523b3eb3cSopenharmony_ci * <b>::ArkUI_NodeComponentEvent</b> contains one return value:\n 597623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: The event handler can work out the amount by which the component 597723b3eb3cSopenharmony_ci * needs to scroll based on the real-world situation and return the result in this parameter. \n 597823b3eb3cSopenharmony_ci */ 597923b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_SCROLL_FRAME_BEGIN, 598023b3eb3cSopenharmony_ci /** 598123b3eb3cSopenharmony_ci * @brief Defines the event triggered when the container is about to scroll. 598223b3eb3cSopenharmony_ci * 598323b3eb3cSopenharmony_ci * Notes for triggering the event:\n 598423b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 598523b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 598623b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 598723b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 598823b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 598923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 599023b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains three parameters: \n 599123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame, in vp. The offset is positive when 599223b3eb3cSopenharmony_ci * the content is scrolled left and negative when the content is scrolled right. \n 599323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: scroll offset of each frame, in vp. The offset is positive when 599423b3eb3cSopenharmony_ci * the content is scrolled up and negative when the content is scrolled down. \n 599523b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].i32</b>: current scroll state. 599623b3eb3cSopenharmony_ci * The parameter type is {@link ArkUI_ScrollState}. \n 599723b3eb3cSopenharmony_ci */ 599823b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_WILL_SCROLL, 599923b3eb3cSopenharmony_ci /** 600023b3eb3cSopenharmony_ci * @brief Defines the event triggered when the container scrolls. 600123b3eb3cSopenharmony_ci * 600223b3eb3cSopenharmony_ci * Notes for triggering the event:\n 600323b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 600423b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 600523b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 600623b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 600723b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 600823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 600923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains three parameters: \n 601023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame, in vp. The offset is positive when the 601123b3eb3cSopenharmony_ci * content is scrolled left and negative when the content is scrolled right. \n 601223b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].f32</b>: scroll offset of each frame, in vp. The offset is positive when the 601323b3eb3cSopenharmony_ci * content is scrolled up and negative when the content is scrolled down. \n 601423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].i32</b>: current scroll state. The parameter type is 601523b3eb3cSopenharmony_ci * {@link ArkUI_ScrollState}. \n 601623b3eb3cSopenharmony_ci */ 601723b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_DID_SCROLL, 601823b3eb3cSopenharmony_ci /** 601923b3eb3cSopenharmony_ci * @brief Defines the event triggered when the container starts scrolling. 602023b3eb3cSopenharmony_ci * 602123b3eb3cSopenharmony_ci * Notes for triggering the event:\n 602223b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started, with support for other input settings, such as keyboard 602323b3eb3cSopenharmony_ci * and mouse operations. \n 602423b3eb3cSopenharmony_ci * 2. This event is triggered when the controller API is called, accompanied by a transition animation. \n 602523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 602623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 602723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. \n 602823b3eb3cSopenharmony_ci */ 602923b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_SCROLL_START, 603023b3eb3cSopenharmony_ci /** 603123b3eb3cSopenharmony_ci * @brief Defines the event triggered when scrolling of the <b>ARKUI_NODE_SCROLL</b> component stops. 603223b3eb3cSopenharmony_ci * 603323b3eb3cSopenharmony_ci * Notes for triggering the event:\n 603423b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is stopped by the <b>ARKUI_NODE_SCROLL</b> component or other input 603523b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 603623b3eb3cSopenharmony_ci * 2. This event is triggered when the controller API is called, accompanied by a transition animation. \n 603723b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 603823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 603923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters. \n 604023b3eb3cSopenharmony_ci */ 604123b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_SCROLL_STOP, 604223b3eb3cSopenharmony_ci /** 604323b3eb3cSopenharmony_ci * @brief Defines the event triggered when scrolling of the <b>ARKUI_NODE_SCROLL</b> component reaches 604423b3eb3cSopenharmony_ci * one of the edges. 604523b3eb3cSopenharmony_ci * 604623b3eb3cSopenharmony_ci * Notes for triggering the event:\n 604723b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling reaches the edge after being started by the <b>ARKUI_NODE_SCROLL</b> 604823b3eb3cSopenharmony_ci * component or other input settings, such as keyboard and mouse operations. \n 604923b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 605023b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 605123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 605223b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 605323b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter. \n 605423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: edge (top, bottom, left, or right) that the scrolling reaches. \n 605523b3eb3cSopenharmony_ci */ 605623b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_SCROLL_EDGE, 605723b3eb3cSopenharmony_ci /** 605823b3eb3cSopenharmony_ci * @brief Define that a callback is triggered 605923b3eb3cSopenharmony_ci * when the scrolling container component reaches the start position. 606023b3eb3cSopenharmony_ci * Condition for triggering the event: \n 606123b3eb3cSopenharmony_ci * Triggered when the component reaches the start position. \n 606223b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is 606323b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent}. \n 606423b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent} contains no parameters. \n 606523b3eb3cSopenharmony_ci */ 606623b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_REACH_START, 606723b3eb3cSopenharmony_ci /** 606823b3eb3cSopenharmony_ci * @brief Define that a callback is triggered when the scrolling container component ends. \n 606923b3eb3cSopenharmony_ci * Condition for triggering the event: \n 607023b3eb3cSopenharmony_ci * Triggered when the component reaches the end. \n 607123b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n 607223b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent}. \n 607323b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent} contains no parameters. \n 607423b3eb3cSopenharmony_ci */ 607523b3eb3cSopenharmony_ci NODE_SCROLL_EVENT_ON_REACH_END, 607623b3eb3cSopenharmony_ci 607723b3eb3cSopenharmony_ci /** 607823b3eb3cSopenharmony_ci * @brief Defines the event triggered when a child component enters or leaves the list display area. 607923b3eb3cSopenharmony_ci * 608023b3eb3cSopenharmony_ci * Notes for triggering the event:\n 608123b3eb3cSopenharmony_ci * This event is triggered once when the list is initialized and when the index of the first child component or the 608223b3eb3cSopenharmony_ci * next child component in the list display area changes. \n 608323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 608423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 608523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains three parameters: \n 608623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: index of the first child component in the list display area. \n 608723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: index of the last child component in the list display area. \n 608823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[2].i32</b>: index of the center child component in the list display area. \n 608923b3eb3cSopenharmony_ci */ 609023b3eb3cSopenharmony_ci NODE_LIST_ON_SCROLL_INDEX = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LIST, 609123b3eb3cSopenharmony_ci /** 609223b3eb3cSopenharmony_ci * @brief Defines the event triggered when the list is about to scroll. 609323b3eb3cSopenharmony_ci * 609423b3eb3cSopenharmony_ci * Notes for triggering the event:\n 609523b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 609623b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 609723b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 609823b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 609923b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 610023b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 610123b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters: \n 610223b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame. The offset is positive when the list 610323b3eb3cSopenharmony_ci * is scrolled up and negative when the list is scrolled down. \n 610423b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: current scroll state. \n 610523b3eb3cSopenharmony_ci */ 610623b3eb3cSopenharmony_ci NODE_LIST_ON_WILL_SCROLL, 610723b3eb3cSopenharmony_ci /** 610823b3eb3cSopenharmony_ci * @brief Defines the event triggered when the list scrolls. 610923b3eb3cSopenharmony_ci * 611023b3eb3cSopenharmony_ci * Notes for triggering the event:\n 611123b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 611223b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 611323b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 611423b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 611523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 611623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 611723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters: \n 611823b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame. The offset is positive when the list 611923b3eb3cSopenharmony_ci * is scrolled up and negative when the list is scrolled down. \n 612023b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: current scroll state. \n 612123b3eb3cSopenharmony_ci */ 612223b3eb3cSopenharmony_ci NODE_LIST_ON_DID_SCROLL, 612323b3eb3cSopenharmony_ci /** 612423b3eb3cSopenharmony_ci * @brief Defines the event triggered when the refresh state of the <b>ARKUI_NODE_REFRESH</b> object changes. 612523b3eb3cSopenharmony_ci * 612623b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 612723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 612823b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 612923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].i32</b>: refresh state. \n 613023b3eb3cSopenharmony_ci */ 613123b3eb3cSopenharmony_ci NODE_REFRESH_STATE_CHANGE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_REFRESH, 613223b3eb3cSopenharmony_ci /** 613323b3eb3cSopenharmony_ci * @brief Defines the event triggered when the <b>ARKUI_NODE_REFRESH</b> object enters the refresh state. 613423b3eb3cSopenharmony_ci * 613523b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 613623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 613723b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} does not contain parameters:\n 613823b3eb3cSopenharmony_ci */ 613923b3eb3cSopenharmony_ci NODE_REFRESH_ON_REFRESH, 614023b3eb3cSopenharmony_ci /** 614123b3eb3cSopenharmony_ci * @brief Defines the event triggered when the pull-down distance of <b>ARKUI_NODE_REFRESH</b> changes. 614223b3eb3cSopenharmony_ci * 614323b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 614423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 614523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains one parameter:\n 614623b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: pull-down distance. \n 614723b3eb3cSopenharmony_ci */ 614823b3eb3cSopenharmony_ci NODE_REFRESH_ON_OFFSET_CHANGE = 1009002, 614923b3eb3cSopenharmony_ci 615023b3eb3cSopenharmony_ci /** 615123b3eb3cSopenharmony_ci * @brief Defines the event triggered when the <b>ARKUI_NODE_SCROLL</b> component is about to scroll. 615223b3eb3cSopenharmony_ci * 615323b3eb3cSopenharmony_ci * Notes for triggering the event:\n 615423b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other 615523b3eb3cSopenharmony_ci * input settings, such as keyboard and mouse operations. \n 615623b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 615723b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 615823b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 615923b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 616023b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters: \n 616123b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame. The offset is positive when the 616223b3eb3cSopenharmony_ci * component is scrolled up and negative when the component is scrolled down. \n 616323b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: current scroll state. \n 616423b3eb3cSopenharmony_ci */ 616523b3eb3cSopenharmony_ci NODE_ON_WILL_SCROLL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_WATER_FLOW, 616623b3eb3cSopenharmony_ci /** 616723b3eb3cSopenharmony_ci * @brief Defines the event triggered when the water flow container scrolls. 616823b3eb3cSopenharmony_ci * 616923b3eb3cSopenharmony_ci * Notes for triggering the event:\n 617023b3eb3cSopenharmony_ci * 1. This event is triggered when scrolling is started by the <b>ARKUI_NODE_SCROLL</b> component or other input 617123b3eb3cSopenharmony_ci * settings, such as keyboard and mouse operations. \n 617223b3eb3cSopenharmony_ci * 2. Scrolling can be initiated by calling the controller API. \n 617323b3eb3cSopenharmony_ci * 3. The out-of-bounds bounce effect is supported. \n 617423b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is 617523b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}. \n 617623b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent} contains two parameters: \n 617723b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[0].f32</b>: scroll offset of each frame. The offset is positive when the 617823b3eb3cSopenharmony_ci * content is scrolled up and negative when the content is scrolled down. \n 617923b3eb3cSopenharmony_ci * <b>ArkUI_NodeComponentEvent.data[1].i32</b>: current scroll state. \n 618023b3eb3cSopenharmony_ci */ 618123b3eb3cSopenharmony_ci NODE_WATER_FLOW_ON_DID_SCROLL, 618223b3eb3cSopenharmony_ci /** 618323b3eb3cSopenharmony_ci * @brief Defines the enumerated values of the event triggered, 618423b3eb3cSopenharmony_ci * when the subcomponent of the start position or end position displayed in the current waterfall changes. 618523b3eb3cSopenharmony_ci * Condition for triggering the event: \n 618623b3eb3cSopenharmony_ci * This event is triggered when the index value of the first or last subcomponent \n 618723b3eb3cSopenharmony_ci * in the waterfall display area changes. \n 618823b3eb3cSopenharmony_ci * When the event callback occurs, the union type in the {@Link ArkUI_NodeEvent} object is \n 618923b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent}. \n 619023b3eb3cSopenharmony_ci * {@Link ArkUI_NodeComponentEvent} contains three parameters: \n 619123b3eb3cSopenharmony_ci * ArkUI_NodeComponentEvent.data[0].i32: The index value of \n 619223b3eb3cSopenharmony_ci * the start position of the currently displayed WaterFlow. \n 619323b3eb3cSopenharmony_ci * ArkUI_NodeComponentEvent.data[1].i32: The index value of \n 619423b3eb3cSopenharmony_ci * the end position of the currently displayed waterfall. \n 619523b3eb3cSopenharmony_ci */ 619623b3eb3cSopenharmony_ci NODE_WATER_FLOW_ON_SCROLL_INDEX, 619723b3eb3cSopenharmony_ci 619823b3eb3cSopenharmony_ci /** 619923b3eb3cSopenharmony_ci * @brief 定义帧动画开始的状态回调。 620023b3eb3cSopenharmony_ci * 620123b3eb3cSopenharmony_ci * 触发该事件的条件:\n 620223b3eb3cSopenharmony_ci * 1、帧动画开始播放时。\n 620323b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 620423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中不包含参数。\n 620523b3eb3cSopenharmony_ci * 620623b3eb3cSopenharmony_ci */ 620723b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_EVENT_ON_START = MAX_NODE_SCOPE_NUM * ARKUI_NODE_IMAGE_ANIMATOR, 620823b3eb3cSopenharmony_ci /** 620923b3eb3cSopenharmony_ci * @brief 定义帧动画播放暂停时的状态回调。 621023b3eb3cSopenharmony_ci * 621123b3eb3cSopenharmony_ci * 触发该事件的条件:\n 621223b3eb3cSopenharmony_ci * 1、帧动画暂停播放时。\n 621323b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 621423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中不包含参数。\n 621523b3eb3cSopenharmony_ci * 621623b3eb3cSopenharmony_ci */ 621723b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_EVENT_ON_PAUSE = 19001, 621823b3eb3cSopenharmony_ci /** 621923b3eb3cSopenharmony_ci * @brief 定义帧动画c重复播放时的状态回调。 622023b3eb3cSopenharmony_ci * 622123b3eb3cSopenharmony_ci * 触发该事件的条件:\n 622223b3eb3cSopenharmony_ci * 1、帧动画重复播放时。\n 622323b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 622423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中不包含参数。\n 622523b3eb3cSopenharmony_ci * 622623b3eb3cSopenharmony_ci */ 622723b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_EVENT_ON_REPEAT = 19002, 622823b3eb3cSopenharmony_ci /** 622923b3eb3cSopenharmony_ci * @brief 定义帧动画返回最初状态时的状态回调。 623023b3eb3cSopenharmony_ci * 623123b3eb3cSopenharmony_ci * 触发该事件的条件:\n 623223b3eb3cSopenharmony_ci * 1、帧动画返回最初状态时。\n 623323b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 623423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中不包含参数。\n 623523b3eb3cSopenharmony_ci * 623623b3eb3cSopenharmony_ci */ 623723b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_EVENT_ON_CANCEL = 19003, 623823b3eb3cSopenharmony_ci /** 623923b3eb3cSopenharmony_ci * @brief 定义帧动画播放完成时或者停止播放时的状态回调。 624023b3eb3cSopenharmony_ci * 624123b3eb3cSopenharmony_ci * 触发该事件的条件:\n 624223b3eb3cSopenharmony_ci * 1、帧动画播放完成时或停止播放时。\n 624323b3eb3cSopenharmony_ci * 事件回调发生时,事件参数{@link ArkUI_NodeEvent}对象中的联合体类型为{@link ArkUI_NodeComponentEvent}。\n 624423b3eb3cSopenharmony_ci * {@link ArkUI_NodeComponentEvent}中不包含参数。\n 624523b3eb3cSopenharmony_ci * 624623b3eb3cSopenharmony_ci */ 624723b3eb3cSopenharmony_ci NODE_IMAGE_ANIMATOR_EVENT_ON_FINISH = 19004, 624823b3eb3cSopenharmony_ci} ArkUI_NodeEventType; 624923b3eb3cSopenharmony_ci 625023b3eb3cSopenharmony_ci/** 625123b3eb3cSopenharmony_ci * @brief Defines the common structure type of a component event. 625223b3eb3cSopenharmony_ci * 625323b3eb3cSopenharmony_ci * @since 12 625423b3eb3cSopenharmony_ci */ 625523b3eb3cSopenharmony_citypedef struct ArkUI_NodeEvent ArkUI_NodeEvent; 625623b3eb3cSopenharmony_ci 625723b3eb3cSopenharmony_ci/** 625823b3eb3cSopenharmony_ci * @brief Obtains the type of a component event. 625923b3eb3cSopenharmony_ci * 626023b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 626123b3eb3cSopenharmony_ci * @return Returns the type of the component event. 626223b3eb3cSopenharmony_ci * @since 12 626323b3eb3cSopenharmony_ci */ 626423b3eb3cSopenharmony_ciArkUI_NodeEventType OH_ArkUI_NodeEvent_GetEventType(ArkUI_NodeEvent* event); 626523b3eb3cSopenharmony_ci 626623b3eb3cSopenharmony_ci/** 626723b3eb3cSopenharmony_ci * @brief Obtains the custom ID of a component event. 626823b3eb3cSopenharmony_ci * 626923b3eb3cSopenharmony_ci * The event ID is passed in as a parameter when the {@link registerNodeEvent} function is called and can be applied 627023b3eb3cSopenharmony_ci * to the dispatch logic of the same event entry function {@link registerNodeEventReceiver}. 627123b3eb3cSopenharmony_ci * 627223b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 627323b3eb3cSopenharmony_ci * @return Returns the custom ID of the component event. 627423b3eb3cSopenharmony_ci * @since 12 627523b3eb3cSopenharmony_ci */ 627623b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeEvent_GetTargetId(ArkUI_NodeEvent* event); 627723b3eb3cSopenharmony_ci 627823b3eb3cSopenharmony_ci/** 627923b3eb3cSopenharmony_ci * @brief Obtains the component object that triggers a component event. 628023b3eb3cSopenharmony_ci * 628123b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 628223b3eb3cSopenharmony_ci * @return Returns the component object that triggers the component event. 628323b3eb3cSopenharmony_ci * @since 12 628423b3eb3cSopenharmony_ci */ 628523b3eb3cSopenharmony_ciArkUI_NodeHandle OH_ArkUI_NodeEvent_GetNodeHandle(ArkUI_NodeEvent* event); 628623b3eb3cSopenharmony_ci 628723b3eb3cSopenharmony_ci/** 628823b3eb3cSopenharmony_ci * @brief Obtains input event (for example, touch event) data for a component event. 628923b3eb3cSopenharmony_ci * 629023b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 629123b3eb3cSopenharmony_ci * @return Returns the pointer to the input event data. 629223b3eb3cSopenharmony_ci * @since 12 629323b3eb3cSopenharmony_ci */ 629423b3eb3cSopenharmony_ciArkUI_UIInputEvent* OH_ArkUI_NodeEvent_GetInputEvent(ArkUI_NodeEvent* event); 629523b3eb3cSopenharmony_ci 629623b3eb3cSopenharmony_ci/** 629723b3eb3cSopenharmony_ci * @brief Obtains the numerical data in a component event. 629823b3eb3cSopenharmony_ci * 629923b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 630023b3eb3cSopenharmony_ci * @return Returns the pointer to the numerical data. 630123b3eb3cSopenharmony_ci * @since 12 630223b3eb3cSopenharmony_ci */ 630323b3eb3cSopenharmony_ciArkUI_NodeComponentEvent* OH_ArkUI_NodeEvent_GetNodeComponentEvent(ArkUI_NodeEvent* event); 630423b3eb3cSopenharmony_ci 630523b3eb3cSopenharmony_ci/** 630623b3eb3cSopenharmony_ci * @brief Obtains the string data in a component event. 630723b3eb3cSopenharmony_ci * 630823b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 630923b3eb3cSopenharmony_ci * @return Returns the pointer to the string data. 631023b3eb3cSopenharmony_ci * @since 12 631123b3eb3cSopenharmony_ci */ 631223b3eb3cSopenharmony_ciArkUI_StringAsyncEvent* OH_ArkUI_NodeEvent_GetStringAsyncEvent(ArkUI_NodeEvent* event); 631323b3eb3cSopenharmony_ci 631423b3eb3cSopenharmony_ci/** 631523b3eb3cSopenharmony_ci * @brief Obtains the custom data in a component event. 631623b3eb3cSopenharmony_ci * 631723b3eb3cSopenharmony_ci * This parameter is passed in {@link registerNodeEvent} and can be applied to the service logic when the event 631823b3eb3cSopenharmony_ci * is triggered. 631923b3eb3cSopenharmony_ci * 632023b3eb3cSopenharmony_ci * @param event Indicates the pointer to the component event. 632123b3eb3cSopenharmony_ci * @return Returns the pointer to the custom data. 632223b3eb3cSopenharmony_ci * @since 12 632323b3eb3cSopenharmony_ci */ 632423b3eb3cSopenharmony_civoid* OH_ArkUI_NodeEvent_GetUserData(ArkUI_NodeEvent* event); 632523b3eb3cSopenharmony_ci 632623b3eb3cSopenharmony_ci/** 632723b3eb3cSopenharmony_ci * @brief 获取组件回调事件的数字类型参数。 632823b3eb3cSopenharmony_ci * 632923b3eb3cSopenharmony_ci * @param event 组件事件指针。 633023b3eb3cSopenharmony_ci * @param index 返回值索引。 633123b3eb3cSopenharmony_ci * @param value 具体返回值。 633223b3eb3cSopenharmony_ci * @return 错误码。 633323b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 633423b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID} 组件事件中参数长度超限。 633523b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NODE_EVENT_NO_RETURN} 组件事件不支持返回值。 633623b3eb3cSopenharmony_ci * @since 12 633723b3eb3cSopenharmony_ci */ 633823b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeEvent_GetNumberValue(ArkUI_NodeEvent* event, int32_t index, ArkUI_NumberValue* value); 633923b3eb3cSopenharmony_ci 634023b3eb3cSopenharmony_ci /** 634123b3eb3cSopenharmony_ci * @brief 获取组件回调事件的字符串类型参数,字符串数据仅在事件回调过程中有效,需要在事件回调外使用建议进行额外拷贝处理。 634223b3eb3cSopenharmony_ci * 634323b3eb3cSopenharmony_ci * @param event 组件事件指针。 634423b3eb3cSopenharmony_ci * @param index 返回值索引。 634523b3eb3cSopenharmony_ci * @param string 字符串数组的指针。 634623b3eb3cSopenharmony_ci * @param stringSize 字符串数组的长度。 634723b3eb3cSopenharmony_ci * @return 错误码。 634823b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 634923b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INDEX_OUT_OF_RANGE} 组件事件中参数长度超限。 635023b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID} 组件事件中不存在该数据。 635123b3eb3cSopenharmony_ci * @since 12 635223b3eb3cSopenharmony_ci */ 635323b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeEvent_GetStringValue(ArkUI_NodeEvent* event, int32_t index, char** string, int32_t* stringSize); 635423b3eb3cSopenharmony_ci 635523b3eb3cSopenharmony_ci/** 635623b3eb3cSopenharmony_ci * @brief 设置组件回调事件的返回值。 635723b3eb3cSopenharmony_ci * 635823b3eb3cSopenharmony_ci * @param event 组件事件指针。 635923b3eb3cSopenharmony_ci * @param value 事件数字类型数组。 636023b3eb3cSopenharmony_ci * @param size 数组长度。 636123b3eb3cSopenharmony_ci * @return 错误码。 636223b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 636323b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NODE_EVENT_NO_RETURN} 组件事件不支持返回值。 636423b3eb3cSopenharmony_ci * @since 12 636523b3eb3cSopenharmony_ci */ 636623b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeEvent_SetReturnNumberValue(ArkUI_NodeEvent* event, ArkUI_NumberValue* value, int32_t size); 636723b3eb3cSopenharmony_ci 636823b3eb3cSopenharmony_ci/** 636923b3eb3cSopenharmony_ci * @brief Defines the dirty area flag passed in the <b>::markDirty</b> API. 637023b3eb3cSopenharmony_ci * 637123b3eb3cSopenharmony_ci * @since 12 637223b3eb3cSopenharmony_ci */ 637323b3eb3cSopenharmony_citypedef enum { 637423b3eb3cSopenharmony_ci /** 637523b3eb3cSopenharmony_ci * @brief Remeasure. 637623b3eb3cSopenharmony_ci * 637723b3eb3cSopenharmony_ci * When this type of flag is specified, re-layout is triggered by default. 637823b3eb3cSopenharmony_ci */ 637923b3eb3cSopenharmony_ci NODE_NEED_MEASURE = 1, 638023b3eb3cSopenharmony_ci 638123b3eb3cSopenharmony_ci /** Re-layout. */ 638223b3eb3cSopenharmony_ci NODE_NEED_LAYOUT, 638323b3eb3cSopenharmony_ci /** Re-rendering. */ 638423b3eb3cSopenharmony_ci NODE_NEED_RENDER, 638523b3eb3cSopenharmony_ci} ArkUI_NodeDirtyFlag; 638623b3eb3cSopenharmony_ci 638723b3eb3cSopenharmony_ci/** 638823b3eb3cSopenharmony_ci * @brief Defines the custom component event type. 638923b3eb3cSopenharmony_ci * 639023b3eb3cSopenharmony_ci * @since 12 639123b3eb3cSopenharmony_ci */ 639223b3eb3cSopenharmony_citypedef enum { 639323b3eb3cSopenharmony_ci /** Measure type. */ 639423b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_EVENT_ON_MEASURE = 1 << 0, 639523b3eb3cSopenharmony_ci /** Layout type. */ 639623b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_EVENT_ON_LAYOUT = 1 << 1, 639723b3eb3cSopenharmony_ci /** Draw type. */ 639823b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_EVENT_ON_DRAW = 1 << 2, 639923b3eb3cSopenharmony_ci /** Foreground type. */ 640023b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_EVENT_ON_FOREGROUND_DRAW = 1 << 3, 640123b3eb3cSopenharmony_ci /** Overlay type. */ 640223b3eb3cSopenharmony_ci ARKUI_NODE_CUSTOM_EVENT_ON_OVERLAY_DRAW = 1 << 4, 640323b3eb3cSopenharmony_ci} ArkUI_NodeCustomEventType; 640423b3eb3cSopenharmony_ci 640523b3eb3cSopenharmony_ci/** 640623b3eb3cSopenharmony_ci * @brief Defines the general structure of a custom component event. 640723b3eb3cSopenharmony_ci * 640823b3eb3cSopenharmony_ci * @since 12 640923b3eb3cSopenharmony_ci */ 641023b3eb3cSopenharmony_citypedef struct ArkUI_NodeCustomEvent ArkUI_NodeCustomEvent; 641123b3eb3cSopenharmony_ci 641223b3eb3cSopenharmony_ci/** 641323b3eb3cSopenharmony_ci * @brief Defines the component adapter, which is used for lazy loading of elements of scrollable components. 641423b3eb3cSopenharmony_ci * 641523b3eb3cSopenharmony_ci * @since 12 641623b3eb3cSopenharmony_ci */ 641723b3eb3cSopenharmony_citypedef struct ArkUI_NodeAdapter* ArkUI_NodeAdapterHandle; 641823b3eb3cSopenharmony_ci 641923b3eb3cSopenharmony_ci/** 642023b3eb3cSopenharmony_ci * @brief Defines the component adapter event. 642123b3eb3cSopenharmony_ci * 642223b3eb3cSopenharmony_ci * @since 12 642323b3eb3cSopenharmony_ci */ 642423b3eb3cSopenharmony_citypedef struct ArkUI_NodeAdapterEvent ArkUI_NodeAdapterEvent; 642523b3eb3cSopenharmony_ci 642623b3eb3cSopenharmony_ci/** 642723b3eb3cSopenharmony_ci * @brief Enumerates component adapter events. 642823b3eb3cSopenharmony_ci * 642923b3eb3cSopenharmony_ci * @since 12 643023b3eb3cSopenharmony_ci */ 643123b3eb3cSopenharmony_citypedef enum { 643223b3eb3cSopenharmony_ci /** This event occurs when the component is attached to the adapter. */ 643323b3eb3cSopenharmony_ci NODE_ADAPTER_EVENT_WILL_ATTACH_TO_NODE = 1, 643423b3eb3cSopenharmony_ci /** This event occurs when the component is detached from the adapter. */ 643523b3eb3cSopenharmony_ci NODE_ADAPTER_EVENT_WILL_DETACH_FROM_NODE = 2, 643623b3eb3cSopenharmony_ci /** This event occurs when the adapter obtains the unique ID of the new element to add. */ 643723b3eb3cSopenharmony_ci NODE_ADAPTER_EVENT_ON_GET_NODE_ID = 3, 643823b3eb3cSopenharmony_ci /** This event occurs when the adapter obtains the content of the new element to add. */ 643923b3eb3cSopenharmony_ci NODE_ADAPTER_EVENT_ON_ADD_NODE_TO_ADAPTER = 4, 644023b3eb3cSopenharmony_ci /** This event occurs when the adapter removes an element. */ 644123b3eb3cSopenharmony_ci NODE_ADAPTER_EVENT_ON_REMOVE_NODE_FROM_ADAPTER = 5, 644223b3eb3cSopenharmony_ci} ArkUI_NodeAdapterEventType; 644323b3eb3cSopenharmony_ci 644423b3eb3cSopenharmony_ci/** 644523b3eb3cSopenharmony_ci* @brief Creates a component adapter. 644623b3eb3cSopenharmony_ci* 644723b3eb3cSopenharmony_ci* @since 12 644823b3eb3cSopenharmony_ci*/ 644923b3eb3cSopenharmony_ciArkUI_NodeAdapterHandle OH_ArkUI_NodeAdapter_Create(void); 645023b3eb3cSopenharmony_ci 645123b3eb3cSopenharmony_ci/** 645223b3eb3cSopenharmony_ci* @brief Destroys a component adapter. 645323b3eb3cSopenharmony_ci* 645423b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 645523b3eb3cSopenharmony_ci* @since 12 645623b3eb3cSopenharmony_ci*/ 645723b3eb3cSopenharmony_civoid OH_ArkUI_NodeAdapter_Dispose(ArkUI_NodeAdapterHandle handle); 645823b3eb3cSopenharmony_ci 645923b3eb3cSopenharmony_ci/** 646023b3eb3cSopenharmony_ci* @brief Sets the total number of elements in the specified adapter. 646123b3eb3cSopenharmony_ci* 646223b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 646323b3eb3cSopenharmony_ci* @param size Indicates the number of elements. 646423b3eb3cSopenharmony_ci* @return Returns the error code. 646523b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 646623b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 646723b3eb3cSopenharmony_ci* @since 12 646823b3eb3cSopenharmony_ci*/ 646923b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_SetTotalNodeCount(ArkUI_NodeAdapterHandle handle, uint32_t size); 647023b3eb3cSopenharmony_ci 647123b3eb3cSopenharmony_ci/** 647223b3eb3cSopenharmony_ci* @brief Obtains the total number of elements in the specified adapter. 647323b3eb3cSopenharmony_ci* 647423b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 647523b3eb3cSopenharmony_ci* @return Returns the total number of elements in the adapter. 647623b3eb3cSopenharmony_ci* @since 12 647723b3eb3cSopenharmony_ci*/ 647823b3eb3cSopenharmony_ciuint32_t OH_ArkUI_NodeAdapter_GetTotalNodeCount(ArkUI_NodeAdapterHandle handle); 647923b3eb3cSopenharmony_ci 648023b3eb3cSopenharmony_ci/** 648123b3eb3cSopenharmony_ci* @brief Registers an event callback for the adapter. 648223b3eb3cSopenharmony_ci* 648323b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 648423b3eb3cSopenharmony_ci* @param userData Indicates custom data. 648523b3eb3cSopenharmony_ci* @param receiver Indicates the event receiver callback. 648623b3eb3cSopenharmony_ci* @return Returns the error code. 648723b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 648823b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 648923b3eb3cSopenharmony_ci* @since 12 649023b3eb3cSopenharmony_ci*/ 649123b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_RegisterEventReceiver( 649223b3eb3cSopenharmony_ci ArkUI_NodeAdapterHandle handle, void* userData, void (*receiver)(ArkUI_NodeAdapterEvent* event)); 649323b3eb3cSopenharmony_ci 649423b3eb3cSopenharmony_ci/** 649523b3eb3cSopenharmony_ci* @brief Deregisters an event callback for the adapter. 649623b3eb3cSopenharmony_ci* 649723b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 649823b3eb3cSopenharmony_ci* @since 12 649923b3eb3cSopenharmony_ci*/ 650023b3eb3cSopenharmony_civoid OH_ArkUI_NodeAdapter_UnregisterEventReceiver(ArkUI_NodeAdapterHandle handle); 650123b3eb3cSopenharmony_ci 650223b3eb3cSopenharmony_ci/** 650323b3eb3cSopenharmony_ci* @brief Instructs the specified adapter to reload all elements. 650423b3eb3cSopenharmony_ci* 650523b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 650623b3eb3cSopenharmony_ci* @return Returns the error code. 650723b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 650823b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 650923b3eb3cSopenharmony_ci* @since 12 651023b3eb3cSopenharmony_ci*/ 651123b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_ReloadAllItems(ArkUI_NodeAdapterHandle handle); 651223b3eb3cSopenharmony_ci 651323b3eb3cSopenharmony_ci/** 651423b3eb3cSopenharmony_ci* @brief Instructs the specified adapter to reload certain elements. 651523b3eb3cSopenharmony_ci* 651623b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 651723b3eb3cSopenharmony_ci* @param startPosition Indicates the start position of the elements to reload. 651823b3eb3cSopenharmony_ci* @param itemCount Indicates the number of the elements to reload. 651923b3eb3cSopenharmony_ci* @return Returns the error code. 652023b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 652123b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 652223b3eb3cSopenharmony_ci* @since 12 652323b3eb3cSopenharmony_ci*/ 652423b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_ReloadItem(ArkUI_NodeAdapterHandle handle, uint32_t startPosition, uint32_t itemCount); 652523b3eb3cSopenharmony_ci 652623b3eb3cSopenharmony_ci/** 652723b3eb3cSopenharmony_ci* @brief Instructs the specified adapter to remove certain elements. 652823b3eb3cSopenharmony_ci* 652923b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 653023b3eb3cSopenharmony_ci* @param startPosition Indicates the start position of the elements to remove. 653123b3eb3cSopenharmony_ci* @param itemCount Indicates the number of the elements to remove. 653223b3eb3cSopenharmony_ci* @return Returns the error code. 653323b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 653423b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 653523b3eb3cSopenharmony_ci* @since 12 653623b3eb3cSopenharmony_ci*/ 653723b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_RemoveItem(ArkUI_NodeAdapterHandle handle, uint32_t startPosition, uint32_t itemCount); 653823b3eb3cSopenharmony_ci 653923b3eb3cSopenharmony_ci/** 654023b3eb3cSopenharmony_ci* @brief Instructs the specified adapter to insert certain elements. 654123b3eb3cSopenharmony_ci* 654223b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 654323b3eb3cSopenharmony_ci* @param startPosition Indicates the start position of the elements to insert. 654423b3eb3cSopenharmony_ci* @param itemCount Indicates the number of the elements to insert. 654523b3eb3cSopenharmony_ci* @return Returns the error code. 654623b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 654723b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 654823b3eb3cSopenharmony_ci* @since 12 654923b3eb3cSopenharmony_ci*/ 655023b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_InsertItem(ArkUI_NodeAdapterHandle handle, uint32_t startPosition, uint32_t itemCount); 655123b3eb3cSopenharmony_ci 655223b3eb3cSopenharmony_ci/** 655323b3eb3cSopenharmony_ci* @brief Instructs the specified adapter to move certain elements. 655423b3eb3cSopenharmony_ci* 655523b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 655623b3eb3cSopenharmony_ci* @param from Indicates the start position of the elements to move. 655723b3eb3cSopenharmony_ci* @param to Indicates the end position of the elements to move. 655823b3eb3cSopenharmony_ci* @return Returns the error code. 655923b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 656023b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 656123b3eb3cSopenharmony_ci* @since 12 656223b3eb3cSopenharmony_ci*/ 656323b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_MoveItem(ArkUI_NodeAdapterHandle handle, uint32_t from, uint32_t to); 656423b3eb3cSopenharmony_ci 656523b3eb3cSopenharmony_ci/** 656623b3eb3cSopenharmony_ci* @brief Obtains all elements stored in the specified adapter. 656723b3eb3cSopenharmony_ci* 656823b3eb3cSopenharmony_ci* This API returns the pointer to the array of the elements. You need to manually release the memory data 656923b3eb3cSopenharmony_ci* to which the pointer points. 657023b3eb3cSopenharmony_ci* 657123b3eb3cSopenharmony_ci* @param handle Indicates the target component adapter. 657223b3eb3cSopenharmony_ci* @param items Indicates the pointer to the array of the elements in the adapter. 657323b3eb3cSopenharmony_ci* @param size Indicates the number of elements. 657423b3eb3cSopenharmony_ci* @return Returns the error code. 657523b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 657623b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 657723b3eb3cSopenharmony_ci* @since 12 657823b3eb3cSopenharmony_ci*/ 657923b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapter_GetAllItems(ArkUI_NodeAdapterHandle handle, ArkUI_NodeHandle** items, uint32_t* size); 658023b3eb3cSopenharmony_ci 658123b3eb3cSopenharmony_ci/** 658223b3eb3cSopenharmony_ci* @brief Obtains the custom data passed in during registration of the specified event. 658323b3eb3cSopenharmony_ci* 658423b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 658523b3eb3cSopenharmony_ci* @since 12 658623b3eb3cSopenharmony_ci*/ 658723b3eb3cSopenharmony_civoid* OH_ArkUI_NodeAdapterEvent_GetUserData(ArkUI_NodeAdapterEvent* event); 658823b3eb3cSopenharmony_ci 658923b3eb3cSopenharmony_ci/** 659023b3eb3cSopenharmony_ci* @brief Obtains the event type. 659123b3eb3cSopenharmony_ci* 659223b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 659323b3eb3cSopenharmony_ci* @return Returns the event type. 659423b3eb3cSopenharmony_ci* @since 12 659523b3eb3cSopenharmony_ci*/ 659623b3eb3cSopenharmony_ciArkUI_NodeAdapterEventType OH_ArkUI_NodeAdapterEvent_GetType(ArkUI_NodeAdapterEvent* event); 659723b3eb3cSopenharmony_ci 659823b3eb3cSopenharmony_ci/** 659923b3eb3cSopenharmony_ci* @brief Obtains the element to be removed for the event to be destroyed. 660023b3eb3cSopenharmony_ci* 660123b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 660223b3eb3cSopenharmony_ci* @return Returns the element to be removed. 660323b3eb3cSopenharmony_ci* @since 12 660423b3eb3cSopenharmony_ci*/ 660523b3eb3cSopenharmony_ciArkUI_NodeHandle OH_ArkUI_NodeAdapterEvent_GetRemovedNode(ArkUI_NodeAdapterEvent* event); 660623b3eb3cSopenharmony_ci 660723b3eb3cSopenharmony_ci/** 660823b3eb3cSopenharmony_ci* @brief Obtains the index of the element to be operated for the specified adapter event. 660923b3eb3cSopenharmony_ci* 661023b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 661123b3eb3cSopenharmony_ci* @return Returns the index of the element. 661223b3eb3cSopenharmony_ci* @since 12 661323b3eb3cSopenharmony_ci*/ 661423b3eb3cSopenharmony_ciuint32_t OH_ArkUI_NodeAdapterEvent_GetItemIndex(ArkUI_NodeAdapterEvent* event); 661523b3eb3cSopenharmony_ci 661623b3eb3cSopenharmony_ci/** 661723b3eb3cSopenharmony_ci* @brief Obtains the scrollable container node that uses the specified adapter. 661823b3eb3cSopenharmony_ci* 661923b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 662023b3eb3cSopenharmony_ci* @return Returns the error code. 662123b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 662223b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 662323b3eb3cSopenharmony_ci* @since 12 662423b3eb3cSopenharmony_ci*/ 662523b3eb3cSopenharmony_ciArkUI_NodeHandle OH_ArkUI_NodeAdapterEvent_GetHostNode(ArkUI_NodeAdapterEvent* event); 662623b3eb3cSopenharmony_ci 662723b3eb3cSopenharmony_ci/** 662823b3eb3cSopenharmony_ci* @brief Sets the component to be added to the specified adapter. 662923b3eb3cSopenharmony_ci* 663023b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 663123b3eb3cSopenharmony_ci* @param node Indicates the component to be added. 663223b3eb3cSopenharmony_ci* @return Returns the error code. 663323b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 663423b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 663523b3eb3cSopenharmony_ci* @since 12 663623b3eb3cSopenharmony_ci*/ 663723b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapterEvent_SetItem(ArkUI_NodeAdapterEvent* event, ArkUI_NodeHandle node); 663823b3eb3cSopenharmony_ci 663923b3eb3cSopenharmony_ci/** 664023b3eb3cSopenharmony_ci* @brief Sets the component ID to be generated. 664123b3eb3cSopenharmony_ci* 664223b3eb3cSopenharmony_ci* @param event Indicates the target adapter event. 664323b3eb3cSopenharmony_ci* @param id Indicates the component ID to set. 664423b3eb3cSopenharmony_ci* @return Returns the error code. 664523b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 664623b3eb3cSopenharmony_ci* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 664723b3eb3cSopenharmony_ci* @since 12 664823b3eb3cSopenharmony_ci*/ 664923b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeAdapterEvent_SetNodeId(ArkUI_NodeAdapterEvent* event, int32_t id); 665023b3eb3cSopenharmony_ci 665123b3eb3cSopenharmony_ci/** 665223b3eb3cSopenharmony_ci * @brief Declares a collection of native node APIs provided by ArkUI. 665323b3eb3cSopenharmony_ci * 665423b3eb3cSopenharmony_ci * The APIs related to the native node must be called in the main thread. 665523b3eb3cSopenharmony_ci * 665623b3eb3cSopenharmony_ci * @version 1 665723b3eb3cSopenharmony_ci * @since 12 665823b3eb3cSopenharmony_ci */ 665923b3eb3cSopenharmony_citypedef struct { 666023b3eb3cSopenharmony_ci /** Struct version. */ 666123b3eb3cSopenharmony_ci int32_t version; 666223b3eb3cSopenharmony_ci 666323b3eb3cSopenharmony_ci /** 666423b3eb3cSopenharmony_ci * @brief Creates a component based on {@link ArkUI_NodeType} and returns the pointer to the created component. 666523b3eb3cSopenharmony_ci * 666623b3eb3cSopenharmony_ci * @param type Indicates the type of component to create. 666723b3eb3cSopenharmony_ci * @return Returns the pointer to the created component. If the component fails to be created, NULL is returned. 666823b3eb3cSopenharmony_ci */ 666923b3eb3cSopenharmony_ci ArkUI_NodeHandle (*createNode)(ArkUI_NodeType type); 667023b3eb3cSopenharmony_ci 667123b3eb3cSopenharmony_ci /** 667223b3eb3cSopenharmony_ci * @brief Destroys the component to which the specified pointer points. 667323b3eb3cSopenharmony_ci * 667423b3eb3cSopenharmony_ci * @param node Indicates the pointer. 667523b3eb3cSopenharmony_ci */ 667623b3eb3cSopenharmony_ci void (*disposeNode)(ArkUI_NodeHandle node); 667723b3eb3cSopenharmony_ci 667823b3eb3cSopenharmony_ci /** 667923b3eb3cSopenharmony_ci * @brief Adds a component to a parent node. 668023b3eb3cSopenharmony_ci * 668123b3eb3cSopenharmony_ci * @param parent Indicates the pointer to the parent node. 668223b3eb3cSopenharmony_ci * @param child Indicates the pointer to the child node. 668323b3eb3cSopenharmony_ci * @return Returns the error code. 668423b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 668523b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 668623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 668723b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 668823b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 668923b3eb3cSopenharmony_ci */ 669023b3eb3cSopenharmony_ci int32_t (*addChild)(ArkUI_NodeHandle parent, ArkUI_NodeHandle child); 669123b3eb3cSopenharmony_ci 669223b3eb3cSopenharmony_ci /** 669323b3eb3cSopenharmony_ci * @brief Removes a component from its parent node. 669423b3eb3cSopenharmony_ci * 669523b3eb3cSopenharmony_ci * @param parent Indicates the pointer to the parent node. 669623b3eb3cSopenharmony_ci * @param child Indicates the pointer to the child node. 669723b3eb3cSopenharmony_ci * @return Returns the error code. 669823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 669923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 670023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 670123b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 670223b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 670323b3eb3cSopenharmony_ci */ 670423b3eb3cSopenharmony_ci int32_t (*removeChild)(ArkUI_NodeHandle parent, ArkUI_NodeHandle child); 670523b3eb3cSopenharmony_ci 670623b3eb3cSopenharmony_ci /** 670723b3eb3cSopenharmony_ci * @brief Inserts a component to a parent node after the specified <b>sibling</b> node. 670823b3eb3cSopenharmony_ci * 670923b3eb3cSopenharmony_ci * @param parent Indicates the pointer to the parent node. 671023b3eb3cSopenharmony_ci * @param child Indicates the pointer to the child node. 671123b3eb3cSopenharmony_ci * @param sibling Indicates the pointer to the sibling node after which the target node is to be inserted. 671223b3eb3cSopenharmony_ci * If the value is null, the node is inserted at the start of the parent node. 671323b3eb3cSopenharmony_ci * @return Returns the error code. 671423b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 671523b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 671623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 671723b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 671823b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 671923b3eb3cSopenharmony_ci */ 672023b3eb3cSopenharmony_ci int32_t (*insertChildAfter)(ArkUI_NodeHandle parent, ArkUI_NodeHandle child, ArkUI_NodeHandle sibling); 672123b3eb3cSopenharmony_ci 672223b3eb3cSopenharmony_ci /** 672323b3eb3cSopenharmony_ci * @brief Inserts a component to a parent node before the specified <b>sibling</b> node. 672423b3eb3cSopenharmony_ci * 672523b3eb3cSopenharmony_ci * @param parent Indicates the pointer to the parent node. 672623b3eb3cSopenharmony_ci * @param child Indicates the pointer to the child node. 672723b3eb3cSopenharmony_ci * @param sibling Indicates the pointer to the sibling node before which the target node is to be inserted. 672823b3eb3cSopenharmony_ci * If the value is null, the node is inserted at the end of the parent node. 672923b3eb3cSopenharmony_ci * @return Returns the error code. 673023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 673123b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 673223b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 673323b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 673423b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 673523b3eb3cSopenharmony_ci */ 673623b3eb3cSopenharmony_ci int32_t (*insertChildBefore)(ArkUI_NodeHandle parent, ArkUI_NodeHandle child, ArkUI_NodeHandle sibling); 673723b3eb3cSopenharmony_ci 673823b3eb3cSopenharmony_ci /** 673923b3eb3cSopenharmony_ci * @brief Inserts a component to the specified position in a parent node. 674023b3eb3cSopenharmony_ci * 674123b3eb3cSopenharmony_ci * @param parent Indicates the pointer to the parent node. 674223b3eb3cSopenharmony_ci * @param child Indicates the pointer to the child node. 674323b3eb3cSopenharmony_ci * @param position Indicates the position to which the target child node is to be inserted. If the value is a 674423b3eb3cSopenharmony_ci * negative number or invalid, the node is inserted at the end of the parent node. 674523b3eb3cSopenharmony_ci * @return Returns the error code. 674623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 674723b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 674823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 674923b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 675023b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 675123b3eb3cSopenharmony_ci */ 675223b3eb3cSopenharmony_ci int32_t (*insertChildAt)(ArkUI_NodeHandle parent, ArkUI_NodeHandle child, int32_t position); 675323b3eb3cSopenharmony_ci 675423b3eb3cSopenharmony_ci /** 675523b3eb3cSopenharmony_ci * @brief Sets the attribute of a node. 675623b3eb3cSopenharmony_ci * 675723b3eb3cSopenharmony_ci * @param node Indicates the node whose attribute needs to be set. 675823b3eb3cSopenharmony_ci * @param attribute Indicates the type of attribute to set. 675923b3eb3cSopenharmony_ci * @param item Indicates the attribute value. 676023b3eb3cSopenharmony_ci * @return Returns the error code. 676123b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 676223b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 676323b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} if the dynamic implementation library 676423b3eb3cSopenharmony_ci * of the native API was not found. 676523b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 676623b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 676723b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 676823b3eb3cSopenharmony_ci */ 676923b3eb3cSopenharmony_ci int32_t (*setAttribute)(ArkUI_NodeHandle node, ArkUI_NodeAttributeType attribute, const ArkUI_AttributeItem* item); 677023b3eb3cSopenharmony_ci 677123b3eb3cSopenharmony_ci /** 677223b3eb3cSopenharmony_ci * @brief Obtains an attribute. 677323b3eb3cSopenharmony_ci * 677423b3eb3cSopenharmony_ci * The pointer returned by this API is an internal buffer pointer of the ArkUI framework. As such, you do not need 677523b3eb3cSopenharmony_ci * to call <b>delete</b> to release the memory. However, the pointer must be used before this API is called next 677623b3eb3cSopenharmony_ci * time. Otherwise, the pointer may be overwritten by other values. 677723b3eb3cSopenharmony_ci * 677823b3eb3cSopenharmony_ci * @param node Indicates the node whose attribute needs to be obtained. 677923b3eb3cSopenharmony_ci * @param attribute Indicates the type of attribute to obtain. 678023b3eb3cSopenharmony_ci * @return Returns the attribute value. If the operation fails, a null pointer is returned. 678123b3eb3cSopenharmony_ci */ 678223b3eb3cSopenharmony_ci const ArkUI_AttributeItem* (*getAttribute)(ArkUI_NodeHandle node, ArkUI_NodeAttributeType attribute); 678323b3eb3cSopenharmony_ci 678423b3eb3cSopenharmony_ci /** 678523b3eb3cSopenharmony_ci * @brief Resets an attribute. 678623b3eb3cSopenharmony_ci * 678723b3eb3cSopenharmony_ci * @param node Indicates the node whose attribute needs to be reset. 678823b3eb3cSopenharmony_ci * @param attribute Indicates the type of attribute to reset. 678923b3eb3cSopenharmony_ci * @return Returns the error code. 679023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 679123b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 679223b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} if the dynamic implementation library 679323b3eb3cSopenharmony_ci * of the native API was not found. 679423b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 679523b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 679623b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 679723b3eb3cSopenharmony_ci */ 679823b3eb3cSopenharmony_ci int32_t (*resetAttribute)(ArkUI_NodeHandle node, ArkUI_NodeAttributeType attribute); 679923b3eb3cSopenharmony_ci 680023b3eb3cSopenharmony_ci /** 680123b3eb3cSopenharmony_ci * @brief Registers an event for the specified node. 680223b3eb3cSopenharmony_ci * 680323b3eb3cSopenharmony_ci * @param node Indicates the target node. 680423b3eb3cSopenharmony_ci * @param eventType Indicates the type of event to register. 680523b3eb3cSopenharmony_ci * @param targetId Indicates the custom event ID, which is passed in the callback of {@link ArkUI_NodeEvent} 680623b3eb3cSopenharmony_ci * when the event is triggered. 680723b3eb3cSopenharmony_ci * @param userData Indicates the custom event parameter, which is passed in the callback of {@link ArkUI_NodeEvent} 680823b3eb3cSopenharmony_ci * when the event is triggered. 680923b3eb3cSopenharmony_ci * @return Returns the error code. 681023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 681123b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 681223b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} if the dynamic implementation library 681323b3eb3cSopenharmony_ci * of the native API was not found. 681423b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE} if the following operations are not allowed 681523b3eb3cSopenharmony_ci * on BuilderNode generated nodes: 681623b3eb3cSopenharmony_ci * setting or resetting attributes, setting events, or adding or editing subnodes. 681723b3eb3cSopenharmony_ci */ 681823b3eb3cSopenharmony_ci int32_t (*registerNodeEvent)( 681923b3eb3cSopenharmony_ci ArkUI_NodeHandle node, ArkUI_NodeEventType eventType, int32_t targetId, void* userData); 682023b3eb3cSopenharmony_ci 682123b3eb3cSopenharmony_ci /** 682223b3eb3cSopenharmony_ci * @brief Unregisters an event for the specified node. 682323b3eb3cSopenharmony_ci * 682423b3eb3cSopenharmony_ci * @param node Indicates the target node. 682523b3eb3cSopenharmony_ci * @param eventType Indicates the type of event to unregister. 682623b3eb3cSopenharmony_ci */ 682723b3eb3cSopenharmony_ci void (*unregisterNodeEvent)(ArkUI_NodeHandle node, ArkUI_NodeEventType eventType); 682823b3eb3cSopenharmony_ci 682923b3eb3cSopenharmony_ci /** 683023b3eb3cSopenharmony_ci * @brief Registers an event receiver. 683123b3eb3cSopenharmony_ci * 683223b3eb3cSopenharmony_ci * The ArkUI framework collects component events generated during the process and calls back the events through 683323b3eb3cSopenharmony_ci * the registered event receiver. \n 683423b3eb3cSopenharmony_ci * A new call to this API will overwrite the previously registered event receiver. \n 683523b3eb3cSopenharmony_ci * Do not directly save the <b>ArkUI_NodeEvent</b> object pointer. The data will be destroyed after the callback 683623b3eb3cSopenharmony_ci * is complete. \n 683723b3eb3cSopenharmony_ci * To bind with a component instance, you can use the <b>addNodeEventReceiver</b> function. \n 683823b3eb3cSopenharmony_ci * 683923b3eb3cSopenharmony_ci * @param eventReceiver Indicates the event receiver to register. 684023b3eb3cSopenharmony_ci */ 684123b3eb3cSopenharmony_ci void (*registerNodeEventReceiver)(void (*eventReceiver)(ArkUI_NodeEvent* event)); 684223b3eb3cSopenharmony_ci 684323b3eb3cSopenharmony_ci /** 684423b3eb3cSopenharmony_ci * @brief Unregisters the event receiver. 684523b3eb3cSopenharmony_ci * 684623b3eb3cSopenharmony_ci */ 684723b3eb3cSopenharmony_ci void (*unregisterNodeEventReceiver)(); 684823b3eb3cSopenharmony_ci 684923b3eb3cSopenharmony_ci /** 685023b3eb3cSopenharmony_ci * @brief Forcibly marks the current node that needs to be measured, laid out, or rendered again. 685123b3eb3cSopenharmony_ci * 685223b3eb3cSopenharmony_ci * Regarding updates to system attributes, the ArkUI framework automatically marks the dirty area and performs 685323b3eb3cSopenharmony_ci * measuring, layout, or rendering again. In this case, you do not need to call this API. 685423b3eb3cSopenharmony_ci * 685523b3eb3cSopenharmony_ci * @param node Indicates the node for which you want to mark as dirty area. 685623b3eb3cSopenharmony_ci * @param dirtyFlag Indicates type of dirty area. 685723b3eb3cSopenharmony_ci */ 685823b3eb3cSopenharmony_ci void (*markDirty)(ArkUI_NodeHandle node, ArkUI_NodeDirtyFlag dirtyFlag); 685923b3eb3cSopenharmony_ci 686023b3eb3cSopenharmony_ci /** 686123b3eb3cSopenharmony_ci * @brief Obtains the number of subnodes. 686223b3eb3cSopenharmony_ci * 686323b3eb3cSopenharmony_ci * @param node Indicates the target node. 686423b3eb3cSopenharmony_ci * @return Returns the error code. 686523b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 686623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 686723b3eb3cSopenharmony_ci */ 686823b3eb3cSopenharmony_ci uint32_t (*getTotalChildCount)(ArkUI_NodeHandle node); 686923b3eb3cSopenharmony_ci 687023b3eb3cSopenharmony_ci /** 687123b3eb3cSopenharmony_ci * @brief Obtains a subnode. 687223b3eb3cSopenharmony_ci * 687323b3eb3cSopenharmony_ci * @param node Indicates the target node. 687423b3eb3cSopenharmony_ci * @param position Indicates the position of the subnode. 687523b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 687623b3eb3cSopenharmony_ci */ 687723b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getChildAt)(ArkUI_NodeHandle node, int32_t position); 687823b3eb3cSopenharmony_ci 687923b3eb3cSopenharmony_ci /** 688023b3eb3cSopenharmony_ci * @brief Obtains the first subnode. 688123b3eb3cSopenharmony_ci * 688223b3eb3cSopenharmony_ci * @param node Indicates the target node. 688323b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 688423b3eb3cSopenharmony_ci */ 688523b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getFirstChild)(ArkUI_NodeHandle node); 688623b3eb3cSopenharmony_ci 688723b3eb3cSopenharmony_ci /** 688823b3eb3cSopenharmony_ci * @brief Obtains the last subnode. 688923b3eb3cSopenharmony_ci * 689023b3eb3cSopenharmony_ci * When the component is being displayed, this API must be called in the main thread. 689123b3eb3cSopenharmony_ci * 689223b3eb3cSopenharmony_ci * @param node Indicates the target node. 689323b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 689423b3eb3cSopenharmony_ci */ 689523b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getLastChild)(ArkUI_NodeHandle node); 689623b3eb3cSopenharmony_ci 689723b3eb3cSopenharmony_ci /** 689823b3eb3cSopenharmony_ci * @brief Obtains the previous sibling node. 689923b3eb3cSopenharmony_ci * 690023b3eb3cSopenharmony_ci * @param node Indicates the target node. 690123b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 690223b3eb3cSopenharmony_ci */ 690323b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getPreviousSibling)(ArkUI_NodeHandle node); 690423b3eb3cSopenharmony_ci 690523b3eb3cSopenharmony_ci /** 690623b3eb3cSopenharmony_ci * @brief Obtains the next sibling node. 690723b3eb3cSopenharmony_ci * 690823b3eb3cSopenharmony_ci * @param node Indicates the target node. 690923b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 691023b3eb3cSopenharmony_ci */ 691123b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getNextSibling)(ArkUI_NodeHandle node); 691223b3eb3cSopenharmony_ci 691323b3eb3cSopenharmony_ci /** 691423b3eb3cSopenharmony_ci * @brief Registers a custom event for a node. When the event is triggered, the value is returned through the entry 691523b3eb3cSopenharmony_ci * point function registered by <b>registerNodeCustomEventReceiver</b>. 691623b3eb3cSopenharmony_ci * 691723b3eb3cSopenharmony_ci * @param node Indicates the target node. 691823b3eb3cSopenharmony_ci * @param eventType Indicates the type of event to register. 691923b3eb3cSopenharmony_ci * @param targetId Indicates the custom event ID, which is passed in the callback of {@link ArkUI_NodeCustomEvent} 692023b3eb3cSopenharmony_ci * when the event is triggered. 692123b3eb3cSopenharmony_ci * @param userData Indicates the custom event parameter, which is passed in the callback of 692223b3eb3cSopenharmony_ci * {@link ArkUI_NodeCustomEvent} when the event is triggered. 692323b3eb3cSopenharmony_ci * @return Returns the error code. 692423b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 692523b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 692623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} if the dynamic implementation library 692723b3eb3cSopenharmony_ci * of the native API was not found. 692823b3eb3cSopenharmony_ci */ 692923b3eb3cSopenharmony_ci int32_t (*registerNodeCustomEvent)( 693023b3eb3cSopenharmony_ci ArkUI_NodeHandle node, ArkUI_NodeCustomEventType eventType, int32_t targetId, void* userData); 693123b3eb3cSopenharmony_ci 693223b3eb3cSopenharmony_ci /** 693323b3eb3cSopenharmony_ci * @brief Unregisters a custom event for a node. 693423b3eb3cSopenharmony_ci * 693523b3eb3cSopenharmony_ci * @param node Indicates the target node. 693623b3eb3cSopenharmony_ci * @param eventType Indicates the type of event to unregister. 693723b3eb3cSopenharmony_ci */ 693823b3eb3cSopenharmony_ci void (*unregisterNodeCustomEvent)(ArkUI_NodeHandle node, ArkUI_NodeCustomEventType eventType); 693923b3eb3cSopenharmony_ci 694023b3eb3cSopenharmony_ci /** 694123b3eb3cSopenharmony_ci * @brief Registers a unified entry point function for custom node event callbacks. 694223b3eb3cSopenharmony_ci * 694323b3eb3cSopenharmony_ci * The ArkUI framework collects custom component events generated during the process and calls back the events 694423b3eb3cSopenharmony_ci * through the registered <b>registerNodeCustomEventReceiver</b>. \n 694523b3eb3cSopenharmony_ci * A new call to this API will overwrite the previously registered event receiver. 694623b3eb3cSopenharmony_ci * Do not directly save the <b>ArkUI_NodeCustomEvent</b> object pointer. 694723b3eb3cSopenharmony_ci * The data will be destroyed after the callback is complete. \n 694823b3eb3cSopenharmony_ci * To bind with a component instance, you can use the <b>addNodeCustomEventReceiver</b> function. \n 694923b3eb3cSopenharmony_ci * 695023b3eb3cSopenharmony_ci * @param eventReceiver Indicates the event receiver to register. 695123b3eb3cSopenharmony_ci */ 695223b3eb3cSopenharmony_ci void (*registerNodeCustomEventReceiver)(void (*eventReceiver)(ArkUI_NodeCustomEvent* event)); 695323b3eb3cSopenharmony_ci 695423b3eb3cSopenharmony_ci /** 695523b3eb3cSopenharmony_ci * @brief Unregisters the unified entry point function for custom node event callbacks. 695623b3eb3cSopenharmony_ci * 695723b3eb3cSopenharmony_ci */ 695823b3eb3cSopenharmony_ci void (*unregisterNodeCustomEventReceiver)(); 695923b3eb3cSopenharmony_ci 696023b3eb3cSopenharmony_ci /** 696123b3eb3cSopenharmony_ci * @brief Sets the width and height for a component after the measurement. 696223b3eb3cSopenharmony_ci * 696323b3eb3cSopenharmony_ci * @param node Indicates the target node. 696423b3eb3cSopenharmony_ci * @param width Indicates the width. 696523b3eb3cSopenharmony_ci * @param height Indicates the height. 696623b3eb3cSopenharmony_ci * @return Returns the error code. 696723b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 696823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 696923b3eb3cSopenharmony_ci */ 697023b3eb3cSopenharmony_ci int32_t (*setMeasuredSize)(ArkUI_NodeHandle node, int32_t width, int32_t height); 697123b3eb3cSopenharmony_ci 697223b3eb3cSopenharmony_ci /** 697323b3eb3cSopenharmony_ci * @brief Sets the position for a component. 697423b3eb3cSopenharmony_ci * 697523b3eb3cSopenharmony_ci * @param node Indicates the target node. 697623b3eb3cSopenharmony_ci * @param positionX Indicates the X coordinate. 697723b3eb3cSopenharmony_ci * @param positionY Indicates the Y coordinate. 697823b3eb3cSopenharmony_ci * @return Returns the error code. 697923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 698023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 698123b3eb3cSopenharmony_ci */ 698223b3eb3cSopenharmony_ci int32_t (*setLayoutPosition)(ArkUI_NodeHandle node, int32_t positionX, int32_t positionY); 698323b3eb3cSopenharmony_ci 698423b3eb3cSopenharmony_ci /** 698523b3eb3cSopenharmony_ci * @brief Obtains the width and height of a component after measurement. 698623b3eb3cSopenharmony_ci * 698723b3eb3cSopenharmony_ci * @param node Indicates the target node. 698823b3eb3cSopenharmony_ci * @return Returns the width and height of the component. 698923b3eb3cSopenharmony_ci */ 699023b3eb3cSopenharmony_ci ArkUI_IntSize (*getMeasuredSize)(ArkUI_NodeHandle node); 699123b3eb3cSopenharmony_ci 699223b3eb3cSopenharmony_ci /** 699323b3eb3cSopenharmony_ci * @brief Obtains the position of a component after the layout is complete. 699423b3eb3cSopenharmony_ci * 699523b3eb3cSopenharmony_ci * @param node Indicates the target node. 699623b3eb3cSopenharmony_ci * @return Returns the position of the component. 699723b3eb3cSopenharmony_ci */ 699823b3eb3cSopenharmony_ci ArkUI_IntOffset (*getLayoutPosition)(ArkUI_NodeHandle node); 699923b3eb3cSopenharmony_ci 700023b3eb3cSopenharmony_ci /** 700123b3eb3cSopenharmony_ci * @brief Measures a node. You can use the <b>getMeasuredSize</b> API to obtain the size after the measurement. 700223b3eb3cSopenharmony_ci * 700323b3eb3cSopenharmony_ci * @param node Indicates the target node. 700423b3eb3cSopenharmony_ci * @param Constraint Indicates the size constraint. 700523b3eb3cSopenharmony_ci * @return Returns the error code. 700623b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 700723b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 700823b3eb3cSopenharmony_ci */ 700923b3eb3cSopenharmony_ci int32_t (*measureNode)(ArkUI_NodeHandle node, ArkUI_LayoutConstraint* Constraint); 701023b3eb3cSopenharmony_ci 701123b3eb3cSopenharmony_ci /** 701223b3eb3cSopenharmony_ci * @brief Lays outs a component and passes the expected position of the component relative to its parent component. 701323b3eb3cSopenharmony_ci * 701423b3eb3cSopenharmony_ci * @param node Indicates the target node. 701523b3eb3cSopenharmony_ci * @param positionX Indicates the X coordinate. 701623b3eb3cSopenharmony_ci * @param positionY Indicates the Y coordinate. 701723b3eb3cSopenharmony_ci * @return Returns the error code. 701823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 701923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 702023b3eb3cSopenharmony_ci */ 702123b3eb3cSopenharmony_ci int32_t (*layoutNode)(ArkUI_NodeHandle node, int32_t positionX, int32_t positionY); 702223b3eb3cSopenharmony_ci 702323b3eb3cSopenharmony_ci /** 702423b3eb3cSopenharmony_ci * @brief Adds a component event callback function to a component to receive component events generated 702523b3eb3cSopenharmony_ci * by the component. 702623b3eb3cSopenharmony_ci * 702723b3eb3cSopenharmony_ci * Unlike the global registration function <b>registerNodeEventReceiver</b>, this API allows multiple event 702823b3eb3cSopenharmony_ci * receivers to be added to the same component. \n 702923b3eb3cSopenharmony_ci * The callback added by this API is triggered before the global callback registered by 703023b3eb3cSopenharmony_ci * <b>registerNodeEventReceiver</b>. \n 703123b3eb3cSopenharmony_ci * Do not directly save the <b>ArkUI_NodeEvent</b> object pointer. 703223b3eb3cSopenharmony_ci * The data will be destroyed after the callback is complete. \n 703323b3eb3cSopenharmony_ci * 703423b3eb3cSopenharmony_ci * @param node Indicates the component for which you want to add the event callback function. 703523b3eb3cSopenharmony_ci * @param eventReceiver Indicates the component event callback function to add. 703623b3eb3cSopenharmony_ci * @return Returns the error code. 703723b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 703823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 703923b3eb3cSopenharmony_ci */ 704023b3eb3cSopenharmony_ci int32_t (*addNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event)); 704123b3eb3cSopenharmony_ci 704223b3eb3cSopenharmony_ci /** 704323b3eb3cSopenharmony_ci * @brief Removes the registered component event callback function from a component. 704423b3eb3cSopenharmony_ci * 704523b3eb3cSopenharmony_ci * @param node Indicates the component from which you want to remove the event callback function. 704623b3eb3cSopenharmony_ci * @param eventReceiver Indicates the component event callback function to remove. 704723b3eb3cSopenharmony_ci * @return Returns the error code. 704823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 704923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 705023b3eb3cSopenharmony_ci */ 705123b3eb3cSopenharmony_ci int32_t (*removeNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event)); 705223b3eb3cSopenharmony_ci 705323b3eb3cSopenharmony_ci /** 705423b3eb3cSopenharmony_ci * @brief Adds a custom event callback function to a component to receive custom events 705523b3eb3cSopenharmony_ci * (such as layout and drawing events) generated by the component. 705623b3eb3cSopenharmony_ci * 705723b3eb3cSopenharmony_ci * Unlike the global registration function <b>registerNodeCustomEventReceiver</b>, this API allows 705823b3eb3cSopenharmony_ci * multiple event receivers to be added to the same component. \n 705923b3eb3cSopenharmony_ci * The callback added by this API is triggered before the global callback registered by 706023b3eb3cSopenharmony_ci * <b>registerNodeCustomEventReceiver</b>. \n 706123b3eb3cSopenharmony_ci * Do not directly save the <b>ArkUI_NodeCustomEvent</b> object pointer. 706223b3eb3cSopenharmony_ci * The data will be destroyed after the callback is complete. \n 706323b3eb3cSopenharmony_ci * 706423b3eb3cSopenharmony_ci * @param node Indicates the component for which you want to add the custom event callback function. 706523b3eb3cSopenharmony_ci * @param eventReceiver Indicates the custom event callback function to add. 706623b3eb3cSopenharmony_ci * @return Returns the error code. 706723b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 706823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 706923b3eb3cSopenharmony_ci */ 707023b3eb3cSopenharmony_ci int32_t (*addNodeCustomEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeCustomEvent* event)); 707123b3eb3cSopenharmony_ci 707223b3eb3cSopenharmony_ci /** 707323b3eb3cSopenharmony_ci * @brief Removes a registered custom event callback function from a component. 707423b3eb3cSopenharmony_ci * 707523b3eb3cSopenharmony_ci * @param node Indicates the component from which you want to remove the custom event callback function. 707623b3eb3cSopenharmony_ci * @param eventReceiver Indicates the custom event callback function to remove. 707723b3eb3cSopenharmony_ci * @return Returns the error code. 707823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 707923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 708023b3eb3cSopenharmony_ci */ 708123b3eb3cSopenharmony_ci int32_t (*removeNodeCustomEventReceiver)( 708223b3eb3cSopenharmony_ci ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeCustomEvent* event)); 708323b3eb3cSopenharmony_ci 708423b3eb3cSopenharmony_ci /** 708523b3eb3cSopenharmony_ci * @brief Saves custom data on the specified component. 708623b3eb3cSopenharmony_ci * 708723b3eb3cSopenharmony_ci * @param node Indicates the component on which the custom data will be saved. 708823b3eb3cSopenharmony_ci * @param userData Indicates the custom data to be saved. 708923b3eb3cSopenharmony_ci * @return Returns the error code. 709023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 709123b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 709223b3eb3cSopenharmony_ci */ 709323b3eb3cSopenharmony_ci int32_t (*setUserData)(ArkUI_NodeHandle node, void* userData); 709423b3eb3cSopenharmony_ci 709523b3eb3cSopenharmony_ci /** 709623b3eb3cSopenharmony_ci * @brief Obtains the custom data saved on the specified component. 709723b3eb3cSopenharmony_ci * 709823b3eb3cSopenharmony_ci * @param node Indicates the target component. 709923b3eb3cSopenharmony_ci * @return Returns the custom data. 710023b3eb3cSopenharmony_ci */ 710123b3eb3cSopenharmony_ci void* (*getUserData)(ArkUI_NodeHandle node); 710223b3eb3cSopenharmony_ci 710323b3eb3cSopenharmony_ci /** 710423b3eb3cSopenharmony_ci * @brief Sets the unit for a component. 710523b3eb3cSopenharmony_ci * 710623b3eb3cSopenharmony_ci * @param node Indicates the component for which you want to set the unit. 710723b3eb3cSopenharmony_ci * @param unit Indicates the unit, which is an enumerated value of {@link ArkUI_LengthMetricUnit}. 710823b3eb3cSopenharmony_ci * @return Returns the error code. 710923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 711023b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 711123b3eb3cSopenharmony_ci */ 711223b3eb3cSopenharmony_ci int32_t (*setLengthMetricUnit)(ArkUI_NodeHandle node, ArkUI_LengthMetricUnit unit); 711323b3eb3cSopenharmony_ci 711423b3eb3cSopenharmony_ci /** 711523b3eb3cSopenharmony_ci * @brief Obtains the parent node. 711623b3eb3cSopenharmony_ci * 711723b3eb3cSopenharmony_ci * @param node Indicates the target node. 711823b3eb3cSopenharmony_ci * @return Returns the pointer to the subnode if the subnode exists; returns <b>NULL</b> otherwise. 711923b3eb3cSopenharmony_ci */ 712023b3eb3cSopenharmony_ci ArkUI_NodeHandle (*getParent)(ArkUI_NodeHandle node); 712123b3eb3cSopenharmony_ci 712223b3eb3cSopenharmony_ci /** 712323b3eb3cSopenharmony_ci * @brief 从父组件上卸载所有子节点。 712423b3eb3cSopenharmony_ci * 712523b3eb3cSopenharmony_ci * @param parent 目标节点对象。 712623b3eb3cSopenharmony_ci * @return 0 - 成功。 712723b3eb3cSopenharmony_ci * 401 - 函数参数异常。 712823b3eb3cSopenharmony_ci */ 712923b3eb3cSopenharmony_ci int32_t (*removeAllChildren)(ArkUI_NodeHandle parent); 713023b3eb3cSopenharmony_ci} ArkUI_NativeNodeAPI_1; 713123b3eb3cSopenharmony_ci 713223b3eb3cSopenharmony_ci/** 713323b3eb3cSopenharmony_ci* @brief Obtains the size constraint for measurement through a custom component event. 713423b3eb3cSopenharmony_ci* 713523b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 713623b3eb3cSopenharmony_ci* @return Returns the pointer to the size constraint. 713723b3eb3cSopenharmony_ci* @since 12 713823b3eb3cSopenharmony_ci*/ 713923b3eb3cSopenharmony_ciArkUI_LayoutConstraint* OH_ArkUI_NodeCustomEvent_GetLayoutConstraintInMeasure(ArkUI_NodeCustomEvent* event); 714023b3eb3cSopenharmony_ci 714123b3eb3cSopenharmony_ci/** 714223b3eb3cSopenharmony_ci* @brief Obtains the expected position of a component relative to its parent component in the layout phase through a 714323b3eb3cSopenharmony_ci* custom component event. 714423b3eb3cSopenharmony_ci* 714523b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 714623b3eb3cSopenharmony_ci* @return Returns the expected position relative to the parent component. 714723b3eb3cSopenharmony_ci* @since 12 714823b3eb3cSopenharmony_ci*/ 714923b3eb3cSopenharmony_ciArkUI_IntOffset OH_ArkUI_NodeCustomEvent_GetPositionInLayout(ArkUI_NodeCustomEvent* event); 715023b3eb3cSopenharmony_ci 715123b3eb3cSopenharmony_ci/** 715223b3eb3cSopenharmony_ci* @brief Obtains the drawing context through a custom component event. 715323b3eb3cSopenharmony_ci* 715423b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 715523b3eb3cSopenharmony_ci* @return Returns the drawing context. 715623b3eb3cSopenharmony_ci* @since 12 715723b3eb3cSopenharmony_ci*/ 715823b3eb3cSopenharmony_ciArkUI_DrawContext* OH_ArkUI_NodeCustomEvent_GetDrawContextInDraw(ArkUI_NodeCustomEvent* event); 715923b3eb3cSopenharmony_ci 716023b3eb3cSopenharmony_ci/** 716123b3eb3cSopenharmony_ci* @brief Obtains the ID of a custom component event. 716223b3eb3cSopenharmony_ci* 716323b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 716423b3eb3cSopenharmony_ci* @return Returns the ID of the custom component event. 716523b3eb3cSopenharmony_ci* @since 12 716623b3eb3cSopenharmony_ci*/ 716723b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeCustomEvent_GetEventTargetId(ArkUI_NodeCustomEvent* event); 716823b3eb3cSopenharmony_ci 716923b3eb3cSopenharmony_ci/** 717023b3eb3cSopenharmony_ci* @brief Obtains custom event parameters through a custom component event. 717123b3eb3cSopenharmony_ci* 717223b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 717323b3eb3cSopenharmony_ci* @return Returns the custom event parameters. 717423b3eb3cSopenharmony_ci* @since 12 717523b3eb3cSopenharmony_ci*/ 717623b3eb3cSopenharmony_civoid* OH_ArkUI_NodeCustomEvent_GetUserData(ArkUI_NodeCustomEvent* event); 717723b3eb3cSopenharmony_ci 717823b3eb3cSopenharmony_ci/** 717923b3eb3cSopenharmony_ci* @brief Obtains a component object through a custom component event. 718023b3eb3cSopenharmony_ci* 718123b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 718223b3eb3cSopenharmony_ci* @return Returns the component object. 718323b3eb3cSopenharmony_ci* @since 12 718423b3eb3cSopenharmony_ci*/ 718523b3eb3cSopenharmony_ciArkUI_NodeHandle OH_ArkUI_NodeCustomEvent_GetNodeHandle(ArkUI_NodeCustomEvent* event); 718623b3eb3cSopenharmony_ci 718723b3eb3cSopenharmony_ci/** 718823b3eb3cSopenharmony_ci* @brief Obtains the event type through a custom component event. 718923b3eb3cSopenharmony_ci* 719023b3eb3cSopenharmony_ci* @param event Indicates the pointer to the custom component event. 719123b3eb3cSopenharmony_ci* @return Returns the type of the custom component event. 719223b3eb3cSopenharmony_ci* @since 12 719323b3eb3cSopenharmony_ci*/ 719423b3eb3cSopenharmony_ciArkUI_NodeCustomEventType OH_ArkUI_NodeCustomEvent_GetEventType(ArkUI_NodeCustomEvent* event); 719523b3eb3cSopenharmony_ci 719623b3eb3cSopenharmony_ci/** 719723b3eb3cSopenharmony_ci* @brief 通过自定义组件事件获取自定义段落组件的测量信息。 719823b3eb3cSopenharmony_ci* 719923b3eb3cSopenharmony_ci* @param event 自定义组件事件。 720023b3eb3cSopenharmony_ci* @param info 需要获取的测量信息。 720123b3eb3cSopenharmony_ci* @return 错误码。 720223b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 720323b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_PARAM_INVALID} 函数参数异常。 720423b3eb3cSopenharmony_ci* @since 12 720523b3eb3cSopenharmony_ci*/ 720623b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeCustomEvent_GetCustomSpanMeasureInfo( 720723b3eb3cSopenharmony_ci ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanMeasureInfo* info); 720823b3eb3cSopenharmony_ci 720923b3eb3cSopenharmony_ci/** 721023b3eb3cSopenharmony_ci* @brief 通过自定义组件事件设置自定义段落的度量指标。 721123b3eb3cSopenharmony_ci* 721223b3eb3cSopenharmony_ci* @param event 自定义组件事件。 721323b3eb3cSopenharmony_ci* @param metrics 需要获取的度量指标信息。 721423b3eb3cSopenharmony_ci* @return 错误码。 721523b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 721623b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_PARAM_INVALID} 函数参数异常。 721723b3eb3cSopenharmony_ci* @since 12 721823b3eb3cSopenharmony_ci*/ 721923b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeCustomEvent_SetCustomSpanMetrics( 722023b3eb3cSopenharmony_ci ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanMetrics* metrics); 722123b3eb3cSopenharmony_ci 722223b3eb3cSopenharmony_ci/** 722323b3eb3cSopenharmony_ci* @brief 通过自定义组件事件获取自定义段落组件的绘制信息。 722423b3eb3cSopenharmony_ci* 722523b3eb3cSopenharmony_ci* @param event 自定义组件事件。 722623b3eb3cSopenharmony_ci* @param event 需要获取的绘制信息。 722723b3eb3cSopenharmony_ci* @return 错误码。 722823b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_NO_ERROR} 成功。 722923b3eb3cSopenharmony_ci* {@link ARKUI_ERROR_CODE_PARAM_INVALID} 函数参数异常。 723023b3eb3cSopenharmony_ci* @since 12 723123b3eb3cSopenharmony_ci*/ 723223b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeCustomEvent_GetCustomSpanDrawInfo( 723323b3eb3cSopenharmony_ci ArkUI_NodeCustomEvent* event, ArkUI_CustomSpanDrawInfo* info); 723423b3eb3cSopenharmony_ci 723523b3eb3cSopenharmony_ci/** 723623b3eb3cSopenharmony_ci * @brief Adds a component to a node content. 723723b3eb3cSopenharmony_ci * 723823b3eb3cSopenharmony_ci * @param content Indicates the pointer to the node content instance. 723923b3eb3cSopenharmony_ci * @param node Indicates the pointer to the node. 724023b3eb3cSopenharmony_ci * @return Returns 0 if success. 724123b3eb3cSopenharmony_ci * Returns 401 if a parameter exception occurs. 724223b3eb3cSopenharmony_ci * @since 12 724323b3eb3cSopenharmony_ci */ 724423b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeContent_AddNode(ArkUI_NodeContentHandle content, ArkUI_NodeHandle node); 724523b3eb3cSopenharmony_ci 724623b3eb3cSopenharmony_ci/** 724723b3eb3cSopenharmony_ci * @brief Adds a component to a node content. 724823b3eb3cSopenharmony_ci * 724923b3eb3cSopenharmony_ci * @param content Indicates the pointer to the node content instance. 725023b3eb3cSopenharmony_ci * @param node Indicates the pointer to the node. 725123b3eb3cSopenharmony_ci * @return Returns 0 if success. 725223b3eb3cSopenharmony_ci * Returns 401 if a parameter exception occurs. 725323b3eb3cSopenharmony_ci * @since 12 725423b3eb3cSopenharmony_ci */ 725523b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeContent_InsertNode(ArkUI_NodeContentHandle content, ArkUI_NodeHandle node, int32_t position); 725623b3eb3cSopenharmony_ci 725723b3eb3cSopenharmony_ci/** 725823b3eb3cSopenharmony_ci * @brief Removes a component from a node content. 725923b3eb3cSopenharmony_ci * 726023b3eb3cSopenharmony_ci * @param content Indicates the pointer to the node content. 726123b3eb3cSopenharmony_ci * @param node Indicates the pointer to the node. 726223b3eb3cSopenharmony_ci * @return Returns 0 if success. 726323b3eb3cSopenharmony_ci * Returns 401 if a parameter exception occurs. 726423b3eb3cSopenharmony_ci * @since 12 726523b3eb3cSopenharmony_ci */ 726623b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeContent_RemoveNode(ArkUI_NodeContentHandle content, ArkUI_NodeHandle node); 726723b3eb3cSopenharmony_ci 726823b3eb3cSopenharmony_ci/** 726923b3eb3cSopenharmony_ci * @brief Defines the node content event type. 727023b3eb3cSopenharmony_ci * 727123b3eb3cSopenharmony_ci * @since 12 727223b3eb3cSopenharmony_ci */ 727323b3eb3cSopenharmony_citypedef enum { 727423b3eb3cSopenharmony_ci /** Defines the mount event. */ 727523b3eb3cSopenharmony_ci NODE_CONTENT_EVENT_ON_ATTACH_TO_WINDOW = 0, 727623b3eb3cSopenharmony_ci /** Defines the unmount event. */ 727723b3eb3cSopenharmony_ci NODE_CONTENT_EVENT_ON_DETACH_FROM_WINDOW = 1, 727823b3eb3cSopenharmony_ci} ArkUI_NodeContentEventType; 727923b3eb3cSopenharmony_ci 728023b3eb3cSopenharmony_ci/** 728123b3eb3cSopenharmony_ci * @brief Defines the general structure of a node content event. 728223b3eb3cSopenharmony_ci * 728323b3eb3cSopenharmony_ci * @since 12 728423b3eb3cSopenharmony_ci */ 728523b3eb3cSopenharmony_citypedef struct ArkUI_NodeContentEvent ArkUI_NodeContentEvent; 728623b3eb3cSopenharmony_ci 728723b3eb3cSopenharmony_ci/** 728823b3eb3cSopenharmony_ci * @brief Defines the node content event callback function. 728923b3eb3cSopenharmony_ci * 729023b3eb3cSopenharmony_ci * @since 12 729123b3eb3cSopenharmony_ci */ 729223b3eb3cSopenharmony_citypedef void (*ArkUI_NodeContentCallback)(ArkUI_NodeContentEvent* event); 729323b3eb3cSopenharmony_ci 729423b3eb3cSopenharmony_ci/** 729523b3eb3cSopenharmony_ci * @brief Register a callback for this <b>ArkUI_NodeContentHandle</b> instance. 729623b3eb3cSopenharmony_ci * 729723b3eb3cSopenharmony_ci * @param content Indicates the <b>ArkUI_NodeContentHandle</b> instance. 729823b3eb3cSopenharmony_ci * @param callback Indicates the callback of <b>ArkUI_NodeContentHandle</b> 729923b3eb3cSopenharmony_ci * @return Returns the status code 730023b3eb3cSopenharmony_ci * @since 12 730123b3eb3cSopenharmony_ci */ 730223b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeContent_RegisterCallback(ArkUI_NodeContentHandle content, ArkUI_NodeContentCallback callback); 730323b3eb3cSopenharmony_ci 730423b3eb3cSopenharmony_ci/** 730523b3eb3cSopenharmony_ci * @brief Obtains the type of a node content. 730623b3eb3cSopenharmony_ci * 730723b3eb3cSopenharmony_ci * @param event Indicates the pointer to the node content. 730823b3eb3cSopenharmony_ci * @return Returns the type of the node content. 730923b3eb3cSopenharmony_ci * @since 12 731023b3eb3cSopenharmony_ci */ 731123b3eb3cSopenharmony_ciArkUI_NodeContentEventType OH_ArkUI_NodeContentEvent_GetEventType(ArkUI_NodeContentEvent* event); 731223b3eb3cSopenharmony_ci 731323b3eb3cSopenharmony_ci/** 731423b3eb3cSopenharmony_ci * @brief Obtains the node content object that triggers a node content event. 731523b3eb3cSopenharmony_ci * 731623b3eb3cSopenharmony_ci * @param event Indicates the pointer to the node content event. 731723b3eb3cSopenharmony_ci * @return Returns the node content object that triggers the node content event. 731823b3eb3cSopenharmony_ci * @since 12 731923b3eb3cSopenharmony_ci */ 732023b3eb3cSopenharmony_ciArkUI_NodeContentHandle OH_ArkUI_NodeContentEvent_GetNodeContentHandle(ArkUI_NodeContentEvent* event); 732123b3eb3cSopenharmony_ci 732223b3eb3cSopenharmony_ci/** 732323b3eb3cSopenharmony_ci * @brief Saves custom data on the specified node content. 732423b3eb3cSopenharmony_ci * 732523b3eb3cSopenharmony_ci * @param content Indicates the node content on which the custom data will be saved. 732623b3eb3cSopenharmony_ci * @param userData Indicates the custom data to be saved. 732723b3eb3cSopenharmony_ci * @return Returns the error code. 732823b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. 732923b3eb3cSopenharmony_ci * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. 733023b3eb3cSopenharmony_ci * @since 12 733123b3eb3cSopenharmony_ci */ 733223b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeContent_SetUserData(ArkUI_NodeContentHandle content, void* userData); 733323b3eb3cSopenharmony_ci 733423b3eb3cSopenharmony_ci/** 733523b3eb3cSopenharmony_ci * @brief Obtains the custom data saved on the specified node content. 733623b3eb3cSopenharmony_ci * 733723b3eb3cSopenharmony_ci * @param content Indicates the target node content. 733823b3eb3cSopenharmony_ci * @return Returns the custom data. 733923b3eb3cSopenharmony_ci * @since 12 734023b3eb3cSopenharmony_ci */ 734123b3eb3cSopenharmony_civoid* OH_ArkUI_NodeContent_GetUserData(ArkUI_NodeContentHandle content); 734223b3eb3cSopenharmony_ci 734323b3eb3cSopenharmony_ci/** 734423b3eb3cSopenharmony_ci * @brief Get the size of the component layout area. 734523b3eb3cSopenharmony_ci * The layout area size does not include graphic variation attributes such as scaling. 734623b3eb3cSopenharmony_ci * 734723b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 734823b3eb3cSopenharmony_ci * @param size The drawing area size of the component handle, in px. 734923b3eb3cSopenharmony_ci * @return Error code. 735023b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 735123b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 735223b3eb3cSopenharmony_ci * @since 12 735323b3eb3cSopenharmony_ci */ 735423b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetLayoutSize(ArkUI_NodeHandle node, ArkUI_IntSize* size); 735523b3eb3cSopenharmony_ci 735623b3eb3cSopenharmony_ci/** 735723b3eb3cSopenharmony_ci * @brief Obtain the position of the component layout area relative to the parent component. 735823b3eb3cSopenharmony_ci * The relative position of the layout area does not include graphic variation attributes, such as translation. 735923b3eb3cSopenharmony_ci * 736023b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 736123b3eb3cSopenharmony_ci * @param localOffset The offset value of the component handle relative to the parent component, in px. 736223b3eb3cSopenharmony_ci * @return Error code. 736323b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 736423b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 736523b3eb3cSopenharmony_ci * @since 12 736623b3eb3cSopenharmony_ci */ 736723b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetLayoutPosition(ArkUI_NodeHandle node, ArkUI_IntOffset* localOffset); 736823b3eb3cSopenharmony_ci 736923b3eb3cSopenharmony_ci/** 737023b3eb3cSopenharmony_ci * @brief Obtain the position of the component layout area relative to the window. 737123b3eb3cSopenharmony_ci * The relative position of the layout area does not include graphic variation attributes, such as translation. 737223b3eb3cSopenharmony_ci * 737323b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 737423b3eb3cSopenharmony_ci * @param globalOffset The offset value of the component handle relative to the window, in px. 737523b3eb3cSopenharmony_ci * @return Error code. 737623b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 737723b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 737823b3eb3cSopenharmony_ci * @since 12 737923b3eb3cSopenharmony_ci */ 738023b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetLayoutPositionInWindow(ArkUI_NodeHandle node, ArkUI_IntOffset* globalOffset); 738123b3eb3cSopenharmony_ci 738223b3eb3cSopenharmony_ci/** 738323b3eb3cSopenharmony_ci * @brief Obtain the position of the component layout area relative to the screen. 738423b3eb3cSopenharmony_ci * The relative position of the layout area does not include graphic variation attributes, such as translation. 738523b3eb3cSopenharmony_ci * 738623b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 738723b3eb3cSopenharmony_ci * @param screenOffset The offset value of the component handle relative to the screen, in px. 738823b3eb3cSopenharmony_ci * @return Error code. 738923b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 739023b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 739123b3eb3cSopenharmony_ci * @since 12 739223b3eb3cSopenharmony_ci */ 739323b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetLayoutPositionInScreen(ArkUI_NodeHandle node, ArkUI_IntOffset* screenOffset); 739423b3eb3cSopenharmony_ci 739523b3eb3cSopenharmony_ci/** 739623b3eb3cSopenharmony_ci * @brief Obtain the position of the component in the window, including the properties of graphic translation changes. 739723b3eb3cSopenharmony_ci * 739823b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 739923b3eb3cSopenharmony_ci * @param translateOffset The cumulative offset value of the component handle itself, 740023b3eb3cSopenharmony_ci * parent components, and ancestor nodes, in px. 740123b3eb3cSopenharmony_ci * @return Error code. 740223b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 740323b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 740423b3eb3cSopenharmony_ci * @since 12 740523b3eb3cSopenharmony_ci */ 740623b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetPositionWithTranslateInWindow(ArkUI_NodeHandle node, ArkUI_IntOffset* translateOffset); 740723b3eb3cSopenharmony_ci 740823b3eb3cSopenharmony_ci/** 740923b3eb3cSopenharmony_ci * @brief Obtain the position of the component on the screen, including the attributes of graphic translation changes. 741023b3eb3cSopenharmony_ci * 741123b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 741223b3eb3cSopenharmony_ci * @param translateOffset The cumulative offset value of the component handle itself, 741323b3eb3cSopenharmony_ci * parent components, and ancestor nodes, in px. 741423b3eb3cSopenharmony_ci * @return Error code. 741523b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 741623b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 741723b3eb3cSopenharmony_ci * @since 12 741823b3eb3cSopenharmony_ci */ 741923b3eb3cSopenharmony_ciint32_t OH_ArkUI_NodeUtils_GetPositionWithTranslateInScreen(ArkUI_NodeHandle node, ArkUI_IntOffset* translateOffset); 742023b3eb3cSopenharmony_ci 742123b3eb3cSopenharmony_ci/** 742223b3eb3cSopenharmony_ci * @brief Add the custom property of the component. This interface only works on the main thread. 742323b3eb3cSopenharmony_ci * 742423b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 742523b3eb3cSopenharmony_ci * @param name The name of the custom property. Passing null pointers is not allowed. 742623b3eb3cSopenharmony_ci * @param value The value of the custom property. Passing null pointers is not allowed. 742723b3eb3cSopenharmony_ci * @since 13 742823b3eb3cSopenharmony_ci */ 742923b3eb3cSopenharmony_civoid OH_ArkUI_NodeUtils_AddCustomProperty(ArkUI_NodeHandle node, const char* name, const char* value); 743023b3eb3cSopenharmony_ci 743123b3eb3cSopenharmony_ci/** 743223b3eb3cSopenharmony_ci * @brief Remove the custom property of the component. 743323b3eb3cSopenharmony_ci * 743423b3eb3cSopenharmony_ci * @param node ArkUI_NodeHandle pointer. 743523b3eb3cSopenharmony_ci * @param name The name of the custom property. 743623b3eb3cSopenharmony_ci * @since 13 743723b3eb3cSopenharmony_ci */ 743823b3eb3cSopenharmony_civoid OH_ArkUI_NodeUtils_RemoveCustomProperty(ArkUI_NodeHandle node, const char* name); 743923b3eb3cSopenharmony_ci 744023b3eb3cSopenharmony_ci/** 744123b3eb3cSopenharmony_ci * @brief The event called when the sliding operation offset changes. 744223b3eb3cSopenharmony_ci * 744323b3eb3cSopenharmony_ci * @param node Indicates the target node. 744423b3eb3cSopenharmony_ci * @param userData Indicates the custom data to be saved. 744523b3eb3cSopenharmony_ci * @param onFinish Callback Events. 744623b3eb3cSopenharmony_ci * offset Slide offset. 744723b3eb3cSopenharmony_ci * @return Error code. 744823b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 744923b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 745023b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event. 745123b3eb3cSopenharmony_ci * @since 12 745223b3eb3cSopenharmony_ci */ 745323b3eb3cSopenharmony_ciint32_t OH_ArkUI_List_CloseAllSwipeActions(ArkUI_NodeHandle node, void* userData, void (*onFinish)(void* userData)); 745423b3eb3cSopenharmony_ci 745523b3eb3cSopenharmony_ci/** 745623b3eb3cSopenharmony_ci* @brief Obtain the UIContext pointer to the page where the node is located. 745723b3eb3cSopenharmony_ci* 745823b3eb3cSopenharmony_ci* @param node The node. 745923b3eb3cSopenharmony_ci* @return The UIContext pointer. 746023b3eb3cSopenharmony_ci* If a null pointer is returned, it may be because the node is empty. 746123b3eb3cSopenharmony_ci* @since 12 746223b3eb3cSopenharmony_ci*/ 746323b3eb3cSopenharmony_ciArkUI_ContextHandle OH_ArkUI_GetContextByNode(ArkUI_NodeHandle node); 746423b3eb3cSopenharmony_ci 746523b3eb3cSopenharmony_ci/** 746623b3eb3cSopenharmony_ci * @brief The event called when the system color mode changes. 746723b3eb3cSopenharmony_ci * Only one system color change callback can be registered for the same component. 746823b3eb3cSopenharmony_ci * 746923b3eb3cSopenharmony_ci * @param node Indicates the target node. 747023b3eb3cSopenharmony_ci * @param userData Indicates the custom data to be saved. 747123b3eb3cSopenharmony_ci * @param onColorModeChange Callback Events. 747223b3eb3cSopenharmony_ci * @return Error code. 747323b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 747423b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 747523b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event. 747623b3eb3cSopenharmony_ci * @since 12 747723b3eb3cSopenharmony_ci */ 747823b3eb3cSopenharmony_ciint32_t OH_ArkUI_RegisterSystemColorModeChangeEvent( 747923b3eb3cSopenharmony_ci ArkUI_NodeHandle node, void* userData, void (*onColorModeChange)(ArkUI_SystemColorMode colorMode, void* userData)); 748023b3eb3cSopenharmony_ci 748123b3eb3cSopenharmony_ci/** 748223b3eb3cSopenharmony_ci * @brief Unregister the event callback when the system color mode changes. 748323b3eb3cSopenharmony_ci * 748423b3eb3cSopenharmony_ci * @param node Indicates the target node. 748523b3eb3cSopenharmony_ci * @since 12 748623b3eb3cSopenharmony_ci */ 748723b3eb3cSopenharmony_civoid OH_ArkUI_UnregisterSystemColorModeChangeEvent(ArkUI_NodeHandle node); 748823b3eb3cSopenharmony_ci 748923b3eb3cSopenharmony_ci/** 749023b3eb3cSopenharmony_ci * @brief The event called when the system font style changes. 749123b3eb3cSopenharmony_ci * Only one system font change callback can be registered for the same component. 749223b3eb3cSopenharmony_ci * 749323b3eb3cSopenharmony_ci * @param node Indicates the target node. 749423b3eb3cSopenharmony_ci * @param userData Indicates the custom data to be saved. 749523b3eb3cSopenharmony_ci * @param onFontStyleChange Callback Events. 749623b3eb3cSopenharmony_ci * @return Error code. 749723b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. 749823b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. 749923b3eb3cSopenharmony_ci * {@link ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED} The component does not support this event. 750023b3eb3cSopenharmony_ci * @since 12 750123b3eb3cSopenharmony_ci */ 750223b3eb3cSopenharmony_ciint32_t OH_ArkUI_RegisterSystemFontStyleChangeEvent(ArkUI_NodeHandle node, void* userData, 750323b3eb3cSopenharmony_ci void (*onFontStyleChange)(ArkUI_SystemFontStyleEvent* event, void* userData)); 750423b3eb3cSopenharmony_ci 750523b3eb3cSopenharmony_ci/** 750623b3eb3cSopenharmony_ci * @brief Unregister the event callback when the system font style changes. 750723b3eb3cSopenharmony_ci * 750823b3eb3cSopenharmony_ci * @param node Indicates the target node. 750923b3eb3cSopenharmony_ci * @since 12 751023b3eb3cSopenharmony_ci */ 751123b3eb3cSopenharmony_civoid OH_ArkUI_UnregisterSystemFontStyleChangeEvent(ArkUI_NodeHandle node); 751223b3eb3cSopenharmony_ci 751323b3eb3cSopenharmony_ci/** 751423b3eb3cSopenharmony_ci * @brief Retrieve the font size value for system font change events. 751523b3eb3cSopenharmony_ci * 751623b3eb3cSopenharmony_ci * @param event Indicates a pointer to the current system font change event. 751723b3eb3cSopenharmony_ci * @return Updated system font size scaling factor. Default value: 1.0. 751823b3eb3cSopenharmony_ci * -1 indicates a retrieval error. 751923b3eb3cSopenharmony_ci * @since 12 752023b3eb3cSopenharmony_ci */ 752123b3eb3cSopenharmony_cifloat OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale(const ArkUI_SystemFontStyleEvent* event); 752223b3eb3cSopenharmony_ci 752323b3eb3cSopenharmony_ci/** 752423b3eb3cSopenharmony_ci * @brief Retrieve the font thickness values for system font change events. 752523b3eb3cSopenharmony_ci * 752623b3eb3cSopenharmony_ci * @param event Indicates a pointer to the current system font change event. 752723b3eb3cSopenharmony_ci * @return The updated system font thickness scaling factor. Default value: 1.0. 752823b3eb3cSopenharmony_ci * -1 indicates a retrieval error. 752923b3eb3cSopenharmony_ci * @since 12 753023b3eb3cSopenharmony_ci */ 753123b3eb3cSopenharmony_cifloat OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale(const ArkUI_SystemFontStyleEvent* event); 753223b3eb3cSopenharmony_ci 753323b3eb3cSopenharmony_ci#ifdef __cplusplus 753423b3eb3cSopenharmony_ci}; 753523b3eb3cSopenharmony_ci#endif 753623b3eb3cSopenharmony_ci 753723b3eb3cSopenharmony_ci#endif // ARKUI_NATIVE_NODE_H 753823b3eb3cSopenharmony_ci/** @}*/ 7539