OH_ArkUI_UIInputEvent_GetEventTargetHeight

Function OH_ArkUI_UIInputEvent_GetEventTargetHeight 

Source
pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetEventTargetHeight(
    event: *const ArkUI_UIInputEvent,
) -> f32
Available on crate features api-12 and api-17 only.
Expand description

Obtains the height of the component hit by an event.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

§Returns

  • Returns the height of the component hit by the event; returns 0.0f if any parameter error occurs.

Available since API-level: 17