YSTest
PreAlpha_b400_20130424
The YSLib Test Project
首页
相关页面
模块
命名空间
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
ywgtevt.cpp
浏览该文件的文档.
1
/*
2
Copyright by FrankHB 2010 - 2013.
3
4
This file is part of the YSLib project, and may only be used,
5
modified, and distributed under the terms of the YSLib project
6
license, LICENSE.TXT. By continuing to use, modify, or distribute
7
this file you indicate that you have read the license and
8
understand and accept it fully.
9
*/
10
28
#include "
YSLib/UI/ywgtevt.h
"
29
#include "
YSLib/UI/ywidget.h
"
30
31
YSL_BEGIN
32
33
YSL_BEGIN_NAMESPACE
(UI)
34
35
InputEventArgs
::
InputEventArgs
(
IWidget
& wgt, const
KeyInput
& k,
36
RoutingStrategy
s)
37
:
RoutedEventArgs
(wgt, s), Keys(k)
38
{}
39
40
41
KeyEventArgs::KeyEventArgs(
IWidget
& wgt,
const
InputType
& k,
RoutingStrategy
s)
42
:
InputEventArgs
(wgt, k, s)
43
{}
44
45
46
TouchEventArgs::TouchEventArgs
(
IWidget
& wgt,
const
KeyInput
& k,
47
const
InputType
& pt,
RoutingStrategy
s)
48
:
InputEventArgs
(wgt, k, s),
MScreenPositionEventArgs
(pt)
49
{}
50
51
52
PaintEventArgs::PaintEventArgs
(
IWidget
& wgt)
53
:
UIEventArgs
(wgt),
PaintContext
()
54
{}
55
PaintEventArgs::PaintEventArgs
(IWidget& wgt,
const
PaintContext& pc)
56
: UIEventArgs(wgt), PaintContext(pc)
57
{}
58
PaintEventArgs::PaintEventArgs
(IWidget& wgt,
const
Drawing::Graphics& g,
59
const
Drawing::Point
& pt,
const
Drawing::Rect& r)
60
: UIEventArgs(wgt), PaintContext{g, pt, r}
61
{}
62
63
64
WidgetController::WidgetController
(
bool
b)
65
: AController(b),
66
Paint
()
67
{}
68
69
EventMapping::ItemType
&
70
WidgetController::GetItem
(
const
VisualEvent
&
id
)
71
{
72
if
(
id
==
UI::Paint
)
73
return
Paint
;
74
throw
BadEvent
();
75
}
76
77
YSL_END_NAMESPACE
(UI)
78
79
YSL_END
80
YFramework
source
YSLib
UI
ywgtevt.cpp
生成于 2013年 四月 24日 星期三 18:41:29 , 为 YSTest使用
1.8.2