pub unsafe extern "C" fn OH_NativeXComponent_GetTouchPointWindowX(
component: *mut OH_NativeXComponent,
pointIndex: u32,
windowX: *mut f32,
) -> i32Available on crate feature
api-12 only.Expand description
Obtains the x coordinate of a specific touch point relative to the upper left corner of
the current application window from the ArkUI XComponent.
§Arguments
-
component- Indicates the pointer to this OH_NativeXComponent instance. -
pointIndex- Indicates the pointer index in the touchPoints. -
windowX- Indicates the x coordinate relative to the upper left corner of the current
application window.
§Returns
- Returns the status code of the execution.
[
OH_NATIVEXCOMPONENT_RESULT_SUCCESS] get windowX success. [OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER] component is NULL, windowX is NULL
or native XComponent is NULL.
Available since API-level: 12
Version: 1.0