Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
2abc5747
D
Docs
项目概览
Coping0606
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2abc5747
编写于
1月 11, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 11, 2023
浏览文件
操作
浏览文件
下载
差异文件
!13429 native同步OHOS
Merge pull request !13429 from LiAn/master
上级
0a76d892
3875c69a
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
140 addition
and
141 deletion
+140
-141
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
...on-dev/reference/native-apis/_o_h___native_x_component.md
+125
-126
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___callback.md
...rence/native-apis/_o_h___native_x_component___callback.md
+4
-4
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md
...ce/native-apis/_o_h___native_x_component___mouse_event.md
+7
-7
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event___callback.md
...pis/_o_h___native_x_component___mouse_event___callback.md
+2
-2
zh-cn/application-dev/reference/native-apis/image.md
zh-cn/application-dev/reference/native-apis/image.md
+1
-1
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
...reference/native-apis/native__interface__xcomponent_8h.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
浏览文件 @
2abc5747
...
...
@@ -3,7 +3,6 @@
描述ArkUI XComponent持有的surface和触摸事件,该事件可用于EGL/OpenGLES和媒体数据输入,并显示在ArkUI XComponent上。
**自从:**
...
...
@@ -16,14 +15,14 @@
### 文件
| 文件名称 | 描述 |
| --------
|
-------- |
| --------
---------------------------------------------------- | ----------------------------
-------- |
|
[
native_interface_xcomponent.h
](
native__interface__xcomponent_8h.md
)
| 声明用于访问Native XComponent的API。 |
### 结构体
| 结构体名称 | 描述 |
| --------
|
-------- |
| --------
---------------------------------------------------- | ---------------------------
-------- |
|
[
OH_NativeXComponent_TouchPoint
](
_o_h___native_x_component___touch_point.md
)
| 触摸事件中触摸点的信息。 |
|
[
OH_NativeXComponent_TouchEvent
](
_o_h___native_x_component___touch_event.md
)
| 触摸事件。 |
|
[
OH_NativeXComponent_MouseEvent
](
_o_h___native_x_component___mouse_event.md
)
| 鼠标事件。 |
...
...
@@ -34,7 +33,7 @@
### 类型定义
| 类型定义名称 | 描述 |
| --------
|
-------- |
| --------
---------------------------------------------------- | ---------------------------
-------- |
|
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
| 提供封装的OH_NativeXComponent实例。 |
|
[
OH_NativeXComponent_Callback
](
#oh_nativexcomponent_callback
)
| 注册surface生命周期和触摸事件回调。 |
|
[
OH_NativeXComponent_MouseEvent_Callback
](
#oh_nativexcomponent_mouseevent_callback
)
| 注册鼠标事件的回调。 |
...
...
@@ -43,8 +42,8 @@
### 枚举
| 枚举名称 | 描述 |
| --------
|
-------- |
| {OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
<br>
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
<br/>
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2
,
<br/>
OHOS_IMAGE_RESULT_SUCCESS = 0,
<br/>
OHOS_IMAGE_RESULT_BAD_PARAMETER = -1
} |
[
枚举
](
#anonymous-enum
)
API访问状态。 |
| --------
---------------------------------------------------- | ----------------------------
-------- |
| {OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
<br>
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
<br/>
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2 } |
[
枚举
](
#anonymous-enum
)
API访问状态。 |
|
[
OH_NativeXComponent_TouchEventType
](
#oh_nativexcomponent_toucheventtype
)
{
<br/>
OH_NATIVEXCOMPONENT_DOWN = 0,
<br/>
OH_NATIVEXCOMPONENT_UP,
<br/>
OH_NATIVEXCOMPONENT_MOVE,
<br/>
OH_NATIVEXCOMPONENT_CANCEL,
<br/>
OH_NATIVEXCOMPONENT_UNKNOWN } | 触摸事件类型。 |
|
[
OH_NativeXComponent_MouseEventAction
](
#oh_nativexcomponent_mouseeventaction
)
{
<br/>
OH_NATIVEXCOMPONENT_MOUSE_NONE = 0,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_PRESS,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_RELEASE,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_MOVE } | 鼠标事件动作。 |
|
[
OH_NativeXComponent_MouseEventButton
](
#oh_nativexcomponent_mouseeventbutton
)
{
<br/>
OH_NATIVEXCOMPONENT_NONE_BUTTON = 0,
<br/>
OH_NATIVEXCOMPONENT_LEFT_BUTTON = 0x01,
<br/>
OH_NATIVEXCOMPONENT_RIGHT_BUTTON = 0x02,
<br/>
OH_NATIVEXCOMPONENT_MIDDLE_BUTTON = 0x04,
<br/>
OH_NATIVEXCOMPONENT_BACK_BUTTON = 0x08,
<br/>
OH_NATIVEXCOMPONENT_FORWARD_BUTTON = 0x10 } | 鼠标事件按键。 |
...
...
@@ -53,7 +52,7 @@
### 函数
| 函数名称 | 描述 |
| --------
|
-------- |
| --------
---------------------------------------------------- | ------------------------------------------
-------- |
|
[
OH_NativeXComponent_GetXComponentId
](
#oh_nativexcomponent_getxcomponentid
)
(
[OH_NativeXComponent](#oh_nativexcomponent
)
\*
component, char
\*
id, uint64_t
\*
size) | 获取ArkUI XComponent的id。 |
|
[
OH_NativeXComponent_GetXComponentSize
](
#oh_nativexcomponent_getxcomponentsize
)
(
[OH_NativeXComponent](#oh_nativexcomponent
)
\*
component, const void
\*
window, uint64_t
\*
width, uint64_t
\*
height) | 获取ArkUI XComponent持有的surface的大小。 |
|
[
OH_NativeXComponent_GetXComponentOffset
](
#oh_nativexcomponent_getxcomponentoffset
)
(
[OH_NativeXComponent](#oh_nativexcomponent
)
\*
component, const void
\*
window, double
\*
x, double
\*
y) | 获取ArkUI XComponent组件相对屏幕左上顶点的偏移量。 |
...
...
@@ -66,7 +65,7 @@
### 变量
| 变量名称 | 描述 |
| --------
|
-------- |
| --------
---------------------------------------------------- | ---------------------------------
-------- |
|
[
OH_XCOMPONENT_ID_LEN_MAX
](
#oh_xcomponent_id_len_max
)
= 128 | ArkUI XComponent的id最大长度。 |
|
[
OH_MAX_TOUCH_POINTS_NUMBER
](
#oh_max_touch_points_number
)
= 10 | 触摸事件中的可识别的触摸点个数最大值。 |
|
[
OH_NativeXComponent_TouchPoint::id
](
#id-12
)
= 0 | 手指的唯一标识符。 |
...
...
@@ -91,19 +90,19 @@
|
[
OH_NativeXComponent_TouchEvent::timeStamp
](
#timestamp-22
)
= 0 | 当前触摸事件的时间戳。 |
|
[
OH_NativeXComponent_TouchEvent::touchPoints
](
#touchpoints
)
[
OH_MAX_TOUCH_POINTS_NUMBER
]
| 当前触摸点的数组。 |
|
[
OH_NativeXComponent_TouchEvent::numPoints
](
#numpoints
)
= 0 | 当前接触点的数量。 |
|
[
OH_NativeXComponent_MouseEvent::x
](
#x-33
)
| 点击触点相对于当前组件左上角的x轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::y
](
#y-33
)
| 点击触点相对于当前组件左上角的y轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::screenX
](
#screenx-33
)
| 点击触点相对于屏幕左上角的x轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::screenY
](
#screeny-33
)
| 点击触点相对于屏幕左上角的y轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::timestamp
](
#timestamp
)
| 当前鼠标事件的时间戳。
|
|
[
OH_NativeXComponent_MouseEvent::action
](
#action
)
| 当前鼠标事件动作。
|
|
[
OH_NativeXComponent_MouseEvent::button
](
#button
)
| 鼠标事件按键。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceCreated
](
#onsurfacecreated
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, void
\*
window) | 创建surface时调用。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceChanged
](
#onsurfacechanged
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, void
\*
window) | 当surface改变时调用。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceDestroyed
](
#onsurfacedestroyed
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, void
\*
window) | 当surface被破坏时调用。
|
|
[
OH_NativeXComponent_Callback::DispatchTouchEvent
](
#dispatchtouchevent
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, void
\*
window) | 当触摸事件被触发时调用。
|
|
[
OH_NativeXComponent_MouseEvent_Callback::DispatchMouseEvent
](
#dispatchmouseevent
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, void
\*
window) | 当鼠标事件被触发时调用。
|
|
[
OH_NativeXComponent_MouseEvent_Callback::DispatchHoverEvent
](
#dispatchhoverevent
)
)(
[
OH_NativeXComponent
](
#oh_nativexcomponent
)
\*
component, bool isHover) | 当悬停事件被触发时调用。
|
|
[
OH_NativeXComponent_MouseEvent::x
](
#x-33
)
= 0.0 | 点击触点相对于当前组件左上角的x轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::y
](
#y-33
)
= 0.0 | 点击触点相对于当前组件左上角的y轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::screenX
](
#screenx-33
)
= 0.0 | 点击触点相对于屏幕左上角的x轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::screenY
](
#screeny-33
)
= 0.0 | 点击触点相对于屏幕左上角的y轴坐标。
|
|
[
OH_NativeXComponent_MouseEvent::timestamp
](
#timestamp
)
= 0 | 当前鼠标事件的时间戳。
|
|
[
OH_NativeXComponent_MouseEvent::action
](
#action
)
=
[
OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE
](
#oh_nativexcomponent_mouseeventaction
)
| 当前鼠标事件动作。
|
|
[
OH_NativeXComponent_MouseEvent::button
](
#button
)
=
[
OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON
](
#oh_nativexcomponent_mouseeventbutton
)
| 鼠标事件按键。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceCreated
](
#onsurfacecreated
)
| 创建surface时调用。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceChanged
](
#onsurfacechanged
)
| 当surface改变时调用。
|
|
[
OH_NativeXComponent_Callback::OnSurfaceDestroyed
](
#onsurfacedestroyed
)
| 当surface被销毁时调用。
|
|
[
OH_NativeXComponent_Callback::DispatchTouchEvent
](
#dispatchtouchevent
)
| 当触摸事件被触发时调用。
|
|
[
OH_NativeXComponent_MouseEvent_Callback::DispatchMouseEvent
](
#dispatchmouseevent
)
| 当鼠标事件被触发时调用。
|
|
[
OH_NativeXComponent_MouseEvent_Callback::DispatchHoverEvent
](
#dispatchhoverevent
)
| 当悬停事件被触发时调用。
|
## 详细描述
...
...
@@ -175,7 +174,7 @@ anonymous enum
枚举API访问状态。
| 枚举值 | 描述 |
| --------
|
-------- |
| --------
-------------------------------- | --
-------- |
| OH_NATIVEXCOMPONENT_RESULT_SUCCESS | 成功结果。 |
| OH_NATIVEXCOMPONENT_RESULT_FAILED | 失败结果。 |
| OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER | 无效参数。 |
...
...
@@ -199,7 +198,7 @@ enum OH_NativeXComponent_MouseEventAction
鼠标事件动作.
| 枚举值 | 描述 |
| --------
|
-------- |
| --------
------------------------- | ------------------------
-------- |
| OH_NATIVEXCOMPONENT_MOUSE_NONE | 无效鼠标事件 。 |
| OH_NATIVEXCOMPONENT_MOUSE_PRESS | 鼠标按键按下时触发鼠标事件。 |
| OH_NATIVEXCOMPONENT_MOUSE_RELEASE | 鼠标按键松开时触发鼠标事件。 |
...
...
@@ -222,7 +221,7 @@ enum OH_NativeXComponent_MouseEventButton
鼠标事件按键。
| 枚举值 | 描述 |
| --------
|
-------- |
| --------
-------------------------- | --------------------------
-------- |
| OH_NATIVEXCOMPONENT_NONE_BUTTON | 鼠标无按键操作时触发鼠标事件。 |
| OH_NATIVEXCOMPONENT_LEFT_BUTTON | 按下鼠标左键时触发鼠标事件。 |
| OH_NATIVEXCOMPONENT_RIGHT_BUTTON | 按下鼠标右键时触发鼠标事件。 |
...
...
@@ -247,7 +246,7 @@ enum OH_NativeXComponent_TouchEventType
触摸事件类型。
| 枚举值 | 描述 |
| --------
|
-------- |
| --------
------------------- | ----------------------------------
-------- |
| OH_NATIVEXCOMPONENT_DOWN | 手指按下时触发触摸事件。 |
| OH_NATIVEXCOMPONENT_UP | 手指抬起时触发触摸事件。 |
| OH_NATIVEXCOMPONENT_MOVE | 手指按下状态下在屏幕上移动时触发触摸事件。 |
...
...
@@ -276,7 +275,7 @@ int32_t OH_NativeXComponent_GetMouseEvent (OH_NativeXComponent * component, cons
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
-- | -------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| window | 表示NativeWindow句柄。 |
| mouseEvent | 指示指向当前鼠标事件的指针。 |
...
...
@@ -304,7 +303,7 @@ int32_t OH_NativeXComponent_GetTouchEvent (OH_NativeXComponent * component, cons
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
-- | -------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| window | 表示NativeWindow句柄。 |
| touchEvent | 指示指向当前触摸事件的指针。 |
...
...
@@ -332,7 +331,7 @@ int32_t OH_NativeXComponent_GetXComponentId (OH_NativeXComponent * component, ch
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
- | ----------------------------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| id | 指示用于保存此OH_NativeXComponent实例的ID的字符缓冲区。 请注意,空终止符将附加到字符缓冲区,因此字符缓冲区的大小应至少比真实id长度大一个单位。 建议字符缓冲区的大小为[OH_XCOMPONENT_ID_LEN_MAX + 1]。 |
| size | 指示指向id长度的指针。 |
...
...
@@ -360,7 +359,7 @@ int32_t OH_NativeXComponent_GetXComponentOffset (OH_NativeXComponent * component
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
- | -------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| window | 表示NativeWindow句柄。 |
| x | 指示指向当前surface的x坐标的指针。 |
...
...
@@ -389,7 +388,7 @@ int32_t OH_NativeXComponent_GetXComponentSize (OH_NativeXComponent * component,
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
- | -------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| window | 表示NativeWindow句柄。 |
| width | 指示指向当前surface宽度的指针。 |
...
...
@@ -418,7 +417,7 @@ int32_t OH_NativeXComponent_RegisterCallback (OH_NativeXComponent * component, O
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
- | -------------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| callback | 指示指向surface生命周期和触摸事件回调的指针。 |
...
...
@@ -445,7 +444,7 @@ int32_t OH_NativeXComponent_RegisterMouseEventCallback (OH_NativeXComponent * co
**参数:**
| Name | 描述 |
| --------
|
-------- |
| --------
- | -------------------------------
-------- |
| component | 表示指向OH_NativeXComponent实例的指针。 |
| callback | 指示指向鼠标事件回调的指针。 |
...
...
@@ -726,7 +725,7 @@ void(* OH_NativeXComponent_Callback::OnSurfaceDestroyed) (OH_NativeXComponent *c
**描述:**
当surface被
破坏
时调用。
当surface被
销毁
时调用。
**自从:**
...
...
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___callback.md
浏览文件 @
2abc5747
...
...
@@ -21,7 +21,7 @@
| 成员变量名称 | 描述 |
| -------- | -------- |
|
[
OnSurfaceCreated
](
_o_h___native_x_component.md#onsurfacecreated
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, void
\*
window)
| 创建surface时调用。 |
|
[
OnSurfaceChanged
](
_o_h___native_x_component.md#onsurfacechanged
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, void
\*
window)
| 当surface改变时调用。 |
|
[
OnSurfaceDestroyed
](
_o_h___native_x_component.md#onsurfacedestroyed
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, void
\*
window) | 当surface被破坏
时调用。 |
|
[
DispatchTouchEvent
](
_o_h___native_x_component.md#dispatchtouchevent
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, void
\*
window)
| 当触摸事件被触发时调用。 |
|
[
OnSurfaceCreated
](
_o_h___native_x_component.md#onsurfacecreated
)
| 创建surface时调用。 |
|
[
OnSurfaceChanged
](
_o_h___native_x_component.md#onsurfacechanged
)
| 当surface改变时调用。 |
|
[
OnSurfaceDestroyed
](
_o_h___native_x_component.md#onsurfacedestroyed
)
| 当surface被销毁
时调用。 |
|
[
DispatchTouchEvent
](
_o_h___native_x_component.md#dispatchtouchevent
)
| 当触摸事件被触发时调用。 |
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md
浏览文件 @
2abc5747
...
...
@@ -21,10 +21,10 @@
| 成员变量名称 | 描述 |
| -------- | -------- |
|
[
x
](
_o_h___native_x_component.md#x-33
)
| 点击触点相对于当前组件左上角的x轴坐标。 |
|
[
y
](
_o_h___native_x_component.md#y-33
)
| 点击触点相对于当前组件左上角的y轴坐标。 |
|
[
screenX
](
_o_h___native_x_component.md#screenx-33
)
| 点击触点相对于屏幕左上角的x轴坐标。 |
|
[
screenY
](
_o_h___native_x_component.md#screeny-33
)
| 点击触点相对于屏幕左上角的y轴坐标。 |
|
[
timestamp
](
_o_h___native_x_component.md#timestamp
)
| 当前鼠标事件的时间戳。 |
|
[
action
](
_o_h___native_x_component.md#action
)
| 当前鼠标事件动作。 |
|
[
button
](
_o_h___native_x_component.md#button
)
| 鼠标事件按键。 |
|
[
x
= 0.0
](
_o_h___native_x_component.md#x-33
)
| 点击触点相对于当前组件左上角的x轴坐标。 |
|
[
y
= 0.0
](
_o_h___native_x_component.md#y-33
)
| 点击触点相对于当前组件左上角的y轴坐标。 |
|
[
screenX
= 0.0
](
_o_h___native_x_component.md#screenx-33
)
| 点击触点相对于屏幕左上角的x轴坐标。 |
|
[
screenY
= 0.0
](
_o_h___native_x_component.md#screeny-33
)
| 点击触点相对于屏幕左上角的y轴坐标。 |
|
[
timestamp
= 0
](
_o_h___native_x_component.md#timestamp
)
| 当前鼠标事件的时间戳。 |
|
[
action
= OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE
](
_o_h___native_x_component.md#action
)
| 当前鼠标事件动作。 |
|
[
button
= OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON
](
_o_h___native_x_component.md#button
)
| 鼠标事件按键。 |
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event___callback.md
浏览文件 @
2abc5747
...
...
@@ -21,5 +21,5 @@
| 成员变量名称 | 描述 |
| -------- | -------- |
|
[
DispatchMouseEvent
](
_o_h___native_x_component.md#dispatchmouseevent
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, void
\*
window)
| 当鼠标事件被触发时调用。 |
|
[
DispatchHoverEvent
](
_o_h___native_x_component.md#dispatchhoverevent
)
)(
[
OH_NativeXComponent
](
_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, bool isHover)
| 当悬停事件被触发时调用。 |
|
[
DispatchMouseEvent
](
_o_h___native_x_component.md#dispatchmouseevent
)
| 当鼠标事件被触发时调用。 |
|
[
DispatchHoverEvent
](
_o_h___native_x_component.md#dispatchhoverevent
)
| 当悬停事件被触发时调用。 |
zh-cn/application-dev/reference/native-apis/image.md
浏览文件 @
2abc5747
...
...
@@ -34,7 +34,7 @@
| 枚举名称 | 描述 |
| -------- | -------- |
| { OH
_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
<br/>
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
<br/>
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2,
<br/>
OH
OS_IMAGE_RESULT_SUCCESS = 0,
<br/>
OHOS_IMAGE_RESULT_BAD_PARAMETER = -1 } | 函数方法返回值的错误码的
[
枚举
](
#anonymous-enum
)
。 |
| { OHOS_IMAGE_RESULT_SUCCESS = 0,
<br/>
OHOS_IMAGE_RESULT_BAD_PARAMETER = -1 } | 函数方法返回值的错误码的
[
枚举
](
#anonymous-enum
)
。 |
| { OHOS_PIXEL_MAP_FORMAT_NONE = 0,
<br/>
OHOS_PIXEL_MAP_FORMAT_RGBA_8888 = 3,
<br/>
OHOS_PIXEL_MAP_FORMAT_RGB_565 = 2 } | pixel 格式的
[
枚举
](
#anonymous-enum-1
)
。 |
...
...
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
浏览文件 @
2abc5747
...
...
@@ -41,7 +41,7 @@
| 枚举名称 | 描述 |
| -------- | -------- |
| { OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
<br/>
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
<br/>
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2
,
<br/>
OHOS_IMAGE_RESULT_SUCCESS = 0,
<br/>
OHOS_IMAGE_RESULT_BAD_PARAMETER = -1
} |
[
枚举
](
_o_h___native_x_component.md#anonymous-enum
)
API访问状态。 |
| { OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
<br/>
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
<br/>
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2} |
[
枚举
](
_o_h___native_x_component.md#anonymous-enum
)
API访问状态。 |
|
[
OH_NativeXComponent_TouchEventType
](
_o_h___native_x_component.md#oh_nativexcomponent_toucheventtype
)
{
<br/>
OH_NATIVEXCOMPONENT_DOWN = 0,
<br/>
OH_NATIVEXCOMPONENT_UP,
<br/>
OH_NATIVEXCOMPONENT_MOVE,
<br/>
OH_NATIVEXCOMPONENT_CANCEL,
<br/>
OH_NATIVEXCOMPONENT_UNKNOWN } | 触摸事件类型。 |
|
[
OH_NativeXComponent_MouseEventAction
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseeventaction
)
{
<br/>
OH_NATIVEXCOMPONENT_MOUSE_NONE = 0,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_PRESS,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_RELEASE,
<br/>
OH_NATIVEXCOMPONENT_MOUSE_MOVE } | 鼠标事件动作。 |
|
[
OH_NativeXComponent_MouseEventButton
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseeventbutton
)
{
<br/>
OH_NATIVEXCOMPONENT_NONE_BUTTON = 0,
<br/>
OH_NATIVEXCOMPONENT_LEFT_BUTTON = 0x01,
<br/>
OH_NATIVEXCOMPONENT_RIGHT_BUTTON = 0x02,
<br/>
OH_NATIVEXCOMPONENT_MIDDLE_BUTTON = 0x04,
<br/>
OH_NATIVEXCOMPONENT_BACK_BUTTON = 0x08,
<br/>
OH_NATIVEXCOMPONENT_FORWARD_BUTTON = 0x10 } | 鼠标事件按键。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录