From 64bb916c3d5b615fa0c9b5cd7c7493aa00b02271 Mon Sep 17 00:00:00 2001 From: wangweiyuan Date: Wed, 7 May 2025 10:48:34 +0800 Subject: [PATCH] RotateAngle CAPI Signed-off-by: wangweiyuan --- 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 b2d484739..0e8667948 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1963,6 +1963,25 @@ typedef enum { */ NODE_TRANSLATE_WITH_PERCENT = 103, + /** + * @brief Sets component rotation with multi-axis angle control. This attribute 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: x-axis rotation angle. The default value is 0. \n + * .value[1].f32: y-axis rotation angle. The default value is 0. \n + * .value[2].f32: z-axis rotation angle. The default value is 0. \n + * .value[3].f32: perspective distance from the viewpoint to the z=0 plane, in vp. The default value is 0. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].f32: x-axis rotation angle. The default value is 0. + * .value[1].f32: y-axis rotation angle. The default value is 0. \n + * .value[2].f32: z-axis rotation angle. The default value is 0. \n + * .value[3].f32: perspective distance from the viewpoint to the z=0 plane, in vp. The default value is 0. \n + * + * @since 20 + */ + NODE_ROTATE_ANGLE = 104, + /** * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. * -- Gitee