diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index da165688c9c2d8018040234877077c558b795371..3a15977129a3b91afc05d88d57eb186682e24f92 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -835,6 +835,10 @@ "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_SetEnd" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_SetCenterHorizontal" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_SetTop" @@ -843,6 +847,10 @@ "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_SetBottom" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_SetCenterVertical" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_SetBiasHorizontal" @@ -855,18 +863,50 @@ "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_GetStartId" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetStartAlignment" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_GetEndId" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetEndAlignment" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetCenterIdHorizontal" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentHorizontal" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_GetTopId" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetTopAlignment" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_GetBottomId" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetBottomAlignment" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetCenterIdVertical" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentVertical" + }, { "first_introduced": "12", "name": "OH_ArkUI_AlignmentRuleOption_GetBiasHorizontal" diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index f9044344279c6e75850cd0471a679bab440a3639..71a268f5efec8b46bebb91d323d7629739860823 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2505,6 +2505,16 @@ void OH_ArkUI_AlignmentRuleOption_SetStart( void OH_ArkUI_AlignmentRuleOption_SetEnd( ArkUI_AlignmentRuleOption* option, const char* id, ArkUI_HorizontalAlignment alignment); +/** +* @brief Set the parameters for horizontal center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @param id The id value of the anchor component. +* @param value Alignment relative to anchor component +* @since 12 +*/ +void OH_ArkUI_AlignmentRuleOption_SetCenterHorizontal( + ArkUI_AlignmentRuleOption* option, const char* id, ArkUI_HorizontalAlignment alignment); /** * @brief Set the parameters for top alignment. @@ -2528,6 +2538,17 @@ void OH_ArkUI_AlignmentRuleOption_SetTop(ArkUI_AlignmentRuleOption* option, cons void OH_ArkUI_AlignmentRuleOption_SetBottom( ArkUI_AlignmentRuleOption* option, const char* id, ArkUI_VerticalAlignment alignment); +/** +* @brief Set the parameters for vertical center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @param id The id value of the anchor component. +* @param value Alignment relative to the anchor component. +* @since 12 +*/ +void OH_ArkUI_AlignmentRuleOption_SetCenterVertical( + ArkUI_AlignmentRuleOption* option, const char* id, ArkUI_VerticalAlignment alignment); + /** * @brief Sets the horizontal offset parameter of the component under the anchor point constraint. * @@ -2555,6 +2576,15 @@ void OH_ArkUI_AlignmentRuleOption_SetBiasVertical(ArkUI_AlignmentRuleOption* opt */ const char* OH_ArkUI_AlignmentRuleOption_GetStartId(ArkUI_AlignmentRuleOption* option); +/** +* @brief Gets the alignment of the start-aligned parameter. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the parameters. +* @since 12 +*/ +ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetStartAlignment(ArkUI_AlignmentRuleOption* option); + /** * @brief Get the end alignment parameter. * @@ -2564,6 +2594,33 @@ const char* OH_ArkUI_AlignmentRuleOption_GetStartId(ArkUI_AlignmentRuleOption* o */ const char* OH_ArkUI_AlignmentRuleOption_GetEndId(ArkUI_AlignmentRuleOption* option); +/** +* @brief Get the end alignment parameter. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the end-aligned parameter. +* @since 12 +*/ +ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetEndAlignment(ArkUI_AlignmentRuleOption* option); + +/** +* @brief Gets the parameters of horizontal center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The id of the parameter of horizontal center alignment. +* @since 12 +*/ +const char* OH_ArkUI_AlignmentRuleOption_GetCenterIdHorizontal(ArkUI_AlignmentRuleOption* option); + +/** +* @brief Gets the parameters of horizontal center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the horizontally centered alignment parameter. +* @since 12 +*/ +ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentHorizontal(ArkUI_AlignmentRuleOption* option); + /** * @brief Get the top-aligned parameters. * @@ -2573,6 +2630,15 @@ const char* OH_ArkUI_AlignmentRuleOption_GetEndId(ArkUI_AlignmentRuleOption* opt */ const char* OH_ArkUI_AlignmentRuleOption_GetTopId(ArkUI_AlignmentRuleOption* option); +/** +* @brief Get the top-aligned parameters. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the top-aligned parameter. +* @since 12 +*/ +ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetTopAlignment(ArkUI_AlignmentRuleOption* option); + /** * @brief Get the bottom alignment parameters. * @@ -2582,6 +2648,33 @@ const char* OH_ArkUI_AlignmentRuleOption_GetTopId(ArkUI_AlignmentRuleOption* opt */ const char* OH_ArkUI_AlignmentRuleOption_GetBottomId(ArkUI_AlignmentRuleOption* option); +/** +* @brief Get the bottom alignment parameters. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the bottom-aligned parameter. +* @since 12 +*/ +ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetBottomAlignment(ArkUI_AlignmentRuleOption* option); + +/** +* @brief Gets the parameters of vertical center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The id of the vertical center alignment parameter. +* @since 12 +*/ +const char* OH_ArkUI_AlignmentRuleOption_GetCenterIdVertical(ArkUI_AlignmentRuleOption* option); + +/** +* @brief Gets the parameters of vertical center alignment. +* +* @param option Alignment rule information of subcomponents in the relative container. +* @return The alignment of the vertical center alignment parameter. +* @since 12 +*/ +ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentVertical(ArkUI_AlignmentRuleOption* option); + /** * @brief Get the bias value in the horizontal direction. *