Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d5669383
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d5669383
编写于
7月 25, 2023
作者:
H
HelloCrease
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
HelloCrease
<
lian15@huawei.com
>
上级
7dea55a9
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
573 addition
and
571 deletion
+573
-571
zh-cn/application-dev/reference/native-apis/Readme-CN.md
zh-cn/application-dev/reference/native-apis/Readme-CN.md
+1
-0
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
...on-dev/reference/native-apis/_o_h___native_x_component.md
+530
-529
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
...reference/native-apis/native__interface__xcomponent_8h.md
+42
-42
未找到文件。
zh-cn/application-dev/reference/native-apis/Readme-CN.md
浏览文件 @
d5669383
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
-
[
native_buffer.h
](
native__buffer_8h.md
)
-
[
native_buffer.h
](
native__buffer_8h.md
)
-
[
native_image.h
](
native__image_8h.md
)
-
[
native_image.h
](
native__image_8h.md
)
-
[
native_interface_xcomponent.h
](
native__interface__xcomponent_8h.md
)
-
[
native_interface_xcomponent.h
](
native__interface__xcomponent_8h.md
)
-
[
native_xcomponent_key_event.h
](
native__xcomponent__key__event_8h.md
)
-
[
native_vsync.h
](
native__vsync_8h.md
)
-
[
native_vsync.h
](
native__vsync_8h.md
)
-
[
raw_dir.h
](
raw__dir_8h.md
)
-
[
raw_dir.h
](
raw__dir_8h.md
)
-
[
raw_file_manager.h
](
raw__file__manager_8h.md
)
-
[
raw_file_manager.h
](
raw__file__manager_8h.md
)
...
...
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
浏览文件 @
d5669383
此差异已折叠。
点击以展开。
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
浏览文件 @
d5669383
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
### 结构体
### 结构体
| 名称 | 描述 |
| 名称 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | -------------
-------- |
|
[
OH_NativeXComponent_TouchPoint
](
_o_h___native_x_component___touch_point.md
)
| 触摸事件中触摸点的信息。 |
|
[
OH_NativeXComponent_TouchPoint
](
_o_h___native_x_component___touch_point.md
)
| 触摸事件中触摸点的信息。 |
|
[
OH_NativeXComponent_TouchEvent
](
_o_h___native_x_component___touch_event.md
)
| 触摸事件。 |
|
[
OH_NativeXComponent_TouchEvent
](
_o_h___native_x_component___touch_event.md
)
| 触摸事件。 |
|
[
OH_NativeXComponent_MouseEvent
](
_o_h___native_x_component___mouse_event.md
)
| 鼠标事件。 |
|
[
OH_NativeXComponent_MouseEvent
](
_o_h___native_x_component___mouse_event.md
)
| 鼠标事件。 |
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
### 类型定义
### 类型定义
| 名称 | 描述 |
| 名称 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | ----------------------------
-------- |
|
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
| 提供封装的OH_NativeXComponent实例。 |
|
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
| 提供封装的OH_NativeXComponent实例。 |
|
[
OH_NativeXComponent_Callback
](
_o_h___native_x_component.md#oh_nativexcomponent_callback
)
| 注册surface生命周期和触摸事件回调。 |
|
[
OH_NativeXComponent_Callback
](
_o_h___native_x_component.md#oh_nativexcomponent_callback
)
| 注册surface生命周期和触摸事件回调。 |
|
[
OH_NativeXComponent_MouseEvent_Callback
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseevent_callback
)
| 注册鼠标事件的回调。 |
|
[
OH_NativeXComponent_MouseEvent_Callback
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseevent_callback
)
| 注册鼠标事件的回调。 |
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
### 枚举
### 枚举
| 枚举名称 | 描述 |
| 枚举名称 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | --
-------- |
| {
OH_NATIVEXCOMPONENT_RESULT_SUCCESS
=
0,
OH_NATIVEXCOMPONENT_RESULT_FAILED
=
-1,
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER
=
-2
} | 枚举API访问状态。 |
| {
OH_NATIVEXCOMPONENT_RESULT_SUCCESS
=
0,
OH_NATIVEXCOMPONENT_RESULT_FAILED
=
-1,
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER
=
-2
} | 枚举API访问状态。 |
|
[
OH_NativeXComponent_TouchEventType
](
_o_h___native_x_component.md#oh_nativexcomponent_toucheventtype
)
{
<br/>
OH_NATIVEXCOMPONENT_DOWN
=
0,
OH_NATIVEXCOMPONENT_UP,
OH_NATIVEXCOMPONENT_MOVE,
OH_NATIVEXCOMPONENT_CANCEL,
<br/>
OH_NATIVEXCOMPONENT_UNKNOWN
<br/>
} | 触摸事件类型。 |
|
[
OH_NativeXComponent_TouchEventType
](
_o_h___native_x_component.md#oh_nativexcomponent_toucheventtype
)
{
<br/>
OH_NATIVEXCOMPONENT_DOWN
=
0,
OH_NATIVEXCOMPONENT_UP,
OH_NATIVEXCOMPONENT_MOVE,
OH_NATIVEXCOMPONENT_CANCEL,
<br/>
OH_NATIVEXCOMPONENT_UNKNOWN
<br/>
} | 触摸事件类型。 |
|
[
OH_NativeXComponent_TouchPointToolType
](
_o_h___native_x_component.md#oh_nativexcomponent_touchpointtooltype
)
{
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN
=
0,
OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN,
OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER,
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL,
OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE,
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS
<br/>
} | 触摸点工具类型。 |
|
[
OH_NativeXComponent_TouchPointToolType
](
_o_h___native_x_component.md#oh_nativexcomponent_touchpointtooltype
)
{
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN
=
0,
OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN,
OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER,
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL,
OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE,
<br/>
OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS
<br/>
} | 触摸点工具类型。 |
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
### 函数
### 函数
| 名称 | 描述 |
| 名称 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | ------------------------------
-------- |
|
[
OH_NativeXComponent_GetXComponentId
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentid
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
char
\*id,
uint64_t
\*
size) | 获取ArkUI
XComponent的id。 |
|
[
OH_NativeXComponent_GetXComponentId
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentid
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
char
\*id,
uint64_t
\*
size) | 获取ArkUI
XComponent的id。 |
|
[
OH_NativeXComponent_GetXComponentSize
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentsize
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
uint64_t
\*width,
uint64_t
\*
height) | 获取ArkUI
XComponent持有的surface的大小。 |
|
[
OH_NativeXComponent_GetXComponentSize
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentsize
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
uint64_t
\*width,
uint64_t
\*
height) | 获取ArkUI
XComponent持有的surface的大小。 |
|
[
OH_NativeXComponent_GetXComponentOffset
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentoffset
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
double
\*x,
double
\*
y) | 获取ArkUI
XComponent组件相对屏幕左上顶点的偏移量。 |
|
[
OH_NativeXComponent_GetXComponentOffset
](
_o_h___native_x_component.md#oh_nativexcomponent_getxcomponentoffset
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
double
\*x,
double
\*
y) | 获取ArkUI
XComponent组件相对屏幕左上顶点的偏移量。 |
...
@@ -78,6 +78,6 @@
...
@@ -78,6 +78,6 @@
### 变量
### 变量
| 名称 | 描述 |
| 名称 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | -----------------
-------- |
|
**OH_XCOMPONENT_ID_LEN_MAX**
=
128 |
const
uint32_t
|
|
**OH_XCOMPONENT_ID_LEN_MAX**
=
128 |
ArkUI XComponent的id的最大长度。
|
|
**OH_MAX_TOUCH_POINTS_NUMBER**
=
10 |
const
uint32_t
|
|
**OH_MAX_TOUCH_POINTS_NUMBER**
=
10 |
触摸事件中的可识别的触摸点个数最大值。
|
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录