Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Graphic Ui
提交
0b895545
G
Graphic Ui
项目概览
OpenHarmony
/
Graphic Ui
大约 1 年 前同步成功
通知
13
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Graphic Ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0b895545
编写于
4月 01, 2021
作者:
Y
YueBiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add translation for rotate input
上级
cc880159
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
39 addition
and
36 deletion
+39
-36
interfaces/kits/components/ui_abstract_scroll.h
interfaces/kits/components/ui_abstract_scroll.h
+4
-4
interfaces/kits/components/ui_picker.h
interfaces/kits/components/ui_picker.h
+6
-6
interfaces/kits/components/ui_slider.h
interfaces/kits/components/ui_slider.h
+7
-5
interfaces/kits/components/ui_view.h
interfaces/kits/components/ui_view.h
+15
-14
interfaces/kits/events/rotate_event.h
interfaces/kits/events/rotate_event.h
+7
-7
未找到文件。
interfaces/kits/components/ui_abstract_scroll.h
浏览文件 @
0b895545
...
...
@@ -222,9 +222,9 @@ public:
#if ENABLE_ROTATE_INPUT
/**
* @brief
获得组件旋转系数
* @brief
Obtains the rotation factor.
*
* @return
返回旋转系数
* @return
Returns the rotation factor.
* @since 5.0
* @version 3.0
*/
...
...
@@ -234,9 +234,9 @@ public:
}
/**
* @brief
设置组件旋转系数
* @brief
Sets the rotation factor.
*
* @param factor
旋转系数,旋转输入事件的旋转参数与旋转系数的乘积为实际滑动像素值
* @param factor
Indicates the rotation factor to set.
* @since 5.0
* @version 3.0
*/
...
...
interfaces/kits/components/ui_picker.h
浏览文件 @
0b895545
...
...
@@ -330,7 +330,7 @@ public:
#if ENABLE_ROTATE_INPUT
/**
* @brief
使组件注册获取焦点
* @brief
Requests the focus on the view.
*
* @since 5.0
* @version 3.0
...
...
@@ -341,7 +341,7 @@ public:
}
/**
* @brief
使组件失去焦点
* @brief
Clears the focus on the view.
*
* @since 5.0
* @version 3.0
...
...
@@ -352,9 +352,9 @@ public:
}
/**
* @brief
设置组件旋转系数
* @brief
Sets the rotation factor.
*
* @param factor
旋转系数,旋转输入事件的旋转参数与旋转系数的乘积为实际滑动像素值
* @param factor
Indicates the rotation factor to set.
* @since 5.0
* @version 3.0
*/
...
...
@@ -364,9 +364,9 @@ public:
}
/**
* @brief 获得组件旋转系数
* @return 返回旋转系数
* @brief Obtains the rotation factor.
*
* @return Returns the rotation factor.
* @since 5.0
* @version 3.0
*/
...
...
interfaces/kits/components/ui_slider.h
浏览文件 @
0b895545
...
...
@@ -249,8 +249,9 @@ public:
#if ENABLE_ROTATE_INPUT
/**
* @brief 获得旋转系数
* @return 旋转系数
* @brief Obtains the rotation factor.
*
* @return Returns the rotation factor.
* @since 5.0
* @version 3.0
*/
...
...
@@ -259,9 +260,10 @@ public:
return
rotateFactor_
;
}
/**
* @brief 设置旋转系数
* @param factor 旋转系数
/**
* @brief Sets the rotation factor.
*
* @param factor Indicates the rotation factor to set.
* @since 5.0
* @version 3.0
*/
...
...
interfaces/kits/components/ui_view.h
浏览文件 @
0b895545
...
...
@@ -304,17 +304,18 @@ public:
#if ENABLE_ROTATE_INPUT
/**
* @brief 声明旋转事件监听类。你需要注册此监听类以响应旋转事件。
* @brief Defines a rotation event listener.
* You need to register this listener with the view to listen for rotation events.
* @since 5.0
* @version 3.0
*/
class
OnRotateListener
:
public
HeapBase
{
public:
/**
* @brief
当组件收到旋转事件时调用
* @param view
响应旋转的组件
* @param event
旋转事件
* @return
如果事件被消费返回true, 否则返回fal
se.
* @brief
Called when a rotation event occurs on a view.
* @param view
Indicates the view that responds to the rotation event.
* @param event
Indicates the rotation event.
* @return
Returns <b>true</b> if the rotation event is consumed; returns <b>false</b> otherwi
se.
* @since 5.0
* @version 3.0
*/
...
...
@@ -323,7 +324,7 @@ public:
return
true
;
}
/**
* @brief
析构函数,删除OnRotateListener旋转事件监听类实例
.
* @brief
A destructor used to delete an <b>OnRotateListener</b> instance
.
* @since 5.0
* @version 3.0
*/
...
...
@@ -331,16 +332,16 @@ public:
};
/**
* @brief
当旋转事件传入组件时调用以产生对应响应
* @param event
旋转事件
* @brief
Called when a rotation event occurs on the view.
* @param event
Indicates the rotation event.
* @since 5.0
* @version 3.0
*/
virtual
bool
OnRotateEvent
(
const
RotateEvent
&
event
);
/**
* @brief
设置当前view组件的旋转事件监听对象
* @param onRotateListener
输入当前view组件的旋转事件监听对象指针
* @brief
Sets a rotation event listener for the view.
* @param onRotateListener
Indicates the pointer to the rotation event listener to set.
* @since 5.0
* @version 3.0
*/
...
...
@@ -350,8 +351,8 @@ public:
}
/**
* @brief
获得当前view组件的旋转事件监听对象指针
* @return
返回当前view组件的旋转事件监听对象指针
* @brief
Obtains the rotation event listener for the view.
* @return
Returns the rotation event listener.
* @since 5.0
* @version 3.0
*/
...
...
@@ -1463,7 +1464,7 @@ public:
#if ENABLE_ROTATE_INPUT
/**
* @brief
使组件注册获取焦点
* @brief
Requests the focus on the view.
*
* @since 5.0
* @version 3.0
...
...
@@ -1471,7 +1472,7 @@ public:
virtual
void
RequestFocus
();
/**
* @brief
使组件失去焦点
* @brief
Clears the focus on the view.
*
* @since 5.0
* @version 3.0
...
...
interfaces/kits/events/rotate_event.h
浏览文件 @
0b895545
...
...
@@ -31,7 +31,7 @@
/**
* @file rotate_event.h
*
* @brief
声明旋转事件RotateEvent,由旋钮类硬件产生
* @brief
Declares a <b>RotateEvent</b>, which usually occurs on a knob.
*
* @since 5.0
* @version 3.0
...
...
@@ -41,7 +41,7 @@
namespace
OHOS
{
/**
* @brief
定义旋转事件RotateEvent,由旋钮类硬件产生
* @brief
Defines a <b>RotateEvent</b>, which usually occurs on a knob.
*
* @since 5.0
* @version 3.0
...
...
@@ -51,19 +51,19 @@ public:
RotateEvent
()
=
delete
;
/**
* @brief
旋转事件<b>RotateEvent</b>实例的构造函数
.
* @param rotate
short型旋转数值
* @brief
A constructor used to create a <b>RotateEvent</b> instance
.
* @param rotate
Indicates the short data representing the number reported by a <b>RotateEvent</b>.
*
* @since 5.0
* @version 3.0
*/
RotateEvent
(
int16_t
rotate
)
:
rotate_
(
-
rotate
*
ROTATE_SENSITIVITY
)
{}
//
翻转旋转方向
RotateEvent
(
int16_t
rotate
)
:
rotate_
(
-
rotate
*
ROTATE_SENSITIVITY
)
{}
//
Rotation direction
~
RotateEvent
()
{};
/**
* @brief
获取旋转值
* @return
旋转值
* @brief
Obtains the number reported by a <b>RotateEvent</b>.
* @return
Returns the number reported by a <b>RotateEvent</b>.
*
* @since 5.0
* @version 3.0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录