From 79444f2c573a4be30159d2972bfd7fe6e8afdb5f Mon Sep 17 00:00:00 2001 From: lexiaoyao2 Date: Tue, 19 Aug 2025 21:08:50 +0800 Subject: [PATCH] image content transition Signed-off-by: lexiaoyao2 Change-Id: I79f4e265d87aaf2eb73343b4cb786b78f7d54a68 --- arkui/ace_engine/native/native_node.h | 14 ++++++++++++++ arkui/ace_engine/native/native_type.h | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 50ede589c..4ef4a1738 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2869,6 +2869,20 @@ typedef enum { * @since 21 */ NODE_IMAGE_ORIENTATION = 4020, + /** + * @brief Set the animation effect for the image content transformation. + * 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].i32: animation effect type {@link ArkUI_ImageContentTransition}. + * The default value is ARKUI_IDENTITY.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: animation effect type {@link ArkUI_ImageContentTransition.\n + * + * @since 21 + */ + NODE_IMAGE_CONTENT_TRANSITION = 4022, /** * @brief Defines the color of the component when it is selected. * This attribute can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 7cef398b2..316bf86cc 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1414,6 +1414,18 @@ typedef enum { ARKUI_ORIENTATION_LEFT_MIRRORED, } ArkUI_ImageRotateOrientation; +/** + * @brief The type of animation effect when the image content changes. + * + * @since 21 + */ +typedef enum { + /** No animation effect. */ + ARKUI_IDENTITY = 0, + /** Fade-in and fade-out effect. */ + ARKUI_OPACITY = 1, +} ArkUI_ImageContentTransition; + /** * @brief Enumerates the blend modes. * -- Gitee