YSTest
PreAlpha_b380_20130211
The YSLib Test Project
|
指针设备输入事件参数类。 More...
#include <ywgtevt.h>
Public Types | |
typedef Drawing::Point | InputType |
输入类型。 | |
Public Member Functions | |
TouchEventArgs (IWidget &, const InputType &={}, RoutingStrategy=Direct) | |
构造:使用输入类型对象和路由事件类型。 | |
![]() | |
InputEventArgs (IWidget &, const KeyInput &={}, RoutingStrategy=Direct) | |
构造:使用本机键按下对象和路由事件类型。 | |
operator const KeyInput & () const ynothrow | |
转换为按键代码类型。 | |
const KeyInput & | GetKeys () const ynothrow |
取按键代码。 | |
![]() | |
RoutedEventArgs (IWidget &wgt, RoutingStrategy strategy=Direct) | |
![]() | |
UIEventArgs (IWidget &wgt) | |
UIEventArgs (const UIEventArgs &)=default | |
复制构造:默认实现。 | |
UIEventArgs & | operator= (const UIEventArgs &)=default |
复制赋值:默认实现。 | |
IWidget & | GetSender () const ynothrow |
void | SetSender (IWidget &wgt) |
![]() | |
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 |
负运算:取加法逆元。 | |
GBinaryGroup & | operator+= (const GBinaryGroup &val) ynothrow |
加法赋值。 | |
GBinaryGroup & | operator-= (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 |
选择分量常量引用。 | |
Additional Inherited Members | |
![]() | |
KeyInput | Keys |
包含的按键代码。 | |
![]() | |
SPos | X |
SPos | Y |
分量。 | |
![]() | |
static yconstexpr GBinaryGroup | Invalid |
无效(不在屏幕坐标系中)对象。 | |
TouchEventArgs::TouchEventArgs | ( | IWidget & | wgt, |
const InputType & | pt = {} , |
||
RoutingStrategy | s = Direct |
||
) |