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 
32 
34 
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 
47  const InputType& pt, RoutingStrategy s)
49 {}
50 
51 
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 
65  : AController(b),
67 {}
68 
71 {
72  if(id == UI::Paint)
73  return Paint;
74  throw BadEvent();
75 }
76 
78 
79 YSL_END
80