pub unsafe extern "C" fn OH_ArkUI_PointerEvent_SetClonedEventLocalPosition(
event: *const ArkUI_UIInputEvent,
x: f32,
y: f32,
) -> i32Available on crate features
api-12 and api-15 only.Expand description
Sets the X and Y coordinates 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.
§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