YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::UI::TouchEventArgs结构体 参考

指针设备输入事件参数类。 更多...

#include <ywgtevt.h>

类 YSLib::UI::TouchEventArgs 继承关系图:
YSLib::UI::TouchEventArgs 的协作图:

Public 类型

typedef Drawing::Point InputType
 输入类型。
 

Public 成员函数

 TouchEventArgs (IWidget &, const KeyInput &, const InputType &={}, RoutingStrategy=Direct)
 构造:使用按键输入类型对象、输入类型对象和事件路由策略。
 
- Public 成员函数 继承自 YSLib::UI::InputEventArgs
 InputEventArgs (IWidget &, const KeyInput &={}, RoutingStrategy=Direct)
 构造:使用本机键按下对象和路由事件类型。
 
 operator const KeyInput & () const ynothrow
 转换为按键代码类型。
 
const KeyInput & GetKeys () const ynothrow
 取按键代码。
 
- Public 成员函数 继承自 YSLib::UI::RoutedEventArgs
 RoutedEventArgs (IWidget &wgt, RoutingStrategy strategy=Direct)
 
- Public 成员函数 继承自 YSLib::UI::UIEventArgs
 UIEventArgs (IWidget &wgt)
 
 UIEventArgs (const UIEventArgs &)=default
 复制构造:默认实现。
 
UIEventArgsoperator= (const UIEventArgs &)=default
 复制赋值:默认实现。
 
IWidgetGetSender () const ynothrow
 
void SetSender (IWidget &wgt)
 
- Public 成员函数 继承自 YSLib::Drawing::GBinaryGroup< SPos >
yconstfn GBinaryGroup () ynothrow
 无参数构造。
 
yconstfn GBinaryGroup (const GBinaryGroup &)=default
 复制构造:默认实现。
 
yconstfn GBinaryGroup (const Size &) ynothrow
 构造:使用 Size 对象。
 
yconstfn GBinaryGroup (const Rect &) ynothrow
 构造:使用 Rect 对象。
 
yconstfn GBinaryGroup (_tScalar1 x, _tScalar2 y) ynothrow
 构造:使用两个纯量。
 
yconstfn GBinaryGroup operator- () ynothrow
 负运算:取加法逆元。
 
GBinaryGroupoperator+= (const GBinaryGroup &val) ynothrow
 加法赋值。
 
GBinaryGroupoperator-= (const GBinaryGroup &val) ynothrow
 减法赋值。
 
yconstfn SPos GetX () const ynothrow
 
yconstfn SPos GetY () const ynothrow
 
void SetX (SPos_tempArgName)
 
void SetY (SPos_tempArgName)
 
yconstfn bool IsZero () const ynothrow
 判断是否是零元素。
 
SPos & GetRef (bool b=true) ynothrow
 选择分量引用。
 
const SPos & GetRef (bool b=true) const ynothrow
 选择分量常量引用。
 

额外继承的成员函数

- Public 属性 继承自 YSLib::UI::InputEventArgs
KeyInput Keys
 包含的按键代码。
 
- Public 属性 继承自 YSLib::Drawing::GBinaryGroup< SPos >
SPos X
 
SPos Y
 分量。
 
- 静态 Public 属性 继承自 YSLib::Drawing::GBinaryGroup< SPos >
static yconstexpr GBinaryGroup Invalid
 无效(不在屏幕坐标系中)对象。
 

详细描述

指针设备输入事件参数类。

警告
非虚析构。
自从
早于 build 132

在文件 ywgtevt.h172 行定义.

成员类型定义说明

输入类型。

在文件 ywgtevt.h176 行定义.

构造及析构函数说明

TouchEventArgs::TouchEventArgs ( IWidget wgt,
const KeyInput &  k,
const InputType pt = {},
RoutingStrategy  s = Direct 
)

构造:使用按键输入类型对象、输入类型对象和事件路由策略。

自从
build 389

在文件 ywgtevt.cpp46 行定义.


该结构体的文档由以下文件生成: