diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 92126f66d37869788db81eb6fd7ffa705b37e039..fe5815938c979761592d9ed6b840284adbd3fe4b 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -827,7 +827,20 @@ typedef enum { * considered during the hit test. */ ARKUI_HIT_TEST_MODE_TRANSPARENT, /** The node does not respond to the hit test of a touch event. */ - ARKUI_HIT_TEST_MODE_NONE + ARKUI_HIT_TEST_MODE_NONE, + /** + * Blocks all lower priority siblings and parents node from receiving the event. + * + * @since 20 + */ + ARKUI_HIT_TEST_MODE_BLOCK_HIERARCHY, + /** + * Self not respond to the hit test for touch events, + * and all descebdants (children, grandchildren, etc.) not respond to the hit test for touch events too. + * + * @since 20 + */ + ARKUI_HIT_TEST_MODE_BLOCK_DESCENDANTS, } ArkUI_HitTestMode; /** diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index fac4d040d1a31ca20eb17f5dc256ca37526d3917..12eb78d1b217695edd61c5cdc4aa9d37df10c5e4 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -149,6 +149,21 @@ typedef enum { * during the hit test. */ HTM_NONE, + + /** + * Blocks all lower priority siblings and parents node from receiving the event. + * + * @since 20 + */ + HTMBLOCK_HIERARCHY, + + /** + * Self not respond to the hit test for touch events, + * and all descebdants (children, grandchildren, etc.) not respond to the hit test for touch events too. + * + * @since 20 + */ + HTMBLOCK_DESCENDANTS, } HitTestMode; /**