diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index f83f1a181ac76ff83c6715222ed08f405ff01032..5b26bf0033795f6ad79cc03f04c88a744b5672c7 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -5713,6 +5713,16 @@ typedef enum { * @since 14 */ NODE_ON_KEY_PRE_IME = 22, + /** + * @brief Defines the event triggered when the bound component receives an axis event. + * + * The event callback is triggered when the bound component receives an axis event. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_UIInputEvent}. \n + * + * @since 16 + */ + NODE_ON_AXIS = 24, /** * @brief Triggers onDetectResultUpdate callback diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index 9b5aa63fb4325fb3738daad39944ebdfe1fcc7fa..ee7249f794a54835839316f3499a332fc0439a05 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -740,6 +740,27 @@ int32_t OH_ArkUI_UIInputEvent_GetDeviceId(const ArkUI_UIInputEvent* event); */ int32_t OH_ArkUI_UIInputEvent_GetPressedKeys(const ArkUI_UIInputEvent* event, int32_t* pressedKeyCodes, int32_t length); +/** + * @brief Sets whether to active event bubbling. + * + * @param event Indicates the pointer to the current UI input event. + * @param propagation Indicates whether the event is activated from bubbling. + * @return Returns the status code of the execution. + * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if the event parameter is abnormal, such as a null pointer. + * @since 16 + */ +int32_t OH_ArkUI_AxisEvent_SetPropagation(const ArkUI_UIInputEvent* event, bool propagation); + +/** + * @brief Obtains the mouse wheel axis scroll step configuration. + * + * @param event Pointer to an ArkUI_UIInputEvent object. + * @return Returns the mouse wheel axis scroll step configuration. + * @since 16 + */ +int32_t OH_ArkUI_AxisEvent_GetScrollStep(const ArkUI_UIInputEvent* event); + #ifdef __cplusplus }; #endif