OH_ArkUI_PointerEvent_SetClonedEventLocalPositionByIndex

Function OH_ArkUI_PointerEvent_SetClonedEventLocalPositionByIndex 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_SetClonedEventLocalPositionByIndex(
    event: *const ArkUI_UIInputEvent,
    x: f32,
    y: f32,
    pointerIndex: i32,
) -> i32
Available on crate features api-12 and api-15 only.
Expand description

Sets the X and Y coordinates of a specific contact point of a cloned event relative to the upper left corner of the current component.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

  • x - X coordinate of the event relative to the upper left corner of the current component.

  • y - Y coordinate of the event relative to the upper left corner of the current component.

  • pointerIndex - Index of the target touch point in the multi-touch data list.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs. Returns [ARKUI_ERROR_CODE_NON_CLONED_POINTER_EVENT] if the input event pointer is not a cloned event pointer.

Available since API-level: 15