Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
2abc5747
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
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看板
未验证
提交
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
此差异已折叠。
点击以展开。
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录