diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 1b751b6d07ba453ef40fd692f2e55ef9289dd6f2..1570fad62849472724f4183d30ec9ddefe41927d 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -6471,6 +6471,17 @@ typedef enum { */ NODE_DISPATCH_KEY_EVENT = 24, + /** + * @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 = 25, + /** * @brief Triggers onDetectResultUpdate callback * when the text is set to TextDataDetectorConfig and recognized successfully. diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index 1cc31e0f22aa6ba48dd8a01a7d8561a1e5ee5965..ab9c0a095505d0254988e3c46dee9788418e1b50 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -887,6 +887,28 @@ int32_t OH_ArkUI_MouseEvent_GetPressedButtons( */ int32_t OH_ArkUI_UIInputEvent_GetTargetDisplayId(const ArkUI_UIInputEvent* event); +/** + * @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