From 71bcc3f403b5338a5ac5f746669a1a6333d6df79 Mon Sep 17 00:00:00 2001 From: chengfeiwang Date: Sat, 8 Mar 2025 16:31:47 +0800 Subject: [PATCH] add rotation angle Signed-off-by: chengfeiwang Change-Id: I8ec04c4ec540d6e161260e1c550687eb1076d302 --- arkui/ace_engine/native/native_node.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 85a18bde2..00fff2ecb 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1924,6 +1924,25 @@ typedef enum { */ NODE_VISIBLE_AREA_APPROXIMATE_CHANGE_RATIO = 102, + /** + * @brief Defines the rotate attribute about angle, which can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].f32: rotation angle of the X-axis direction. The default value is 0.\n + * .value[1].f32: rotation angle of the Y-axis direction. The default value is 0.\n + * .value[2].f32: rotation angle of the Z-axis direction. The default value is 0.\n + * .value[3].f32: line of sight, that is, the distance from the viewpoint to the z=0 plane, in px. + * The default value is 0. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].f32: rotation angle of the X-axis direction.\n + * .value[1].f32: rotation angle of the Y-axis direction.\n + * .value[2].f32: rotation angle of the Z-axis direction.\n + * .value[3].f32: line of sight, that is, the distance from the viewpoint to the z=0 plane, in px. \n + * + */ + NODE_ROTATE_ANGLE = 103, + /** * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. * -- Gitee