已合并
Capi拆分 #149868
Hu_zq创建于 6月11日
Capi拆分 #149868
已合并
共 5 个文件变更+1657-1705
| @@ -657,7 +657,9 @@ | |||
| 657 | - [native_type.h](capi-native-type-h.md) | 657 | - [native_type.h](capi-native-type-h.md) |
| 658 | - [native_type_visual.h](capi-native-type-visual-h.md) | 658 | - [native_type_visual.h](capi-native-type-visual-h.md) |
| 659 | - [native_xcomponent_key_event.h](capi-native-xcomponent-key-event-h.md) | 659 | - [native_xcomponent_key_event.h](capi-native-xcomponent-key-event-h.md) |
| 660 | + - [navigation_router.h](capi-navigation-router-h.md) | ||
| 660 | - [styled_string.h](capi-styled-string-h.md) | 661 | - [styled_string.h](capi-styled-string-h.md) |
| 662 | + - [swiper.h](capi-swiper-h.md) | ||
| 661 | - [ui_input_event.h](capi-ui-input-event-h.md) | 663 | - [ui_input_event.h](capi-ui-input-event-h.md) |
| 662 | - [oh_window.h](capi-oh-window-h.md) | 664 | - [oh_window.h](capi-oh-window-h.md) |
| 663 | - [oh_window_comm.h](capi-oh-window-comm-h.md) | 665 | - [oh_window_comm.h](capi-oh-window-comm-h.md) |
| @@ -25,6 +25,8 @@ | |||
| 25 | | 名称 | 描述 | | 25 | | 名称 | 描述 | |
| 26 | | -- | -- | | 26 | | -- | -- | |
| 27 | | [node_attr_custom.h](capi-native-node-node-attributes-node-attr-custom-h.md) | 为NativeNode API提供自定义节点事件定义。 | | 27 | | [node_attr_custom.h](capi-native-node-node-attributes-node-attr-custom-h.md) | 为NativeNode API提供自定义节点事件定义。 | |
| 28 | +| [navigation_router.h](capi-navigation-router-h.md) | 定义Navigation或Router组件的枚举和接口。 | | ||
| 29 | +| [swiper.h](capi-swiper-h.md) | 定义Swiper组件的枚举和接口。 | | ||
| 28 | | [drag_and_drop.h](capi-drag-and-drop-h.md) | 提供NativeDrag相关接口定义。 | | 30 | | [drag_and_drop.h](capi-drag-and-drop-h.md) | 提供NativeDrag相关接口定义。 | |
| 29 | | [drawable_descriptor.h](capi-drawable-descriptor-h.md) | 提供NativeDrawableDescriptor接口的类型定义。 | | 31 | | [drawable_descriptor.h](capi-drawable-descriptor-h.md) | 提供NativeDrawableDescriptor接口的类型定义。 | |
| 30 | | [native_animate.h](capi-native-animate-h.md) | 提供ArkUI在Native侧的动画接口定义集合。 | | 32 | | [native_animate.h](capi-native-animate-h.md) | 提供ArkUI在Native侧的动画接口定义集合。 | |
| @@ -71,9 +71,6 @@ | |||
| 71 | | [ArkUI_CustomSpanMeasureInfo](capi-arkui-nativemodule-arkui-customspanmeasureinfo.md) | ArkUI_CustomSpanMeasureInfo | 自定义段落组件的测量信息。 | | 71 | | [ArkUI_CustomSpanMeasureInfo](capi-arkui-nativemodule-arkui-customspanmeasureinfo.md) | ArkUI_CustomSpanMeasureInfo | 自定义段落组件的测量信息。 | |
| 72 | | [ArkUI_CustomSpanMetrics](capi-arkui-nativemodule-arkui-customspanmetrics.md) | ArkUI_CustomSpanMetrics | 自定义段落组件的度量指标。 | | 72 | | [ArkUI_CustomSpanMetrics](capi-arkui-nativemodule-arkui-customspanmetrics.md) | ArkUI_CustomSpanMetrics | 自定义段落组件的度量指标。 | |
| 73 | | [ArkUI_CustomSpanDrawInfo](capi-arkui-nativemodule-arkui-customspandrawinfo.md) | ArkUI_CustomSpanDrawInfo | 自定义段落组件的绘制信息。 | | 73 | | [ArkUI_CustomSpanDrawInfo](capi-arkui-nativemodule-arkui-customspandrawinfo.md) | ArkUI_CustomSpanDrawInfo | 自定义段落组件的绘制信息。 | |
| 74 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md) | ArkUI_SwiperIndicator | 定义[Swiper](../apis-arkui/arkui-ts/ts-container-swiper.md)组件的导航指示器风格。 | | ||
| 75 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md) | ArkUI_SwiperDigitIndicator | 定义Swiper组件的数字导航指示器风格。 | | ||
| 76 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md) | ArkUI_SwiperArrowStyle | 定义Swiper组件的导航箭头风格。 | | ||
| 77 | | [ArkUI_StyledString_Descriptor](capi-arkui-nativemodule-arkui-styledstring-descriptor.md) | ArkUI_StyledString_Descriptor | 定义文本组件支持的属性字符串的数据对象。 | | 74 | | [ArkUI_StyledString_Descriptor](capi-arkui-nativemodule-arkui-styledstring-descriptor.md) | ArkUI_StyledString_Descriptor | 定义文本组件支持的属性字符串的数据对象。 | |
| 78 | | [ArkUI_SnapshotOptions](capi-arkui-nativemodule-arkui-snapshotoptions.md) | ArkUI_SnapshotOptions | 定义截图的可选项。 | | 75 | | [ArkUI_SnapshotOptions](capi-arkui-nativemodule-arkui-snapshotoptions.md) | ArkUI_SnapshotOptions | 定义截图的可选项。 | |
| 79 | | [ArkUI_TextPickerRangeContentArray](capi-arkui-nativemodule-arkui-textpickerrangecontentarray.md) | ArkUI_TextPickerRangeContentArray | 定义文本选择器的数据选择列表。 | | 76 | | [ArkUI_TextPickerRangeContentArray](capi-arkui-nativemodule-arkui-textpickerrangecontentarray.md) | ArkUI_TextPickerRangeContentArray | 定义文本选择器的数据选择列表。 | |
| @@ -144,10 +141,6 @@ | |||
| 144 | | [ArkUI_WaterFlowLayoutMode](#arkui_waterflowlayoutmode) | ArkUI_WaterFlowLayoutMode | 定义[WaterFlow](../apis-arkui/arkui-ts/ts-container-waterflow.md)组件布局模式枚举值。 | | 141 | | [ArkUI_WaterFlowLayoutMode](#arkui_waterflowlayoutmode) | ArkUI_WaterFlowLayoutMode | 定义[WaterFlow](../apis-arkui/arkui-ts/ts-container-waterflow.md)组件布局模式枚举值。 | |
| 145 | | [ArkUI_BorderStyle](#arkui_borderstyle) | ArkUI_BorderStyle | 边框线条样式枚举值。 | | 142 | | [ArkUI_BorderStyle](#arkui_borderstyle) | ArkUI_BorderStyle | 边框线条样式枚举值。 | |
| 146 | | [ArkUI_HitTestMode](#arkui_hittestmode) | ArkUI_HitTestMode | 触摸测试控制枚举值。 | | 143 | | [ArkUI_HitTestMode](#arkui_hittestmode) | ArkUI_HitTestMode | 触摸测试控制枚举值。 | |
| 147 | -| [ArkUI_SwiperArrow](#arkui_swiperarrow) | ArkUI_SwiperArrow | Swiper导航点箭头枚举值。 | | ||
| 148 | -| [ArkUI_SwiperNestedScrollMode](#arkui_swipernestedscrollmode) | ArkUI_SwiperNestedScrollMode | Swiper组件和父组件的嵌套滚动模式。 | | ||
| 149 | -| [ArkUI_PageFlipMode](#arkui_pageflipmode) | ArkUI_PageFlipMode | Swiper组件鼠标滚轮翻页模式。 | | ||
| 150 | -| [ArkUI_SwiperAnimationMode](#arkui_swiperanimationmode) | ArkUI_SwiperAnimationMode | Swiper组件跳转到目标index的动画模式。 | | ||
| 151 | | [ArkUI_AccessibilityMode](#arkui_accessibilitymode) | ArkUI_AccessibilityMode | 定义无障碍辅助服务模式。 | | 144 | | [ArkUI_AccessibilityMode](#arkui_accessibilitymode) | ArkUI_AccessibilityMode | 定义无障碍辅助服务模式。 | |
| 152 | | [ArkUI_TextCopyOptions](#arkui_textcopyoptions) | ArkUI_TextCopyOptions | 定义组件支持设置文本是否可复制粘贴。 | | 145 | | [ArkUI_TextCopyOptions](#arkui_textcopyoptions) | ArkUI_TextCopyOptions | 定义组件支持设置文本是否可复制粘贴。 | |
| 153 | | [ArkUI_TextHeightAdaptivePolicy](#arkui_textheightadaptivepolicy) | ArkUI_TextHeightAdaptivePolicy | 定义文本自适应高度的方式。 | | 146 | | [ArkUI_TextHeightAdaptivePolicy](#arkui_textheightadaptivepolicy) | ArkUI_TextHeightAdaptivePolicy | 定义文本自适应高度的方式。 | |
| @@ -190,7 +183,6 @@ | |||
| 190 | | [ArkUI_KeyboardAppearance](#arkui_keyboardappearance) | ArkUI_KeyboardAppearance | 定义输入框拉起的键盘样式。 | | 183 | | [ArkUI_KeyboardAppearance](#arkui_keyboardappearance) | ArkUI_KeyboardAppearance | 定义输入框拉起的键盘样式。 | |
| 191 | | [ArkUI_TextDataDetectorType](#arkui_textdatadetectortype) | ArkUI_TextDataDetectorType | 定义文本识别的实体类型。 | | 184 | | [ArkUI_TextDataDetectorType](#arkui_textdatadetectortype) | ArkUI_TextDataDetectorType | 定义文本识别的实体类型。 | |
| 192 | | [ArkUI_ButtonType](#arkui_buttontype) | ArkUI_ButtonType | 定义按钮样式枚举值。 | | 185 | | [ArkUI_ButtonType](#arkui_buttontype) | ArkUI_ButtonType | 定义按钮样式枚举值。 | |
| 193 | -| [ArkUI_SwiperIndicatorType](#arkui_swiperindicatortype) | ArkUI_SwiperIndicatorType | 定义Swiper组件的导航指示器类型。 | | ||
| 194 | | [ArkUI_ListItemSwipeActionState](#arkui_listitemswipeactionstate) | ArkUI_ListItemSwipeActionState | 定义[Listitem](./arkui-ts/ts-container-listitem.md#listitem10)组件[swipeAction](./arkui-ts/ts-container-listitem.md#swipeaction9)方法的显隐模式。 | | 186 | | [ArkUI_ListItemSwipeActionState](#arkui_listitemswipeactionstate) | ArkUI_ListItemSwipeActionState | 定义[Listitem](./arkui-ts/ts-container-listitem.md#listitem10)组件[swipeAction](./arkui-ts/ts-container-listitem.md#swipeaction9)方法的显隐模式。 | |
| 195 | | [ArkUI_ListItemSwipeEdgeEffect](#arkui_listitemswipeedgeeffect) | ArkUI_ListItemSwipeEdgeEffect | 定义[Listitem](./arkui-ts/ts-container-listitem.md#listitem10)组件[swipeAction](./arkui-ts/ts-container-listitem.md#swipeaction9)方法的滚动模式。 | | 187 | | [ArkUI_ListItemSwipeEdgeEffect](#arkui_listitemswipeedgeeffect) | ArkUI_ListItemSwipeEdgeEffect | 定义[Listitem](./arkui-ts/ts-container-listitem.md#listitem10)组件[swipeAction](./arkui-ts/ts-container-listitem.md#swipeaction9)方法的滚动模式。 | |
| 196 | | [ArkUI_ListItemSwipeActionDirection](#arkui_listitemswipeactiondirection) | ArkUI_ListItemSwipeActionDirection | ListItem划出菜单的展开方向。 | | 188 | | [ArkUI_ListItemSwipeActionDirection](#arkui_listitemswipeactiondirection) | ArkUI_ListItemSwipeActionDirection | ListItem划出菜单的展开方向。 | |
| @@ -204,8 +196,6 @@ | |||
| 204 | | [ArkUI_KeyboardAvoidMode](#arkui_keyboardavoidmode) | ArkUI_KeyboardAvoidMode | 键盘避让模式。 | | 196 | | [ArkUI_KeyboardAvoidMode](#arkui_keyboardavoidmode) | ArkUI_KeyboardAvoidMode | 键盘避让模式。 | |
| 205 | | [ArkUI_HoverModeAreaType](#arkui_hovermodeareatype) | ArkUI_HoverModeAreaType | 悬停态显示区域。 | | 197 | | [ArkUI_HoverModeAreaType](#arkui_hovermodeareatype) | ArkUI_HoverModeAreaType | 悬停态显示区域。 | |
| 206 | | [ArkUI_ExpandMode](#arkui_expandmode) | ArkUI_ExpandMode | 定义子节点展开模式枚举值。 | | 198 | | [ArkUI_ExpandMode](#arkui_expandmode) | ArkUI_ExpandMode | 定义子节点展开模式枚举值。 | |
| 207 | -| [ArkUI_NavDestinationState](#arkui_navdestinationstate) | ArkUI_NavDestinationState | 定义NavDestination组件的状态。 | | ||
| 208 | -| [ArkUI_RouterPageState](#arkui_routerpagestate) | ArkUI_RouterPageState | 定义Router Page的状态。 | | ||
| 209 | | [ArkUI_UIState](#arkui_uistate) | ArkUI_UIState | 组件的UI状态枚举,用于处理状态样式。 | | 199 | | [ArkUI_UIState](#arkui_uistate) | ArkUI_UIState | 组件的UI状态枚举,用于处理状态样式。 | |
| 210 | | [ArkUI_FocusWrapMode](#arkui_focuswrapmode) | ArkUI_FocusWrapMode | 组件走焦换行规则。 | | 200 | | [ArkUI_FocusWrapMode](#arkui_focuswrapmode) | ArkUI_FocusWrapMode | 组件走焦换行规则。 | |
| 211 | | [ArkUI_ItemFillPolicy](#arkui_itemfillpolicy) | ArkUI_ItemFillPolicy | 为不同响应式断点规格指定列数。 | | 201 | | [ArkUI_ItemFillPolicy](#arkui_itemfillpolicy) | ArkUI_ItemFillPolicy | 为不同响应式断点规格指定列数。 | |
| @@ -317,74 +307,10 @@ | |||
| 317 | | [ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentVertical(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getcenteralignmentvertical) | - | 获取纵向居中对齐方式。 | | 307 | | [ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentVertical(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getcenteralignmentvertical) | - | 获取纵向居中对齐方式。 | |
| 318 | | [float OH_ArkUI_AlignmentRuleOption_GetBiasHorizontal(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getbiashorizontal) | - | 获取水平方向上的bias值。 | | 308 | | [float OH_ArkUI_AlignmentRuleOption_GetBiasHorizontal(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getbiashorizontal) | - | 获取水平方向上的bias值。 | |
| 319 | | [float OH_ArkUI_AlignmentRuleOption_GetBiasVertical(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getbiasvertical) | - | 获取垂直方向上的bias值。 | | 309 | | [float OH_ArkUI_AlignmentRuleOption_GetBiasVertical(ArkUI_AlignmentRuleOption* option)](#oh_arkui_alignmentruleoption_getbiasvertical) | - | 获取垂直方向上的bias值。 | |
| 320 | -| [ArkUI_SwiperIndicator* OH_ArkUI_SwiperIndicator_Create(ArkUI_SwiperIndicatorType type)](#oh_arkui_swiperindicator_create) | - | 创建[Swiper](../apis-arkui/arkui-ts/ts-container-swiper.md)组件的导航指示器。 | | ||
| 321 | -| [void OH_ArkUI_SwiperIndicator_Dispose(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_dispose) | - | 销毁Swiper组件的导航指示器指针。 | | ||
| 322 | -| [void OH_ArkUI_SwiperIndicator_SetStartPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setstartposition) | - | 设置导航点距离Swiper组件左边的距离。 | | ||
| 323 | -| [float OH_ArkUI_SwiperIndicator_GetStartPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getstartposition) | - | 获取导航点距离Swiper组件左边的距离。 | | ||
| 324 | -| [void OH_ArkUI_SwiperIndicator_SetTopPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_settopposition) | - | 设置导航点距离Swiper组件顶部的距离。 | | ||
| 325 | -| [float OH_ArkUI_SwiperIndicator_GetTopPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_gettopposition) | - | 获取导航点距离Swiper组件顶部的距离。 | | ||
| 326 | -| [void OH_ArkUI_SwiperIndicator_SetEndPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setendposition) | - | 设置导航点距离Swiper组件右边的距离。 | | ||
| 327 | -| [float OH_ArkUI_SwiperIndicator_GetEndPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getendposition) | - | 获取导航点距离Swiper组件右边的距离。 | | ||
| 328 | -| [void OH_ArkUI_SwiperIndicator_SetBottomPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setbottomposition) | - | 设置导航点距离Swiper组件底部的距离。 | | ||
| 329 | -| [float OH_ArkUI_SwiperIndicator_GetBottomPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getbottomposition) | - | 获取导航点距离Swiper组件底部的距离。 | | ||
| 330 | -| [void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize)](#oh_arkui_swiperindicator_setignoresizeofbottom) | - | 设置OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 331 | -| [int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getignoresizeofbottom) | - | 获取OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 332 | -| [void OH_ArkUI_SwiperIndicator_SetItemWidth(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setitemwidth) | - | 设置Swiper组件圆点导航指示器的宽。 | | ||
| 333 | -| [float OH_ArkUI_SwiperIndicator_GetItemWidth(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getitemwidth) | - | 获取Swiper组件圆点导航指示器的宽。 | | ||
| 334 | -| [void OH_ArkUI_SwiperIndicator_SetItemHeight(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setitemheight) | - | 设置Swiper组件圆点导航指示器的高。 | | ||
| 335 | -| [float OH_ArkUI_SwiperIndicator_GetItemHeight(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getitemheight) | - | 获取Swiper组件圆点导航指示器的高。 | | ||
| 336 | -| [void OH_ArkUI_SwiperIndicator_SetSelectedItemWidth(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setselecteditemwidth) | - | 设置被选中的Swiper组件圆点导航指示器的宽。 | | ||
| 337 | -| [float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselecteditemwidth) | - | 获取被选中Swiper组件圆点导航指示器的宽。 | | ||
| 338 | -| [void OH_ArkUI_SwiperIndicator_SetSelectedItemHeight(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setselecteditemheight) | - | 设置被选中的Swiper组件圆点导航指示器的高。 | | ||
| 339 | -| [float OH_ArkUI_SwiperIndicator_GetSelectedItemHeight(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselecteditemheight) | - | 获取被选中Swiper组件圆点导航指示器的高。 | | ||
| 340 | -| [void OH_ArkUI_SwiperIndicator_SetMask(ArkUI_SwiperIndicator* indicator, int32_t mask)](#oh_arkui_swiperindicator_setmask) | - | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。 | | ||
| 341 | -| [int32_t OH_ArkUI_SwiperIndicator_GetMask(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getmask) | - | 获取是否显示Swiper组件圆点导航指示器的蒙版样式。 | | ||
| 342 | -| [void OH_ArkUI_SwiperIndicator_SetColor(ArkUI_SwiperIndicator* indicator, uint32_t color)](#oh_arkui_swiperindicator_setcolor) | - | 设置Swiper组件圆点导航指示器的颜色。 | | ||
| 343 | -| [uint32_t OH_ArkUI_SwiperIndicator_GetColor(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getcolor) | - | 获取Swiper组件圆点导航指示器的颜色。 | | ||
| 344 | -| [void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator, uint32_t selectedColor)](#oh_arkui_swiperindicator_setselectedcolor) | - | 设置被选中Swiper组件圆点导航指示器的颜色。 | | ||
| 345 | -| [uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselectedcolor) | - | 获取被选中Swiper组件圆点导航指示器的颜色。 | | ||
| 346 | -| [int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount)](#oh_arkui_swiperindicator_setmaxdisplaycount) | - | 设置圆点导航点指示器样式下,导航点显示个数的最大值。 | | ||
| 347 | -| [int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getmaxdisplaycount) | - | 获取圆点导航点指示器样式下,导航点显示个数的最大值。 | | ||
| 348 | -| [ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create()](#oh_arkui_swiperdigitindicator_create) | - | 创建Swiper组件的数字导航指示器。 | | ||
| 349 | -| [void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_destroy) | - | 销毁Swiper组件的数字导航指示器指针。 | | ||
| 350 | -| [void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setstartposition) | - | 设置数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件右边的距离。 | | ||
| 351 | -| [float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getstartposition) | - | 获取数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件右边的距离。 | | ||
| 352 | -| [void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_settopposition) | - | 设置数字导航指示器距离Swiper组件顶部的距离。 | | ||
| 353 | -| [float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_gettopposition) | - | 获取数字导航指示器距离Swiper组件顶部的距离。 | | ||
| 354 | -| [void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setendposition) | - | 设置数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件左边的距离。 | | ||
| 355 | -| [float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getendposition) | - | 获取数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件左边的距离。 | | ||
| 356 | -| [void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setbottomposition) | - | 设置数字导航指示器距离Swiper组件底部的距离。 | | ||
| 357 | -| [float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getbottomposition) | - | 获取数字导航指示器距离Swiper组件底部的距离。 | | ||
| 358 | -| [void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t color)](#oh_arkui_swiperdigitindicator_setfontcolor) | - | 设置Swiper组件数字导航指示器字体颜色。 | | ||
| 359 | -| [uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontcolor) | - | 获取Swiper组件数字导航指示器字体颜色。 | | ||
| 360 | -| [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t selectedColor)](#oh_arkui_swiperdigitindicator_setselectedfontcolor) | - | 设置被选中Swiper组件数字导航指示器字体颜色。 | | ||
| 361 | -| [uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontcolor) | - | 获取被选中Swiper组件数字导航指示器字体颜色。 | | ||
| 362 | -| [void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indicator, float size)](#oh_arkui_swiperdigitindicator_setfontsize) | - | 设置Swiper组件数字导航指示器字体大小。 | | ||
| 363 | -| [float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontsize) | - | 获取Swiper组件数字导航指示器字体大小。 | | ||
| 364 | -| [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator, float size)](#oh_arkui_swiperdigitindicator_setselectedfontsize) | - | 设置被选中Swiper组件数字导航指示器字体大小。 | | ||
| 365 | -| [float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontsize) | - | 获取被选中Swiper组件数字导航指示器字体大小。 | | ||
| 366 | | [void OH_ArkUI_SwiperDigitIndicator_SetFontWeight(ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight fontWeight)](#oh_arkui_swiperdigitindicator_setfontweight) | - | 设置Swiper组件数字导航指示器字体粗细属性。 | | 310 | | [void OH_ArkUI_SwiperDigitIndicator_SetFontWeight(ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight fontWeight)](#oh_arkui_swiperdigitindicator_setfontweight) | - | 设置Swiper组件数字导航指示器字体粗细属性。 | |
| 367 | | [ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetFontWeight(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontweight) | - | 获取Swiper组件数字导航指示器字体粗细属性。 | | 311 | | [ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetFontWeight(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontweight) | - | 获取Swiper组件数字导航指示器字体粗细属性。 | |
| 368 | | [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontWeight(ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight selectedFontWeight)](#oh_arkui_swiperdigitindicator_setselectedfontweight) | - | 设置被选中Swiper组件数字导航指示器字体粗细属性。 | | 312 | | [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontWeight(ArkUI_SwiperDigitIndicator *indicator, ArkUI_FontWeight selectedFontWeight)](#oh_arkui_swiperdigitindicator_setselectedfontweight) | - | 设置被选中Swiper组件数字导航指示器字体粗细属性。 | |
| 369 | | [ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontweight) | - | 获取被选中Swiper组件数字导航指示器字体粗细属性。 | | 313 | | [ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontweight) | - | 获取被选中Swiper组件数字导航指示器字体粗细属性。 | |
| 370 | -| [ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create()](#oh_arkui_swiperarrowstyle_create) | - | 创建Swiper组件的导航箭头。 | | ||
| 371 | -| [void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_destroy) | - | 销毁Swiper组件的导航箭头指针。 | | ||
| 372 | -| [void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showBackground)](#oh_arkui_swiperarrowstyle_setshowbackground) | - | 设置Swiper组件导航箭头底板是否显示。 | | ||
| 373 | -| [int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getshowbackground) | - | 获取Swiper组件导航箭头底板是否显示。 | | ||
| 374 | -| [void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showSidebarMiddle)](#oh_arkui_swiperarrowstyle_setshowsidebarmiddle) | - | 设置Swiper组件导航箭头显示位置。 | | ||
| 375 | -| [int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getshowsidebarmiddle) | - | 获取Swiper组件导航箭头显示位置。 | | ||
| 376 | -| [void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle, float backgroundSize)](#oh_arkui_swiperarrowstyle_setbackgroundsize) | - | 设置Swiper组件导航箭头底板大小。 | | ||
| 377 | -| [float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getbackgroundsize) | - | 获取Swiper组件导航箭头底板大小。 | | ||
| 378 | -| [void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t backgroundColor)](#oh_arkui_swiperarrowstyle_setbackgroundcolor) | - | 设置Swiper组件导航箭头底板颜色。 | | ||
| 379 | -| [uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getbackgroundcolor) | - | 获取Swiper组件导航箭头底板颜色。 | | ||
| 380 | -| [void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle, float arrowSize)](#oh_arkui_swiperarrowstyle_setarrowsize) | - | 设置Swiper组件导航箭头大小。 | | ||
| 381 | -| [float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getarrowsize) | - | 获取Swiper组件导航箭头大小。 | | ||
| 382 | -| [void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t arrowColor)](#oh_arkui_swiperarrowstyle_setarrowcolor) | - | 设置Swiper组件导航箭头颜色。 | | ||
| 383 | -| [uint32_t OH_ArkUI_SwiperArrowStyle_GetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getarrowcolor) | - | 获取Swiper组件导航箭头颜色。 | | ||
| 384 | -| [void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space)](#oh_arkui_swiperindicator_setspace) | - | 设置导航点间距。 | | ||
| 385 | -| [float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getspace) | - | 获取导航点间距。 | | ||
| 386 | -| [void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize)](#oh_arkui_swiperdigitindicator_setignoresizeofbottom) | - | 设置OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 387 | -| [int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getignoresizeofbottom) | - | 获取OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 388 | | [ArkUI_ListItemSwipeActionItem* OH_ArkUI_ListItemSwipeActionItem_Create()](#oh_arkui_listitemswipeactionitem_create) | - | 创建ListItemSwipeActionItem接口设置的配置项。 | | 314 | | [ArkUI_ListItemSwipeActionItem* OH_ArkUI_ListItemSwipeActionItem_Create()](#oh_arkui_listitemswipeactionitem_create) | - | 创建ListItemSwipeActionItem接口设置的配置项。 | |
| 389 | | [void OH_ArkUI_ListItemSwipeActionItem_Dispose(ArkUI_ListItemSwipeActionItem* item)](#oh_arkui_listitemswipeactionitem_dispose) | - | 销毁ListItemSwipeActionItem实例。 | | 315 | | [void OH_ArkUI_ListItemSwipeActionItem_Dispose(ArkUI_ListItemSwipeActionItem* item)](#oh_arkui_listitemswipeactionitem_dispose) | - | 销毁ListItemSwipeActionItem实例。 | |
| 390 | | [void OH_ArkUI_ListItemSwipeActionItem_SetContent(ArkUI_ListItemSwipeActionItem* item, ArkUI_NodeHandle node)](#oh_arkui_listitemswipeactionitem_setcontent) | - | 设置ListItemSwipeActionItem的布局内容。 | | 316 | | [void OH_ArkUI_ListItemSwipeActionItem_SetContent(ArkUI_ListItemSwipeActionItem* item, ArkUI_NodeHandle node)](#oh_arkui_listitemswipeactionitem_setcontent) | - | 设置ListItemSwipeActionItem的布局内容。 | |
| @@ -1456,80 +1382,6 @@ enum ArkUI_HitTestMode | |||
| 1456 | | ARKUI_HIT_TEST_MODE_BLOCK_HIERARCHY = 4 | 自身和子节点响应触摸测试,阻止所有优先级较低的兄弟节点和父节点参与触摸测试。<br>**起始版本:** 20 | | 1382 | | ARKUI_HIT_TEST_MODE_BLOCK_HIERARCHY = 4 | 自身和子节点响应触摸测试,阻止所有优先级较低的兄弟节点和父节点参与触摸测试。<br>**起始版本:** 20 | |
| 1457 | | ARKUI_HIT_TEST_MODE_BLOCK_DESCENDANTS = 5 | 自身不响应触摸测试,并且所有的后代(孩子,孙子等)也不响应触摸测试,不会影响祖先节点的触摸测试。<br>**起始版本:** 20 | | 1383 | | ARKUI_HIT_TEST_MODE_BLOCK_DESCENDANTS = 5 | 自身不响应触摸测试,并且所有的后代(孩子,孙子等)也不响应触摸测试,不会影响祖先节点的触摸测试。<br>**起始版本:** 20 | |
| 1458 | 1384 | ||
| 1459 | -### ArkUI_SwiperArrow | ||
| 1460 | - | ||
| 1461 | -```c | ||
| 1462 | -enum ArkUI_SwiperArrow | ||
| 1463 | -``` | ||
| 1464 | - | ||
| 1465 | -**描述:** | ||
| 1466 | - | ||
| 1467 | - | ||
| 1468 | -Swiper导航点箭头枚举值。 | ||
| 1469 | - | ||
| 1470 | -**起始版本:** 12 | ||
| 1471 | - | ||
| 1472 | -| 枚举项 | 描述 | | ||
| 1473 | -| -- | -- | | ||
| 1474 | -| ARKUI_SWIPER_ARROW_HIDE = 0 | 不显示swiper中导航点箭头。 | | ||
| 1475 | -| ARKUI_SWIPER_ARROW_SHOW = 1 | 显示swiper中导航点箭头。 | | ||
| 1476 | -| ARKUI_SWIPER_ARROW_SHOW_ON_HOVER = 2 | 在鼠标悬浮状态下显示swiper的导航点箭头。 | | ||
| 1477 | - | ||
| 1478 | -### ArkUI_SwiperNestedScrollMode | ||
| 1479 | - | ||
| 1480 | -```c | ||
| 1481 | -enum ArkUI_SwiperNestedScrollMode | ||
| 1482 | -``` | ||
| 1483 | - | ||
| 1484 | -**描述:** | ||
| 1485 | - | ||
| 1486 | - | ||
| 1487 | -Swiper组件和父组件的嵌套滚动模式。 | ||
| 1488 | - | ||
| 1489 | -**起始版本:** 12 | ||
| 1490 | - | ||
| 1491 | -| 枚举项 | 描述 | | ||
| 1492 | -| -- | -- | | ||
| 1493 | -| ARKUI_SWIPER_NESTED_SRCOLL_SELF_ONLY = 0 | Swiper只自身滚动,不与父组件联动。 | | ||
| 1494 | -| ARKUI_SWIPER_NESTED_SRCOLL_SELF_FIRST = 1 | Swiper自身先滚动,自身滚动到边缘以后父组件滚动。父组件滚动到边缘以后,如果父组件有边缘效果,则父组件触发边缘效果,否则Swiper触发边缘效果。 | | ||
| 1495 | - | ||
| 1496 | -### ArkUI_PageFlipMode | ||
| 1497 | - | ||
| 1498 | -```c | ||
| 1499 | -enum ArkUI_PageFlipMode | ||
| 1500 | -``` | ||
| 1501 | - | ||
| 1502 | -**描述:** | ||
| 1503 | - | ||
| 1504 | - | ||
| 1505 | -[Swiper](../apis-arkui/arkui-ts/ts-container-swiper.md)组件鼠标滚轮翻页模式。 | ||
| 1506 | - | ||
| 1507 | -**起始版本:** 15 | ||
| 1508 | - | ||
| 1509 | -| 枚举项 | 描述 | | ||
| 1510 | -| -- | -- | | ||
| 1511 | -| ARKUI_PAGE_FLIP_MODE_CONTINUOUS = 0 | 连续翻页模式,鼠标滚轮连续滚动时翻多页。 | | ||
| 1512 | -| ARKUI_PAGE_FLIP_MODE_SINGLE = 1 | 一次翻页动画结束前不响应其他鼠标滚轮事件。 | | ||
| 1513 | - | ||
| 1514 | -### ArkUI_SwiperAnimationMode | ||
| 1515 | - | ||
| 1516 | -```c | ||
| 1517 | -enum ArkUI_SwiperAnimationMode | ||
| 1518 | -``` | ||
| 1519 | - | ||
| 1520 | -**描述:** | ||
| 1521 | - | ||
| 1522 | - | ||
| 1523 | -Swiper组件跳转到目标页面的动画模式。 | ||
| 1524 | - | ||
| 1525 | -**起始版本:** 15 | ||
| 1526 | - | ||
| 1527 | -| 枚举项 | 描述 | | ||
| 1528 | -| -- | -- | | ||
| 1529 | -| ARKUI_SWIPER_NO_ANIMATION = 0 | 无动画跳转到目标页面。 | | ||
| 1530 | -| ARKUI_SWIPER_DEFAULT_ANIMATION = 1 | 做动画跳转到目标页面。 | | ||
| 1531 | -| ARKUI_SWIPER_FAST_ANIMATION = 2 | 先无动画跳转到目标附近再做动画跳转到目标页面。 | | ||
| 1532 | - | ||
| 1533 | ### ArkUI_AccessibilityMode | 1385 | ### ArkUI_AccessibilityMode |
| 1534 | 1386 | ||
| 1535 | ```c | 1387 | ```c |
| @@ -2395,24 +2247,6 @@ enum ArkUI_ButtonType | |||
| 2395 | | ARKUI_BUTTON_TYPE_CIRCLE = 2 | 圆形按钮。 | | 2247 | | ARKUI_BUTTON_TYPE_CIRCLE = 2 | 圆形按钮。 | |
| 2396 | | ARKUI_BUTTON_ROUNDED_RECTANGLE = 8 | 圆角矩形按钮。<br>**起始版本:** 19 | | 2248 | | ARKUI_BUTTON_ROUNDED_RECTANGLE = 8 | 圆角矩形按钮。<br>**起始版本:** 19 | |
| 2397 | 2249 | ||
| 2398 | -### ArkUI_SwiperIndicatorType | ||
| 2399 | - | ||
| 2400 | -```c | ||
| 2401 | -enum ArkUI_SwiperIndicatorType | ||
| 2402 | -``` | ||
| 2403 | - | ||
| 2404 | -**描述:** | ||
| 2405 | - | ||
| 2406 | - | ||
| 2407 | -定义Swiper组件的导航指示器类型。 | ||
| 2408 | - | ||
| 2409 | -**起始版本:** 12 | ||
| 2410 | - | ||
| 2411 | -| 枚举项 | 描述 | | ||
| 2412 | -| -- | -- | | ||
| 2413 | -| ARKUI_SWIPER_INDICATOR_TYPE_DOT = 0 | 圆点指示器类型。 | | ||
| 2414 | -| ARKUI_SWIPER_INDICATOR_TYPE_DIGIT = 1 | 数字指示器类型。 | | ||
| 2415 | - | ||
| 2416 | ### ArkUI_ListItemSwipeActionState | 2250 | ### ArkUI_ListItemSwipeActionState |
| 2417 | 2251 | ||
| 2418 | ```c | 2252 | ```c |
| @@ -2715,52 +2549,6 @@ enum ArkUI_ExpandMode | |||
| 2715 | | ARKUI_EXPAND = 1 | 展开。 | | 2549 | | ARKUI_EXPAND = 1 | 展开。 | |
| 2716 | | ARKUI_LAZY_EXPAND = 2 | 懒展开,按需展开当前节点的子节点,节点展开条件可以参考[LazyForEach:数据懒加载](../../ui/rendering-control/arkts-rendering-control-lazyforeach.md)。 | | 2550 | | ARKUI_LAZY_EXPAND = 2 | 懒展开,按需展开当前节点的子节点,节点展开条件可以参考[LazyForEach:数据懒加载](../../ui/rendering-control/arkts-rendering-control-lazyforeach.md)。 | |
| 2717 | 2551 | ||
| 2718 | -### ArkUI_NavDestinationState | ||
| 2719 | - | ||
| 2720 | -```c | ||
| 2721 | -enum ArkUI_NavDestinationState | ||
| 2722 | -``` | ||
| 2723 | - | ||
| 2724 | -**描述:** | ||
| 2725 | - | ||
| 2726 | - | ||
| 2727 | -定义[NavDestination](../apis-arkui/arkui-ts/ts-basic-components-navdestination.md)组件的状态。 | ||
| 2728 | - | ||
| 2729 | -**起始版本:** 12 | ||
| 2730 | - | ||
| 2731 | -| 枚举项 | 描述 | | ||
| 2732 | -| -- | -- | | ||
| 2733 | -| ARKUI_NAV_DESTINATION_STATE_ON_SHOW = 0 | NavDestination组件显示。 | | ||
| 2734 | -| ARKUI_NAV_DESTINATION_STATE_ON_HIDE = 1 | NavDestination组件隐藏。 | | ||
| 2735 | -| ARKUI_NAV_DESTINATION_STATE_ON_APPEAR = 2 | NavDestination从组件树上挂载。 | | ||
| 2736 | -| ARKUI_NAV_DESTINATION_STATE_ON_DISAPPEAR = 3 | NavDestination从组件树上卸载。 | | ||
| 2737 | -| ARKUI_NAV_DESTINATION_STATE_ON_WILL_SHOW = 4 | NavDestination组件显示之前。 | | ||
| 2738 | -| ARKUI_NAV_DESTINATION_STATE_ON_WILL_HIDE = 5 | NavDestination组件隐藏之前。 | | ||
| 2739 | -| ARKUI_NAV_DESTINATION_STATE_ON_WILL_APPEAR = 6 | NavDestination挂载到组件树之前。 | | ||
| 2740 | -| ARKUI_NAV_DESTINATION_STATE_ON_WILL_DISAPPEAR = 7 | NavDestination从组件树上卸载之前。 | | ||
| 2741 | -| ARKUI_NAV_DESTINATION_STATE_ON_BACK_PRESS = 100 | NavDestination从组件返回。 | | ||
| 2742 | - | ||
| 2743 | -### ArkUI_RouterPageState | ||
| 2744 | - | ||
| 2745 | -```c | ||
| 2746 | -enum ArkUI_RouterPageState | ||
| 2747 | -``` | ||
| 2748 | - | ||
| 2749 | -**描述:** | ||
| 2750 | - | ||
| 2751 | - | ||
| 2752 | -定义[Router](arkts-apis-uicontext-router.md)(路由页面)的状态。 | ||
| 2753 | - | ||
| 2754 | -**起始版本:** 12 | ||
| 2755 | - | ||
| 2756 | -| 枚举项 | 描述 | | ||
| 2757 | -| -- | -- | | ||
| 2758 | -| ARKUI_ROUTER_PAGE_STATE_ABOUT_TO_APPEAR = 0 | Router Page即将创建。 | | ||
| 2759 | -| ARKUI_ROUTER_PAGE_STATE_ABOUT_TO_DISAPPEAR = 1 | Router Page即将销毁。 | | ||
| 2760 | -| ARKUI_ROUTER_PAGE_STATE_ON_SHOW = 2 | Router Page显示。 | | ||
| 2761 | -| ARKUI_ROUTER_PAGE_STATE_ON_HIDE = 3 | Router Page隐藏。 | | ||
| 2762 | -| ARKUI_ROUTER_PAGE_STATE_ON_BACK_PRESS = 4 | Router Page返回时。 | | ||
| 2763 | - | ||
| 2764 | ### ArkUI_UIState | 2552 | ### ArkUI_UIState |
| 2765 | 2553 | ||
| 2766 | ```c | 2554 | ```c |
| @@ -5203,1084 +4991,6 @@ float OH_ArkUI_AlignmentRuleOption_GetBiasVertical(ArkUI_AlignmentRuleOption* op | |||
| 5203 | | -- | -- | | 4991 | | -- | -- | |
| 5204 | | float | 垂直方向上的bias值。 | | 4992 | | float | 垂直方向上的bias值。 | |
| 5205 | 4993 | ||
| 5206 | -### OH_ArkUI_SwiperIndicator_Create() | ||
| 5207 | - | ||
| 5208 | -```c | ||
| 5209 | -ArkUI_SwiperIndicator* OH_ArkUI_SwiperIndicator_Create(ArkUI_SwiperIndicatorType type) | ||
| 5210 | -``` | ||
| 5211 | - | ||
| 5212 | -**描述:** | ||
| 5213 | - | ||
| 5214 | - | ||
| 5215 | -创建Swiper组件的导航指示器。 | ||
| 5216 | - | ||
| 5217 | -**起始版本:** 12 | ||
| 5218 | - | ||
| 5219 | - | ||
| 5220 | -**参数:** | ||
| 5221 | - | ||
| 5222 | -| 参数项 | 描述 | | ||
| 5223 | -| -- | -- | | ||
| 5224 | -| [ArkUI_SwiperIndicatorType](capi-native-type-h.md#arkui_swiperindicatortype) type | 导航指示器的类型。 | | ||
| 5225 | - | ||
| 5226 | -**返回:** | ||
| 5227 | - | ||
| 5228 | -| 类型 | 说明 | | ||
| 5229 | -|----------------------------| -- | | ||
| 5230 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* | 导航指示器对象指针。 | | ||
| 5231 | - | ||
| 5232 | -### OH_ArkUI_SwiperIndicator_Dispose() | ||
| 5233 | - | ||
| 5234 | -```c | ||
| 5235 | -void OH_ArkUI_SwiperIndicator_Dispose(ArkUI_SwiperIndicator* indicator) | ||
| 5236 | -``` | ||
| 5237 | - | ||
| 5238 | -**描述:** | ||
| 5239 | - | ||
| 5240 | - | ||
| 5241 | -销毁Swiper组件的导航指示器指针。 | ||
| 5242 | - | ||
| 5243 | -**起始版本:** 12 | ||
| 5244 | - | ||
| 5245 | - | ||
| 5246 | -**参数:** | ||
| 5247 | - | ||
| 5248 | -| 参数项 | 描述 | | ||
| 5249 | -| -- | -- | | ||
| 5250 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5251 | - | ||
| 5252 | -### OH_ArkUI_SwiperIndicator_SetStartPosition() | ||
| 5253 | - | ||
| 5254 | -```c | ||
| 5255 | -void OH_ArkUI_SwiperIndicator_SetStartPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5256 | -``` | ||
| 5257 | - | ||
| 5258 | -**描述:** | ||
| 5259 | - | ||
| 5260 | - | ||
| 5261 | -设置导航点距离Swiper组件左边的距离。 | ||
| 5262 | - | ||
| 5263 | -**起始版本:** 12 | ||
| 5264 | - | ||
| 5265 | - | ||
| 5266 | -**参数:** | ||
| 5267 | - | ||
| 5268 | -| 参数项 | 描述 | | ||
| 5269 | -| -- | -- | | ||
| 5270 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5271 | -| float value | 导航点距离Swiper组件左边的距离。默认值:0,单位:vp。 | | ||
| 5272 | - | ||
| 5273 | -### OH_ArkUI_SwiperIndicator_GetStartPosition() | ||
| 5274 | - | ||
| 5275 | -```c | ||
| 5276 | -float OH_ArkUI_SwiperIndicator_GetStartPosition(ArkUI_SwiperIndicator* indicator) | ||
| 5277 | -``` | ||
| 5278 | - | ||
| 5279 | -**描述:** | ||
| 5280 | - | ||
| 5281 | - | ||
| 5282 | -获取导航点距离Swiper组件左边的距离。 | ||
| 5283 | - | ||
| 5284 | -**起始版本:** 12 | ||
| 5285 | - | ||
| 5286 | - | ||
| 5287 | -**参数:** | ||
| 5288 | - | ||
| 5289 | -| 参数项 | 描述 | | ||
| 5290 | -| -- | -- | | ||
| 5291 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5292 | - | ||
| 5293 | -**返回:** | ||
| 5294 | - | ||
| 5295 | -| 类型 | 说明 | | ||
| 5296 | -| -- | -- | | ||
| 5297 | -| float | 导航点距离Swiper组件左边的距离。单位:vp。 | | ||
| 5298 | - | ||
| 5299 | -### OH_ArkUI_SwiperIndicator_SetTopPosition() | ||
| 5300 | - | ||
| 5301 | -```c | ||
| 5302 | -void OH_ArkUI_SwiperIndicator_SetTopPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5303 | -``` | ||
| 5304 | - | ||
| 5305 | -**描述:** | ||
| 5306 | - | ||
| 5307 | - | ||
| 5308 | -设置导航点距离Swiper组件顶部的距离。 | ||
| 5309 | - | ||
| 5310 | -**起始版本:** 12 | ||
| 5311 | - | ||
| 5312 | - | ||
| 5313 | -**参数:** | ||
| 5314 | - | ||
| 5315 | -| 参数项 | 描述 | | ||
| 5316 | -| -- | -- | | ||
| 5317 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5318 | -| float value | 导航点距离Swiper组件顶部的距离。默认值:0,单位:vp。 | | ||
| 5319 | - | ||
| 5320 | -### OH_ArkUI_SwiperIndicator_GetTopPosition() | ||
| 5321 | - | ||
| 5322 | -```c | ||
| 5323 | -float OH_ArkUI_SwiperIndicator_GetTopPosition(ArkUI_SwiperIndicator* indicator) | ||
| 5324 | -``` | ||
| 5325 | - | ||
| 5326 | -**描述:** | ||
| 5327 | - | ||
| 5328 | - | ||
| 5329 | -获取导航点距离Swiper组件顶部的距离。 | ||
| 5330 | - | ||
| 5331 | -**起始版本:** 12 | ||
| 5332 | - | ||
| 5333 | - | ||
| 5334 | -**参数:** | ||
| 5335 | - | ||
| 5336 | -| 参数项 | 描述 | | ||
| 5337 | -| -- | -- | | ||
| 5338 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5339 | - | ||
| 5340 | -**返回:** | ||
| 5341 | - | ||
| 5342 | -| 类型 | 说明 | | ||
| 5343 | -| -- | -- | | ||
| 5344 | -| float | 导航点距离Swiper组件顶部的距离。单位:vp。 | | ||
| 5345 | - | ||
| 5346 | -### OH_ArkUI_SwiperIndicator_SetEndPosition() | ||
| 5347 | - | ||
| 5348 | -```c | ||
| 5349 | -void OH_ArkUI_SwiperIndicator_SetEndPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5350 | -``` | ||
| 5351 | - | ||
| 5352 | -**描述:** | ||
| 5353 | - | ||
| 5354 | - | ||
| 5355 | -设置导航点距离Swiper组件右边的距离。 | ||
| 5356 | - | ||
| 5357 | -**起始版本:** 12 | ||
| 5358 | - | ||
| 5359 | - | ||
| 5360 | -**参数:** | ||
| 5361 | - | ||
| 5362 | -| 参数项 | 描述 | | ||
| 5363 | -| -- | -- | | ||
| 5364 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5365 | -| float value | 导航点距离Swiper组件右边的距离。默认值:0,单位:vp。 | | ||
| 5366 | - | ||
| 5367 | -### OH_ArkUI_SwiperIndicator_GetEndPosition() | ||
| 5368 | - | ||
| 5369 | -```c | ||
| 5370 | -float OH_ArkUI_SwiperIndicator_GetEndPosition(ArkUI_SwiperIndicator* indicator) | ||
| 5371 | -``` | ||
| 5372 | - | ||
| 5373 | -**描述:** | ||
| 5374 | - | ||
| 5375 | - | ||
| 5376 | -获取导航点距离Swiper组件右边的距离。 | ||
| 5377 | - | ||
| 5378 | -**起始版本:** 12 | ||
| 5379 | - | ||
| 5380 | - | ||
| 5381 | -**参数:** | ||
| 5382 | - | ||
| 5383 | -| 参数项 | 描述 | | ||
| 5384 | -| -- | -- | | ||
| 5385 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5386 | - | ||
| 5387 | -**返回:** | ||
| 5388 | - | ||
| 5389 | -| 类型 | 说明 | | ||
| 5390 | -| -- | -- | | ||
| 5391 | -| float | 导航点距离Swiper组件右边的距离。单位:vp。 | | ||
| 5392 | - | ||
| 5393 | -### OH_ArkUI_SwiperIndicator_SetBottomPosition() | ||
| 5394 | - | ||
| 5395 | -```c | ||
| 5396 | -void OH_ArkUI_SwiperIndicator_SetBottomPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5397 | -``` | ||
| 5398 | - | ||
| 5399 | -**描述:** | ||
| 5400 | - | ||
| 5401 | - | ||
| 5402 | -设置导航点距离Swiper组件底部的距离。 | ||
| 5403 | - | ||
| 5404 | -**起始版本:** 12 | ||
| 5405 | - | ||
| 5406 | - | ||
| 5407 | -**参数:** | ||
| 5408 | - | ||
| 5409 | -| 参数项 | 描述 | | ||
| 5410 | -| -- | -- | | ||
| 5411 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5412 | -| float value | 导航点距离Swiper组件底部的距离。默认值:0,单位:vp。 | | ||
| 5413 | - | ||
| 5414 | -### OH_ArkUI_SwiperIndicator_GetBottomPosition() | ||
| 5415 | - | ||
| 5416 | -```c | ||
| 5417 | -float OH_ArkUI_SwiperIndicator_GetBottomPosition(ArkUI_SwiperIndicator* indicator) | ||
| 5418 | -``` | ||
| 5419 | - | ||
| 5420 | -**描述:** | ||
| 5421 | - | ||
| 5422 | - | ||
| 5423 | -获取导航点距离Swiper组件底部的距离。 | ||
| 5424 | - | ||
| 5425 | -**起始版本:** 12 | ||
| 5426 | - | ||
| 5427 | - | ||
| 5428 | -**参数:** | ||
| 5429 | - | ||
| 5430 | -| 参数项 | 描述 | | ||
| 5431 | -| -- | -- | | ||
| 5432 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5433 | - | ||
| 5434 | -**返回:** | ||
| 5435 | - | ||
| 5436 | -| 类型 | 说明 | | ||
| 5437 | -| -- | -- | | ||
| 5438 | -| float | 导航点距离Swiper组件底部的距离。单位:vp。 | | ||
| 5439 | - | ||
| 5440 | -### OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom() | ||
| 5441 | - | ||
| 5442 | -```c | ||
| 5443 | -void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize) | ||
| 5444 | -``` | ||
| 5445 | - | ||
| 5446 | -**描述:** | ||
| 5447 | - | ||
| 5448 | - | ||
| 5449 | -设置OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 5450 | - | ||
| 5451 | -**起始版本:** 19 | ||
| 5452 | - | ||
| 5453 | - | ||
| 5454 | -**参数:** | ||
| 5455 | - | ||
| 5456 | -| 参数项 | 描述 | | ||
| 5457 | -| -- | -- | | ||
| 5458 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5459 | -| int32_t ignoreSize | 是否忽略导航点大小。1表示忽略导航点大小,0表示不忽略,默认值0。 | | ||
| 5460 | - | ||
| 5461 | -### OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom() | ||
| 5462 | - | ||
| 5463 | -```c | ||
| 5464 | -int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator) | ||
| 5465 | -``` | ||
| 5466 | - | ||
| 5467 | -**描述:** | ||
| 5468 | - | ||
| 5469 | - | ||
| 5470 | -获取OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 5471 | - | ||
| 5472 | -**起始版本:** 19 | ||
| 5473 | - | ||
| 5474 | - | ||
| 5475 | -**参数:** | ||
| 5476 | - | ||
| 5477 | -| 参数项 | 描述 | | ||
| 5478 | -| -- | -- | | ||
| 5479 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5480 | - | ||
| 5481 | -**返回:** | ||
| 5482 | - | ||
| 5483 | -| 类型 | 说明 | | ||
| 5484 | -| -- | -- | | ||
| 5485 | -| int32_t | 是否忽略导航点大小。 | | ||
| 5486 | - | ||
| 5487 | -### OH_ArkUI_SwiperIndicator_SetItemWidth() | ||
| 5488 | - | ||
| 5489 | -```c | ||
| 5490 | -void OH_ArkUI_SwiperIndicator_SetItemWidth(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5491 | -``` | ||
| 5492 | - | ||
| 5493 | -**描述:** | ||
| 5494 | - | ||
| 5495 | - | ||
| 5496 | -设置Swiper组件圆点导航指示器的宽。 | ||
| 5497 | - | ||
| 5498 | -**起始版本:** 12 | ||
| 5499 | - | ||
| 5500 | - | ||
| 5501 | -**参数:** | ||
| 5502 | - | ||
| 5503 | -| 参数项 | 描述 | | ||
| 5504 | -| -- | -- | | ||
| 5505 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5506 | -| float value | 圆点导航指示器的宽。默认值:12,单位:vp。 | | ||
| 5507 | - | ||
| 5508 | -### OH_ArkUI_SwiperIndicator_GetItemWidth() | ||
| 5509 | - | ||
| 5510 | -```c | ||
| 5511 | -float OH_ArkUI_SwiperIndicator_GetItemWidth(ArkUI_SwiperIndicator* indicator) | ||
| 5512 | -``` | ||
| 5513 | - | ||
| 5514 | -**描述:** | ||
| 5515 | - | ||
| 5516 | - | ||
| 5517 | -获取Swiper组件圆点导航指示器的宽。 | ||
| 5518 | - | ||
| 5519 | -**起始版本:** 12 | ||
| 5520 | - | ||
| 5521 | - | ||
| 5522 | -**参数:** | ||
| 5523 | - | ||
| 5524 | -| 参数项 | 描述 | | ||
| 5525 | -| -- | -- | | ||
| 5526 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5527 | - | ||
| 5528 | -**返回:** | ||
| 5529 | - | ||
| 5530 | -| 类型 | 说明 | | ||
| 5531 | -| -- | -- | | ||
| 5532 | -| float | 圆点导航指示器的宽。单位:vp。 | | ||
| 5533 | - | ||
| 5534 | -### OH_ArkUI_SwiperIndicator_SetItemHeight() | ||
| 5535 | - | ||
| 5536 | -```c | ||
| 5537 | -void OH_ArkUI_SwiperIndicator_SetItemHeight(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5538 | -``` | ||
| 5539 | - | ||
| 5540 | -**描述:** | ||
| 5541 | - | ||
| 5542 | - | ||
| 5543 | -设置Swiper组件圆点导航指示器的高。 | ||
| 5544 | - | ||
| 5545 | -**起始版本:** 12 | ||
| 5546 | - | ||
| 5547 | - | ||
| 5548 | -**参数:** | ||
| 5549 | - | ||
| 5550 | -| 参数项 | 描述 | | ||
| 5551 | -| -- | -- | | ||
| 5552 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5553 | -| float value | 圆点导航指示器的高。默认值:6,单位:vp。 | | ||
| 5554 | - | ||
| 5555 | -### OH_ArkUI_SwiperIndicator_GetItemHeight() | ||
| 5556 | - | ||
| 5557 | -```c | ||
| 5558 | -float OH_ArkUI_SwiperIndicator_GetItemHeight(ArkUI_SwiperIndicator* indicator) | ||
| 5559 | -``` | ||
| 5560 | - | ||
| 5561 | -**描述:** | ||
| 5562 | - | ||
| 5563 | - | ||
| 5564 | -获取Swiper组件圆点导航指示器的高。 | ||
| 5565 | - | ||
| 5566 | -**起始版本:** 12 | ||
| 5567 | - | ||
| 5568 | - | ||
| 5569 | -**参数:** | ||
| 5570 | - | ||
| 5571 | -| 参数项 | 描述 | | ||
| 5572 | -| -- | -- | | ||
| 5573 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5574 | - | ||
| 5575 | -**返回:** | ||
| 5576 | - | ||
| 5577 | -| 类型 | 说明 | | ||
| 5578 | -| -- | -- | | ||
| 5579 | -| float | 圆点导航指示器的高。单位:vp。 | | ||
| 5580 | - | ||
| 5581 | -### OH_ArkUI_SwiperIndicator_SetSelectedItemWidth() | ||
| 5582 | - | ||
| 5583 | -```c | ||
| 5584 | -void OH_ArkUI_SwiperIndicator_SetSelectedItemWidth(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5585 | -``` | ||
| 5586 | - | ||
| 5587 | -**描述:** | ||
| 5588 | - | ||
| 5589 | - | ||
| 5590 | -设置被选中的Swiper组件圆点导航指示器的宽。 | ||
| 5591 | - | ||
| 5592 | -**起始版本:** 12 | ||
| 5593 | - | ||
| 5594 | - | ||
| 5595 | -**参数:** | ||
| 5596 | - | ||
| 5597 | -| 参数项 | 描述 | | ||
| 5598 | -| -- | -- | | ||
| 5599 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5600 | -| float value | 圆点导航指示器的宽。默认值:12,单位:vp。 | | ||
| 5601 | - | ||
| 5602 | -### OH_ArkUI_SwiperIndicator_GetSelectedItemWidth() | ||
| 5603 | - | ||
| 5604 | -```c | ||
| 5605 | -float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth(ArkUI_SwiperIndicator* indicator) | ||
| 5606 | -``` | ||
| 5607 | - | ||
| 5608 | -**描述:** | ||
| 5609 | - | ||
| 5610 | - | ||
| 5611 | -获取被选中Swiper组件圆点导航指示器的宽。 | ||
| 5612 | - | ||
| 5613 | -**起始版本:** 12 | ||
| 5614 | - | ||
| 5615 | - | ||
| 5616 | -**参数:** | ||
| 5617 | - | ||
| 5618 | -| 参数项 | 描述 | | ||
| 5619 | -| -- | -- | | ||
| 5620 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5621 | - | ||
| 5622 | -**返回:** | ||
| 5623 | - | ||
| 5624 | -| 类型 | 说明 | | ||
| 5625 | -| -- | -- | | ||
| 5626 | -| float | 圆点导航指示器的宽。单位:vp。 | | ||
| 5627 | - | ||
| 5628 | -### OH_ArkUI_SwiperIndicator_SetSelectedItemHeight() | ||
| 5629 | - | ||
| 5630 | -```c | ||
| 5631 | -void OH_ArkUI_SwiperIndicator_SetSelectedItemHeight(ArkUI_SwiperIndicator* indicator, float value) | ||
| 5632 | -``` | ||
| 5633 | - | ||
| 5634 | -**描述:** | ||
| 5635 | - | ||
| 5636 | - | ||
| 5637 | -设置被选中的Swiper组件圆点导航指示器的高。 | ||
| 5638 | - | ||
| 5639 | -**起始版本:** 12 | ||
| 5640 | - | ||
| 5641 | - | ||
| 5642 | -**参数:** | ||
| 5643 | - | ||
| 5644 | -| 参数项 | 描述 | | ||
| 5645 | -| -- | -- | | ||
| 5646 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5647 | -| float value | 圆点导航指示器的高。默认值:6,单位:vp。 | | ||
| 5648 | - | ||
| 5649 | -### OH_ArkUI_SwiperIndicator_GetSelectedItemHeight() | ||
| 5650 | - | ||
| 5651 | -```c | ||
| 5652 | -float OH_ArkUI_SwiperIndicator_GetSelectedItemHeight(ArkUI_SwiperIndicator* indicator) | ||
| 5653 | -``` | ||
| 5654 | - | ||
| 5655 | -**描述:** | ||
| 5656 | - | ||
| 5657 | - | ||
| 5658 | -获取被选中Swiper组件圆点导航指示器的高。 | ||
| 5659 | - | ||
| 5660 | -**起始版本:** 12 | ||
| 5661 | - | ||
| 5662 | - | ||
| 5663 | -**参数:** | ||
| 5664 | - | ||
| 5665 | -| 参数项 | 描述 | | ||
| 5666 | -| -- | -- | | ||
| 5667 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5668 | - | ||
| 5669 | -**返回:** | ||
| 5670 | - | ||
| 5671 | -| 类型 | 说明 | | ||
| 5672 | -| -- | -- | | ||
| 5673 | -| float | 圆点导航指示器的高。单位:vp。 | | ||
| 5674 | - | ||
| 5675 | -### OH_ArkUI_SwiperIndicator_SetMask() | ||
| 5676 | - | ||
| 5677 | -```c | ||
| 5678 | -void OH_ArkUI_SwiperIndicator_SetMask(ArkUI_SwiperIndicator* indicator, int32_t mask) | ||
| 5679 | -``` | ||
| 5680 | - | ||
| 5681 | -**描述:** | ||
| 5682 | - | ||
| 5683 | - | ||
| 5684 | -设置是否显示Swiper组件圆点导航指示器的蒙版样式。 | ||
| 5685 | - | ||
| 5686 | -**起始版本:** 12 | ||
| 5687 | - | ||
| 5688 | - | ||
| 5689 | -**参数:** | ||
| 5690 | - | ||
| 5691 | -| 参数项 | 描述 | | ||
| 5692 | -| -- | -- | | ||
| 5693 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5694 | -| int32_t mask | 是否显示蒙版样式,1表示显示,0表示不显示。<br/>默认值:0 | | ||
| 5695 | - | ||
| 5696 | -### OH_ArkUI_SwiperIndicator_GetMask() | ||
| 5697 | - | ||
| 5698 | -```c | ||
| 5699 | -int32_t OH_ArkUI_SwiperIndicator_GetMask(ArkUI_SwiperIndicator* indicator) | ||
| 5700 | -``` | ||
| 5701 | - | ||
| 5702 | -**描述:** | ||
| 5703 | - | ||
| 5704 | - | ||
| 5705 | -获取是否显示Swiper组件圆点导航指示器的蒙版样式。 | ||
| 5706 | - | ||
| 5707 | -**起始版本:** 12 | ||
| 5708 | - | ||
| 5709 | - | ||
| 5710 | -**参数:** | ||
| 5711 | - | ||
| 5712 | -| 参数项 | 描述 | | ||
| 5713 | -| -- | -- | | ||
| 5714 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5715 | - | ||
| 5716 | -**返回:** | ||
| 5717 | - | ||
| 5718 | -| 类型 | 说明 | | ||
| 5719 | -| -- | -- | | ||
| 5720 | -| int32_t | 返回1表示显示圆点导航指示器的蒙版样式,返回0表示不显示。 | | ||
| 5721 | - | ||
| 5722 | -### OH_ArkUI_SwiperIndicator_SetColor() | ||
| 5723 | - | ||
| 5724 | -```c | ||
| 5725 | -void OH_ArkUI_SwiperIndicator_SetColor(ArkUI_SwiperIndicator* indicator, uint32_t color) | ||
| 5726 | -``` | ||
| 5727 | - | ||
| 5728 | -**描述:** | ||
| 5729 | - | ||
| 5730 | - | ||
| 5731 | -设置Swiper组件圆点导航指示器的颜色。 | ||
| 5732 | - | ||
| 5733 | -**起始版本:** 12 | ||
| 5734 | - | ||
| 5735 | - | ||
| 5736 | -**参数:** | ||
| 5737 | - | ||
| 5738 | -| 参数项 | 描述 | | ||
| 5739 | -| -- | -- | | ||
| 5740 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5741 | -| uint32_t color | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。<br/>默认值:'#1A182431',浅灰色。 | | ||
| 5742 | - | ||
| 5743 | -### OH_ArkUI_SwiperIndicator_GetColor() | ||
| 5744 | - | ||
| 5745 | -```c | ||
| 5746 | -uint32_t OH_ArkUI_SwiperIndicator_GetColor(ArkUI_SwiperIndicator* indicator) | ||
| 5747 | -``` | ||
| 5748 | - | ||
| 5749 | -**描述:** | ||
| 5750 | - | ||
| 5751 | - | ||
| 5752 | -获取Swiper组件圆点导航指示器的颜色。 | ||
| 5753 | - | ||
| 5754 | -**起始版本:** 12 | ||
| 5755 | - | ||
| 5756 | - | ||
| 5757 | -**参数:** | ||
| 5758 | - | ||
| 5759 | -| 参数项 | 描述 | | ||
| 5760 | -| -- | -- | | ||
| 5761 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5762 | - | ||
| 5763 | -**返回:** | ||
| 5764 | - | ||
| 5765 | -| 类型 | 说明 | | ||
| 5766 | -| -- | -- | | ||
| 5767 | -| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 5768 | - | ||
| 5769 | -### OH_ArkUI_SwiperIndicator_SetSelectedColor() | ||
| 5770 | - | ||
| 5771 | -```c | ||
| 5772 | -void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator, uint32_t selectedColor) | ||
| 5773 | -``` | ||
| 5774 | - | ||
| 5775 | -**描述:** | ||
| 5776 | - | ||
| 5777 | - | ||
| 5778 | -设置被选中Swiper组件圆点导航指示器的颜色。 | ||
| 5779 | - | ||
| 5780 | -**起始版本:** 12 | ||
| 5781 | - | ||
| 5782 | - | ||
| 5783 | -**参数:** | ||
| 5784 | - | ||
| 5785 | -| 参数项 | 描述 | | ||
| 5786 | -| -- | -- | | ||
| 5787 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5788 | -| uint32_t selectedColor | 颜色类型,0xargb格式,形如0xFFFF0000表示红色。<br/>默认值:'\#007DFF',蓝色。 | | ||
| 5789 | - | ||
| 5790 | -### OH_ArkUI_SwiperIndicator_GetSelectedColor() | ||
| 5791 | - | ||
| 5792 | -```c | ||
| 5793 | -uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator) | ||
| 5794 | -``` | ||
| 5795 | - | ||
| 5796 | -**描述:** | ||
| 5797 | - | ||
| 5798 | - | ||
| 5799 | -获取被选中Swiper组件圆点导航指示器的颜色。 | ||
| 5800 | - | ||
| 5801 | -**起始版本:** 12 | ||
| 5802 | - | ||
| 5803 | - | ||
| 5804 | -**参数:** | ||
| 5805 | - | ||
| 5806 | -| 参数项 | 描述 | | ||
| 5807 | -| -- | -- | | ||
| 5808 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5809 | - | ||
| 5810 | -**返回:** | ||
| 5811 | - | ||
| 5812 | -| 类型 | 说明 | | ||
| 5813 | -| -- | -- | | ||
| 5814 | -| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 5815 | - | ||
| 5816 | -### OH_ArkUI_SwiperIndicator_SetMaxDisplayCount() | ||
| 5817 | - | ||
| 5818 | -```c | ||
| 5819 | -int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount) | ||
| 5820 | -``` | ||
| 5821 | - | ||
| 5822 | -**描述:** | ||
| 5823 | - | ||
| 5824 | - | ||
| 5825 | -设置圆点导航点指示器样式下,导航点显示个数的最大值。 | ||
| 5826 | - | ||
| 5827 | -**起始版本:** 12 | ||
| 5828 | - | ||
| 5829 | - | ||
| 5830 | -**参数:** | ||
| 5831 | - | ||
| 5832 | -| 参数项 | 描述 | | ||
| 5833 | -| -- | -- | | ||
| 5834 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5835 | -| int32_t maxDisplayCount | 导航点显示个数最大值,有效取值范围[6, 9]。 | | ||
| 5836 | - | ||
| 5837 | -**返回:** | ||
| 5838 | - | ||
| 5839 | -| 类型 | 说明 | | ||
| 5840 | -| -- | -- | | ||
| 5841 | -| int32_t | 错误码。<br> [ARKUI_ERROR_CODE_NO_ERROR](capi-native-type-h.md#arkui_errorcode) 成功。<br> [ARKUI_ERROR_CODE_PARAM_INVALID](capi-native-type-h.md#arkui_errorcode) 如果maxDisplayCount设置范围错误, 返回错误码。 | | ||
| 5842 | - | ||
| 5843 | -### OH_ArkUI_SwiperIndicator_GetMaxDisplayCount() | ||
| 5844 | - | ||
| 5845 | -```c | ||
| 5846 | -int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator) | ||
| 5847 | -``` | ||
| 5848 | - | ||
| 5849 | -**描述:** | ||
| 5850 | - | ||
| 5851 | - | ||
| 5852 | -获取圆点导航点指示器样式下,导航点显示个数的最大值。 | ||
| 5853 | - | ||
| 5854 | -**起始版本:** 12 | ||
| 5855 | - | ||
| 5856 | - | ||
| 5857 | -**参数:** | ||
| 5858 | - | ||
| 5859 | -| 参数项 | 描述 | | ||
| 5860 | -| -- | -- | | ||
| 5861 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 5862 | - | ||
| 5863 | -**返回:** | ||
| 5864 | - | ||
| 5865 | -| 类型 | 说明 | | ||
| 5866 | -| -- | -- | | ||
| 5867 | -| int32_t | 导航点显示个数最大值,有效取值范围[6, 9]。 | | ||
| 5868 | - | ||
| 5869 | -### OH_ArkUI_SwiperDigitIndicator_Create() | ||
| 5870 | - | ||
| 5871 | -```c | ||
| 5872 | -ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create() | ||
| 5873 | -``` | ||
| 5874 | - | ||
| 5875 | -**描述:** | ||
| 5876 | - | ||
| 5877 | - | ||
| 5878 | -创建Swiper组件的数字导航指示器。 | ||
| 5879 | - | ||
| 5880 | -**起始版本:** 19 | ||
| 5881 | - | ||
| 5882 | -**返回:** | ||
| 5883 | - | ||
| 5884 | -| 类型 | 说明 | | ||
| 5885 | -|----------------------------------| -- | | ||
| 5886 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md) * | 数字导航指示器对象指针。 | | ||
| 5887 | - | ||
| 5888 | -### OH_ArkUI_SwiperDigitIndicator_Destroy() | ||
| 5889 | - | ||
| 5890 | -```c | ||
| 5891 | -void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator* indicator) | ||
| 5892 | -``` | ||
| 5893 | - | ||
| 5894 | -**描述:** | ||
| 5895 | - | ||
| 5896 | - | ||
| 5897 | -销毁Swiper组件的数字导航指示器指针。 | ||
| 5898 | - | ||
| 5899 | -**起始版本:** 19 | ||
| 5900 | - | ||
| 5901 | - | ||
| 5902 | -**参数:** | ||
| 5903 | - | ||
| 5904 | -| 参数项 | 描述 | | ||
| 5905 | -| -- | -- | | ||
| 5906 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 5907 | - | ||
| 5908 | -### OH_ArkUI_SwiperDigitIndicator_SetStartPosition() | ||
| 5909 | - | ||
| 5910 | -```c | ||
| 5911 | -void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 5912 | -``` | ||
| 5913 | - | ||
| 5914 | -**描述:** | ||
| 5915 | - | ||
| 5916 | - | ||
| 5917 | -设置数字导航指示器距离Swiper组件左边的距离。 | ||
| 5918 | - | ||
| 5919 | -**起始版本:** 19 | ||
| 5920 | - | ||
| 5921 | - | ||
| 5922 | -**参数:** | ||
| 5923 | - | ||
| 5924 | -| 参数项 | 描述 | | ||
| 5925 | -| -- | -- | | ||
| 5926 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 5927 | -| float value | 数字导航指示器距离Swiper组件左边的距离,在从左至右显示的语言模式下,设置距离Swiper组件左边的距离;在从右至左显示的语言模式下,设置距离Swiper组件右边的距离。<br/>默认值:0<br/>单位:vp | | ||
| 5928 | - | ||
| 5929 | -### OH_ArkUI_SwiperDigitIndicator_GetStartPosition() | ||
| 5930 | - | ||
| 5931 | -```c | ||
| 5932 | -float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 5933 | -``` | ||
| 5934 | - | ||
| 5935 | -**描述:** | ||
| 5936 | - | ||
| 5937 | - | ||
| 5938 | -获取数字导航指示器距离Swiper组件左边的距离。 | ||
| 5939 | - | ||
| 5940 | -**起始版本:** 19 | ||
| 5941 | - | ||
| 5942 | - | ||
| 5943 | -**参数:** | ||
| 5944 | - | ||
| 5945 | -| 参数项 | 描述 | | ||
| 5946 | -| -- | -- | | ||
| 5947 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 5948 | - | ||
| 5949 | -**返回:** | ||
| 5950 | - | ||
| 5951 | -| 类型 | 说明 | | ||
| 5952 | -| -- | -- | | ||
| 5953 | -| float | 数字导航指示器距离Swiper组件左边的距离,在从左至右显示的语言模式下,返回距离Swiper组件左边的距离;在从右至左显示的语言模式下,返回距离Swiper组件右边的距离。<br/>单位:vp | | ||
| 5954 | - | ||
| 5955 | -### OH_ArkUI_SwiperDigitIndicator_SetTopPosition() | ||
| 5956 | - | ||
| 5957 | -```c | ||
| 5958 | -void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 5959 | -``` | ||
| 5960 | - | ||
| 5961 | -**描述:** | ||
| 5962 | - | ||
| 5963 | - | ||
| 5964 | -设置数字导航指示器距离Swiper组件顶部的距离。 | ||
| 5965 | - | ||
| 5966 | -**起始版本:** 19 | ||
| 5967 | - | ||
| 5968 | - | ||
| 5969 | -**参数:** | ||
| 5970 | - | ||
| 5971 | -| 参数项 | 描述 | | ||
| 5972 | -| -- | -- | | ||
| 5973 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 5974 | -| float value | 数字导航指示器距离Swiper组件顶部的距离。默认值:0,单位:vp。 | | ||
| 5975 | - | ||
| 5976 | -### OH_ArkUI_SwiperDigitIndicator_GetTopPosition() | ||
| 5977 | - | ||
| 5978 | -```c | ||
| 5979 | -float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 5980 | -``` | ||
| 5981 | - | ||
| 5982 | -**描述:** | ||
| 5983 | - | ||
| 5984 | - | ||
| 5985 | -获取数字导航指示器距离Swiper组件顶部的距离。 | ||
| 5986 | - | ||
| 5987 | -**起始版本:** 19 | ||
| 5988 | - | ||
| 5989 | - | ||
| 5990 | -**参数:** | ||
| 5991 | - | ||
| 5992 | -| 参数项 | 描述 | | ||
| 5993 | -| -- | -- | | ||
| 5994 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 5995 | - | ||
| 5996 | -**返回:** | ||
| 5997 | - | ||
| 5998 | -| 类型 | 说明 | | ||
| 5999 | -| -- | -- | | ||
| 6000 | -| float | 数字导航指示器距离Swiper组件顶部的距离。单位:vp。 | | ||
| 6001 | - | ||
| 6002 | -### OH_ArkUI_SwiperDigitIndicator_SetEndPosition() | ||
| 6003 | - | ||
| 6004 | -```c | ||
| 6005 | -void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 6006 | -``` | ||
| 6007 | - | ||
| 6008 | -**描述:** | ||
| 6009 | - | ||
| 6010 | - | ||
| 6011 | -设置数字导航指示器距离Swiper组件右边的距离。 | ||
| 6012 | - | ||
| 6013 | -**起始版本:** 19 | ||
| 6014 | - | ||
| 6015 | - | ||
| 6016 | -**参数:** | ||
| 6017 | - | ||
| 6018 | -| 参数项 | 描述 | | ||
| 6019 | -| -- | -- | | ||
| 6020 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6021 | -| float value | 数字导航指示器距离Swiper组件右边的距离。在从左至右显示的语言模式下,设置距离Swiper组件右边的距离;在从右至左显示的语言模式下,设置距离Swiper组件左边的距离。<br/>默认值:0<br/>单位:vp | | ||
| 6022 | - | ||
| 6023 | -### OH_ArkUI_SwiperDigitIndicator_GetEndPosition() | ||
| 6024 | - | ||
| 6025 | -```c | ||
| 6026 | -float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6027 | -``` | ||
| 6028 | - | ||
| 6029 | -**描述:** | ||
| 6030 | - | ||
| 6031 | - | ||
| 6032 | -获取数字导航指示器距离Swiper组件右边的距离。 | ||
| 6033 | - | ||
| 6034 | -**起始版本:** 19 | ||
| 6035 | - | ||
| 6036 | - | ||
| 6037 | -**参数:** | ||
| 6038 | - | ||
| 6039 | -| 参数项 | 描述 | | ||
| 6040 | -| -- | -- | | ||
| 6041 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6042 | - | ||
| 6043 | -**返回:** | ||
| 6044 | - | ||
| 6045 | -| 类型 | 说明 | | ||
| 6046 | -| -- | -- | | ||
| 6047 | -| float | 数字导航指示器距离Swiper组件右边的距离。在从左至右显示的语言模式下,返回距离Swiper组件右边的距离;在从右至左显示的语言模式下,返回距离Swiper组件左边的距离。<br/>单位:vp | | ||
| 6048 | - | ||
| 6049 | -### OH_ArkUI_SwiperDigitIndicator_SetBottomPosition() | ||
| 6050 | - | ||
| 6051 | -```c | ||
| 6052 | -void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 6053 | -``` | ||
| 6054 | - | ||
| 6055 | -**描述:** | ||
| 6056 | - | ||
| 6057 | - | ||
| 6058 | -设置数字导航指示器距离Swiper组件底部的距离。 | ||
| 6059 | - | ||
| 6060 | -**起始版本:** 19 | ||
| 6061 | - | ||
| 6062 | - | ||
| 6063 | -**参数:** | ||
| 6064 | - | ||
| 6065 | -| 参数项 | 描述 | | ||
| 6066 | -| -- | -- | | ||
| 6067 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6068 | -| float value | 数字导航指示器距离Swiper组件底部的距离。默认值:0,单位:vp。 | | ||
| 6069 | - | ||
| 6070 | -### OH_ArkUI_SwiperDigitIndicator_GetBottomPosition() | ||
| 6071 | - | ||
| 6072 | -```c | ||
| 6073 | -float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6074 | -``` | ||
| 6075 | - | ||
| 6076 | -**描述:** | ||
| 6077 | - | ||
| 6078 | - | ||
| 6079 | -获取数字导航指示器距离Swiper组件底部的距离。 | ||
| 6080 | - | ||
| 6081 | -**起始版本:** 19 | ||
| 6082 | - | ||
| 6083 | - | ||
| 6084 | -**参数:** | ||
| 6085 | - | ||
| 6086 | -| 参数项 | 描述 | | ||
| 6087 | -| -- | -- | | ||
| 6088 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6089 | - | ||
| 6090 | -**返回:** | ||
| 6091 | - | ||
| 6092 | -| 类型 | 说明 | | ||
| 6093 | -| -- | -- | | ||
| 6094 | -| float | 数字导航指示器距离Swiper组件底部的距离。单位:vp。 | | ||
| 6095 | - | ||
| 6096 | -### OH_ArkUI_SwiperDigitIndicator_SetFontColor() | ||
| 6097 | - | ||
| 6098 | -```c | ||
| 6099 | -void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t color) | ||
| 6100 | -``` | ||
| 6101 | - | ||
| 6102 | -**描述:** | ||
| 6103 | - | ||
| 6104 | - | ||
| 6105 | -设置Swiper组件数字导航指示器字体颜色。 | ||
| 6106 | - | ||
| 6107 | -**起始版本:** 19 | ||
| 6108 | - | ||
| 6109 | - | ||
| 6110 | -**参数:** | ||
| 6111 | - | ||
| 6112 | -| 参数项 | 描述 | | ||
| 6113 | -| -- | -- | | ||
| 6114 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6115 | -| uint32_t color | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。默认值:0xFF182431。 | | ||
| 6116 | - | ||
| 6117 | -### OH_ArkUI_SwiperDigitIndicator_GetFontColor() | ||
| 6118 | - | ||
| 6119 | -```c | ||
| 6120 | -uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6121 | -``` | ||
| 6122 | - | ||
| 6123 | -**描述:** | ||
| 6124 | - | ||
| 6125 | - | ||
| 6126 | -获取Swiper组件数字导航指示器字体颜色。 | ||
| 6127 | - | ||
| 6128 | -**起始版本:** 19 | ||
| 6129 | - | ||
| 6130 | - | ||
| 6131 | -**参数:** | ||
| 6132 | - | ||
| 6133 | -| 参数项 | 描述 | | ||
| 6134 | -| -- | -- | | ||
| 6135 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6136 | - | ||
| 6137 | -**返回:** | ||
| 6138 | - | ||
| 6139 | -| 类型 | 说明 | | ||
| 6140 | -| -- | -- | | ||
| 6141 | -| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 6142 | - | ||
| 6143 | -### OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor() | ||
| 6144 | - | ||
| 6145 | -```c | ||
| 6146 | -void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t selectedColor) | ||
| 6147 | -``` | ||
| 6148 | - | ||
| 6149 | -**描述:** | ||
| 6150 | - | ||
| 6151 | - | ||
| 6152 | -设置被选中Swiper组件数字导航指示器字体颜色。 | ||
| 6153 | - | ||
| 6154 | -**起始版本:** 19 | ||
| 6155 | - | ||
| 6156 | - | ||
| 6157 | -**参数:** | ||
| 6158 | - | ||
| 6159 | -| 参数项 | 描述 | | ||
| 6160 | -| -- | -- | | ||
| 6161 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6162 | -| uint32_t selectedColor | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。默认值:0xFF182431。 | | ||
| 6163 | - | ||
| 6164 | -### OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor() | ||
| 6165 | - | ||
| 6166 | -```c | ||
| 6167 | -uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6168 | -``` | ||
| 6169 | - | ||
| 6170 | -**描述:** | ||
| 6171 | - | ||
| 6172 | - | ||
| 6173 | -获取被选中Swiper组件数字导航指示器字体颜色。 | ||
| 6174 | - | ||
| 6175 | -**起始版本:** 19 | ||
| 6176 | - | ||
| 6177 | - | ||
| 6178 | -**参数:** | ||
| 6179 | - | ||
| 6180 | -| 参数项 | 描述 | | ||
| 6181 | -| -- | -- | | ||
| 6182 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6183 | - | ||
| 6184 | -**返回:** | ||
| 6185 | - | ||
| 6186 | -| 类型 | 说明 | | ||
| 6187 | -| -- | -- | | ||
| 6188 | -| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 6189 | - | ||
| 6190 | -### OH_ArkUI_SwiperDigitIndicator_SetFontSize() | ||
| 6191 | - | ||
| 6192 | -```c | ||
| 6193 | -void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indicator, float size) | ||
| 6194 | -``` | ||
| 6195 | - | ||
| 6196 | -**描述:** | ||
| 6197 | - | ||
| 6198 | - | ||
| 6199 | -设置Swiper组件数字导航指示器字体大小。 | ||
| 6200 | - | ||
| 6201 | -**起始版本:** 19 | ||
| 6202 | - | ||
| 6203 | - | ||
| 6204 | -**参数:** | ||
| 6205 | - | ||
| 6206 | -| 参数项 | 描述 | | ||
| 6207 | -| -- | -- | | ||
| 6208 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6209 | -| float size | 字体大小数值,单位为fp。<br/>默认值:14 | | ||
| 6210 | - | ||
| 6211 | -### OH_ArkUI_SwiperDigitIndicator_GetFontSize() | ||
| 6212 | - | ||
| 6213 | -```c | ||
| 6214 | -float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6215 | -``` | ||
| 6216 | - | ||
| 6217 | -**描述:** | ||
| 6218 | - | ||
| 6219 | - | ||
| 6220 | -获取Swiper组件数字导航指示器字体大小。 | ||
| 6221 | - | ||
| 6222 | -**起始版本:** 19 | ||
| 6223 | - | ||
| 6224 | - | ||
| 6225 | -**参数:** | ||
| 6226 | - | ||
| 6227 | -| 参数项 | 描述 | | ||
| 6228 | -| -- | -- | | ||
| 6229 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6230 | - | ||
| 6231 | -**返回:** | ||
| 6232 | - | ||
| 6233 | -| 类型 | 说明 | | ||
| 6234 | -| -- | -- | | ||
| 6235 | -| float | 字体大小数值,单位为fp。 | | ||
| 6236 | - | ||
| 6237 | -### OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize() | ||
| 6238 | - | ||
| 6239 | -```c | ||
| 6240 | -void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator, float size) | ||
| 6241 | -``` | ||
| 6242 | - | ||
| 6243 | -**描述:** | ||
| 6244 | - | ||
| 6245 | - | ||
| 6246 | -设置被选中Swiper组件数字导航指示器字体大小。 | ||
| 6247 | - | ||
| 6248 | -**起始版本:** 19 | ||
| 6249 | - | ||
| 6250 | - | ||
| 6251 | -**参数:** | ||
| 6252 | - | ||
| 6253 | -| 参数项 | 描述 | | ||
| 6254 | -| -- | -- | | ||
| 6255 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6256 | -| float size | 字体大小数值,单位为fp。<br/>默认值:14 | | ||
| 6257 | - | ||
| 6258 | -### OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize() | ||
| 6259 | - | ||
| 6260 | -```c | ||
| 6261 | -float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6262 | -``` | ||
| 6263 | - | ||
| 6264 | -**描述:** | ||
| 6265 | - | ||
| 6266 | - | ||
| 6267 | -获取被选中Swiper组件数字导航指示器字体大小。 | ||
| 6268 | - | ||
| 6269 | -**起始版本:** 19 | ||
| 6270 | - | ||
| 6271 | - | ||
| 6272 | -**参数:** | ||
| 6273 | - | ||
| 6274 | -| 参数项 | 描述 | | ||
| 6275 | -| -- | -- | | ||
| 6276 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 6277 | - | ||
| 6278 | -**返回:** | ||
| 6279 | - | ||
| 6280 | -| 类型 | 说明 | | ||
| 6281 | -| -- | -- | | ||
| 6282 | -| float | 字体大小数值,单位为fp。 | | ||
| 6283 | - | ||
| 6284 | ### OH_ArkUI_SwiperDigitIndicator_SetFontWeight() | 4994 | ### OH_ArkUI_SwiperDigitIndicator_SetFontWeight() |
| 6285 | 4995 | ||
| 6286 | ```c | 4996 | ```c |
| @@ -6375,421 +5085,6 @@ ArkUI_FontWeight OH_ArkUI_SwiperDigitIndicator_GetSelectedFontWeight(ArkUI_Swipe | |||
| 6375 | | -- | -- | | 5085 | | -- | -- | |
| 6376 | | [ArkUI_FontWeight](capi-native-type-h.md#arkui_fontweight) | 字体粗细样式[ArkUI_FontWeight](capi-native-type-h.md#arkui_fontweight)。 | | 5086 | | [ArkUI_FontWeight](capi-native-type-h.md#arkui_fontweight) | 字体粗细样式[ArkUI_FontWeight](capi-native-type-h.md#arkui_fontweight)。 | |
| 6377 | 5087 | ||
| 6378 | -### OH_ArkUI_SwiperArrowStyle_Create() | ||
| 6379 | - | ||
| 6380 | -```c | ||
| 6381 | -ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create() | ||
| 6382 | -``` | ||
| 6383 | - | ||
| 6384 | -**描述:** | ||
| 6385 | - | ||
| 6386 | - | ||
| 6387 | -创建Swiper组件的导航箭头。 | ||
| 6388 | - | ||
| 6389 | -**起始版本:** 19 | ||
| 6390 | - | ||
| 6391 | -**返回:** | ||
| 6392 | - | ||
| 6393 | -| 类型 | 说明 | | ||
| 6394 | -|------------------------------| -- | | ||
| 6395 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md) * | 导航箭头对象指针。 | | ||
| 6396 | - | ||
| 6397 | -### OH_ArkUI_SwiperArrowStyle_Destroy() | ||
| 6398 | - | ||
| 6399 | -```c | ||
| 6400 | -void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6401 | -``` | ||
| 6402 | - | ||
| 6403 | -**描述:** | ||
| 6404 | - | ||
| 6405 | - | ||
| 6406 | -销毁Swiper组件的导航箭头指针。 | ||
| 6407 | - | ||
| 6408 | -**起始版本:** 19 | ||
| 6409 | - | ||
| 6410 | - | ||
| 6411 | -**参数:** | ||
| 6412 | - | ||
| 6413 | -| 参数项 | 描述 | | ||
| 6414 | -| -- | -- | | ||
| 6415 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6416 | - | ||
| 6417 | -### OH_ArkUI_SwiperArrowStyle_SetShowBackground() | ||
| 6418 | - | ||
| 6419 | -```c | ||
| 6420 | -void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showBackground) | ||
| 6421 | -``` | ||
| 6422 | - | ||
| 6423 | -**描述:** | ||
| 6424 | - | ||
| 6425 | - | ||
| 6426 | -设置Swiper组件导航箭头底板是否显示。 | ||
| 6427 | - | ||
| 6428 | -**起始版本:** 19 | ||
| 6429 | - | ||
| 6430 | - | ||
| 6431 | -**参数:** | ||
| 6432 | - | ||
| 6433 | -| 参数项 | 描述 | | ||
| 6434 | -| -- | -- | | ||
| 6435 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6436 | -| int32_t showBackground | 导航箭头底板是否显示,0:不显示,1:显示,默认值:0。 | | ||
| 6437 | - | ||
| 6438 | -### OH_ArkUI_SwiperArrowStyle_GetShowBackground() | ||
| 6439 | - | ||
| 6440 | -```c | ||
| 6441 | -int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6442 | -``` | ||
| 6443 | - | ||
| 6444 | -**描述:** | ||
| 6445 | - | ||
| 6446 | - | ||
| 6447 | -获取Swiper组件导航箭头底板是否显示。 | ||
| 6448 | - | ||
| 6449 | -**起始版本:** 19 | ||
| 6450 | - | ||
| 6451 | - | ||
| 6452 | -**参数:** | ||
| 6453 | - | ||
| 6454 | -| 参数项 | 描述 | | ||
| 6455 | -| -- | -- | | ||
| 6456 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6457 | - | ||
| 6458 | -**返回:** | ||
| 6459 | - | ||
| 6460 | -| 类型 | 说明 | | ||
| 6461 | -| -- | -- | | ||
| 6462 | -| int32_t | 导航箭头底板是否显示,0:不显示,1:显示。 | | ||
| 6463 | - | ||
| 6464 | -### OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle() | ||
| 6465 | - | ||
| 6466 | -```c | ||
| 6467 | -void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showSidebarMiddle) | ||
| 6468 | -``` | ||
| 6469 | - | ||
| 6470 | -**描述:** | ||
| 6471 | - | ||
| 6472 | - | ||
| 6473 | -设置Swiper组件导航箭头显示位置。 | ||
| 6474 | - | ||
| 6475 | -**起始版本:** 19 | ||
| 6476 | - | ||
| 6477 | - | ||
| 6478 | -**参数:** | ||
| 6479 | - | ||
| 6480 | -| 参数项 | 描述 | | ||
| 6481 | -| -- | -- | | ||
| 6482 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6483 | -| int32_t showSidebarMiddle | 导航箭头显示位置,0:显示在导航指示器两侧,1:显示在Swiper组件两侧,默认值:0。 | | ||
| 6484 | - | ||
| 6485 | -### OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle() | ||
| 6486 | - | ||
| 6487 | -```c | ||
| 6488 | -int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6489 | -``` | ||
| 6490 | - | ||
| 6491 | -**描述:** | ||
| 6492 | - | ||
| 6493 | - | ||
| 6494 | -获取Swiper组件导航箭头显示位置。 | ||
| 6495 | - | ||
| 6496 | -**起始版本:** 19 | ||
| 6497 | - | ||
| 6498 | - | ||
| 6499 | -**参数:** | ||
| 6500 | - | ||
| 6501 | -| 参数项 | 描述 | | ||
| 6502 | -| -- | -- | | ||
| 6503 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6504 | - | ||
| 6505 | -**返回:** | ||
| 6506 | - | ||
| 6507 | -| 类型 | 说明 | | ||
| 6508 | -| -- | -- | | ||
| 6509 | -| int32_t | 导航箭头显示位置,0:显示在导航指示器两侧,1:显示在Swiper组件两侧。 | | ||
| 6510 | - | ||
| 6511 | -### OH_ArkUI_SwiperArrowStyle_SetBackgroundSize() | ||
| 6512 | - | ||
| 6513 | -```c | ||
| 6514 | -void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle, float backgroundSize) | ||
| 6515 | -``` | ||
| 6516 | - | ||
| 6517 | -**描述:** | ||
| 6518 | - | ||
| 6519 | - | ||
| 6520 | -设置Swiper组件导航箭头底板大小。 | ||
| 6521 | - | ||
| 6522 | -**起始版本:** 19 | ||
| 6523 | - | ||
| 6524 | - | ||
| 6525 | -**参数:** | ||
| 6526 | - | ||
| 6527 | -| 参数项 | 描述 | | ||
| 6528 | -| -- | -- | | ||
| 6529 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6530 | -| float backgroundSize | 导航箭头底板大小,单位:vp。默认值:显示在导航指示器两侧24vp,显示在Swiper两侧32vp。 | | ||
| 6531 | - | ||
| 6532 | -### OH_ArkUI_SwiperArrowStyle_GetBackgroundSize() | ||
| 6533 | - | ||
| 6534 | -```c | ||
| 6535 | -float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6536 | -``` | ||
| 6537 | - | ||
| 6538 | -**描述:** | ||
| 6539 | - | ||
| 6540 | - | ||
| 6541 | -获取Swiper组件导航箭头底板大小。 | ||
| 6542 | - | ||
| 6543 | -**起始版本:** 19 | ||
| 6544 | - | ||
| 6545 | - | ||
| 6546 | -**参数:** | ||
| 6547 | - | ||
| 6548 | -| 参数项 | 描述 | | ||
| 6549 | -| -- | -- | | ||
| 6550 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6551 | - | ||
| 6552 | -**返回:** | ||
| 6553 | - | ||
| 6554 | -| 类型 | 说明 | | ||
| 6555 | -| -- | -- | | ||
| 6556 | -| float | 导航箭头底板大小,单位:vp。 | | ||
| 6557 | - | ||
| 6558 | -### OH_ArkUI_SwiperArrowStyle_SetBackgroundColor() | ||
| 6559 | - | ||
| 6560 | -```c | ||
| 6561 | -void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t backgroundColor) | ||
| 6562 | -``` | ||
| 6563 | - | ||
| 6564 | -**描述:** | ||
| 6565 | - | ||
| 6566 | - | ||
| 6567 | -设置Swiper组件导航箭头底板颜色。 | ||
| 6568 | - | ||
| 6569 | -**起始版本:** 19 | ||
| 6570 | - | ||
| 6571 | - | ||
| 6572 | -**参数:** | ||
| 6573 | - | ||
| 6574 | -| 参数项 | 描述 | | ||
| 6575 | -| -- | -- | | ||
| 6576 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6577 | -| uint32_t backgroundColor | 导航箭头底板颜色,0xargb格式,形如 0xFFFF0000 表示红色。默认值:显示在导航指示器两侧为0x00000000,显示在Swiper两侧为0x19182431。 | | ||
| 6578 | - | ||
| 6579 | -### OH_ArkUI_SwiperArrowStyle_GetBackgroundColor() | ||
| 6580 | - | ||
| 6581 | -```c | ||
| 6582 | -uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6583 | -``` | ||
| 6584 | - | ||
| 6585 | -**描述:** | ||
| 6586 | - | ||
| 6587 | - | ||
| 6588 | -获取Swiper组件导航箭头底板颜色。 | ||
| 6589 | - | ||
| 6590 | -**起始版本:** 19 | ||
| 6591 | - | ||
| 6592 | - | ||
| 6593 | -**参数:** | ||
| 6594 | - | ||
| 6595 | -| 参数项 | 描述 | | ||
| 6596 | -| -- | -- | | ||
| 6597 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6598 | - | ||
| 6599 | -**返回:** | ||
| 6600 | - | ||
| 6601 | -| 类型 | 说明 | | ||
| 6602 | -| -- | -- | | ||
| 6603 | -| uint32_t | 导航箭头底板颜色,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 6604 | - | ||
| 6605 | -### OH_ArkUI_SwiperArrowStyle_SetArrowSize() | ||
| 6606 | - | ||
| 6607 | -```c | ||
| 6608 | -void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle, float arrowSize) | ||
| 6609 | -``` | ||
| 6610 | - | ||
| 6611 | -**描述:** | ||
| 6612 | - | ||
| 6613 | - | ||
| 6614 | -设置Swiper组件导航箭头大小。 | ||
| 6615 | - | ||
| 6616 | -**起始版本:** 19 | ||
| 6617 | - | ||
| 6618 | - | ||
| 6619 | -**参数:** | ||
| 6620 | - | ||
| 6621 | -| 参数项 | 描述 | | ||
| 6622 | -| -- | -- | | ||
| 6623 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6624 | -| float arrowSize | 导航箭头大小,单位:vp。<br/>默认值:显示在导航指示器两侧18vp,显示在Swiper两侧24vp。显示导航箭头底板时,arrowSize固定为[backgroundSize](#oh_arkui_swiperarrowstyle_setbackgroundsize)的3/4。 | | ||
| 6625 | - | ||
| 6626 | -### OH_ArkUI_SwiperArrowStyle_GetArrowSize() | ||
| 6627 | - | ||
| 6628 | -```c | ||
| 6629 | -float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6630 | -``` | ||
| 6631 | - | ||
| 6632 | -**描述:** | ||
| 6633 | - | ||
| 6634 | - | ||
| 6635 | -获取Swiper组件导航箭头大小。 | ||
| 6636 | - | ||
| 6637 | -**起始版本:** 19 | ||
| 6638 | - | ||
| 6639 | - | ||
| 6640 | -**参数:** | ||
| 6641 | - | ||
| 6642 | -| 参数项 | 描述 | | ||
| 6643 | -| -- | -- | | ||
| 6644 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6645 | - | ||
| 6646 | -**返回:** | ||
| 6647 | - | ||
| 6648 | -| 类型 | 说明 | | ||
| 6649 | -| -- | -- | | ||
| 6650 | -| float | 导航箭头大小,单位:vp。 | | ||
| 6651 | - | ||
| 6652 | -### OH_ArkUI_SwiperArrowStyle_SetArrowColor() | ||
| 6653 | - | ||
| 6654 | -```c | ||
| 6655 | -void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t arrowColor) | ||
| 6656 | -``` | ||
| 6657 | - | ||
| 6658 | -**描述:** | ||
| 6659 | - | ||
| 6660 | - | ||
| 6661 | -设置Swiper组件导航箭头颜色。 | ||
| 6662 | - | ||
| 6663 | -**起始版本:** 19 | ||
| 6664 | - | ||
| 6665 | - | ||
| 6666 | -**参数:** | ||
| 6667 | - | ||
| 6668 | -| 参数项 | 描述 | | ||
| 6669 | -| -- | -- | | ||
| 6670 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6671 | -| uint32_t arrowColor | 导航箭头颜色,0xargb格式,形如0xFFFF0000表示红色。<br/>默认值:'#182431',深蓝色。 | | ||
| 6672 | - | ||
| 6673 | -### OH_ArkUI_SwiperArrowStyle_GetArrowColor() | ||
| 6674 | - | ||
| 6675 | -```c | ||
| 6676 | -uint32_t OH_ArkUI_SwiperArrowStyle_GetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 6677 | -``` | ||
| 6678 | - | ||
| 6679 | -**描述:** | ||
| 6680 | - | ||
| 6681 | - | ||
| 6682 | -获取Swiper组件导航箭头颜色。 | ||
| 6683 | - | ||
| 6684 | -**起始版本:** 19 | ||
| 6685 | - | ||
| 6686 | - | ||
| 6687 | -**参数:** | ||
| 6688 | - | ||
| 6689 | -| 参数项 | 描述 | | ||
| 6690 | -| -- | -- | | ||
| 6691 | -| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 6692 | - | ||
| 6693 | -**返回:** | ||
| 6694 | - | ||
| 6695 | -| 类型 | 说明 | | ||
| 6696 | -| -- | -- | | ||
| 6697 | -| uint32_t | 导航箭头颜色,0xargb格式,形如 0xFFFF0000 表示红色。 | | ||
| 6698 | - | ||
| 6699 | -### OH_ArkUI_SwiperIndicator_SetSpace() | ||
| 6700 | - | ||
| 6701 | -```c | ||
| 6702 | -void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space) | ||
| 6703 | -``` | ||
| 6704 | - | ||
| 6705 | -**描述:** | ||
| 6706 | - | ||
| 6707 | - | ||
| 6708 | -设置导航点间距。 | ||
| 6709 | - | ||
| 6710 | -**起始版本:** 19 | ||
| 6711 | - | ||
| 6712 | - | ||
| 6713 | -**参数:** | ||
| 6714 | - | ||
| 6715 | -| 参数项 | 描述 | | ||
| 6716 | -| -- | -- | | ||
| 6717 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 6718 | -| float space | 导航点间距。默认值:8,单位:vp。 | | ||
| 6719 | - | ||
| 6720 | -### OH_ArkUI_SwiperIndicator_GetSpace() | ||
| 6721 | - | ||
| 6722 | -```c | ||
| 6723 | -float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator) | ||
| 6724 | -``` | ||
| 6725 | - | ||
| 6726 | -**描述:** | ||
| 6727 | - | ||
| 6728 | - | ||
| 6729 | -获取导航点间距。 | ||
| 6730 | - | ||
| 6731 | -**起始版本:** 19 | ||
| 6732 | - | ||
| 6733 | - | ||
| 6734 | -**参数:** | ||
| 6735 | - | ||
| 6736 | -| 参数项 | 描述 | | ||
| 6737 | -| -- | -- | | ||
| 6738 | -| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 6739 | - | ||
| 6740 | -**返回:** | ||
| 6741 | - | ||
| 6742 | -| 类型 | 说明 | | ||
| 6743 | -| -- | -- | | ||
| 6744 | -| float | 导航点间距。单位:vp。 | | ||
| 6745 | - | ||
| 6746 | -### OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom() | ||
| 6747 | - | ||
| 6748 | -```c | ||
| 6749 | -void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize) | ||
| 6750 | -``` | ||
| 6751 | - | ||
| 6752 | -**描述:** | ||
| 6753 | - | ||
| 6754 | - | ||
| 6755 | -设置OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 6756 | - | ||
| 6757 | -**起始版本:** 19 | ||
| 6758 | - | ||
| 6759 | - | ||
| 6760 | -**参数:** | ||
| 6761 | - | ||
| 6762 | -| 参数项 | 描述 | | ||
| 6763 | -| -- | -- | | ||
| 6764 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 6765 | -| int32_t ignoreSize | 是否忽略导航点大小。1表示忽略导航点大小,0表示不忽略,默认值0。 | | ||
| 6766 | - | ||
| 6767 | -### OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom() | ||
| 6768 | - | ||
| 6769 | -```c | ||
| 6770 | -int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator) | ||
| 6771 | -``` | ||
| 6772 | - | ||
| 6773 | -**描述:** | ||
| 6774 | - | ||
| 6775 | - | ||
| 6776 | -获取OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 6777 | - | ||
| 6778 | -**起始版本:** 19 | ||
| 6779 | - | ||
| 6780 | - | ||
| 6781 | -**参数:** | ||
| 6782 | - | ||
| 6783 | -| 参数项 | 描述 | | ||
| 6784 | -| -- | -- | | ||
| 6785 | -| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 6786 | - | ||
| 6787 | -**返回:** | ||
| 6788 | - | ||
| 6789 | -| 类型 | 说明 | | ||
| 6790 | -| -- | -- | | ||
| 6791 | -| int32_t | 返回1表示忽略导航点大小,返回0表示不忽略。 | | ||
| 6792 | - | ||
| 6793 | ### OH_ArkUI_ListItemSwipeActionItem_Create() | 5088 | ### OH_ArkUI_ListItemSwipeActionItem_Create() |
| 6794 | 5089 | ||
| 6795 | ```c | 5090 | ```c |
| @@ -0,0 +1,1573 @@ | |||
| 1 | +# swiper.h | ||
| 2 | +<!--Kit: ArkUI--> | ||
| 3 | +<!--Subsystem: ArkUI--> | ||
| 4 | +<!--Owner: @Hu_ZeQi--> | ||
| 5 | +<!--Designer: @Hu_ZeQi--> | ||
| 6 | +<!--Tester: @gouyuanyuan--> | ||
| 7 | +<!--Adviser: @Brilliantry_Rui--> | ||
| 8 | + | ||
| 9 | +## 概述 | ||
| 10 | + | ||
| 11 | +定义Swiper组件的枚举和接口。 | ||
| 12 | + | ||
| 13 | +**引用文件:** <arkui/swiper.h> | ||
| 14 | + | ||
| 15 | +**库:** libace_ndk.z.so | ||
| 16 | + | ||
| 17 | +**系统能力:** SystemCapability.ArkUI.ArkUI.Full | ||
| 18 | + | ||
| 19 | +**起始版本:** 12 | ||
| 20 | + | ||
| 21 | +**相关模块:** [ArkUI_NativeModule](capi-arkui-nativemodule.md) | ||
| 22 | + | ||
| 23 | +**相关示例:** <!--RP1-->[NDKSwiperSample](https://gitcode.com/openharmony/applications_app_samples/tree/master/code/DocsSample/ArkUISample/NDKSwiperSample)<!--RP1End--> | ||
| 24 | + | ||
| 25 | +## 汇总 | ||
| 26 | + | ||
| 27 | +### 结构体 | ||
| 28 | + | ||
| 29 | +| 名称 | typedef关键字 | 描述 | | ||
| 30 | +| -- | -- | -- | | ||
| 31 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md) | ArkUI_SwiperIndicator | 定义Swiper组件的导航指示器风格。 | | ||
| 32 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md) | ArkUI_SwiperDigitIndicator | 定义Swiper组件的数字导航指示器风格。 | | ||
| 33 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md) | ArkUI_SwiperArrowStyle | 定义Swiper组件的导航箭头风格。 | | ||
| 34 | + | ||
| 35 | +### 枚举 | ||
| 36 | + | ||
| 37 | +| 名称 | typedef关键字 | 描述 | | ||
| 38 | +| -- | -- | -- | | ||
| 39 | +| [ArkUI_SwiperArrow](#arkui_swiperarrow) | ArkUI_SwiperArrow | Swiper导航点箭头枚举值。 | | ||
| 40 | +| [ArkUI_SwiperNestedScrollMode](#arkui_swipernestedscrollmode) | ArkUI_SwiperNestedScrollMode | Swiper组件和父组件的嵌套滚动模式。 | | ||
| 41 | +| [ArkUI_PageFlipMode](#arkui_pageflipmode) | ArkUI_PageFlipMode | Swiper组件鼠标滚轮翻页模式。 | | ||
| 42 | +| [ArkUI_SwiperAnimationMode](#arkui_swiperanimationmode) | ArkUI_SwiperAnimationMode | Swiper组件跳转到目标index的动画模式。 | | ||
| 43 | +| [ArkUI_SwiperIndicatorType](#arkui_swiperindicatortype) | ArkUI_SwiperIndicatorType | 定义Swiper组件的导航指示器类型。 | | ||
| 44 | + | ||
| 45 | +### 函数 | ||
| 46 | + | ||
| 47 | +| 名称 | 描述 | | ||
| 48 | +| -- | -- | | ||
| 49 | +| [ArkUI_SwiperIndicator* OH_ArkUI_SwiperIndicator_Create(ArkUI_SwiperIndicatorType type)](#oh_arkui_swiperindicator_create) | 创建Swiper组件的导航指示器。 | | ||
| 50 | +| [void OH_ArkUI_SwiperIndicator_Dispose(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_dispose) | 销毁Swiper组件的导航指示器指针。 | | ||
| 51 | +| [void OH_ArkUI_SwiperIndicator_SetStartPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setstartposition) | 设置导航点距离Swiper组件左边的距离。 | | ||
| 52 | +| [float OH_ArkUI_SwiperIndicator_GetStartPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getstartposition) | 获取导航点距离Swiper组件左边的距离。 | | ||
| 53 | +| [void OH_ArkUI_SwiperIndicator_SetTopPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_settopposition) | 设置导航点距离Swiper组件顶部的距离。 | | ||
| 54 | +| [float OH_ArkUI_SwiperIndicator_GetTopPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_gettopposition) | 获取导航点距离Swiper组件顶部的距离。 | | ||
| 55 | +| [void OH_ArkUI_SwiperIndicator_SetEndPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setendposition) | 设置导航点距离Swiper组件右边的距离。 | | ||
| 56 | +| [float OH_ArkUI_SwiperIndicator_GetEndPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getendposition) | 获取导航点距离Swiper组件右边的距离。 | | ||
| 57 | +| [void OH_ArkUI_SwiperIndicator_SetBottomPosition(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setbottomposition) | 设置导航点距离Swiper组件底部的距离。 | | ||
| 58 | +| [float OH_ArkUI_SwiperIndicator_GetBottomPosition(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getbottomposition) | 获取导航点距离Swiper组件底部的距离。 | | ||
| 59 | +| [void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize)](#oh_arkui_swiperindicator_setignoresizeofbottom) | 设置OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 60 | +| [int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getignoresizeofbottom) | 获取OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 61 | +| [void OH_ArkUI_SwiperIndicator_SetItemWidth(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setitemwidth) | 设置Swiper组件圆点导航指示器的宽。 | | ||
| 62 | +| [float OH_ArkUI_SwiperIndicator_GetItemWidth(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getitemwidth) | 获取Swiper组件圆点导航指示器的宽。 | | ||
| 63 | +| [void OH_ArkUI_SwiperIndicator_SetItemHeight(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setitemheight) | 设置Swiper组件圆点导航指示器的高。 | | ||
| 64 | +| [float OH_ArkUI_SwiperIndicator_GetItemHeight(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getitemheight) | 获取Swiper组件圆点导航指示器的高。 | | ||
| 65 | +| [void OH_ArkUI_SwiperIndicator_SetSelectedItemWidth(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setselecteditemwidth) | 设置被选中的Swiper组件圆点导航指示器的宽。 | | ||
| 66 | +| [float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselecteditemwidth) | 获取被选中Swiper组件圆点导航指示器的宽。 | | ||
| 67 | +| [void OH_ArkUI_SwiperIndicator_SetSelectedItemHeight(ArkUI_SwiperIndicator* indicator, float value)](#oh_arkui_swiperindicator_setselecteditemheight) | 设置被选中的Swiper组件圆点导航指示器的高。 | | ||
| 68 | +| [float OH_ArkUI_SwiperIndicator_GetSelectedItemHeight(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselecteditemheight) | 获取被选中Swiper组件圆点导航指示器的高。 | | ||
| 69 | +| [void OH_ArkUI_SwiperIndicator_SetMask(ArkUI_SwiperIndicator* indicator, int32_t mask)](#oh_arkui_swiperindicator_setmask) | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。 | | ||
| 70 | +| [int32_t OH_ArkUI_SwiperIndicator_GetMask(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getmask) | 获取是否显示Swiper组件圆点导航指示器的蒙版样式。 | | ||
| 71 | +| [void OH_ArkUI_SwiperIndicator_SetColor(ArkUI_SwiperIndicator* indicator, uint32_t color)](#oh_arkui_swiperindicator_setcolor) | 设置Swiper组件圆点导航指示器的颜色。 | | ||
| 72 | +| [uint32_t OH_ArkUI_SwiperIndicator_GetColor(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getcolor) | 获取Swiper组件圆点导航指示器的颜色。 | | ||
| 73 | +| [void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator, uint32_t selectedColor)](#oh_arkui_swiperindicator_setselectedcolor) | 设置被选中Swiper组件圆点导航指示器的颜色。 | | ||
| 74 | +| [uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getselectedcolor) | 获取被选中Swiper组件圆点导航指示器的颜色。 | | ||
| 75 | +| [int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount)](#oh_arkui_swiperindicator_setmaxdisplaycount) | 设置圆点导航点指示器样式下,导航点显示个数的最大值。 | | ||
| 76 | +| [int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getmaxdisplaycount) | 获取圆点导航点指示器样式下,导航点显示个数的最大值。 | | ||
| 77 | +| [ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create()](#oh_arkui_swiperdigitindicator_create) | 创建Swiper组件的数字导航指示器。 | | ||
| 78 | +| [void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_destroy) | 销毁Swiper组件的数字导航指示器指针。 | | ||
| 79 | +| [void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setstartposition) | 设置数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件右边的距离。 | | ||
| 80 | +| [float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getstartposition) | 获取数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件右边的距离。 | | ||
| 81 | +| [void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_settopposition) | 设置数字导航指示器距离Swiper组件顶部的距离。 | | ||
| 82 | +| [float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_gettopposition) | 获取数字导航指示器距离Swiper组件顶部的距离。 | | ||
| 83 | +| [void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setendposition) | 设置数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件左边的距离。 | | ||
| 84 | +| [float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getendposition) | 获取数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件左边的距离。 | | ||
| 85 | +| [void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator* indicator, float value)](#oh_arkui_swiperdigitindicator_setbottomposition) | 设置数字导航指示器距离Swiper组件底部的距离。 | | ||
| 86 | +| [float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getbottomposition) | 获取数字导航指示器距离Swiper组件底部的距离。 | | ||
| 87 | +| [void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t color)](#oh_arkui_swiperdigitindicator_setfontcolor) | 设置Swiper组件数字导航指示器字体颜色。 | | ||
| 88 | +| [uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontcolor) | 获取Swiper组件数字导航指示器字体颜色。 | | ||
| 89 | +| [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t selectedColor)](#oh_arkui_swiperdigitindicator_setselectedfontcolor) | 设置被选中Swiper组件数字导航指示器字体颜色。 | | ||
| 90 | +| [uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontcolor) | 获取被选中Swiper组件数字导航指示器字体颜色。 | | ||
| 91 | +| [void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indicator, float size)](#oh_arkui_swiperdigitindicator_setfontsize) | 设置Swiper组件数字导航指示器字体大小。 | | ||
| 92 | +| [float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getfontsize) | 获取Swiper组件数字导航指示器字体大小。 | | ||
| 93 | +| [void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator, float size)](#oh_arkui_swiperdigitindicator_setselectedfontsize) | 设置被选中Swiper组件数字导航指示器字体大小。 | | ||
| 94 | +| [float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getselectedfontsize) | 获取被选中Swiper组件数字导航指示器字体大小。 | | ||
| 95 | +| [ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create()](#oh_arkui_swiperarrowstyle_create) | 创建Swiper组件的导航箭头。 | | ||
| 96 | +| [void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_destroy) | 销毁Swiper组件的导航箭头指针。 | | ||
| 97 | +| [void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showBackground)](#oh_arkui_swiperarrowstyle_setshowbackground) | 设置Swiper组件导航箭头底板是否显示。 | | ||
| 98 | +| [int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getshowbackground) | 获取Swiper组件导航箭头底板是否显示。 | | ||
| 99 | +| [void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showSidebarMiddle)](#oh_arkui_swiperarrowstyle_setshowsidebarmiddle) | 设置Swiper组件导航箭头显示位置。 | | ||
| 100 | +| [int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getshowsidebarmiddle) | 获取Swiper组件导航箭头显示位置。 | | ||
| 101 | +| [void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle, float backgroundSize)](#oh_arkui_swiperarrowstyle_setbackgroundsize) | 设置Swiper组件导航箭头底板大小。 | | ||
| 102 | +| [float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getbackgroundsize) | 获取Swiper组件导航箭头底板大小。 | | ||
| 103 | +| [void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t backgroundColor)](#oh_arkui_swiperarrowstyle_setbackgroundcolor) | 设置Swiper组件导航箭头底板颜色。 | | ||
| 104 | +| [uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getbackgroundcolor) | 获取Swiper组件导航箭头底板颜色。 | | ||
| 105 | +| [void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle, float arrowSize)](#oh_arkui_swiperarrowstyle_setarrowsize) | 设置Swiper组件导航箭头大小。 | | ||
| 106 | +| [float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getarrowsize) | 获取Swiper组件导航箭头大小。 | | ||
| 107 | +| [void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t arrowColor)](#oh_arkui_swiperarrowstyle_setarrowcolor) | 设置Swiper组件导航箭头颜色。 | | ||
| 108 | +| [uint32_t OH_ArkUI_SwiperArrowStyle_GetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle)](#oh_arkui_swiperarrowstyle_getarrowcolor) | 获取Swiper组件导航箭头颜色。 | | ||
| 109 | +| [void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space)](#oh_arkui_swiperindicator_setspace) | 设置导航点间距。 | | ||
| 110 | +| [float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator)](#oh_arkui_swiperindicator_getspace) | 获取导航点间距。 | | ||
| 111 | +| [void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize)](#oh_arkui_swiperdigitindicator_setignoresizeofbottom) | 设置OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 112 | +| [int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator)](#oh_arkui_swiperdigitindicator_getignoresizeofbottom) | 获取OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | | ||
| 113 | + | ||
| 114 | +## 枚举类型说明 | ||
| 115 | + | ||
| 116 | +### ArkUI_SwiperArrow | ||
| 117 | + | ||
| 118 | +```c | ||
| 119 | +enum ArkUI_SwiperArrow | ||
| 120 | +``` | ||
| 121 | + | ||
| 122 | +**描述** | ||
| 123 | + | ||
| 124 | +Swiper导航点箭头枚举值。 | ||
| 125 | + | ||
| 126 | +**起始版本:** 12 | ||
| 127 | + | ||
| 128 | +| 枚举项 | 描述 | | ||
| 129 | +| -- | -- | | ||
| 130 | +| ARKUI_SWIPER_ARROW_HIDE = 0 | 不显示swiper中导航点箭头。 | | ||
| 131 | +| ARKUI_SWIPER_ARROW_SHOW | 显示swiper中导航点箭头。 | | ||
| 132 | +| ARKUI_SWIPER_ARROW_SHOW_ON_HOVER | 在hover状态下显示swiper中导航点箭头。 | | ||
| 133 | + | ||
| 134 | +### ArkUI_SwiperNestedScrollMode | ||
| 135 | + | ||
| 136 | +```c | ||
| 137 | +enum ArkUI_SwiperNestedScrollMode | ||
| 138 | +``` | ||
| 139 | + | ||
| 140 | +**描述** | ||
| 141 | + | ||
| 142 | +Swiper组件和父组件的嵌套滚动模式。 | ||
| 143 | + | ||
| 144 | +**起始版本:** 12 | ||
| 145 | + | ||
| 146 | +| 枚举项 | 描述 | | ||
| 147 | +| -- | -- | | ||
| 148 | +| ARKUI_SWIPER_NESTED_SRCOLL_SELF_ONLY = 0 | Swiper只自身滚动,不与父组件联动。 | | ||
| 149 | +| ARKUI_SWIPER_NESTED_SRCOLL_SELF_FIRST | Swiper自身先滚动,自身滚动到边缘以后父组件滚动。父组件滚动到边缘以后,如果父组件有边缘效果,则父组件触发边缘效果,否则Swiper触发边缘效果。 | | ||
| 150 | + | ||
| 151 | +### ArkUI_PageFlipMode | ||
| 152 | + | ||
| 153 | +```c | ||
| 154 | +enum ArkUI_PageFlipMode | ||
| 155 | +``` | ||
| 156 | + | ||
| 157 | +**描述** | ||
| 158 | + | ||
| 159 | +Swiper组件鼠标滚轮翻页模式。 | ||
| 160 | + | ||
| 161 | +**起始版本:** 15 | ||
| 162 | + | ||
| 163 | +| 枚举项 | 描述 | | ||
| 164 | +| -- | -- | | ||
| 165 | +| ARKUI_PAGE_FLIP_MODE_CONTINUOUS = 0 | 鼠标滚轮连续滚动时翻多页,根据鼠标事件上报次数确定。 | | ||
| 166 | +| ARKUI_PAGE_FLIP_MODE_SINGLE | 一次翻页动画结束前不响应其他鼠标滚轮事件。 | | ||
| 167 | + | ||
| 168 | +### ArkUI_SwiperAnimationMode | ||
| 169 | + | ||
| 170 | +```c | ||
| 171 | +enum ArkUI_SwiperAnimationMode | ||
| 172 | +``` | ||
| 173 | + | ||
| 174 | +**描述** | ||
| 175 | + | ||
| 176 | +Swiper组件跳转到目标index的动画模式。 | ||
| 177 | + | ||
| 178 | +**起始版本:** 15 | ||
| 179 | + | ||
| 180 | +| 枚举项 | 描述 | | ||
| 181 | +| -- | -- | | ||
| 182 | +| ARKUI_SWIPER_NO_ANIMATION = 0 | 无动画跳转到目标index。 | | ||
| 183 | +| ARKUI_SWIPER_DEFAULT_ANIMATION = 1 | 做动画跳转到目标index。 | | ||
| 184 | +| ARKUI_SWIPER_FAST_ANIMATION = 2 | 先无动画跳转到目标附近再做动画跳转到目标index。 | | ||
| 185 | + | ||
| 186 | +### ArkUI_SwiperIndicatorType | ||
| 187 | + | ||
| 188 | +```c | ||
| 189 | +enum ArkUI_SwiperIndicatorType | ||
| 190 | +``` | ||
| 191 | + | ||
| 192 | +**描述** | ||
| 193 | + | ||
| 194 | +定义Swiper组件的导航指示器类型。 | ||
| 195 | + | ||
| 196 | +**起始版本:** 12 | ||
| 197 | + | ||
| 198 | +| 枚举项 | 描述 | | ||
| 199 | +| -- | -- | | ||
| 200 | +| ARKUI_SWIPER_INDICATOR_TYPE_DOT | 圆点指示器类型。 | | ||
| 201 | +| ARKUI_SWIPER_INDICATOR_TYPE_DIGIT | 数字指示器类型。 | | ||
| 202 | + | ||
| 203 | + | ||
| 204 | +## 函数说明 | ||
| 205 | + | ||
| 206 | +### OH_ArkUI_SwiperIndicator_Create() | ||
| 207 | + | ||
| 208 | +```c | ||
| 209 | +ArkUI_SwiperIndicator* OH_ArkUI_SwiperIndicator_Create(ArkUI_SwiperIndicatorType type) | ||
| 210 | +``` | ||
| 211 | + | ||
| 212 | +**描述** | ||
| 213 | + | ||
| 214 | +创建Swiper组件的导航指示器。 | ||
| 215 | + | ||
| 216 | +**起始版本:** 12 | ||
| 217 | + | ||
| 218 | +**参数:** | ||
| 219 | + | ||
| 220 | +| 参数项 | 描述 | | ||
| 221 | +| -- | -- | | ||
| 222 | +| [ArkUI_SwiperIndicatorType](capi-swiper-h.md#arkui_swiperindicatortype) type | 导航指示器的类型。 | | ||
| 223 | + | ||
| 224 | +**返回:** | ||
| 225 | + | ||
| 226 | +| 类型 | 说明 | | ||
| 227 | +| -- | -- | | ||
| 228 | +| [ArkUI_SwiperIndicator*](capi-arkui-nativemodule-arkui-swiperindicator.md) | 导航指示器对象指针。 | | ||
| 229 | + | ||
| 230 | +### OH_ArkUI_SwiperIndicator_Dispose() | ||
| 231 | + | ||
| 232 | +```c | ||
| 233 | +void OH_ArkUI_SwiperIndicator_Dispose(ArkUI_SwiperIndicator* indicator) | ||
| 234 | +``` | ||
| 235 | + | ||
| 236 | +**描述** | ||
| 237 | + | ||
| 238 | +销毁Swiper组件的导航指示器指针。 | ||
| 239 | + | ||
| 240 | +**起始版本:** 12 | ||
| 241 | + | ||
| 242 | +**参数:** | ||
| 243 | + | ||
| 244 | +| 参数项 | 描述 | | ||
| 245 | +| -- | -- | | ||
| 246 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 247 | + | ||
| 248 | +### OH_ArkUI_SwiperIndicator_SetStartPosition() | ||
| 249 | + | ||
| 250 | +```c | ||
| 251 | +void OH_ArkUI_SwiperIndicator_SetStartPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 252 | +``` | ||
| 253 | + | ||
| 254 | +**描述** | ||
| 255 | + | ||
| 256 | +设置导航点距离Swiper组件左边的距离。 | ||
| 257 | + | ||
| 258 | +**起始版本:** 12 | ||
| 259 | + | ||
| 260 | +**参数:** | ||
| 261 | + | ||
| 262 | +| 参数项 | 描述 | | ||
| 263 | +| -- | -- | | ||
| 264 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 265 | +| float value | 导航点距离Swiper组件左边的距离。默认值:0,单位:vp。 | | ||
| 266 | + | ||
| 267 | +### OH_ArkUI_SwiperIndicator_GetStartPosition() | ||
| 268 | + | ||
| 269 | +```c | ||
| 270 | +float OH_ArkUI_SwiperIndicator_GetStartPosition(ArkUI_SwiperIndicator* indicator) | ||
| 271 | +``` | ||
| 272 | + | ||
| 273 | +**描述** | ||
| 274 | + | ||
| 275 | +获取导航点距离Swiper组件左边的距离。 | ||
| 276 | + | ||
| 277 | +**起始版本:** 12 | ||
| 278 | + | ||
| 279 | +**参数:** | ||
| 280 | + | ||
| 281 | +| 参数项 | 描述 | | ||
| 282 | +| -- | -- | | ||
| 283 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 284 | + | ||
| 285 | +**返回:** | ||
| 286 | + | ||
| 287 | +| 类型 | 说明 | | ||
| 288 | +| -- | -- | | ||
| 289 | +| float | 导航点距离Swiper组件左边的距离。单位:vp。 | | ||
| 290 | + | ||
| 291 | +### OH_ArkUI_SwiperIndicator_SetTopPosition() | ||
| 292 | + | ||
| 293 | +```c | ||
| 294 | +void OH_ArkUI_SwiperIndicator_SetTopPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 295 | +``` | ||
| 296 | + | ||
| 297 | +**描述** | ||
| 298 | + | ||
| 299 | +设置导航点距离Swiper组件顶部的距离。 | ||
| 300 | + | ||
| 301 | +**起始版本:** 12 | ||
| 302 | + | ||
| 303 | +**参数:** | ||
| 304 | + | ||
| 305 | +| 参数项 | 描述 | | ||
| 306 | +| -- | -- | | ||
| 307 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 308 | +| float value | 导航点距离Swiper组件顶部的距离。默认值:0,单位:vp。 | | ||
| 309 | + | ||
| 310 | +### OH_ArkUI_SwiperIndicator_GetTopPosition() | ||
| 311 | + | ||
| 312 | +```c | ||
| 313 | +float OH_ArkUI_SwiperIndicator_GetTopPosition(ArkUI_SwiperIndicator* indicator) | ||
| 314 | +``` | ||
| 315 | + | ||
| 316 | +**描述** | ||
| 317 | + | ||
| 318 | +获取导航点距离Swiper组件顶部的距离。 | ||
| 319 | + | ||
| 320 | +**起始版本:** 12 | ||
| 321 | + | ||
| 322 | +**参数:** | ||
| 323 | + | ||
| 324 | +| 参数项 | 描述 | | ||
| 325 | +| -- | -- | | ||
| 326 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 327 | + | ||
| 328 | +**返回:** | ||
| 329 | + | ||
| 330 | +| 类型 | 说明 | | ||
| 331 | +| -- | -- | | ||
| 332 | +| float | 导航点距离Swiper组件顶部的距离。单位:vp。 | | ||
| 333 | + | ||
| 334 | +### OH_ArkUI_SwiperIndicator_SetEndPosition() | ||
| 335 | + | ||
| 336 | +```c | ||
| 337 | +void OH_ArkUI_SwiperIndicator_SetEndPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 338 | +``` | ||
| 339 | + | ||
| 340 | +**描述** | ||
| 341 | + | ||
| 342 | +设置导航点距离Swiper组件右边的距离。 | ||
| 343 | + | ||
| 344 | +**起始版本:** 12 | ||
| 345 | + | ||
| 346 | +**参数:** | ||
| 347 | + | ||
| 348 | +| 参数项 | 描述 | | ||
| 349 | +| -- | -- | | ||
| 350 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 351 | +| float value | 导航点距离Swiper组件右边的距离。默认值:0,单位:vp。 | | ||
| 352 | + | ||
| 353 | +### OH_ArkUI_SwiperIndicator_GetEndPosition() | ||
| 354 | + | ||
| 355 | +```c | ||
| 356 | +float OH_ArkUI_SwiperIndicator_GetEndPosition(ArkUI_SwiperIndicator* indicator) | ||
| 357 | +``` | ||
| 358 | + | ||
| 359 | +**描述** | ||
| 360 | + | ||
| 361 | +获取导航点距离Swiper组件右边的距离。 | ||
| 362 | + | ||
| 363 | +**起始版本:** 12 | ||
| 364 | + | ||
| 365 | +**参数:** | ||
| 366 | + | ||
| 367 | +| 参数项 | 描述 | | ||
| 368 | +| -- | -- | | ||
| 369 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 370 | + | ||
| 371 | +**返回:** | ||
| 372 | + | ||
| 373 | +| 类型 | 说明 | | ||
| 374 | +| -- | -- | | ||
| 375 | +| float | 导航点距离Swiper组件右边的距离。单位:vp。 | | ||
| 376 | + | ||
| 377 | +### OH_ArkUI_SwiperIndicator_SetBottomPosition() | ||
| 378 | + | ||
| 379 | +```c | ||
| 380 | +void OH_ArkUI_SwiperIndicator_SetBottomPosition(ArkUI_SwiperIndicator* indicator, float value) | ||
| 381 | +``` | ||
| 382 | + | ||
| 383 | +**描述** | ||
| 384 | + | ||
| 385 | +设置导航点距离Swiper组件底部的距离。 | ||
| 386 | + | ||
| 387 | +**起始版本:** 12 | ||
| 388 | + | ||
| 389 | +**参数:** | ||
| 390 | + | ||
| 391 | +| 参数项 | 描述 | | ||
| 392 | +| -- | -- | | ||
| 393 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 394 | +| float value | 导航点距离Swiper组件底部的距离。默认值:0,单位:vp。 | | ||
| 395 | + | ||
| 396 | +### OH_ArkUI_SwiperIndicator_GetBottomPosition() | ||
| 397 | + | ||
| 398 | +```c | ||
| 399 | +float OH_ArkUI_SwiperIndicator_GetBottomPosition(ArkUI_SwiperIndicator* indicator) | ||
| 400 | +``` | ||
| 401 | + | ||
| 402 | +**描述** | ||
| 403 | + | ||
| 404 | +获取导航点距离Swiper组件底部的距离。 | ||
| 405 | + | ||
| 406 | +**起始版本:** 12 | ||
| 407 | + | ||
| 408 | +**参数:** | ||
| 409 | + | ||
| 410 | +| 参数项 | 描述 | | ||
| 411 | +| -- | -- | | ||
| 412 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 413 | + | ||
| 414 | +**返回:** | ||
| 415 | + | ||
| 416 | +| 类型 | 说明 | | ||
| 417 | +| -- | -- | | ||
| 418 | +| float | 导航点距离Swiper组件底部的距离。单位:vp。 | | ||
| 419 | + | ||
| 420 | +### OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom() | ||
| 421 | + | ||
| 422 | +```c | ||
| 423 | +void OH_ArkUI_SwiperIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator, int32_t ignoreSize) | ||
| 424 | +``` | ||
| 425 | + | ||
| 426 | +**描述** | ||
| 427 | + | ||
| 428 | +设置OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 429 | + | ||
| 430 | +**起始版本:** 19 | ||
| 431 | + | ||
| 432 | +**参数:** | ||
| 433 | + | ||
| 434 | +| 参数项 | 描述 | | ||
| 435 | +| -- | -- | | ||
| 436 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 437 | +| int32_t ignoreSize | 是否忽略导航点大小。1表示忽略导航点大小,0表示不忽略,默认值0。 | | ||
| 438 | + | ||
| 439 | +### OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom() | ||
| 440 | + | ||
| 441 | +```c | ||
| 442 | +int32_t OH_ArkUI_SwiperIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperIndicator* indicator) | ||
| 443 | +``` | ||
| 444 | + | ||
| 445 | +**描述** | ||
| 446 | + | ||
| 447 | +获取OH_ArkUI_SwiperIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 448 | + | ||
| 449 | +**起始版本:** 19 | ||
| 450 | + | ||
| 451 | +**参数:** | ||
| 452 | + | ||
| 453 | +| 参数项 | 描述 | | ||
| 454 | +| -- | -- | | ||
| 455 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 456 | + | ||
| 457 | +**返回:** | ||
| 458 | + | ||
| 459 | +| 类型 | 说明 | | ||
| 460 | +| -- | -- | | ||
| 461 | +| int32_t | 是否忽略导航点大小。 | | ||
| 462 | + | ||
| 463 | +### OH_ArkUI_SwiperIndicator_SetItemWidth() | ||
| 464 | + | ||
| 465 | +```c | ||
| 466 | +void OH_ArkUI_SwiperIndicator_SetItemWidth(ArkUI_SwiperIndicator* indicator, float value) | ||
| 467 | +``` | ||
| 468 | + | ||
| 469 | +**描述** | ||
| 470 | + | ||
| 471 | +设置Swiper组件圆点导航指示器的宽。 | ||
| 472 | + | ||
| 473 | +**起始版本:** 12 | ||
| 474 | + | ||
| 475 | +**参数:** | ||
| 476 | + | ||
| 477 | +| 参数项 | 描述 | | ||
| 478 | +| -- | -- | | ||
| 479 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 480 | +| float value | 圆点导航指示器的宽。默认值:12,单位:vp。 | | ||
| 481 | + | ||
| 482 | +### OH_ArkUI_SwiperIndicator_GetItemWidth() | ||
| 483 | + | ||
| 484 | +```c | ||
| 485 | +float OH_ArkUI_SwiperIndicator_GetItemWidth(ArkUI_SwiperIndicator* indicator) | ||
| 486 | +``` | ||
| 487 | + | ||
| 488 | +**描述** | ||
| 489 | + | ||
| 490 | +获取Swiper组件圆点导航指示器的宽。 | ||
| 491 | + | ||
| 492 | +**起始版本:** 12 | ||
| 493 | + | ||
| 494 | +**参数:** | ||
| 495 | + | ||
| 496 | +| 参数项 | 描述 | | ||
| 497 | +| -- | -- | | ||
| 498 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 499 | + | ||
| 500 | +**返回:** | ||
| 501 | + | ||
| 502 | +| 类型 | 说明 | | ||
| 503 | +| -- | -- | | ||
| 504 | +| float | 圆点导航指示器的宽。单位:vp。 | | ||
| 505 | + | ||
| 506 | +### OH_ArkUI_SwiperIndicator_SetItemHeight() | ||
| 507 | + | ||
| 508 | +```c | ||
| 509 | +void OH_ArkUI_SwiperIndicator_SetItemHeight(ArkUI_SwiperIndicator* indicator, float value) | ||
| 510 | +``` | ||
| 511 | + | ||
| 512 | +**描述** | ||
| 513 | + | ||
| 514 | +设置Swiper组件圆点导航指示器的高。 | ||
| 515 | + | ||
| 516 | +**起始版本:** 12 | ||
| 517 | + | ||
| 518 | +**参数:** | ||
| 519 | + | ||
| 520 | +| 参数项 | 描述 | | ||
| 521 | +| -- | -- | | ||
| 522 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 523 | +| float value | 圆点导航指示器的高。默认值:6,单位:vp。 | | ||
| 524 | + | ||
| 525 | +### OH_ArkUI_SwiperIndicator_GetItemHeight() | ||
| 526 | + | ||
| 527 | +```c | ||
| 528 | +float OH_ArkUI_SwiperIndicator_GetItemHeight(ArkUI_SwiperIndicator* indicator) | ||
| 529 | +``` | ||
| 530 | + | ||
| 531 | +**描述** | ||
| 532 | + | ||
| 533 | +获取Swiper组件圆点导航指示器的高。 | ||
| 534 | + | ||
| 535 | +**起始版本:** 12 | ||
| 536 | + | ||
| 537 | +**参数:** | ||
| 538 | + | ||
| 539 | +| 参数项 | 描述 | | ||
| 540 | +| -- | -- | | ||
| 541 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 542 | + | ||
| 543 | +**返回:** | ||
| 544 | + | ||
| 545 | +| 类型 | 说明 | | ||
| 546 | +| -- | -- | | ||
| 547 | +| float | 圆点导航指示器的高。单位:vp。 | | ||
| 548 | + | ||
| 549 | +### OH_ArkUI_SwiperIndicator_SetSelectedItemWidth() | ||
| 550 | + | ||
| 551 | +```c | ||
| 552 | +void OH_ArkUI_SwiperIndicator_SetSelectedItemWidth(ArkUI_SwiperIndicator* indicator, float value) | ||
| 553 | +``` | ||
| 554 | + | ||
| 555 | +**描述** | ||
| 556 | + | ||
| 557 | +设置被选中的Swiper组件圆点导航指示器的宽。 | ||
| 558 | + | ||
| 559 | +**起始版本:** 12 | ||
| 560 | + | ||
| 561 | +**参数:** | ||
| 562 | + | ||
| 563 | +| 参数项 | 描述 | | ||
| 564 | +| -- | -- | | ||
| 565 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 566 | +| float value | 圆点导航指示器的宽。默认值:12,单位:vp。 | | ||
| 567 | + | ||
| 568 | +### OH_ArkUI_SwiperIndicator_GetSelectedItemWidth() | ||
| 569 | + | ||
| 570 | +```c | ||
| 571 | +float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth(ArkUI_SwiperIndicator* indicator) | ||
| 572 | +``` | ||
| 573 | + | ||
| 574 | +**描述** | ||
| 575 | + | ||
| 576 | +获取被选中Swiper组件圆点导航指示器的宽。 | ||
| 577 | + | ||
| 578 | +**起始版本:** 12 | ||
| 579 | + | ||
| 580 | +**参数:** | ||
| 581 | + | ||
| 582 | +| 参数项 | 描述 | | ||
| 583 | +| -- | -- | | ||
| 584 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 585 | + | ||
| 586 | +**返回:** | ||
| 587 | + | ||
| 588 | +| 类型 | 说明 | | ||
| 589 | +| -- | -- | | ||
| 590 | +| float | 圆点导航指示器的宽。单位:vp。 | | ||
| 591 | + | ||
| 592 | +### OH_ArkUI_SwiperIndicator_SetSelectedItemHeight() | ||
| 593 | + | ||
| 594 | +```c | ||
| 595 | +void OH_ArkUI_SwiperIndicator_SetSelectedItemHeight(ArkUI_SwiperIndicator* indicator, float value) | ||
| 596 | +``` | ||
| 597 | + | ||
| 598 | +**描述** | ||
| 599 | + | ||
| 600 | +设置被选中的Swiper组件圆点导航指示器的高。 | ||
| 601 | + | ||
| 602 | +**起始版本:** 12 | ||
| 603 | + | ||
| 604 | +**参数:** | ||
| 605 | + | ||
| 606 | +| 参数项 | 描述 | | ||
| 607 | +| -- | -- | | ||
| 608 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 609 | +| float value | 圆点导航指示器的高。默认值:6,单位:vp。 | | ||
| 610 | + | ||
| 611 | +### OH_ArkUI_SwiperIndicator_GetSelectedItemHeight() | ||
| 612 | + | ||
| 613 | +```c | ||
| 614 | +float OH_ArkUI_SwiperIndicator_GetSelectedItemHeight(ArkUI_SwiperIndicator* indicator) | ||
| 615 | +``` | ||
| 616 | + | ||
| 617 | +**描述** | ||
| 618 | + | ||
| 619 | +获取被选中Swiper组件圆点导航指示器的高。 | ||
| 620 | + | ||
| 621 | +**起始版本:** 12 | ||
| 622 | + | ||
| 623 | +**参数:** | ||
| 624 | + | ||
| 625 | +| 参数项 | 描述 | | ||
| 626 | +| -- | -- | | ||
| 627 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 628 | + | ||
| 629 | +**返回:** | ||
| 630 | + | ||
| 631 | +| 类型 | 说明 | | ||
| 632 | +| -- | -- | | ||
| 633 | +| float | 圆点导航指示器的高。单位:vp。 | | ||
| 634 | + | ||
| 635 | +### OH_ArkUI_SwiperIndicator_SetMask() | ||
| 636 | + | ||
| 637 | +```c | ||
| 638 | +void OH_ArkUI_SwiperIndicator_SetMask(ArkUI_SwiperIndicator* indicator, int32_t mask) | ||
| 639 | +``` | ||
| 640 | + | ||
| 641 | +**描述** | ||
| 642 | + | ||
| 643 | +设置是否显示Swiper组件圆点导航指示器的蒙版样式。 | ||
| 644 | + | ||
| 645 | +**起始版本:** 12 | ||
| 646 | + | ||
| 647 | +**参数:** | ||
| 648 | + | ||
| 649 | +| 参数项 | 描述 | | ||
| 650 | +| -- | -- | | ||
| 651 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 652 | +| int32_t mask | 是否显示蒙版样式,1表示显示,0表示不显示。 | | ||
| 653 | + | ||
| 654 | +### OH_ArkUI_SwiperIndicator_GetMask() | ||
| 655 | + | ||
| 656 | +```c | ||
| 657 | +int32_t OH_ArkUI_SwiperIndicator_GetMask(ArkUI_SwiperIndicator* indicator) | ||
| 658 | +``` | ||
| 659 | + | ||
| 660 | +**描述** | ||
| 661 | + | ||
| 662 | +获取是否显示Swiper组件圆点导航指示器的蒙版样式。 | ||
| 663 | + | ||
| 664 | +**起始版本:** 12 | ||
| 665 | + | ||
| 666 | +**参数:** | ||
| 667 | + | ||
| 668 | +| 参数项 | 描述 | | ||
| 669 | +| -- | -- | | ||
| 670 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 671 | + | ||
| 672 | +**返回:** | ||
| 673 | + | ||
| 674 | +| 类型 | 说明 | | ||
| 675 | +| -- | -- | | ||
| 676 | +| int32_t | mask 1表示显示圆点导航指示器的蒙版样式,0表示不显示。 | | ||
| 677 | + | ||
| 678 | +### OH_ArkUI_SwiperIndicator_SetColor() | ||
| 679 | + | ||
| 680 | +```c | ||
| 681 | +void OH_ArkUI_SwiperIndicator_SetColor(ArkUI_SwiperIndicator* indicator, uint32_t color) | ||
| 682 | +``` | ||
| 683 | + | ||
| 684 | +**描述** | ||
| 685 | + | ||
| 686 | +设置Swiper组件圆点导航指示器的颜色。 | ||
| 687 | + | ||
| 688 | +**起始版本:** 12 | ||
| 689 | + | ||
| 690 | +**参数:** | ||
| 691 | + | ||
| 692 | +| 参数项 | 描述 | | ||
| 693 | +| -- | -- | | ||
| 694 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 695 | +| uint32_t color | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 696 | + | ||
| 697 | +### OH_ArkUI_SwiperIndicator_GetColor() | ||
| 698 | + | ||
| 699 | +```c | ||
| 700 | +uint32_t OH_ArkUI_SwiperIndicator_GetColor(ArkUI_SwiperIndicator* indicator) | ||
| 701 | +``` | ||
| 702 | + | ||
| 703 | +**描述** | ||
| 704 | + | ||
| 705 | +获取Swiper组件圆点导航指示器的颜色。 | ||
| 706 | + | ||
| 707 | +**起始版本:** 12 | ||
| 708 | + | ||
| 709 | +**参数:** | ||
| 710 | + | ||
| 711 | +| 参数项 | 描述 | | ||
| 712 | +| -- | -- | | ||
| 713 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 714 | + | ||
| 715 | +**返回:** | ||
| 716 | + | ||
| 717 | +| 类型 | 说明 | | ||
| 718 | +| -- | -- | | ||
| 719 | +| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 720 | + | ||
| 721 | +### OH_ArkUI_SwiperIndicator_SetSelectedColor() | ||
| 722 | + | ||
| 723 | +```c | ||
| 724 | +void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator, uint32_t selectedColor) | ||
| 725 | +``` | ||
| 726 | + | ||
| 727 | +**描述** | ||
| 728 | + | ||
| 729 | +设置被选中Swiper组件圆点导航指示器的颜色。 | ||
| 730 | + | ||
| 731 | +**起始版本:** 12 | ||
| 732 | + | ||
| 733 | +**参数:** | ||
| 734 | + | ||
| 735 | +| 参数项 | 描述 | | ||
| 736 | +| -- | -- | | ||
| 737 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 738 | +| uint32_t selectedColor | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 739 | + | ||
| 740 | +### OH_ArkUI_SwiperIndicator_GetSelectedColor() | ||
| 741 | + | ||
| 742 | +```c | ||
| 743 | +uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator) | ||
| 744 | +``` | ||
| 745 | + | ||
| 746 | +**描述** | ||
| 747 | + | ||
| 748 | +获取被选中Swiper组件圆点导航指示器的颜色。 | ||
| 749 | + | ||
| 750 | +**起始版本:** 12 | ||
| 751 | + | ||
| 752 | +**参数:** | ||
| 753 | + | ||
| 754 | +| 参数项 | 描述 | | ||
| 755 | +| -- | -- | | ||
| 756 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 757 | + | ||
| 758 | +**返回:** | ||
| 759 | + | ||
| 760 | +| 类型 | 说明 | | ||
| 761 | +| -- | -- | | ||
| 762 | +| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 763 | + | ||
| 764 | +### OH_ArkUI_SwiperIndicator_SetMaxDisplayCount() | ||
| 765 | + | ||
| 766 | +```c | ||
| 767 | +int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount) | ||
| 768 | +``` | ||
| 769 | + | ||
| 770 | +**描述** | ||
| 771 | + | ||
| 772 | +设置圆点导航点指示器样式下,导航点显示个数的最大值。 | ||
| 773 | + | ||
| 774 | +**起始版本:** 12 | ||
| 775 | + | ||
| 776 | +**参数:** | ||
| 777 | + | ||
| 778 | +| 参数项 | 描述 | | ||
| 779 | +| -- | -- | | ||
| 780 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 781 | +| int32_t maxDisplayCount | 导航点显示个数最大值,有效取值范围[6, 9]。 | | ||
| 782 | + | ||
| 783 | +**返回:** | ||
| 784 | + | ||
| 785 | +| 类型 | 说明 | | ||
| 786 | +| -- | -- | | ||
| 787 | +| int32_t | 错误码。<br> [ARKUI_ERROR_CODE_NO_ERROR](capi-native-type-h.md#arkui_errorcode) 成功。<br> [ARKUI_ERROR_CODE_NO_ERROR](capi-native-type-h.md#arkui_errorcode) 如果maxDisplayCount设置范围错误, 返回错误码。 | | ||
| 788 | + | ||
| 789 | +### OH_ArkUI_SwiperIndicator_GetMaxDisplayCount() | ||
| 790 | + | ||
| 791 | +```c | ||
| 792 | +int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator) | ||
| 793 | +``` | ||
| 794 | + | ||
| 795 | +**描述** | ||
| 796 | + | ||
| 797 | +获取圆点导航点指示器样式下,导航点显示个数的最大值。 | ||
| 798 | + | ||
| 799 | +**起始版本:** 12 | ||
| 800 | + | ||
| 801 | +**参数:** | ||
| 802 | + | ||
| 803 | +| 参数项 | 描述 | | ||
| 804 | +| -- | -- | | ||
| 805 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 806 | + | ||
| 807 | +**返回:** | ||
| 808 | + | ||
| 809 | +| 类型 | 说明 | | ||
| 810 | +| -- | -- | | ||
| 811 | +| int32_t | 导航点显示个数最大值,有效取值范围[6, 9]。 | | ||
| 812 | + | ||
| 813 | +### OH_ArkUI_SwiperDigitIndicator_Create() | ||
| 814 | + | ||
| 815 | +```c | ||
| 816 | +ArkUI_SwiperDigitIndicator *OH_ArkUI_SwiperDigitIndicator_Create() | ||
| 817 | +``` | ||
| 818 | + | ||
| 819 | +**描述** | ||
| 820 | + | ||
| 821 | +创建Swiper组件的数字导航指示器。 | ||
| 822 | + | ||
| 823 | +**起始版本:** 19 | ||
| 824 | + | ||
| 825 | +**返回:** | ||
| 826 | + | ||
| 827 | +| 类型 | 说明 | | ||
| 828 | +| -- | -- | | ||
| 829 | +| [ArkUI_SwiperDigitIndicator *](capi-arkui-nativemodule-arkui-swiperdigitindicator.md) | 数字导航指示器对象指针。 | | ||
| 830 | + | ||
| 831 | +### OH_ArkUI_SwiperDigitIndicator_Destroy() | ||
| 832 | + | ||
| 833 | +```c | ||
| 834 | +void OH_ArkUI_SwiperDigitIndicator_Destroy(ArkUI_SwiperDigitIndicator* indicator) | ||
| 835 | +``` | ||
| 836 | + | ||
| 837 | +**描述** | ||
| 838 | + | ||
| 839 | +销毁Swiper组件的数字导航指示器指针。 | ||
| 840 | + | ||
| 841 | +**起始版本:** 19 | ||
| 842 | + | ||
| 843 | +**参数:** | ||
| 844 | + | ||
| 845 | +| 参数项 | 描述 | | ||
| 846 | +| -- | -- | | ||
| 847 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 848 | + | ||
| 849 | +### OH_ArkUI_SwiperDigitIndicator_SetStartPosition() | ||
| 850 | + | ||
| 851 | +```c | ||
| 852 | +void OH_ArkUI_SwiperDigitIndicator_SetStartPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 853 | +``` | ||
| 854 | + | ||
| 855 | +**描述** | ||
| 856 | + | ||
| 857 | +设置数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件右边的距离。 | ||
| 858 | + | ||
| 859 | +**起始版本:** 19 | ||
| 860 | + | ||
| 861 | +**参数:** | ||
| 862 | + | ||
| 863 | +| 参数项 | 描述 | | ||
| 864 | +| -- | -- | | ||
| 865 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 866 | +| float value | 数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,其距离Swiper组件右边的距离。默认值:0,单位:vp。 | | ||
| 867 | + | ||
| 868 | +### OH_ArkUI_SwiperDigitIndicator_GetStartPosition() | ||
| 869 | + | ||
| 870 | +```c | ||
| 871 | +float OH_ArkUI_SwiperDigitIndicator_GetStartPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 872 | +``` | ||
| 873 | + | ||
| 874 | +**描述** | ||
| 875 | + | ||
| 876 | +获取数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件右边的距离。 | ||
| 877 | + | ||
| 878 | +**起始版本:** 19 | ||
| 879 | + | ||
| 880 | +**参数:** | ||
| 881 | + | ||
| 882 | +| 参数项 | 描述 | | ||
| 883 | +| -- | -- | | ||
| 884 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 885 | + | ||
| 886 | +**返回:** | ||
| 887 | + | ||
| 888 | +| 类型 | 说明 | | ||
| 889 | +| -- | -- | | ||
| 890 | +| float | 数字导航指示器距离Swiper组件左边的距离,在从右至左显示的语言模式下,其距离Swiper组件右边的距离。单位:vp。 | | ||
| 891 | + | ||
| 892 | +### OH_ArkUI_SwiperDigitIndicator_SetTopPosition() | ||
| 893 | + | ||
| 894 | +```c | ||
| 895 | +void OH_ArkUI_SwiperDigitIndicator_SetTopPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 896 | +``` | ||
| 897 | + | ||
| 898 | +**描述** | ||
| 899 | + | ||
| 900 | +设置数字导航指示器距离Swiper组件顶部的距离。 | ||
| 901 | + | ||
| 902 | +**起始版本:** 19 | ||
| 903 | + | ||
| 904 | +**参数:** | ||
| 905 | + | ||
| 906 | +| 参数项 | 描述 | | ||
| 907 | +| -- | -- | | ||
| 908 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 909 | +| float value | 数字导航指示器距离Swiper组件顶部的距离。默认值:0,单位:vp。 | | ||
| 910 | + | ||
| 911 | +### OH_ArkUI_SwiperDigitIndicator_GetTopPosition() | ||
| 912 | + | ||
| 913 | +```c | ||
| 914 | +float OH_ArkUI_SwiperDigitIndicator_GetTopPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 915 | +``` | ||
| 916 | + | ||
| 917 | +**描述** | ||
| 918 | + | ||
| 919 | +获取数字导航指示器距离Swiper组件顶部的距离。 | ||
| 920 | + | ||
| 921 | +**起始版本:** 19 | ||
| 922 | + | ||
| 923 | +**参数:** | ||
| 924 | + | ||
| 925 | +| 参数项 | 描述 | | ||
| 926 | +| -- | -- | | ||
| 927 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 928 | + | ||
| 929 | +**返回:** | ||
| 930 | + | ||
| 931 | +| 类型 | 说明 | | ||
| 932 | +| -- | -- | | ||
| 933 | +| float | 数字导航指示器距离Swiper组件顶部的距离。单位:vp。 | | ||
| 934 | + | ||
| 935 | +### OH_ArkUI_SwiperDigitIndicator_SetEndPosition() | ||
| 936 | + | ||
| 937 | +```c | ||
| 938 | +void OH_ArkUI_SwiperDigitIndicator_SetEndPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 939 | +``` | ||
| 940 | + | ||
| 941 | +**描述** | ||
| 942 | + | ||
| 943 | +设置数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,设置其距离Swiper组件左边的距离。 | ||
| 944 | + | ||
| 945 | +**起始版本:** 19 | ||
| 946 | + | ||
| 947 | +**参数:** | ||
| 948 | + | ||
| 949 | +| 参数项 | 描述 | | ||
| 950 | +| -- | -- | | ||
| 951 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 952 | +| float value | 数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,其距离Swiper组件左边的距离。默认值:0,单位:vp。 | | ||
| 953 | + | ||
| 954 | +### OH_ArkUI_SwiperDigitIndicator_GetEndPosition() | ||
| 955 | + | ||
| 956 | +```c | ||
| 957 | +float OH_ArkUI_SwiperDigitIndicator_GetEndPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 958 | +``` | ||
| 959 | + | ||
| 960 | +**描述** | ||
| 961 | + | ||
| 962 | +获取数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,获取其距离Swiper组件左边的距离。 | ||
| 963 | + | ||
| 964 | +**起始版本:** 19 | ||
| 965 | + | ||
| 966 | +**参数:** | ||
| 967 | + | ||
| 968 | +| 参数项 | 描述 | | ||
| 969 | +| -- | -- | | ||
| 970 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 971 | + | ||
| 972 | +**返回:** | ||
| 973 | + | ||
| 974 | +| 类型 | 说明 | | ||
| 975 | +| -- | -- | | ||
| 976 | +| float | 数字导航指示器距离Swiper组件右边的距离,在从右至左显示的语言模式下,其距离Swiper组件左边的距离。单位:vp。 | | ||
| 977 | + | ||
| 978 | +### OH_ArkUI_SwiperDigitIndicator_SetBottomPosition() | ||
| 979 | + | ||
| 980 | +```c | ||
| 981 | +void OH_ArkUI_SwiperDigitIndicator_SetBottomPosition(ArkUI_SwiperDigitIndicator* indicator, float value) | ||
| 982 | +``` | ||
| 983 | + | ||
| 984 | +**描述** | ||
| 985 | + | ||
| 986 | +设置数字导航指示器距离Swiper组件底部的距离。 | ||
| 987 | + | ||
| 988 | +**起始版本:** 19 | ||
| 989 | + | ||
| 990 | +**参数:** | ||
| 991 | + | ||
| 992 | +| 参数项 | 描述 | | ||
| 993 | +| -- | -- | | ||
| 994 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 995 | +| float value | 数字导航指示器距离Swiper组件底部的距离。默认值:0,单位:vp。 | | ||
| 996 | + | ||
| 997 | +### OH_ArkUI_SwiperDigitIndicator_GetBottomPosition() | ||
| 998 | + | ||
| 999 | +```c | ||
| 1000 | +float OH_ArkUI_SwiperDigitIndicator_GetBottomPosition(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1001 | +``` | ||
| 1002 | + | ||
| 1003 | +**描述** | ||
| 1004 | + | ||
| 1005 | +获取数字导航指示器距离Swiper组件底部的距离。 | ||
| 1006 | + | ||
| 1007 | +**起始版本:** 19 | ||
| 1008 | + | ||
| 1009 | +**参数:** | ||
| 1010 | + | ||
| 1011 | +| 参数项 | 描述 | | ||
| 1012 | +| -- | -- | | ||
| 1013 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1014 | + | ||
| 1015 | +**返回:** | ||
| 1016 | + | ||
| 1017 | +| 类型 | 说明 | | ||
| 1018 | +| -- | -- | | ||
| 1019 | +| float | 数字导航指示器距离Swiper组件底部的距离。单位:vp。 | | ||
| 1020 | + | ||
| 1021 | +### OH_ArkUI_SwiperDigitIndicator_SetFontColor() | ||
| 1022 | + | ||
| 1023 | +```c | ||
| 1024 | +void OH_ArkUI_SwiperDigitIndicator_SetFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t color) | ||
| 1025 | +``` | ||
| 1026 | + | ||
| 1027 | +**描述** | ||
| 1028 | + | ||
| 1029 | +设置Swiper组件数字导航指示器字体颜色。 | ||
| 1030 | + | ||
| 1031 | +**起始版本:** 19 | ||
| 1032 | + | ||
| 1033 | +**参数:** | ||
| 1034 | + | ||
| 1035 | +| 参数项 | 描述 | | ||
| 1036 | +| -- | -- | | ||
| 1037 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1038 | +| uint32_t color | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。默认值:0xFF182431。 | | ||
| 1039 | + | ||
| 1040 | +### OH_ArkUI_SwiperDigitIndicator_GetFontColor() | ||
| 1041 | + | ||
| 1042 | +```c | ||
| 1043 | +uint32_t OH_ArkUI_SwiperDigitIndicator_GetFontColor(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1044 | +``` | ||
| 1045 | + | ||
| 1046 | +**描述** | ||
| 1047 | + | ||
| 1048 | +获取Swiper组件数字导航指示器字体颜色。 | ||
| 1049 | + | ||
| 1050 | +**起始版本:** 19 | ||
| 1051 | + | ||
| 1052 | +**参数:** | ||
| 1053 | + | ||
| 1054 | +| 参数项 | 描述 | | ||
| 1055 | +| -- | -- | | ||
| 1056 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1057 | + | ||
| 1058 | +**返回:** | ||
| 1059 | + | ||
| 1060 | +| 类型 | 说明 | | ||
| 1061 | +| -- | -- | | ||
| 1062 | +| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 1063 | + | ||
| 1064 | +### OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor() | ||
| 1065 | + | ||
| 1066 | +```c | ||
| 1067 | +void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator, uint32_t selectedColor) | ||
| 1068 | +``` | ||
| 1069 | + | ||
| 1070 | +**描述** | ||
| 1071 | + | ||
| 1072 | +设置被选中Swiper组件数字导航指示器字体颜色。 | ||
| 1073 | + | ||
| 1074 | +**起始版本:** 19 | ||
| 1075 | + | ||
| 1076 | +**参数:** | ||
| 1077 | + | ||
| 1078 | +| 参数项 | 描述 | | ||
| 1079 | +| -- | -- | | ||
| 1080 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1081 | +| uint32_t selectedColor | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。默认值:0xFF182431。 | | ||
| 1082 | + | ||
| 1083 | +### OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor() | ||
| 1084 | + | ||
| 1085 | +```c | ||
| 1086 | +uint32_t OH_ArkUI_SwiperDigitIndicator_GetSelectedFontColor(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1087 | +``` | ||
| 1088 | + | ||
| 1089 | +**描述** | ||
| 1090 | + | ||
| 1091 | +获取被选中Swiper组件数字导航指示器字体颜色。 | ||
| 1092 | + | ||
| 1093 | +**起始版本:** 19 | ||
| 1094 | + | ||
| 1095 | +**参数:** | ||
| 1096 | + | ||
| 1097 | +| 参数项 | 描述 | | ||
| 1098 | +| -- | -- | | ||
| 1099 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1100 | + | ||
| 1101 | +**返回:** | ||
| 1102 | + | ||
| 1103 | +| 类型 | 说明 | | ||
| 1104 | +| -- | -- | | ||
| 1105 | +| uint32_t | 颜色类型,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 1106 | + | ||
| 1107 | +### OH_ArkUI_SwiperDigitIndicator_SetFontSize() | ||
| 1108 | + | ||
| 1109 | +```c | ||
| 1110 | +void OH_ArkUI_SwiperDigitIndicator_SetFontSize(ArkUI_SwiperDigitIndicator* indicator, float size) | ||
| 1111 | +``` | ||
| 1112 | + | ||
| 1113 | +**描述** | ||
| 1114 | + | ||
| 1115 | +设置Swiper组件数字导航指示器字体大小。 | ||
| 1116 | + | ||
| 1117 | +**起始版本:** 19 | ||
| 1118 | + | ||
| 1119 | +**参数:** | ||
| 1120 | + | ||
| 1121 | +| 参数项 | 描述 | | ||
| 1122 | +| -- | -- | | ||
| 1123 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1124 | +| float size | 字体大小数值,单位为fp。 | | ||
| 1125 | + | ||
| 1126 | +### OH_ArkUI_SwiperDigitIndicator_GetFontSize() | ||
| 1127 | + | ||
| 1128 | +```c | ||
| 1129 | +float OH_ArkUI_SwiperDigitIndicator_GetFontSize(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1130 | +``` | ||
| 1131 | + | ||
| 1132 | +**描述** | ||
| 1133 | + | ||
| 1134 | +获取Swiper组件数字导航指示器字体大小。 | ||
| 1135 | + | ||
| 1136 | +**起始版本:** 19 | ||
| 1137 | + | ||
| 1138 | +**参数:** | ||
| 1139 | + | ||
| 1140 | +| 参数项 | 描述 | | ||
| 1141 | +| -- | -- | | ||
| 1142 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1143 | + | ||
| 1144 | +**返回:** | ||
| 1145 | + | ||
| 1146 | +| 类型 | 说明 | | ||
| 1147 | +| -- | -- | | ||
| 1148 | +| float | 字体大小数值,单位为fp。 | | ||
| 1149 | + | ||
| 1150 | +### OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize() | ||
| 1151 | + | ||
| 1152 | +```c | ||
| 1153 | +void OH_ArkUI_SwiperDigitIndicator_SetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator, float size) | ||
| 1154 | +``` | ||
| 1155 | + | ||
| 1156 | +**描述** | ||
| 1157 | + | ||
| 1158 | +设置被选中Swiper组件数字导航指示器字体大小。 | ||
| 1159 | + | ||
| 1160 | +**起始版本:** 19 | ||
| 1161 | + | ||
| 1162 | +**参数:** | ||
| 1163 | + | ||
| 1164 | +| 参数项 | 描述 | | ||
| 1165 | +| -- | -- | | ||
| 1166 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1167 | +| float size | 字体大小数值,单位为fp。 | | ||
| 1168 | + | ||
| 1169 | +### OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize() | ||
| 1170 | + | ||
| 1171 | +```c | ||
| 1172 | +float OH_ArkUI_SwiperDigitIndicator_GetSelectedFontSize(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1173 | +``` | ||
| 1174 | + | ||
| 1175 | +**描述** | ||
| 1176 | + | ||
| 1177 | +获取被选中Swiper组件数字导航指示器字体大小。 | ||
| 1178 | + | ||
| 1179 | +**起始版本:** 19 | ||
| 1180 | + | ||
| 1181 | +**参数:** | ||
| 1182 | + | ||
| 1183 | +| 参数项 | 描述 | | ||
| 1184 | +| -- | -- | | ||
| 1185 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 数字导航指示器对象指针。 | | ||
| 1186 | + | ||
| 1187 | +**返回:** | ||
| 1188 | + | ||
| 1189 | +| 类型 | 说明 | | ||
| 1190 | +| -- | -- | | ||
| 1191 | +| float | 字体大小数值,单位为fp。 | | ||
| 1192 | + | ||
| 1193 | +### OH_ArkUI_SwiperArrowStyle_Create() | ||
| 1194 | + | ||
| 1195 | +```c | ||
| 1196 | +ArkUI_SwiperArrowStyle *OH_ArkUI_SwiperArrowStyle_Create() | ||
| 1197 | +``` | ||
| 1198 | + | ||
| 1199 | +**描述** | ||
| 1200 | + | ||
| 1201 | +创建Swiper组件的导航箭头。 | ||
| 1202 | + | ||
| 1203 | +**起始版本:** 19 | ||
| 1204 | + | ||
| 1205 | +**返回:** | ||
| 1206 | + | ||
| 1207 | +| 类型 | 说明 | | ||
| 1208 | +| -- | -- | | ||
| 1209 | +| [ArkUI_SwiperArrowStyle *](capi-arkui-nativemodule-arkui-swiperarrowstyle.md) | 导航箭头对象指针。 | | ||
| 1210 | + | ||
| 1211 | +### OH_ArkUI_SwiperArrowStyle_Destroy() | ||
| 1212 | + | ||
| 1213 | +```c | ||
| 1214 | +void OH_ArkUI_SwiperArrowStyle_Destroy(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1215 | +``` | ||
| 1216 | + | ||
| 1217 | +**描述** | ||
| 1218 | + | ||
| 1219 | +销毁Swiper组件的导航箭头指针。 | ||
| 1220 | + | ||
| 1221 | +**起始版本:** 19 | ||
| 1222 | + | ||
| 1223 | +**参数:** | ||
| 1224 | + | ||
| 1225 | +| 参数项 | 描述 | | ||
| 1226 | +| -- | -- | | ||
| 1227 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1228 | + | ||
| 1229 | +### OH_ArkUI_SwiperArrowStyle_SetShowBackground() | ||
| 1230 | + | ||
| 1231 | +```c | ||
| 1232 | +void OH_ArkUI_SwiperArrowStyle_SetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showBackground) | ||
| 1233 | +``` | ||
| 1234 | + | ||
| 1235 | +**描述** | ||
| 1236 | + | ||
| 1237 | +设置Swiper组件导航箭头底板是否显示。 | ||
| 1238 | + | ||
| 1239 | +**起始版本:** 19 | ||
| 1240 | + | ||
| 1241 | +**参数:** | ||
| 1242 | + | ||
| 1243 | +| 参数项 | 描述 | | ||
| 1244 | +| -- | -- | | ||
| 1245 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1246 | +| int32_t showBackground | 导航箭头底板是否显示,0:不显示,1:显示,默认值:0。 | | ||
| 1247 | + | ||
| 1248 | +### OH_ArkUI_SwiperArrowStyle_GetShowBackground() | ||
| 1249 | + | ||
| 1250 | +```c | ||
| 1251 | +int32_t OH_ArkUI_SwiperArrowStyle_GetShowBackground(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1252 | +``` | ||
| 1253 | + | ||
| 1254 | +**描述** | ||
| 1255 | + | ||
| 1256 | +获取Swiper组件导航箭头底板是否显示。 | ||
| 1257 | + | ||
| 1258 | +**起始版本:** 19 | ||
| 1259 | + | ||
| 1260 | +**参数:** | ||
| 1261 | + | ||
| 1262 | +| 参数项 | 描述 | | ||
| 1263 | +| -- | -- | | ||
| 1264 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1265 | + | ||
| 1266 | +**返回:** | ||
| 1267 | + | ||
| 1268 | +| 类型 | 说明 | | ||
| 1269 | +| -- | -- | | ||
| 1270 | +| int32_t | 导航箭头底板是否显示,0:不显示,1:显示。 | | ||
| 1271 | + | ||
| 1272 | +### OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle() | ||
| 1273 | + | ||
| 1274 | +```c | ||
| 1275 | +void OH_ArkUI_SwiperArrowStyle_SetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle, int32_t showSidebarMiddle) | ||
| 1276 | +``` | ||
| 1277 | + | ||
| 1278 | +**描述** | ||
| 1279 | + | ||
| 1280 | +设置Swiper组件导航箭头显示位置。 | ||
| 1281 | + | ||
| 1282 | +**起始版本:** 19 | ||
| 1283 | + | ||
| 1284 | +**参数:** | ||
| 1285 | + | ||
| 1286 | +| 参数项 | 描述 | | ||
| 1287 | +| -- | -- | | ||
| 1288 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1289 | +| int32_t showSidebarMiddle | 导航箭头显示位置,0:显示在导航指示器两侧,1:显示在Swiper组件两侧,默认值:0。 | | ||
| 1290 | + | ||
| 1291 | +### OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle() | ||
| 1292 | + | ||
| 1293 | +```c | ||
| 1294 | +int32_t OH_ArkUI_SwiperArrowStyle_GetShowSidebarMiddle(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1295 | +``` | ||
| 1296 | + | ||
| 1297 | +**描述** | ||
| 1298 | + | ||
| 1299 | +获取Swiper组件导航箭头显示位置。 | ||
| 1300 | + | ||
| 1301 | +**起始版本:** 19 | ||
| 1302 | + | ||
| 1303 | +**参数:** | ||
| 1304 | + | ||
| 1305 | +| 参数项 | 描述 | | ||
| 1306 | +| -- | -- | | ||
| 1307 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1308 | + | ||
| 1309 | +**返回:** | ||
| 1310 | + | ||
| 1311 | +| 类型 | 说明 | | ||
| 1312 | +| -- | -- | | ||
| 1313 | +| int32_t | 导航箭头显示位置,0:显示在导航指示器两侧,1:显示在Swiper组件两侧。 | | ||
| 1314 | + | ||
| 1315 | +### OH_ArkUI_SwiperArrowStyle_SetBackgroundSize() | ||
| 1316 | + | ||
| 1317 | +```c | ||
| 1318 | +void OH_ArkUI_SwiperArrowStyle_SetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle, float backgroundSize) | ||
| 1319 | +``` | ||
| 1320 | + | ||
| 1321 | +**描述** | ||
| 1322 | + | ||
| 1323 | +设置Swiper组件导航箭头底板大小。 | ||
| 1324 | + | ||
| 1325 | +**起始版本:** 19 | ||
| 1326 | + | ||
| 1327 | +**参数:** | ||
| 1328 | + | ||
| 1329 | +| 参数项 | 描述 | | ||
| 1330 | +| -- | -- | | ||
| 1331 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1332 | +| float backgroundSize | 导航箭头底板大小,单位:vp。默认值:显示在导航指示器两侧24vp,显示在Swiper两侧32vp。 | | ||
| 1333 | + | ||
| 1334 | +### OH_ArkUI_SwiperArrowStyle_GetBackgroundSize() | ||
| 1335 | + | ||
| 1336 | +```c | ||
| 1337 | +float OH_ArkUI_SwiperArrowStyle_GetBackgroundSize(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1338 | +``` | ||
| 1339 | + | ||
| 1340 | +**描述** | ||
| 1341 | + | ||
| 1342 | +获取Swiper组件导航箭头底板大小。 | ||
| 1343 | + | ||
| 1344 | +**起始版本:** 19 | ||
| 1345 | + | ||
| 1346 | +**参数:** | ||
| 1347 | + | ||
| 1348 | +| 参数项 | 描述 | | ||
| 1349 | +| -- | -- | | ||
| 1350 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1351 | + | ||
| 1352 | +**返回:** | ||
| 1353 | + | ||
| 1354 | +| 类型 | 说明 | | ||
| 1355 | +| -- | -- | | ||
| 1356 | +| float | 导航箭头底板大小,单位:vp。 | | ||
| 1357 | + | ||
| 1358 | +### OH_ArkUI_SwiperArrowStyle_SetBackgroundColor() | ||
| 1359 | + | ||
| 1360 | +```c | ||
| 1361 | +void OH_ArkUI_SwiperArrowStyle_SetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t backgroundColor) | ||
| 1362 | +``` | ||
| 1363 | + | ||
| 1364 | +**描述** | ||
| 1365 | + | ||
| 1366 | +设置Swiper组件导航箭头底板颜色。 | ||
| 1367 | + | ||
| 1368 | +**起始版本:** 19 | ||
| 1369 | + | ||
| 1370 | +**参数:** | ||
| 1371 | + | ||
| 1372 | +| 参数项 | 描述 | | ||
| 1373 | +| -- | -- | | ||
| 1374 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1375 | +| uint32_t backgroundColor | 导航箭头底板颜色,0xargb格式,形如 0xFFFF0000表示红色。默认值:显示在导航指示器两侧为0x00000000,显示在Swiper两侧为0x19182431。 | | ||
| 1376 | + | ||
| 1377 | +### OH_ArkUI_SwiperArrowStyle_GetBackgroundColor() | ||
| 1378 | + | ||
| 1379 | +```c | ||
| 1380 | +uint32_t OH_ArkUI_SwiperArrowStyle_GetBackgroundColor(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1381 | +``` | ||
| 1382 | + | ||
| 1383 | +**描述** | ||
| 1384 | + | ||
| 1385 | +获取Swiper组件导航箭头底板颜色。 | ||
| 1386 | + | ||
| 1387 | +**起始版本:** 19 | ||
| 1388 | + | ||
| 1389 | +**参数:** | ||
| 1390 | + | ||
| 1391 | +| 参数项 | 描述 | | ||
| 1392 | +| -- | -- | | ||
| 1393 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1394 | + | ||
| 1395 | +**返回:** | ||
| 1396 | + | ||
| 1397 | +| 类型 | 说明 | | ||
| 1398 | +| -- | -- | | ||
| 1399 | +| uint32_t | 导航箭头底板颜色,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 1400 | + | ||
| 1401 | +### OH_ArkUI_SwiperArrowStyle_SetArrowSize() | ||
| 1402 | + | ||
| 1403 | +```c | ||
| 1404 | +void OH_ArkUI_SwiperArrowStyle_SetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle, float arrowSize) | ||
| 1405 | +``` | ||
| 1406 | + | ||
| 1407 | +**描述** | ||
| 1408 | + | ||
| 1409 | +设置Swiper组件导航箭头大小。 | ||
| 1410 | + | ||
| 1411 | +**起始版本:** 19 | ||
| 1412 | + | ||
| 1413 | +**参数:** | ||
| 1414 | + | ||
| 1415 | +| 参数项 | 描述 | | ||
| 1416 | +| -- | -- | | ||
| 1417 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1418 | +| float arrowSize | 导航箭头大小,单位:vp。默认值:显示在导航指示器两侧18vp,显示在Swiper两侧24vp。显示导航箭头底板时,arrowSize固定为backgroundSize的3/4。 | | ||
| 1419 | + | ||
| 1420 | +### OH_ArkUI_SwiperArrowStyle_GetArrowSize() | ||
| 1421 | + | ||
| 1422 | +```c | ||
| 1423 | +float OH_ArkUI_SwiperArrowStyle_GetArrowSize(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1424 | +``` | ||
| 1425 | + | ||
| 1426 | +**描述** | ||
| 1427 | + | ||
| 1428 | +获取Swiper组件导航箭头大小。 | ||
| 1429 | + | ||
| 1430 | +**起始版本:** 19 | ||
| 1431 | + | ||
| 1432 | +**参数:** | ||
| 1433 | + | ||
| 1434 | +| 参数项 | 描述 | | ||
| 1435 | +| -- | -- | | ||
| 1436 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1437 | + | ||
| 1438 | +**返回:** | ||
| 1439 | + | ||
| 1440 | +| 类型 | 说明 | | ||
| 1441 | +| -- | -- | | ||
| 1442 | +| float | 导航箭头大小,单位:vp。 | | ||
| 1443 | + | ||
| 1444 | +### OH_ArkUI_SwiperArrowStyle_SetArrowColor() | ||
| 1445 | + | ||
| 1446 | +```c | ||
| 1447 | +void OH_ArkUI_SwiperArrowStyle_SetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle, uint32_t arrowColor) | ||
| 1448 | +``` | ||
| 1449 | + | ||
| 1450 | +**描述** | ||
| 1451 | + | ||
| 1452 | +设置Swiper组件导航箭头颜色。 | ||
| 1453 | + | ||
| 1454 | +**起始版本:** 19 | ||
| 1455 | + | ||
| 1456 | +**参数:** | ||
| 1457 | + | ||
| 1458 | +| 参数项 | 描述 | | ||
| 1459 | +| -- | -- | | ||
| 1460 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1461 | +| uint32_t arrowColor | 导航箭头颜色,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 1462 | + | ||
| 1463 | +### OH_ArkUI_SwiperArrowStyle_GetArrowColor() | ||
| 1464 | + | ||
| 1465 | +```c | ||
| 1466 | +uint32_t OH_ArkUI_SwiperArrowStyle_GetArrowColor(ArkUI_SwiperArrowStyle* arrowStyle) | ||
| 1467 | +``` | ||
| 1468 | + | ||
| 1469 | +**描述** | ||
| 1470 | + | ||
| 1471 | +获取Swiper组件导航箭头颜色。 | ||
| 1472 | + | ||
| 1473 | +**起始版本:** 19 | ||
| 1474 | + | ||
| 1475 | +**参数:** | ||
| 1476 | + | ||
| 1477 | +| 参数项 | 描述 | | ||
| 1478 | +| -- | -- | | ||
| 1479 | +| [ArkUI_SwiperArrowStyle](capi-arkui-nativemodule-arkui-swiperarrowstyle.md)* arrowStyle | 导航箭头对象指针。 | | ||
| 1480 | + | ||
| 1481 | +**返回:** | ||
| 1482 | + | ||
| 1483 | +| 类型 | 说明 | | ||
| 1484 | +| -- | -- | | ||
| 1485 | +| uint32_t | 导航箭头颜色,0xargb格式,形如 0xFFFF0000表示红色。 | | ||
| 1486 | + | ||
| 1487 | +### OH_ArkUI_SwiperIndicator_SetSpace() | ||
| 1488 | + | ||
| 1489 | +```c | ||
| 1490 | +void OH_ArkUI_SwiperIndicator_SetSpace(ArkUI_SwiperIndicator* indicator, float space) | ||
| 1491 | +``` | ||
| 1492 | + | ||
| 1493 | +**描述** | ||
| 1494 | + | ||
| 1495 | +设置导航点间距。 | ||
| 1496 | + | ||
| 1497 | +**起始版本:** 19 | ||
| 1498 | + | ||
| 1499 | +**参数:** | ||
| 1500 | + | ||
| 1501 | +| 参数项 | 描述 | | ||
| 1502 | +| -- | -- | | ||
| 1503 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 1504 | +| float space | 导航点间距。默认值:8,单位:vp。 | | ||
| 1505 | + | ||
| 1506 | +### OH_ArkUI_SwiperIndicator_GetSpace() | ||
| 1507 | + | ||
| 1508 | +```c | ||
| 1509 | +float OH_ArkUI_SwiperIndicator_GetSpace(ArkUI_SwiperIndicator* indicator) | ||
| 1510 | +``` | ||
| 1511 | + | ||
| 1512 | +**描述** | ||
| 1513 | + | ||
| 1514 | +获取导航点间距。 | ||
| 1515 | + | ||
| 1516 | +**起始版本:** 19 | ||
| 1517 | + | ||
| 1518 | +**参数:** | ||
| 1519 | + | ||
| 1520 | +| 参数项 | 描述 | | ||
| 1521 | +| -- | -- | | ||
| 1522 | +| [ArkUI_SwiperIndicator](capi-arkui-nativemodule-arkui-swiperindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 1523 | + | ||
| 1524 | +**返回:** | ||
| 1525 | + | ||
| 1526 | +| 类型 | 说明 | | ||
| 1527 | +| -- | -- | | ||
| 1528 | +| float | 导航点间距。单位:vp。 | | ||
| 1529 | + | ||
| 1530 | +### OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom() | ||
| 1531 | + | ||
| 1532 | +```c | ||
| 1533 | +void OH_ArkUI_SwiperDigitIndicator_SetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator, int32_t ignoreSize) | ||
| 1534 | +``` | ||
| 1535 | + | ||
| 1536 | +**描述** | ||
| 1537 | + | ||
| 1538 | +设置OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 1539 | + | ||
| 1540 | +**起始版本:** 19 | ||
| 1541 | + | ||
| 1542 | +**参数:** | ||
| 1543 | + | ||
| 1544 | +| 参数项 | 描述 | | ||
| 1545 | +| -- | -- | | ||
| 1546 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 1547 | +| int32_t ignoreSize | 是否忽略导航点大小。1表示忽略导航点大小,0表示不忽略,默认值0。 | | ||
| 1548 | + | ||
| 1549 | +### OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom() | ||
| 1550 | + | ||
| 1551 | +```c | ||
| 1552 | +int32_t OH_ArkUI_SwiperDigitIndicator_GetIgnoreSizeOfBottom(ArkUI_SwiperDigitIndicator* indicator) | ||
| 1553 | +``` | ||
| 1554 | + | ||
| 1555 | +**描述** | ||
| 1556 | + | ||
| 1557 | +获取OH_ArkUI_SwiperDigitIndicator_SetBottomPosition是否忽略导航点大小。 | ||
| 1558 | + | ||
| 1559 | +**起始版本:** 19 | ||
| 1560 | + | ||
| 1561 | +**参数:** | ||
| 1562 | + | ||
| 1563 | +| 参数项 | 描述 | | ||
| 1564 | +| -- | -- | | ||
| 1565 | +| [ArkUI_SwiperDigitIndicator](capi-arkui-nativemodule-arkui-swiperdigitindicator.md)* indicator | 导航指示器对象指针。 | | ||
| 1566 | + | ||
| 1567 | +**返回:** | ||
| 1568 | + | ||
| 1569 | +| 类型 | 说明 | | ||
| 1570 | +| -- | -- | | ||
| 1571 | +| int32_t | 是否忽略导航点大小。 | | ||
| 1572 | + | ||
| 1573 | + | ||
新增文档添加readme目录。