!931 提供圆点导航点C-API接口

Merge pull request !931 from jiangzhijun8/master
This commit is contained in:
openharmony_ci 2024-07-05 06:09:51 +00:00 committed by Gitee
commit 6c369e6bd5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 41 additions and 0 deletions

View File

@ -1055,6 +1055,14 @@
"first_introduced": "12",
"name": "OH_ArkUI_SwiperIndicator_GetSelectedColor"
},
{
"first_introduced": "12",
"name": "OH_ArkUI_SwiperIndicator_SetMaxDisplayCount"
},
{
"first_introduced": "12",
"name": "OH_ArkUI_SwiperIndicator_GetMaxDisplayCount"
},
{
"first_introduced": "12",
"name": "OH_ArkUI_DrawableDescriptor_CreateFromPixelMap"

View File

@ -4816,6 +4816,17 @@ typedef enum {
*/
NODE_SWIPER_SWIPE_TO_INDEX,
/**
* @brief Set to disable component navigation point interaction function
*
* Property setting method parameter {@link ArkUI-AttributeItem} format: \n
* .value[0].i32Set to disable the interaction function of component navigation points. When set to true, it
* indicates that the navigation points are interactive. The default value is true. \n
* The return value of the attribute acquisition method is in the format of {@ link ArkUI-AttributeItem} \n
* .value[0].i32Set to disable component navigation point interaction. \n
*/
NODE_SWIPER_INDICATOR_INTERACTIVE,
/**
* @brief: Set the delineation component of the ListItem, supporting property settings, property resets, and
* property acquisition interfaces.

View File

@ -2632,6 +2632,28 @@ void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator,
*/
uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator);
/**
* @brief Sets the number of maxDisplayCount for the dot navigation indicator.
*
* @param indicator Indicates the pointer to the indicator.
* @param maxDisplayCount the maxDisplayCount of the navigation dot, span is 6-9.
* @return {@link ARKUI_ERROR_CODE_NO_ERROR} Success.
* {@link ARKUI_ERROR_CODE_PARAM_INVALID} indicator is null or maxDisplayCount less then 6 or
* maxDisplayCount more then 9
* @since 12
*/
int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount);
/**
* @brief Obtains the number of maxDisplayCount for the dot navigation indicator.
*
* @param indicator Indicates the pointer to the indicator.
* @return Returns the number of the maxDisplayCount, span is 6-9.
* 0 - indicator is null
* @since 12
*/
int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator);
/**
* @brief Create auxiliary line information in the RelativeContaine container.
*