pub unsafe extern "C" fn OH_Input_CustomCursor_GetAnchor(
customCursor: *mut Input_CustomCursor,
anchorX: *mut i32,
anchorY: *mut i32,
) -> Input_ResultAvailable on crate feature
api-22 only.Expand description
Obtains the anchor of the CustomCursor.
§Arguments
-
customCursor- Pointer to anInput_CustomCursorobject. -
anchorX- Pointer to horizontal coordinate of the cursor focus. -
anchorY- Pointer to vertical coordinate of the cursor focus.
§Returns
- OH_Input_CustomCursor_GetAnchor function result code.
[
INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] The customCursor is NULL.
Available since API-level: 22