提交 0b895545 编写于 作者: Y YueBiang

add translation for rotate input

上级 cc880159
......@@ -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
*/
......
......@@ -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
*/
......
......@@ -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
*/
......
......@@ -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, 否则返回false.
* @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> otherwise.
* @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
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册