From 4c60ba68902b4d26752c2661ba422d2f08f15efe Mon Sep 17 00:00:00 2001 From: zhanghang Date: Tue, 18 Feb 2025 20:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0swiper=E7=9A=84space=E3=80=81?= =?UTF-8?q?ignoreSize=20CAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhanghang --- arkui/ace_engine/native/libace.ndk.json | 24 +++++++++++ arkui/ace_engine/native/native_type.h | 56 +++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index f9d42b88386..ca901f16331 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -1155,6 +1155,22 @@ "first_introduced": "12", "name": "OH_ArkUI_SwiperIndicator_GetMaxDisplayCount" }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom" + }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom" + }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperIndicator_SetSpace" + }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperIndicator_GetSpace" + }, { "first_introduced": "16", "name": "OH_ArkUI_SwiperDigitIndicator_Create" @@ -1243,6 +1259,14 @@ "first_introduced": "16", "name": "OH_ArkUI_SwiperDigitIndicator_Destroy" }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom" + }, + { + "first_introduced": "16", + "name": "OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom" + }, { "first_introduced": "16", "name": "OH_ArkUI_SwiperArrowStyle_Create" diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 99aae34816a..0b58b11da07 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -3137,6 +3137,43 @@ int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indic */ int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator); +/** + * @brief Sets whether to ignore the size of the indicator for {@link OH_ArkUI_SwiperIndicator_SetBottomPosition}. + * + * @param indicator Indicates the pointer to the indicator. + * @param ignoreSize Whether to ignore the size of the indicator. The value 1 means to ignore, and 0 means the opposite. + * The default value is 0. + * @since 16 +*/ +void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize); + +/** + * @brief Obtains whether to ignore the size of the indicator for {@link OH_ArkUI_SwiperIndicator_SetBottomPosition}. + * + * @param indicator Indicates the pointer to the indicator. + * @return Returns whether to ignore the size of the indicator. + * @since 16 +*/ +int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator); + +/** + * @brief Sets the space between the dots of the navigation indicator. + * + * @param indicator Indicates the pointer to the indicator. + * @param space the space between the dots of the navigation indicator, the default value is 8vp. + * @since 16 +*/ +void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space); + +/** + * @brief Obtains the space between the dots of the navigation indicator. + * + * @param indicator Indicates the pointer to the indicator. + * @return the space between the dots of the navigation indicator + * @since 16 +*/ +float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator); + /** * @brief Creates a digital indicator. * @@ -3334,6 +3371,25 @@ ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_Swipe */ void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator *indicator); +/** + * @brief Sets whether to ignore the size of the indicator for {@link OH_ArkUI_SwiperDigitIndicator_SetBottomPosition}. + * + * @param indicator The pointer to the digital indicator. + * @param ignoreSize Whether to ignore the size of the indicator. The value 1 means to ignore, and 0 means the opposite. + * The default value is 0. + * @since 16 +*/ +void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize); + +/** + * @brief Obtains whether to ignore the size of the indicator for {@link OH_ArkUI_SwiperDigitIndicator_SetBottomPosition}. + * + * @param indicator The pointer to the digital indicator. + * @return Returns whether to ignore the size of the indicator. + * @since 16 +*/ +int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator); + /** * @brief Creates a arrow style for swiper. * -- Gitee