From ab159472eb31168cf1a4bd6fb2bae66abbe9dad3 Mon Sep 17 00:00:00 2001 From: yyuanche Date: Fri, 12 Apr 2024 09:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90NDK=E3=80=91CAPI-=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20Signed-off-by:=20yyuanch?= =?UTF-8?q?e=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arkui/ace_engine/native/libace.ndk.json | 4 ++++ arkui/ace_engine/native/native_node.h | 2 +- arkui/ace_engine/native/native_type.h | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index e1a222b7c..5db4f9aae 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -567,6 +567,10 @@ "first_introduced": "12", "name": "OH_ArkUI_WaterFlowSectionOption_SetMargin" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_WaterFlowSectionOption_GetItemCount" + }, { "first_introduced": "12", "name": "OH_ArkUI_WaterFlowSectionOption_GetCrossCount" diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 12fa4b3ec..1676f8aa3 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4276,7 +4276,7 @@ typedef enum { * {@link ArkUI_NodeComponentEvent} contains two parameters: \n * ArkUI_NodeComponentEvent.data[0].f32: scroll offset of each frame. The offset is positive when the * component is scrolled up and negative when the component is scrolled down. \n - * ArkUI_NodeComponentEvent.data[1].f32: current scroll state. \n + * ArkUI_NodeComponentEvent.data[1].i32: current scroll state. \n */ NODE_ON_WILL_SCROLL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_WATER_FLOW, } ArkUI_NodeEventType; diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 3a4c3647b..91b658610 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1563,6 +1563,16 @@ void OH_ArkUI_WaterFlowSectionOption_Dispose(ArkUI_WaterFlowSectionOption* optio void OH_ArkUI_WaterFlowSectionOption_SetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t itemCount); +/** +* @brief Obtains the number of items in the water flow section that matches the specified index. +* +* @param option Indicates the pointer to a water flow section configuration. +* @param index Indicates the index of the target water flow section. +* @return Returns the number of items in the water flow section. +* @since 12 +*/ +int32_t OH_ArkUI_WaterFlowSectionOption_GetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index); + /** * @brief Sets the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. * -- Gitee