Skip to main content

OH_Input_CustomCursor_Create

Function OH_Input_CustomCursor_Create 

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

Creates a CustomCursor object.

§Arguments

  • pixelMap - Pointer to a OH_PixelmapNative object.

  • anchorX - Horizontal coordinate of the cursor focus.

  • anchorY - Vertical coordinate of the cursor focus.

§Returns

  • Returns an Input_CustomCursor pointer object if the operation is successful. returns a null pointer otherwise.

Available since API-level: 22