add interfaces

Signed-off-by: WangYing225 <wangying397@huawei.com>
This commit is contained in:
WangYing225 2024-06-26 11:59:56 +08:00
parent 60cb05ce85
commit d6a1b3f86e
2 changed files with 72 additions and 0 deletions

View File

@ -39,6 +39,22 @@
"first_introduced": "9",
"name": "OH_NativeXComponent_GetTouchPointTiltY"
},
{
"first_introduced": "12",
"name": "OH_NativeXComponent_GetTouchPointWindowX"
},
{
"first_introduced": "12",
"name": "OH_NativeXComponent_GetTouchPointWindowY"
},
{
"first_introduced": "12",
"name": "OH_NativeXComponent_GetTouchPointDisplayX"
},
{
"first_introduced": "12",
"name": "OH_NativeXComponent_GetTouchPointDisplayY"
},
{
"first_introduced": "10",
"name": "OH_NativeXComponent_RegisterFocusEventCallback"

View File

@ -440,6 +440,62 @@ int32_t OH_NativeXComponent_GetTouchPointTiltX(OH_NativeXComponent* component, u
*/
int32_t OH_NativeXComponent_GetTouchPointTiltY(OH_NativeXComponent* component, uint32_t pointIndex, float* tiltY);
/**
* @brief Obtains the x coordinate of a specific touch point relative to the upper left corner of\n
* the current application window from the ArkUI XComponent.
*
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
* @param pointIndex Indicates the pointer index in the touchPoints.
* @param windowX Indicates the x coordinate relative to the upper left corner of the current\n
application window.
* @return Returns the status code of the execution.
* @since 12
* @version 1.0
*/
int32_t OH_NativeXComponent_GetTouchPointWindowX(OH_NativeXComponent* component, uint32_t pointIndex, float* windowX);
/**
* @brief Obtains the y coordinate of a specific touch point relative to the upper left corner of\n
* the current application window from the ArkUI XComponent.
*
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
* @param pointIndex Indicates the pointer index in the touchPoints.
* @param windowY Indicates the y coordinate relative to the upper left corner of the current\n
application window.
* @return Returns the status code of the execution.
* @since 12
* @version 1.0
*/
int32_t OH_NativeXComponent_GetTouchPointWindowY(OH_NativeXComponent* component, uint32_t pointIndex, float* windowY);
/**
* @brief Obtains the x coordinate of a specific touch point relative to the upper left corner of\n
* the current screen from the ArkUI XComponent.
*
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
* @param pointIndex Indicates the pointer index in the touchPoints.
* @param displayX Indicates the x coordinate relative to the upper left corner of the current\n
screen.
* @return Returns the status code of the execution.
* @since 12
* @version 1.0
*/
int32_t OH_NativeXComponent_GetTouchPointDisplayX(OH_NativeXComponent* component, uint32_t pointIndex, float* displayX);
/**
* @brief Obtains the y coordinate of a specific touch point relative to the upper left corner of\n
* the current screen from the ArkUI XComponent.
*
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
* @param pointIndex Indicates the pointer index in the touchPoints.
* @param displayY Indicates the y coordinate relative to the upper left corner of the current\n
screen.
* @return Returns the status code of the execution.
* @since 12
* @version 1.0
*/
int32_t OH_NativeXComponent_GetTouchPointDisplayY(OH_NativeXComponent* component, uint32_t pointIndex, float* displayY);
/**
* @brief Obtains the touch event dispatched by the ArkUI XComponent.
*