From d96a35e7fba286ede875bc597872e48669657ef9 Mon Sep 17 00:00:00 2001 From: luoweibin Date: Fri, 20 Jun 2025 23:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=A7=84=E8=8C=83=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: luoweibin Change-Id: I1a92287d8554eb75097476b4233b98cd89e495be --- arkui/ace_engine/native/native_node.h | 116 +++---- arkui/ace_engine/native/native_type.h | 436 +++++++++++++------------- 2 files changed, 276 insertions(+), 276 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 0b18b223f..ea18549dd 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -5372,20 +5372,20 @@ typedef enum { NODE_SCROLL_FLING, /** - * @brief Sets the fading effect for the edges of scrollable components. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: - * .value[0].i32: whether to enable the fading effect on edges. The value 0 means to disable the fading effect, - * and 1 means to enable it. - * .value[1]?.f32: length of the fading effect on edges, in vp. Default value: 32. - * - * Format of the return value {@link ArkUI_AttributeItem}: - * .value[0].i32: whether the fading effect on edges is enabled. The value 0 means that the fading effect is - * disabled, and 1 means that it is enabled. - * .value[1].f32: length of the fading effect on edges, in vp. - * - * @since 14 - */ + * @brief Sets the fading effect for the edges of scrollable components. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: + * .value[0].i32: whether to enable the fading effect on edges. The value 0 means to disable the fading effect, + * and 1 means to enable it. + * .value[1]?.f32: length of the fading effect on edges, in vp. Default value: 32. + * + * Format of the return value {@link ArkUI_AttributeItem}: + * .value[0].i32: whether the fading effect on edges is enabled. The value 0 means that the fading effect is + * disabled, and 1 means that it is enabled. + * .value[1].f32: length of the fading effect on edges, in vp. + * + * @since 14 + */ NODE_SCROLL_FADING_EDGE, /** @@ -5583,7 +5583,7 @@ typedef enum { * Format of the return value {@link ArkUI_AttributeItem}:\n * .value[0].i32: alignment mode of list items along the cross axis. * The parameter type is {@link ArkUI_ListItemAlignment}. \n - */ + */ NODE_LIST_ALIGN_LIST_ITEM, /** @@ -6428,27 +6428,27 @@ typedef enum { NODE_WATER_FLOW_SECTION_OPTION, /** - * @brief Defines the water flow adapter. The attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n - */ + * @brief Defines the water flow adapter. The attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n + */ NODE_WATER_FLOW_NODE_ADAPTER, /** - * @brief Sets the number of cached items in the water flow adapter. - * This attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * value[0].i32:number of cached items in the water flow adapter. \n - * .value[1]?.i32:whether to the cached items will be displayed, 0: not displayed, 1: displayed, default value: 0. - * This parameter is supported since API version 16. \n - * \n - * Format of the return value {@link ArkUI_AttributeItem}:\n - * .value[0].i32: number of cached items in the water flow adapter. \n - * .value[1].i32: whether to the cached items will be displayed, 0: not displayed, 1: displayed, default value: 0. - * This parameter is supported since API version 16. \n - */ + * @brief Sets the number of cached items in the water flow adapter. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * value[0].i32:number of cached items in the water flow adapter. \n + * .value[1]?.i32:whether to the cached items will be displayed, 0: not displayed, 1: displayed, default value: 0. + * This parameter is supported since API version 16. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: number of cached items in the water flow adapter. \n + * .value[1].i32: whether to the cached items will be displayed, 0: not displayed, 1: displayed, default value: 0. + * This parameter is supported since API version 16. \n + */ NODE_WATER_FLOW_CACHED_COUNT, /** @@ -6597,36 +6597,36 @@ typedef enum { NODE_GRID_ROW_GAP, /** - * @brief Defines the grid adapter. The attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n - */ + * @brief Defines the grid adapter. The attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .object: {@link ArkUI_NodeAdapter} object as the adapter. \n + */ NODE_GRID_NODE_ADAPTER, /** - * @brief Sets the number of cached items in the grid adapter. - * This attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0].i32: number of cached items in the grid adapter. \n - */ + * @brief Sets the number of cached items in the grid adapter. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: number of cached items in the grid adapter. \n + */ NODE_GRID_CACHED_COUNT, /** - * @brief Defines the focus wrap mode for the Grid component. - * This attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0].i32: focus wrap mode of the Grid component. - * The parameter type is {@link ArkUI_FocusWrapMode}. \n - * \n - * Format of the return value {@link ArkUI_AttributeItem}:\n - * .value[0].i32: focus wrap mode of the Grid component. - * The parameter type is {@link ArkUI_FocusWrapMode}. \n - * - * @since 20 - */ + * @brief Defines the focus wrap mode for the Grid component. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: focus wrap mode of the Grid component. + * The parameter type is {@link ArkUI_FocusWrapMode}. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: focus wrap mode of the Grid component. + * The parameter type is {@link ArkUI_FocusWrapMode}. \n + * + * @since 20 + */ NODE_GRID_FOCUS_WRAP_MODE = 1013006, /** @@ -7901,7 +7901,7 @@ typedef enum { * ArkUI_NodeComponentEvent.data[1].f32: The offset of each frame scrolling, with a positive offset when * scrolling up and a negative offset when scrolling down, measured in vp. \n * ArkUI_NodeComponentEvent.data[2].i32: Current sliding state, \n - parameter type is {@link ArkUI_ScrollState}. \n + * parameter type is {@link ArkUI_ScrollState}. \n */ NODE_SCROLL_EVENT_ON_DID_SCROLL, diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 14df29f5c..d66cfe121 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -183,7 +183,7 @@ typedef struct ArkUI_BarrierOption ArkUI_BarrierOption; * @brief Define the ChildrenMainSize class information for a List. * * @since 12 -*/ + */ typedef struct ArkUI_ListChildrenMainSize ArkUI_ListChildrenMainSize; /** @@ -1796,7 +1796,7 @@ typedef enum { /** * @brief Enumerates the alignment modes of items along the cross axis. - * + * * @since 12 */ typedef enum { @@ -2856,173 +2856,173 @@ void* OH_ArkUI_DrawContext_GetCanvas(ArkUI_DrawContext* context); ArkUI_IntSize OH_ArkUI_DrawContext_GetSize(ArkUI_DrawContext* context); /** -* @brief Creates water flow section configuration. -* -* @return Returns the water flow section configuration. -* @since 12 -*/ + * @brief Creates water flow section configuration. + * + * @return Returns the water flow section configuration. + * @since 12 + */ ArkUI_WaterFlowSectionOption* OH_ArkUI_WaterFlowSectionOption_Create(); /** -* @brief Destroys the pointer to a water flow section configuration. -* -* @param option Indicates the pointer to a water flow section configuration. -* @since 12 -*/ + * @brief Destroys the pointer to a water flow section configuration. + * + * @param option Indicates the pointer to a water flow section configuration. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_Dispose(ArkUI_WaterFlowSectionOption* option); /** -* @brief Sets the FlowItem block configuration information array length. -* -* @param option FlowItem Indicates the packet configuration. -* @param size Array Length. -* @since 12 -*/ + * @brief Sets the FlowItem block configuration information array length. + * + * @param option FlowItem Indicates the packet configuration. + * @param size Array Length. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetSize(ArkUI_WaterFlowSectionOption* option, int32_t size); /** -* @brief Gets the FlowItem grouping configuration information array length. -* -* @param option FlowItem Indicates the packet configuration. -* @return Array size. If -1 is returned, the return fails. -* The possible cause of the failure is that the option parameter is abnormal, such as a null pointer. -* @since 12 -*/ + * @brief Gets the FlowItem grouping configuration information array length. + * + * @param option FlowItem Indicates the packet configuration. + * @return Array size. If -1 is returned, the return fails. + * The possible cause of the failure is that the option parameter is abnormal, such as a null pointer. + * @since 12 + */ int32_t OH_ArkUI_WaterFlowSectionOption_GetSize(ArkUI_WaterFlowSectionOption* option); /** -* @brief Sets the number of items in a water flow section. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param itemCount Indicates the number of items in the water flow section. -* @since 12 -*/ + * @brief Sets the number of items in a water flow section. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param itemCount Indicates the number of items in the water flow section. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t itemCount); /** -* @brief Obtains the number of items in the water flow section that matches the specified index. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @return Returns the number of items in the water flow section. -* @since 12 -*/ + * @brief Obtains the number of items in the water flow section that matches the specified index. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @return Returns the number of items in the water flow section. + * @since 12 + */ int32_t OH_ArkUI_WaterFlowSectionOption_GetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index); /** -* @brief The FlowItem grouping configuration information getsthe spindle size of -* the specified Item based on flowItemIndex. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param callback Gets the spindle size of the specified Item based on index. -* @since 12 -*/ + * @brief The FlowItem grouping configuration information getsthe spindle size of + * the specified Item based on flowItemIndex. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param callback Gets the spindle size of the specified Item based on index. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_RegisterGetItemMainSizeCallbackByIndex(ArkUI_WaterFlowSectionOption* option, int32_t index, float(*callback)(int32_t itemIndex)); /** -* @brief The FlowItem grouping configuration information getsthe spindle size of -* the specified Item based on flowItemIndex. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param userData FlowItem Custom data. -* @param callback Gets the spindle size of the specified Item based on index. -* @since 12 -*/ + * @brief The FlowItem grouping configuration information getsthe spindle size of + * the specified Item based on flowItemIndex. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param userData FlowItem Custom data. + * @param callback Gets the spindle size of the specified Item based on index. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_RegisterGetItemMainSizeCallbackByIndexWithUserData( ArkUI_WaterFlowSectionOption* option, int32_t index, void* userData, float (*callback)(int32_t itemIndex, void* userData)); /** -* @brief Sets the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param crossCount Indicates the number of columns or rows, depending on the layout direction. -* @since 12 -*/ + * @brief Sets the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param crossCount Indicates the number of columns or rows, depending on the layout direction. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetCrossCount( ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t crossCount); /** -* @brief Obtains the number of columns (in a vertical layout) or rows (in a horizontal layout) in the water flow section -* that matches the specified index. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @return Returns the number of columns or rows. -* @since 12 -*/ + * @brief Obtains the number of columns (in a vertical layout) or rows (in a horizontal layout) in the water flow section + * that matches the specified index. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @return Returns the number of columns or rows. + * @since 12 + */ int32_t OH_ArkUI_WaterFlowSectionOption_GetCrossCount(ArkUI_WaterFlowSectionOption* option, int32_t index); /** -* @brief Sets the gap between columns in the specified water flow section. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param columnGap Indicates the gap between columns to set. -* @since 12 -*/ + * @brief Sets the gap between columns in the specified water flow section. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param columnGap Indicates the gap between columns to set. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetColumnGap(ArkUI_WaterFlowSectionOption* option, int32_t index, float columnGap); /** -* @brief Obtains the gap between columns in the water flow section that matches the specified index. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @return Returns the gap between columns. -* @since 12 -*/ + * @brief Obtains the gap between columns in the water flow section that matches the specified index. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @return Returns the gap between columns. + * @since 12 + */ float OH_ArkUI_WaterFlowSectionOption_GetColumnGap(ArkUI_WaterFlowSectionOption* option, int32_t index); /** -* @brief Sets the gap between rows in the specified water flow section. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param rowGap Indicates the gap between rows to set. -* @since 12 -*/ + * @brief Sets the gap between rows in the specified water flow section. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param rowGap Indicates the gap between rows to set. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetRowGap(ArkUI_WaterFlowSectionOption* option, int32_t index, float rowGap); /** -* @brief Obtains the gap between rows in the water flow section that matches the specified index. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @return Returns the gap between rows. -* @since 12 -*/ + * @brief Obtains the gap between rows in the water flow section that matches the specified index. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @return Returns the gap between rows. + * @since 12 + */ float OH_ArkUI_WaterFlowSectionOption_GetRowGap(ArkUI_WaterFlowSectionOption* option, int32_t index); /** -* @brief Sets the margins for the specified water flow section. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @param marginTop Indicates the top margin of the water flow section. -* @param marginRight Indicates the right margin of the water flow section. -* @param marginBottom Indicates the bottom margin of the water flow section. -* @param marginLeft Indicates the left margin of the water flow section. -* @since 12 -*/ + * @brief Sets the margins for the specified water flow section. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @param marginTop Indicates the top margin of the water flow section. + * @param marginRight Indicates the right margin of the water flow section. + * @param marginBottom Indicates the bottom margin of the water flow section. + * @param marginLeft Indicates the left margin of the water flow section. + * @since 12 + */ void OH_ArkUI_WaterFlowSectionOption_SetMargin(ArkUI_WaterFlowSectionOption* option, int32_t index, float marginTop, float marginRight, float marginBottom, float marginLeft); /** -* @brief Obtains the margins of the water flow section that matches the specified index. -* -* @param option Indicates the pointer to a water flow section configuration. -* @param index Indicates the index of the target water flow section. -* @return Returns the margins. -* @since 12 -*/ + * @brief Obtains the margins of the water flow section that matches the specified index. + * + * @param option Indicates the pointer to a water flow section configuration. + * @param index Indicates the index of the target water flow section. + * @return Returns the margins. + * @since 12 + */ ArkUI_Margin OH_ArkUI_WaterFlowSectionOption_GetMargin(ArkUI_WaterFlowSectionOption* option, int32_t index); /** @@ -4072,52 +4072,52 @@ float OH_ArkUI_AlignmentRuleOption_GetBiasVertical(ArkUI_AlignmentRuleOption* op * @return List Item SwipeActionItem configuration item instance. If the object returns a null pointer, * it indicates creation failure, and the reason for the failure may be that the address space is full. * @since 12 -*/ + */ ArkUI_ListItemSwipeActionItem* OH_ArkUI_ListItemSwipeActionItem_Create(); /** -* @brief Destroy the ListitemSwipeActionItem instance. -* -* @param item List Item SwipeActionItem instance to be destroyed. -* @since 12 -*/ + * @brief Destroy the ListitemSwipeActionItem instance. + * + * @param item List Item SwipeActionItem instance to be destroyed. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_Dispose(ArkUI_ListItemSwipeActionItem* item); /** -* @brief Set the layout content of ListItem SwipeActionItem. -* -* @param item List Item SwipeActionItem instance. -* @param node Layout information. -* @since 12 -*/ + * @brief Set the layout content of ListItem SwipeActionItem. + * + * @param item List Item SwipeActionItem instance. + * @param node Layout information. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetContent(ArkUI_ListItemSwipeActionItem* item, ArkUI_NodeHandle node); /** -* @brief Set the threshold for long-distance sliding deletion distance of components. -* -* @param item List Item SwipeActionItem instance. -* @param distance Component long-distance sliding deletion distance threshold. -* @since 12 -*/ + * @brief Set the threshold for long-distance sliding deletion distance of components. + * + * @param item List Item SwipeActionItem instance. + * @param distance Component long-distance sliding deletion distance threshold. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetActionAreaDistance(ArkUI_ListItemSwipeActionItem* item, float distance); /** -* @brief Obtain the threshold for long-distance sliding deletion distance of components. -* -* @param item List Item SwipeActionItem instance. -* @return Component long-distance sliding deletion distance threshold. If -1.0f is returned, the return fails. -* The possible cause of the failure is that the item parameter is abnormal, such as a null pointer. -* @since 12 -*/ + * @brief Obtain the threshold for long-distance sliding deletion distance of components. + * + * @param item List Item SwipeActionItem instance. + * @return Component long-distance sliding deletion distance threshold. If -1.0f is returned, the return fails. + * The possible cause of the failure is that the item parameter is abnormal, such as a null pointer. + * @since 12 + */ float OH_ArkUI_ListItemSwipeActionItem_GetActionAreaDistance(ArkUI_ListItemSwipeActionItem* item); /** -* @brief Set the event to be called when a sliding entry enters the deletion area. -* -* @param item List Item SwipeActionItem instance. -* @param callback Callback Events. -* @since 12 -*/ + * @brief Set the event to be called when a sliding entry enters the deletion area. + * + * @param item List Item SwipeActionItem instance. + * @param callback Callback Events. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetOnEnterActionArea(ArkUI_ListItemSwipeActionItem* item, void (*callback)()); /** @@ -4132,12 +4132,12 @@ void OH_ArkUI_ListItemSwipeActionItem_SetOnEnterActionAreaWithUserData(ArkUI_Lis void* userData, void (*callback)(void* userData)); /** -* @brief Set the event to be called when a component enters the long-range deletion area and deletes a ListItem. -* -* @param item List Item SwipeActionItem instance. -* @param callback Callback Events. -* @since 12 -*/ + * @brief Set the event to be called when a component enters the long-range deletion area and deletes a ListItem. + * + * @param item List Item SwipeActionItem instance. + * @param callback Callback Events. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetOnAction(ArkUI_ListItemSwipeActionItem* item, void (*callback)()); /** @@ -4152,12 +4152,12 @@ void OH_ArkUI_ListItemSwipeActionItem_SetOnActionWithUserData(ArkUI_ListItemSwip void* userData, void (*callback)(void* userData)); /** -* @brief Set the event to be called when a sliding entry exits the deletion area. -* -* @param item List Item SwipeActionItem instance. -* @param callback Callback Events. -* @since 12 -*/ + * @brief Set the event to be called when a sliding entry exits the deletion area. + * + * @param item List Item SwipeActionItem instance. + * @param callback Callback Events. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetOnExitActionArea(ArkUI_ListItemSwipeActionItem* item, void (*callback)()); /** @@ -4172,13 +4172,13 @@ void OH_ArkUI_ListItemSwipeActionItem_SetOnExitActionAreaWithUserData(ArkUI_List void* userData, void (*callback)(void* userData)); /** -* @brief Set the event triggered when the sliding state of a list item changes. -* -* @param item List Item SwipeActionItem instance. -* @param callback Callback Events. -* swipeActionState The changed state. -* @since 12 -*/ + * @brief Set the event triggered when the sliding state of a list item changes. + * + * @param item List Item SwipeActionItem instance. + * @param callback Callback Events. + * swipeActionState The changed state. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionItem_SetOnStateChange(ArkUI_ListItemSwipeActionItem* item, void (*callback)(ArkUI_ListItemSwipeActionState swipeActionState)); @@ -4200,67 +4200,67 @@ void OH_ArkUI_ListItemSwipeActionItem_SetOnStateChangeWithUserData(ArkUI_ListIte * @return List Item SwipeActionOption configuration item instance.If the object returns a null pointer, * it indicates a creation failure, and the reason for the failure may be that the address space is full. * @since 12 -*/ + */ ArkUI_ListItemSwipeActionOption* OH_ArkUI_ListItemSwipeActionOption_Create(); /** -* @brief Destroy the ListitemSwipeActionOption instance. -* -* @param option List Item SwipeActionOption instance to be destroyed. -* @since 12 -*/ + * @brief Destroy the ListitemSwipeActionOption instance. + * + * @param option List Item SwipeActionOption instance to be destroyed. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionOption_Dispose(ArkUI_ListItemSwipeActionOption* option); /** -* @brief Set the layout content on the left (vertical layout) or top (horizontal layout) -* of the ListItem SwipeActionItem. -* -* @param option List Item SwipeActionItem instance. -* @param item Layout information. -* @since 12 -*/ + * @brief Set the layout content on the left (vertical layout) or top (horizontal layout) + * of the ListItem SwipeActionItem. + * + * @param option List Item SwipeActionItem instance. + * @param item Layout information. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionOption_SetStart(ArkUI_ListItemSwipeActionOption* option, ArkUI_ListItemSwipeActionItem* item); /** -* @brief Set the layout content on the right (vertical layout) or bottom (horizontal layout) -* of the ListItem SwipeActionItem. -* -* @param option List Item SwipeActionItem instance. -* @param item Layout information. -* @since 12 -*/ + * @brief Set the layout content on the right (vertical layout) or bottom (horizontal layout) + * of the ListItem SwipeActionItem. + * + * @param option List Item SwipeActionItem instance. + * @param item Layout information. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionOption_SetEnd(ArkUI_ListItemSwipeActionOption* option, ArkUI_ListItemSwipeActionItem* item); /** -* @brief Set the sliding effect. -* -* @param option List Item SwipeActionItem instance. -* @param edgeEffect Sliding effect. -* @since 12 -*/ + * @brief Set the sliding effect. + * + * @param option List Item SwipeActionItem instance. + * @param edgeEffect Sliding effect. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionOption_SetEdgeEffect(ArkUI_ListItemSwipeActionOption* option, ArkUI_ListItemSwipeEdgeEffect edgeEffect); /** -* @brief Get the sliding effect. -* -* @param option List Item SwipeActionItem instance. -* @return Sliding effect. The default return value is 0. If -1 is returned, the return fails. -* The possible cause of the failure is that the option parameter is abnormal, such as a null pointer. -* @since 12 -*/ + * @brief Get the sliding effect. + * + * @param option List Item SwipeActionItem instance. + * @return Sliding effect. The default return value is 0. If -1 is returned, the return fails. + * The possible cause of the failure is that the option parameter is abnormal, such as a null pointer. + * @since 12 + */ int32_t OH_ArkUI_ListItemSwipeActionOption_GetEdgeEffect(ArkUI_ListItemSwipeActionOption* option); /** -* @brief The event called when the sliding operation offset changes. -* -* @param option List Item SwipeActionItem instance. -* @param callback Callback Events. -* offset Slide offset. -* @since 12 -*/ + * @brief The event called when the sliding operation offset changes. + * + * @param option List Item SwipeActionItem instance. + * @param callback Callback Events. + * offset Slide offset. + * @since 12 + */ void OH_ArkUI_ListItemSwipeActionOption_SetOnOffsetChange(ArkUI_ListItemSwipeActionOption* option, void (*callback)(float offset)); @@ -4282,15 +4282,15 @@ void OH_ArkUI_ListItemSwipeActionOption_SetOnOffsetChangeWithUserData(ArkUI_List * @return ListChildrenMainSize configuration item instance.If the object returns a null pointer, * it indicates a creation failure, and the reason for the failure may be that the address space is full. * @since 12 -*/ + */ ArkUI_ListChildrenMainSize* OH_ArkUI_ListChildrenMainSizeOption_Create(); /** -* @brief Destroy the ListChildrenMainSize instance. -* -* @param option The ListChildrenMainSize instance to be destroyed. -* @since 12 -*/ + * @brief Destroy the ListChildrenMainSize instance. + * + * @param option The ListChildrenMainSize instance to be destroyed. + * @since 12 + */ void OH_ArkUI_ListChildrenMainSizeOption_Dispose(ArkUI_ListChildrenMainSize* option); /** @@ -4300,7 +4300,7 @@ void OH_ArkUI_ListChildrenMainSizeOption_Dispose(ArkUI_ListChildrenMainSize* opt * @param defaultMainSize The default size of the ListItem under the List, measured in vp. * @return 0 represents success. If defaultMainSize is less than 0 or option is a null pointer, return 401. * @since 12 -*/ + */ int32_t OH_ArkUI_ListChildrenMainSizeOption_SetDefaultMainSize(ArkUI_ListChildrenMainSize* option, float defaultMainSize); @@ -4311,7 +4311,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_SetDefaultMainSize(ArkUI_ListChildre * @return The default size of the ListItem under the List is 0, measured in vp. * When the option is a null pointer, it returns -1. * @since 12 -*/ + */ float OH_ArkUI_ListChildrenMainSizeOption_GetDefaultMainSize(ArkUI_ListChildrenMainSize* option); /** @@ -4320,7 +4320,7 @@ float OH_ArkUI_ListChildrenMainSizeOption_GetDefaultMainSize(ArkUI_ListChildrenM * @param option ListChildrenMainSize instance. * @param totalSize Array size. * @since 12 -*/ + */ void OH_ArkUI_ListChildrenMainSizeOption_Resize(ArkUI_ListChildrenMainSize* option, int32_t totalSize); /** @@ -4332,7 +4332,7 @@ void OH_ArkUI_ListChildrenMainSizeOption_Resize(ArkUI_ListChildrenMainSize* opti * @param addCount The number of MainSize arrays to be added starting from index. * @return 0 represents success. If the function parameter is abnormal, return 401. * @since 12 -*/ + */ int32_t OH_ArkUI_ListChildrenMainSizeOption_Splice(ArkUI_ListChildrenMainSize* option, int32_t index, int32_t deleteCount, int32_t addCount); @@ -4344,7 +4344,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_Splice(ArkUI_ListChildrenMainSize* o * @param mainSize The actual modified value. * @return 0 represents success. If the function parameter is abnormal, return 401. * @since 12 -*/ + */ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(ArkUI_ListChildrenMainSize* option, int32_t index, float mainSize); @@ -4355,7 +4355,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(ArkUI_ListChildrenMainSiz * @param index The index position of the value to be obtained. * @return The value of the specific position of the array. If the function parameter is abnormal, return -1. * @since 12 -*/ + */ float OH_ArkUI_ListChildrenMainSizeOption_GetMainSize(ArkUI_ListChildrenMainSize* option, int32_t index); /** -- Gitee