From f58fe5bcf7d76934ab10b62cb5529c7d8a9424fd Mon Sep 17 00:00:00 2001 From: WangYing225 Date: Mon, 7 Jul 2025 15:33:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A1=A5=E5=85=85OH=5FNativeXComponent=5FG?= =?UTF-8?q?etHistoricalPoints=E5=85=A5=E5=8F=82size=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WangYing225 --- arkui/ace_engine/native/native_interface_xcomponent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index 23bcc6da5..649fc8c59 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -553,7 +553,8 @@ int32_t OH_NativeXComponent_GetTouchPointDisplayY(OH_NativeXComponent* component * * @param component Indicates the pointer to this OH_NativeXComponent instance. * @param window Indicates the native window handler. - * @param historicalPoints Indicates the pointer to the current historicalPoints. + * @param size Indicates the size of the array of current historicalPoints. + * @param historicalPoints Indicates the pointer to the array of current historicalPoints. * @return Returns the status code of the execution. * @since 10 * @version 1.0 -- Gitee From 826dae4aba8f0185e40a6f150cba98cfc1e9503e Mon Sep 17 00:00:00 2001 From: WangYing225 Date: Mon, 7 Jul 2025 15:33:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9XComponent=20NDK=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E9=94=99=E8=AF=AF=E5=85=A5=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WangYing225 --- .../native/native_interface_xcomponent.h | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index 649fc8c59..3fbbf6f1b 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -93,6 +93,12 @@ typedef enum { ARKUI_XCOMPONENT_AI_ANALYSIS_STOPPED = 110003, } ArkUI_XComponent_ImageAnalyzerState; +/** + * @brief Represents the type of touch event. + * + * @since 8 + * @version 1.0 + */ typedef enum { /** Trigger a touch event when a finger is pressed. */ OH_NATIVEXCOMPONENT_DOWN = 0, @@ -210,6 +216,12 @@ typedef enum { OH_NATIVEXCOMPONENT_SOURCETOOL_TOUCHPAD = 9, } OH_NativeXComponent_TouchEvent_SourceTool; +/** + * @brief Represents the historical point. + * + * @since 10 + * @version 1.0 + */ typedef struct { /** Unique identifier of a finger. */ int32_t id; @@ -237,6 +249,12 @@ typedef struct { OH_NativeXComponent_TouchEvent_SourceTool sourceTool; } OH_NativeXComponent_HistoricalPoint; +/** + * @brief Represents the touch point information of touch event. + * + * @since 8 + * @version 1.0 + */ typedef struct { /** Unique identifier of a finger. */ int32_t id; @@ -260,7 +278,12 @@ typedef struct { bool isPressed; } OH_NativeXComponent_TouchPoint; -// Represents the touch point information. +/** + * @brief Represents the touch event. + * + * @since 8 + * @version 1.0 + */ typedef struct { /** Unique identifier of a finger. */ int32_t id; @@ -553,8 +576,8 @@ int32_t OH_NativeXComponent_GetTouchPointDisplayY(OH_NativeXComponent* component * * @param component Indicates the pointer to this OH_NativeXComponent instance. * @param window Indicates the native window handler. - * @param size Indicates the size of the array of current historicalPoints. - * @param historicalPoints Indicates the pointer to the array of current historicalPoints. + * @param size Length of the historical touch point array. + * @param historicalPoints Pointer to the historical touch point array. * @return Returns the status code of the execution. * @since 10 * @version 1.0 @@ -623,7 +646,7 @@ int32_t OH_NativeXComponent_GetExtraMouseEventInfo(OH_NativeXComponent* componen /** * @brief Obtains the state of the modifier keys of the mouse event. * - * @param ExtraMouseEventInfo Indicates the pointer to this OH_NativeXComponent_ExtraMouseEventInfo instance. + * @param extraMouseEventInfo Indicates the pointer to this OH_NativeXComponent_ExtraMouseEventInfo instance. * @param keys Pointer to a variable where the current combination of pressed modifier keys will be returned. * The application can use bitwise operations to determine the state of each modifier key. * Modifier keys can be referred to {@link ArkUI_ModifierKeyName}. @@ -633,7 +656,8 @@ int32_t OH_NativeXComponent_GetExtraMouseEventInfo(OH_NativeXComponent* componen * @since 20 * @version 1.0 */ -int32_t OH_NativeXComponent_GetMouseEventModifierKeyStates(OH_NativeXComponent_ExtraMouseEventInfo* ExtraMouseEventInfo, uint64_t* keys); +int32_t OH_NativeXComponent_GetMouseEventModifierKeyStates( + OH_NativeXComponent_ExtraMouseEventInfo* extraMouseEventInfo, uint64_t* keys); /** * @brief Registers a callback for this OH_NativeXComponent instance. @@ -797,7 +821,7 @@ int32_t OH_NativeXComponent_GetKeyEventScrollLockState(OH_NativeXComponent_KeyEv * @brief Set the Expected FrameRateRange. * * @param component Indicates the pointer to this OH_NativeXComponent instance. - * @param callback Indicates the pointer to a expected rate range. + * @param range Indicates the pointer to a expected rate range. * @return Returns the status code of the execution. * @since 11 * @version 1.0 -- Gitee