From e5f85d07eaa49cff33ad7be22b44a924bbcb6c3f Mon Sep 17 00:00:00 2001 From: sd_wu Date: Fri, 29 Nov 2024 15:35:55 +0800 Subject: [PATCH] enable analyzer and surface control Signed-off-by: sd_wu --- arkui/ace_engine/native/native_node.h | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index f83f1a181..4df454108 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -3444,6 +3444,37 @@ typedef enum { * */ NODE_XCOMPONENT_SURFACE_SIZE, + /** + * @brief Defines the surface rect of the component. + * This attribute can be set and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].u32: offset in the X direction, in px. \n + * .value[1].u32: offset in the Y direction, in px. \n + * .value[2].u32: width of the surface rect, in px. \n + * .value[3].u32: height of the surface rect, in px. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].u32: offset in the X direction, in px. \n + * .value[1].u32: offset in the Y direction, in px. \n + * .value[2].u32: width of the surface rect, in px. \n + * .value[3].u32: height of the surface rect, in px. \n + * @since 16 + */ + NODE_XCOMPONENT_SURFACE_RECT, + /** + * @brief Defines whether to enable the AI analyzer for the component. + * This attribute can be set and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * value[0].i32: The parameter type is 1 or 0. + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * value[0].i32: The parameter type is 1 or 0. + * @since 16 + */ + NODE_XCOMPONENT_ENABLE_ANALYZER, /** * @brief Defines whether to display the lunar calendar in the date picker. -- Gitee