Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
a2ec4b16
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看板
未验证
提交
a2ec4b16
编写于
7月 25, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
!21337 native xcomponent文档
Merge pull request !21337 from LiAn/master
上级
d32dd479
97ac1470
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
942 addition
and
322 deletion
+942
-322
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
...on-dev/reference/native-apis/_o_h___native_x_component.md
+881
-301
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
...reference/native-apis/native__interface__xcomponent_8h.md
+34
-19
zh-cn/application-dev/reference/native-apis/native__xcomponent__key__event_8h.md
...eference/native-apis/native__xcomponent__key__event_8h.md
+25
-0
zh-cn/application-dev/ui/arkts-graphics-display.md
zh-cn/application-dev/ui/arkts-graphics-display.md
+2
-2
未找到文件。
zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md
浏览文件 @
a2ec4b16
此差异已折叠。
点击以展开。
zh-cn/application-dev/reference/native-apis/native__interface__xcomponent_8h.md
浏览文件 @
a2ec4b16
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
声明用于访问Native XComponent的API。
声明用于访问Native XComponent的API。
**起始版本
:
**
**起始版本
:
**
8
8
**相关模块
:
**
**相关模块
:
**
[
Native XComponent
](
_o_h___native_x_component.md
)
[
Native XComponent
](
_o_h___native_x_component.md
)
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,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
)
| 触摸事件。 |
...
@@ -30,39 +30,54 @@
...
@@ -30,39 +30,54 @@
### 类型定义
### 类型定义
|
类型定义
名称 | 描述 |
| 名称 | 描述 |
| -------- | -------- |
| -------- | -------- |
|
[
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
)
| 注册鼠标事件的回调。 |
|
[
OH_NativeXComponent_KeyEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_keyevent
)
| 提供封装的OH_NativeXComponent_KeyEvent实例。 |
### 枚举
### 枚举
| 枚举名称 | 描述 |
| 枚举名称 | 描述 |
| -------- | -------- |
| -------- | -------- |
| { 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_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,
<br/>
OH_NATIVEXCOMPONENT_UP,
<br/>
OH_NATIVEXCOMPONENT_MOVE,
<br/>
OH_NATIVEXCOMPONENT_CANCEL,
<br/>
OH_NATIVEXCOMPONENT_UNKNOWN } | 触摸事件类型。 |
|
[
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_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_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_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 } | 鼠标事件按键。 |
|
[
OH_NativeXComponent_EventSourceType
](
_o_h___native_x_component.md#oh_nativexcomponent_eventsourcetype
)
{
<br/>
OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN
=
0,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD,
<br/>
OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD
<br/>
} | 触摸事件源类型。 |
|
[
OH_NativeXComponent_MouseEventAction
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseeventaction
)
{
OH_NATIVEXCOMPONENT_MOUSE_NONE
=
0,
OH_NATIVEXCOMPONENT_MOUSE_PRESS,
OH_NATIVEXCOMPONENT_MOUSE_RELEASE,
OH_NATIVEXCOMPONENT_MOUSE_MOVE
} | 鼠标事件动作。 |
|
[
OH_NativeXComponent_MouseEventButton
](
_o_h___native_x_component.md#oh_nativexcomponent_mouseeventbutton
)
{
<br/>
OH_NATIVEXCOMPONENT_NONE_BUTTON
=
0,
OH_NATIVEXCOMPONENT_LEFT_BUTTON
=
0x01,
OH_NATIVEXCOMPONENT_RIGHT_BUTTON
=
0x02,
OH_NATIVEXCOMPONENT_MIDDLE_BUTTON
=
0x04,
<br/>
OH_NATIVEXCOMPONENT_BACK_BUTTON
=
0x08,
OH_NATIVEXCOMPONENT_FORWARD_BUTTON
=
0x10
<br/>
} | 鼠标事件按键。 |
### 函数
### 函数
|
函数
名称 | 描述 |
| 名称 | 描述 |
| -------- | -------- |
| -------- | -------- |
|
[
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组件相对屏幕左上顶点的偏移量。 |
|
[
OH_NativeXComponent_GetTouchEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_gettouchevent
)
(
[OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, const void
\*
window,
[
OH_NativeXComponent_TouchEvent
](
_o_h___native_x_component___touch_event.md
)
\*
touchEvent) | 获取ArkUI XComponent调度的触摸事件。 |
|
[
OH_NativeXComponent_GetTouchEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_gettouchevent
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
[OH_NativeXComponent_TouchEvent](_o_h___native_x_component___touch_event.md)
\*
touchEvent) | 获取ArkUI
XComponent调度的触摸事件。 |
|
[
OH_NativeXComponent_GetMouseEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_getmouseevent
)
(
[OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component, const void
\*
window,
[
OH_NativeXComponent_MouseEvent
](
_o_h___native_x_component___mouse_event.md
)
\*
mouseEvent) | 获取ArkUI XComponent调度的鼠标事件 |
|
[
OH_NativeXComponent_GetTouchPointToolType
](
_o_h___native_x_component.md#oh_nativexcomponent_gettouchpointtooltype
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
uint32_t
pointIndex,
[OH_NativeXComponent_TouchPointToolType](_o_h___native_x_component.md#oh_nativexcomponent_touchpointtooltype)
\*
toolType) | 获取ArkUI
XComponent触摸点工具类型。 |
|
[
OH_NativeXComponent_RegisterCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registercallback
)
(
[OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component,
[
OH_NativeXComponent_Callback
](
_o_h___native_x_component___callback.md
)
\*
callback) | 为此OH_NativeXComponent实例注册回调。 |
|
[
OH_NativeXComponent_GetTouchPointTiltX
](
_o_h___native_x_component.md#oh_nativexcomponent_gettouchpointtiltx
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
uint32_t
pointIndex,
float
\*
tiltX) | 获取ArkUI
XComponent触摸点倾斜与X轴角度。 |
|
[
OH_NativeXComponent_RegisterMouseEventCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registermouseeventcallback
)
(
[OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent
)
\*
component,
[
OH_NativeXComponent_MouseEvent_Callback
](
_o_h___native_x_component___mouse_event___callback.md
)
\*
callback) | 为此OH_NativeXComponent实例注册鼠标事件回调。 |
|
[
OH_NativeXComponent_GetTouchPointTiltY
](
_o_h___native_x_component.md#oh_nativexcomponent_gettouchpointtilty
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
uint32_t
pointIndex,
float
\*
tiltY) | 获取ArkUI
XComponent触摸点倾斜与Y轴角度。 |
|
[
OH_NativeXComponent_GetMouseEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_getmouseevent
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
const
void
\*window,
[OH_NativeXComponent_MouseEvent](_o_h___native_x_component___mouse_event.md)
\*
mouseEvent) | 获取ArkUI
XComponent调度的鼠标事件。 |
|
[
OH_NativeXComponent_RegisterCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registercallback
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
[OH_NativeXComponent_Callback](_o_h___native_x_component___callback.md)
\*
callback) | 为此OH_NativeXComponent实例注册回调。 |
|
[
OH_NativeXComponent_RegisterMouseEventCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registermouseeventcallback
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
[OH_NativeXComponent_MouseEvent_Callback](_o_h___native_x_component___mouse_event___callback.md)
\*
callback) | 为此OH_NativeXComponent实例注册鼠标事件回调。 |
|
[
OH_NativeXComponent_RegisterFocusEventCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registerfocuseventcallback
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void(\*callback)([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void
\*
window)) | 为此OH_NativeXComponent实例注册获焦事件回调。 |
|
[
OH_NativeXComponent_RegisterKeyEventCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registerkeyeventcallback
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void(\*callback)([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void
\*
window)) | 为此OH_NativeXComponent实例注册按键事件回调。 |
|
[
OH_NativeXComponent_RegisterBlurEventCallback
](
_o_h___native_x_component.md#oh_nativexcomponent_registerblureventcallback
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void(\*callback)([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
void
\*
window)) | 为此OH_NativeXComponent实例注册失焦事件回调。 |
|
[
OH_NativeXComponent_GetKeyEvent
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyevent
)
([OH_NativeXComponent](_o_h___native_x_component.md#oh_nativexcomponent)
\*component,
[OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*\*
keyEvent) | 获取ArkUI
XComponent调度的按键事件。 |
|
[
OH_NativeXComponent_GetKeyEventAction
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyeventaction
)
([OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*keyEvent,
[OH_NativeXComponent_KeyAction](_o_h___native_x_component.md#oh_nativexcomponent_keyaction)
\*
action) | 获取传入按键事件的动作。 |
|
[
OH_NativeXComponent_GetKeyEventCode
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyeventcode
)
([OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*keyEvent,
[OH_NativeXComponent_KeyCode](_o_h___native_x_component.md#oh_nativexcomponent_keycode)
\*
code) | 获取传入按键事件的按键码。 |
|
[
OH_NativeXComponent_GetKeyEventSourceType
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyeventsourcetype
)
([OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*keyEvent,
[OH_NativeXComponent_EventSourceType](_o_h___native_x_component.md#oh_nativexcomponent_eventsourcetype)
\*
sourceType) | 获取传入按键事件的事件源类型。 |
|
[
OH_NativeXComponent_GetKeyEventDeviceId
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyeventdeviceid
)
([OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*keyEvent,
int64_t
\*
deviceId) | 获取传入按键事件的设备id。 |
|
[
OH_NativeXComponent_GetKeyEventTimeStamp
](
_o_h___native_x_component.md#oh_nativexcomponent_getkeyeventtimestamp
)
([OH_NativeXComponent_KeyEvent](_o_h___native_x_component.md#oh_nativexcomponent_keyevent)
\*keyEvent,
int64_t
\*
timeStamp) | 获取传入按键事件的时间戳。 |
### 变量
### 变量
|
变量
名称 | 描述 |
| 名称 | 描述 |
| -------- | -------- |
| -------- | -------- |
|
**OH_XCOMPONENT_ID_LEN_MAX**
= 128 | ArkUI XComponent的id的最大长度。
|
|
**OH_XCOMPONENT_ID_LEN_MAX**
=
128 | const
uint32_t
|
|
**OH_MAX_TOUCH_POINTS_NUMBER**
= 10 | 触摸事件中的可识别的触摸点个数最大值。
|
|
**OH_MAX_TOUCH_POINTS_NUMBER**
=
10 | const
uint32_t
|
zh-cn/application-dev/reference/native-apis/native__xcomponent__key__event_8h.md
0 → 100644
浏览文件 @
a2ec4b16
# native_xcomponent_key_event.h
## 概述
声明用于访问Native XComponent键盘事件所使用到的枚举类型。
**起始版本:**
10
**相关模块:**
[
Native XComponent
](
_o_h___native_x_component.md
)
## 汇总
### 枚举
| 名称 | 描述 |
| -------- | -------- |
|
[
OH_NativeXComponent_KeyCode
](
_o_h___native_x_component.md#oh_nativexcomponent_keycode
)
{
<br/>
KEY_UNKNOWN
=
-1,
KEY_FN
=
0,
KEY_HOME
=
1,
KEY_BACK
=
2,KEY_MEDIA_PLAY_PAUSE
=
10,
KEY_MEDIA_STOP
=
11,
KEY_MEDIA_NEXT
=
12,
KEY_MEDIA_PREVIOUS
=
13,
<br/>
KEY_MEDIA_REWIND
=
14,
KEY_MEDIA_FAST_FORWARD
=
15,
KEY_VOLUME_UP
=
16,
KEY_VOLUME_DOWN
=
17,
<br/>
KEY_POWER
=
18,
KEY_CAMERA
=
19,
KEY_VOLUME_MUTE
=
22,
KEY_MUTE
=
23,KEY_BRIGHTNESS_UP
=
40,
KEY_BRIGHTNESS_DOWN
=
41,
KEY_0
=
2000,
KEY_1
=
2001,
<br/>
KEY_2
=
2002,
KEY_3
=
2003,
KEY_4
=
2004,
KEY_5
=
2005,
<br/>
KEY_6
=
2006,
KEY_7
=
2007,
KEY_8
=
2008,
KEY_9
=
2009,
<br/>
KEY_STAR
=
2010,
KEY_POUND
=
2011,
KEY_DPAD_UP
=
2012,
KEY_DPAD_DOWN
=
2013,KEY_DPAD_LEFT
=
2014,
KEY_DPAD_RIGHT
=
2015,
KEY_DPAD_CENTER
=
2016,
<br/>
KEY_A
=
2017,
<br/>
KEY_B
=
2018,
KEY_C
=
2019,
KEY_D
=
2020,
KEY_E
=
2021,
<br/>
KEY_F
=
2022,
KEY_G
=
2023,
KEY_H
=
2024,
KEY_I
=
2025,
<br/>
KEY_J
=
2026,
KEY_K
=
2027,
KEY_L
=
2028,
KEY_M
=
2029,
<br/>
KEY_N
=
2030,
KEY_O
=
2031,
KEY_P
=
2032,
KEY_Q
=
2033,
<br/>
KEY_R
=
2034,
KEY_S
=
2035,
KEY_T
=
2036,
KEY_U
=
2037,
<br/>
KEY_V
=
2038,
KEY_W
=
2039,
KEY_X
=
2040,
KEY_Y
=
2041,
<br/>
KEY_Z
=
2042,
KEY_COMMA
=
2043,
KEY_PERIOD
=
2044,
KEY_ALT_LEFT
=
2045,
<br/>
KEY_ALT_RIGHT
=
2046,
KEY_SHIFT_LEFT
=
2047,
KEY_SHIFT_RIGHT
=
2048,
KEY_TAB
=
2049,
<br/>
KEY_SPACE
=
2050,
KEY_SYM
=
2051,
KEY_EXPLORER
=
2052,
KEY_ENVELOPE
=
2053,
<br/>
KEY_ENTER
=
2054,
KEY_DEL
=
2055,
KEY_GRAVE
=
2056,
KEY_MINUS
=
2057,
<br/>
KEY_EQUALS
=
2058,
KEY_LEFT_BRACKET
=
2059,
KEY_RIGHT_BRACKET
=
2060,
KEY_BACKSLASH
=
2061,
<br/>
KEY_SEMICOLON
=
2062,
KEY_APOSTROPHE
=
2063,
KEY_SLASH
=
2064,
KEY_AT
=
2065,
<br/>
KEY_PLUS
=
2066,
KEY_MENU
=
2067,
KEY_PAGE_UP
=
2068,
KEY_PAGE_DOWN
=
2069,
<br/>
KEY_ESCAPE
=
2070,
KEY_FORWARD_DEL
=
2071,
KEY_CTRL_LEFT
=
2072,
KEY_CTRL_RIGHT
=
2073,
<br/>
KEY_CAPS_LOCK
=
2074,
KEY_SCROLL_LOCK
=
2075,
KEY_META_LEFT
=
2076,
KEY_META_RIGHT
=
2077,
<br/>
KEY_FUNCTION
=
2078,
KEY_SYSRQ
=
2079,
KEY_BREAK
=
2080,
KEY_MOVE_HOME
=
2081,
<br/>
KEY_MOVE_END
=
2082,
KEY_INSERT
=
2083,
KEY_FORWARD
=
2084,
KEY_MEDIA_PLAY
=
2085,
<br/>
KEY_MEDIA_PAUSE
=
2086,
KEY_MEDIA_CLOSE
=
2087,
KEY_MEDIA_EJECT
=
2088,
KEY_MEDIA_RECORD
=
2089,
<br/>
KEY_F1
=
2090,
KEY_F2
=
2091,
KEY_F3
=
2092,
KEY_F4
=
2093,
<br/>
KEY_F5
=
2094,
KEY_F6
=
2095,
KEY_F7
=
2096,
KEY_F8
=
2097,
<br/>
KEY_F9
=
2098,
KEY_F10
=
2099,
KEY_F11
=
2100,
KEY_F12
=
2101,
<br/>
KEY_NUM_LOCK
=
2102,
KEY_NUMPAD_0
=
2103,
KEY_NUMPAD_1
=
2104,
KEY_NUMPAD_2
=
2105,
<br/>
KEY_NUMPAD_3
=
2106,
KEY_NUMPAD_4
=
2107,
KEY_NUMPAD_5
=
2108,
KEY_NUMPAD_6
=
2109,
<br/>
KEY_NUMPAD_7
=
2110,
KEY_NUMPAD_8
=
2111,
KEY_NUMPAD_9
=
2112,
KEY_NUMPAD_DIVIDE
=
2113,
<br/>
KEY_NUMPAD_MULTIPLY
=
2114,
KEY_NUMPAD_SUBTRACT
=
2115,
KEY_NUMPAD_ADD
=
2116,
KEY_NUMPAD_DOT
=
2117,
<br/>
KEY_NUMPAD_COMMA
=
2118,
KEY_NUMPAD_ENTER
=
2119,
KEY_NUMPAD_EQUALS
=
2120,
KEY_NUMPAD_LEFT_PAREN
=
2121,
<br/>
KEY_NUMPAD_RIGHT_PAREN
=
2122,
KEY_VIRTUAL_MULTITASK
=
2210,
KEY_SLEEP
=
2600,
KEY_ZENKAKU_HANKAKU
=
2601,
<br/>
KEY_102ND
=
2602,
KEY_RO
=
2603,
KEY_KATAKANA
=
2604,
KEY_HIRAGANA
=
2605,
<br/>
KEY_HENKAN
=
2606,
KEY_KATAKANA_HIRAGANA
=
2607,
KEY_MUHENKAN
=
2608,
KEY_LINEFEED
=
2609,
<br/>
KEY_MACRO
=
2610,
KEY_NUMPAD_PLUSMINUS
=
2611,
KEY_SCALE
=
2612,
KEY_HANGUEL
=
2613,
<br/>
KEY_HANJA
=
2614,
KEY_YEN
=
2615,
KEY_STOP
=
2616,
KEY_AGAIN
=
2617,
<br/>
KEY_PROPS
=
2618,
KEY_UNDO
=
2619,
KEY_COPY
=
2620,
KEY_OPEN
=
2621,
<br/>
KEY_PASTE
=
2622,
KEY_FIND
=
2623,
KEY_CUT
=
2624,
KEY_HELP
=
2625,
<br/>
KEY_CALC
=
2626,
KEY_FILE
=
2627,
KEY_BOOKMARKS
=
2628,
KEY_NEXT
=
2629,
<br/>
KEY_PLAYPAUSE
=
2630,
KEY_PREVIOUS
=
2631,
KEY_STOPCD
=
2632,
KEY_CONFIG
=
2634,
<br/>
KEY_REFRESH
=
2635,
KEY_EXIT
=
2636,
KEY_EDIT
=
2637,
KEY_SCROLLUP
=
2638,
<br/>
KEY_SCROLLDOWN
=
2639,
KEY_NEW
=
2640,
KEY_REDO
=
2641,
KEY_CLOSE
=
2642,
<br/>
KEY_PLAY
=
2643,
KEY_BASSBOOST
=
2644,
KEY_PRINT
=
2645,
KEY_CHAT
=
2646,
<br/>
KEY_FINANCE
=
2647,
KEY_CANCEL
=
2648,
KEY_KBDILLUM_TOGGLE
=
2649,
KEY_KBDILLUM_DOWN
=
2650,
<br/>
KEY_KBDILLUM_UP
=
2651,
KEY_SEND
=
2652,
KEY_REPLY
=
2653,
KEY_FORWARDMAIL
=
2654,
<br/>
KEY_SAVE
=
2655,
KEY_DOCUMENTS
=
2656,
KEY_VIDEO_NEXT
=
2657,
KEY_VIDEO_PREV
=
2658,
<br/>
KEY_BRIGHTNESS_CYCLE
=
2659,
KEY_BRIGHTNESS_ZERO
=
2660,
KEY_DISPLAY_OFF
=
2661,
KEY_BTN_MISC
=
2662,
<br/>
KEY_GOTO
=
2663,
KEY_INFO
=
2664,
KEY_PROGRAM
=
2665,
KEY_PVR
=
2666,
<br/>
KEY_SUBTITLE
=
2667,
KEY_FULL_SCREEN
=
2668,
KEY_KEYBOARD
=
2669,
KEY_ASPECT_RATIO
=
2670,
<br/>
KEY_PC
=
2671,
KEY_TV
=
2672,
KEY_TV2
=
2673,
KEY_VCR
=
2674,
<br/>
KEY_VCR2
=
2675,
KEY_SAT
=
2676,
KEY_CD
=
2677,
KEY_TAPE
=
2678,
<br/>
KEY_TUNER
=
2679,
KEY_PLAYER
=
2680,
KEY_DVD
=
2681,
KEY_AUDIO
=
2682,
<br/>
KEY_VIDEO
=
2683,
KEY_MEMO
=
2684,
KEY_CALENDAR
=
2685,
KEY_RED
=
2686,
<br/>
KEY_GREEN
=
2687,
KEY_YELLOW
=
2688,
KEY_BLUE
=
2689,
KEY_CHANNELUP
=
2690,
<br/>
KEY_CHANNELDOWN
=
2691,
KEY_LAST
=
2692,
KEY_RESTART
=
2693,
KEY_SLOW
=
2694,
<br/>
KEY_SHUFFLE
=
2695,
KEY_VIDEOPHONE
=
2696,
KEY_GAMES
=
2697,
KEY_ZOOMIN
=
2698,
<br/>
KEY_ZOOMOUT
=
2699,
KEY_ZOOMRESET
=
2700,
KEY_WORDPROCESSOR
=
2701,
KEY_EDITOR
=
2702,
<br/>
KEY_SPREADSHEET
=
2703,
KEY_GRAPHICSEDITOR
=
2704,
KEY_PRESENTATION
=
2705,
KEY_DATABASE
=
2706,
<br/>
KEY_NEWS
=
2707,
KEY_VOICEMAIL
=
2708,
KEY_ADDRESSBOOK
=
2709,
KEY_MESSENGER
=
2710,
<br/>
KEY_BRIGHTNESS_TOGGLE
=
2711,
KEY_SPELLCHECK
=
2712,
KEY_COFFEE
=
2713,
KEY_MEDIA_REPEAT
=
2714,
<br/>
KEY_IMAGES
=
2715,
KEY_BUTTONCONFIG
=
2716,
KEY_TASKMANAGER
=
2717,
KEY_JOURNAL
=
2718,
<br/>
KEY_CONTROLPANEL
=
2719,
KEY_APPSELECT
=
2720,
KEY_SCREENSAVER
=
2721,
KEY_ASSISTANT
=
2722,
<br/>
KEY_KBD_LAYOUT_NEXT
=
2723,
KEY_BRIGHTNESS_MIN
=
2724,
KEY_BRIGHTNESS_MAX
=
2725,
KEY_KBDINPUTASSIST_PREV
=
2726,
<br/>
KEY_KBDINPUTASSIST_NEXT
=
2727,
KEY_KBDINPUTASSIST_PREVGROUP
=
2728,
KEY_KBDINPUTASSIST_NEXTGROUP
=
2729,
KEY_KBDINPUTASSIST_ACCEPT
=
2730,
<br/>
KEY_KBDINPUTASSIST_CANCEL
=
2731,
KEY_FRONT
=
2800,
KEY_SETUP
=
2801,
KEY_WAKEUP
=
2802,
<br/>
KEY_SENDFILE
=
2803,
KEY_DELETEFILE
=
2804,
KEY_XFER
=
2805,
KEY_PROG1
=
2806,
<br/>
KEY_PROG2
=
2807,
KEY_MSDOS
=
2808,
KEY_SCREENLOCK
=
2809,
KEY_DIRECTION_ROTATE_DISPLAY
=
2810,
<br/>
KEY_CYCLEWINDOWS
=
2811,
KEY_COMPUTER
=
2812,
KEY_EJECTCLOSECD
=
2813,
KEY_ISO
=
2814,
<br/>
KEY_MOVE
=
2815,
KEY_F13
=
2816,
KEY_F14
=
2817,
KEY_F15
=
2818,
<br/>
KEY_F16
=
2819,
KEY_F17
=
2820,
KEY_F18
=
2821,
KEY_F19
=
2822,
<br/>
KEY_F20
=
2823,
KEY_F21
=
2824,
KEY_F22
=
2825,
KEY_F23
=
2826,
<br/>
KEY_F24
=
2827,
KEY_PROG3
=
2828,
KEY_PROG4
=
2829,
KEY_DASHBOARD
=
2830,
<br/>
KEY_SUSPEND
=
2831,
KEY_HP
=
2832,
KEY_SOUND
=
2833,
KEY_QUESTION
=
2834,
<br/>
KEY_CONNECT
=
2836,
KEY_SPORT
=
2837,
KEY_SHOP
=
2838,
KEY_ALTERASE
=
2839,
<br/>
KEY_SWITCHVIDEOMODE
=
2841,
KEY_BATTERY
=
2842,
KEY_BLUETOOTH
=
2843,
KEY_WLAN
=
2844,
<br/>
KEY_UWB
=
2845,
KEY_WWAN_WIMAX
=
2846,
KEY_RFKILL
=
2847,
KEY_CHANNEL
=
3001,
<br/>
KEY_BTN_0
=
3100,
KEY_BTN_1
=
3101,
KEY_BTN_2
=
3102,
KEY_BTN_3
=
3103,
<br/>
KEY_BTN_4
=
3104,
KEY_BTN_5
=
3105,
KEY_BTN_6
=
3106,
KEY_BTN_7
=
3107,
<br/>
KEY_BTN_8
=
3108,
KEY_BTN_9
=
3109
<br/>
} | 按键事件的键码。 |
|
[
OH_NativeXComponent_KeyAction
](
_o_h___native_x_component.md#oh_nativexcomponent_keyaction
)
{
OH_NATIVEXCOMPONENT_KEY_ACTION_UNKNOWN
=
-1,
OH_NATIVEXCOMPONENT_KEY_ACTION_DOWN
=
0,
OH_NATIVEXCOMPONENT_KEY_ACTION_UP
} | 按键事件动作。 |
zh-cn/application-dev/ui/arkts-graphics-display.md
浏览文件 @
a2ec4b16
...
@@ -23,7 +23,7 @@ Image支持加载存档图、多媒体像素图两种类型。
...
@@ -23,7 +23,7 @@ Image支持加载存档图、多媒体像素图两种类型。
### 存档图类型数据源
### 存档图类型数据源
存档图类型的数据源可以分为本地资源、网络资源、Resource资源、媒体库
datashare
资源和base64。
存档图类型的数据源可以分为本地资源、网络资源、Resource资源、媒体库资源和base64。
-
本地资源
-
本地资源
...
@@ -48,7 +48,7 @@ Image支持加载存档图、多媒体像素图两种类型。
...
@@ -48,7 +48,7 @@ Image支持加载存档图、多媒体像素图两种类型。
使用资源格式可以跨包/跨模块引入图片,resources文件夹下的图片都可以通过$r资源接口读 取到并转换到Resource格式。
使用资源格式可以跨包/跨模块引入图片,resources文件夹下的图片都可以通过$r资源接口读 取到并转换到Resource格式。
**图1**
resouces
**图1**
resou
r
ces
!
[
image-resource
](
figures/image-resource.jpg
)
!
[
image-resource
](
figures/image-resource.jpg
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录