Skip to main content

OH_Input_CustomCursor_GetAnchor

Function OH_Input_CustomCursor_GetAnchor 

Source
pub unsafe extern "C" fn OH_Input_CustomCursor_GetAnchor(
    customCursor: *mut Input_CustomCursor,
    anchorX: *mut i32,
    anchorY: *mut i32,
) -> Input_Result
Available on crate feature api-22 only.
Expand description

Obtains the anchor of the CustomCursor.

§Arguments

  • customCursor - Pointer to an Input_CustomCursor object.

  • 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